/* ===================================================================
   Beautician Index – Brand Color Palette
   ─────────────────────────────────────────────────────────────────
   60%  White        #ffffff  → page bg, cards, all large surfaces
   25%  Sunglo       #db6c7c  → primary UI chrome, buttons, icons
   10%  Hibiscus     #a62a60  → CTAs, featured, accent headings
    5%  Beauty Bush  #ecb1bc  → borders, dividers, structural lines
   ─────────────────────────────────────────────────────────────────
   Vanilla Ice #f6dee2 → warm section tints (NOT page background)
   =================================================================== */

/* ── Google Fonts ─────────────────────────────────────────────── */
/* Montserrat – strong sans-serif for headings | Open Sans – readable for body */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,500;0,600;0,700;0,800;0,900;1,600&family=Open+Sans:wght@400;500;600;700&display=swap');

/* ── Design Tokens ────────────────────────────────────────────── */
:root {
  /* Brand palette */
  --bi-sunglo: #db6c7c;
  /* Primary UI chrome          */
  --bi-sunglo-dk: #c4515f;
  /* Darker sunglo hover         */
  --bi-hibiscus: #a62a60;
  /* Accent CTAs / featured      */
  --bi-hibiscus-dk: #8a2150;
  --bi-vanilla: #f6dee2;
  /* Warm section tint           */
  --bi-vanilla-dk: #f0ccd3;
  --bi-beauty-bush: #ecb1bc;
  /* Borders / dividers          */
  --bi-white: #ffffff;
  --bi-dark: #2d0a18;
  /* Very dark plum – text       */
  --bi-text: #3a1020;
  --bi-muted: #8a4a60;
  --bi-border: var(--bi-beauty-bush);
  --bi-surface: #ffffff;

  /* ── Radius tokens ─────────────────────────── */
  --bi-r-xs: 6px;
  --bi-r-sm: 10px;
  --bi-r-md: 14px;
  --bi-r-lg: 20px;
  --bi-r-xl: 28px;
  --bi-r-pill: 999px;
  --bi-radius: var(--bi-r-md);
  /* default card radius        */

  /* ── Spacing tokens ────────────────────────── */
  --bi-sp-xs: 4px;
  --bi-sp-sm: 8px;
  --bi-sp-md: 16px;
  --bi-sp-lg: 32px;
  --bi-sp-xl: 56px;

  /* ── Motion tokens ─────────────────────────── */
  --bi-ease: cubic-bezier(.4, 0, .2, 1);
  --bi-t-fast: 150ms;
  --bi-t-base: 260ms;
  --bi-t-slow: 400ms;

  /* ── Shadows ────────────────────────────────── */
  --bi-shadow: 0 1px 4px rgba(166, 42, 96, .06), 0 6px 20px rgba(166, 42, 96, .10);
  --bi-shadow-md: 0 4px 12px rgba(166, 42, 96, .10), 0 16px 36px rgba(166, 42, 96, .14);
  --bi-shadow-lg: 0 8px 20px rgba(166, 42, 96, .12), 0 32px 56px rgba(166, 42, 96, .18);
  --bi-glow: 0 0 0 4px rgba(219, 108, 124, .22);

  --navbar-h: 68px;
}

/* ── Base ─────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Open Sans', system-ui, sans-serif;
  color: var(--bi-text);
  background: #ffffff;
  font-size: 1rem;
  line-height: 1.65;
}

/* ── Headings – Lora ──────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6,
.bi-section-title,
.bi-search-hero-title,
.navbar-brand .bi-brand-text {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.25;
}

h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
}

h2 {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
}

h3 {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
}

h4 {
  font-size: clamp(1rem, 2vw, 1.25rem);
}

h5 {
  font-size: 1.05rem;
}

h6 {
  font-size: .9rem;
  letter-spacing: .4px;
}

/* ── Typography helpers ───────────────────────────────────────── */
.fw-500 {
  font-weight: 500 !important;
}

.fw-600 {
  font-weight: 600 !important;
}

.fw-700 {
  font-weight: 700 !important;
}

.fw-800 {
  font-weight: 800 !important;
}

.fw-900 {
  font-weight: 900 !important;
}

.text-white-75 {
  color: rgba(255, 255, 255, .75);
}

/* ── Layout helpers ───────────────────────────────────────────── */
.bi-section {
  padding-top: 2rem;
  padding-bottom: 2rem;
}

.bi-section-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--bi-dark);
}

.col-lg-2-4 {
  flex: 0 0 auto;
  width: 20%;
}

/* ═══════════════════════════════════════════════════════════════
   NAVBAR
   ═══════════════════════════════════════════════════════════════ */
.bi-navbar {
  height: var(--navbar-h);
  background: var(--bi-white);
  border-bottom: 1.5px solid var(--bi-beauty-bush);
  box-shadow: 0 2px 16px rgba(166, 42, 96, .08);
  z-index: 1030;
  transition: box-shadow var(--bi-t-base) var(--bi-ease);
}

/* Brand logo */
.bi-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.bi-navbar .bi-brand-logo {
  height: 44px;
  width: auto;
  object-fit: contain;
}

.bi-navbar .bi-brand-text {
  font-family: 'Montserrat', system-ui, sans-serif;
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--bi-hibiscus);
  line-height: 1.1;
}

.bi-navbar .bi-brand-tag {
  font-family: 'Inter', sans-serif;
  font-size: .62rem;
  font-weight: 500;
  color: var(--bi-muted);
  line-height: 1;
  margin-top: 2px;
}

/* Nav links */
.bi-nav-link {
  color: var(--bi-text) !important;
  font-weight: 600;
  font-size: .875rem;
  padding: .4rem .85rem !important;
  border-radius: 8px;
  transition: color .15s, background .15s;
}

.bi-nav-link:hover {
  color: var(--bi-hibiscus) !important;
  background: #fdf0f3 !important;
  /* very light blush tint, near-white */
}

.bi-nav-link.active {
  color: var(--bi-hibiscus) !important;
}

/* Navbar search – pill shape, single border wraps all inputs */
.bi-navbar-search .input-group {
  border: 1.5px solid var(--bi-beauty-bush);
  border-radius: var(--bi-r-pill);
  overflow: hidden;
  background: #fff;
  transition: border-color var(--bi-t-base) var(--bi-ease),
    box-shadow var(--bi-t-base) var(--bi-ease);
}

.bi-navbar-search .input-group:focus-within {
  border-color: var(--bi-sunglo);
  box-shadow: 0 0 0 3px rgba(219, 108, 124, .15);
}

.bi-navbar-search .form-control {
  background: transparent;
  border: none !important;
  box-shadow: none !important;
  color: var(--bi-text);
  font-size: .875rem;
  border-radius: 0 !important;
  padding-left: 1.1rem;
}

.bi-navbar-search .form-control::placeholder {
  color: var(--bi-muted);
}

/* Divider: city input */
.bi-city-input {
  border-left: 1.5px solid var(--bi-beauty-bush) !important;
  max-width: 145px;
}

.bi-navbar-search .btn-search {
  background: var(--bi-sunglo);
  border: none;
  border-left: 1.5px solid var(--bi-sunglo);
  border-radius: 0 var(--bi-r-pill) var(--bi-r-pill) 0;
  color: #fff;
  font-weight: 700;
  padding: 0 1.1rem;
  min-width: 46px;
  transition: background var(--bi-t-fast) var(--bi-ease),
    transform var(--bi-t-fast) var(--bi-ease);
}

.bi-navbar-search .btn-search:hover {
  background: var(--bi-hibiscus);
}

.bi-navbar-search .btn-search:active {
  transform: scale(.96);
}

.bi-input-icon {
  background: var(--bi-vanilla-dk);
  border-color: var(--bi-beauty-bush);
  color: var(--bi-muted);
}

/* Mobile search bar – light */
.bi-mobile-search {
  background: #fdf0f3;
  /* near-white blush – subtle warmth on mobile */
  border-top: 1px solid var(--bi-beauty-bush);
  padding: .5rem 1rem;
}

.bi-mobile-search .form-control {
  background: var(--bi-white);
  border: 1px solid var(--bi-beauty-bush);
  color: var(--bi-text);
}

.bi-mobile-search .form-control::placeholder {
  color: var(--bi-muted);
}

/* Navbar toggler */
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%23a62a60' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Dropdown */
.bi-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bi-sunglo);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL BUTTONS  – pill shape, smooth transitions
   ═══════════════════════════════════════════════════════════════ */
.btn {
  border-radius: var(--bi-r-pill) !important;
  font-weight: 600;
  letter-spacing: .01em;
  transition: background var(--bi-t-fast) var(--bi-ease),
    border-color var(--bi-t-fast) var(--bi-ease),
    box-shadow var(--bi-t-fast) var(--bi-ease),
    transform var(--bi-t-fast) var(--bi-ease) !important;
}

.btn:active {
  transform: scale(.96) !important;
}

.btn-warning {
  background-color: var(--bi-sunglo) !important;
  border-color: var(--bi-sunglo) !important;
  color: #fff !important;
}

.btn-warning:hover {
  background-color: var(--bi-sunglo-dk) !important;
  border-color: var(--bi-sunglo-dk) !important;
  box-shadow: 0 4px 14px rgba(219, 108, 124, .35) !important;
}

.btn-outline-warning {
  color: var(--bi-sunglo) !important;
  border-color: var(--bi-sunglo) !important;
}

.btn-outline-warning:hover {
  background-color: var(--bi-sunglo) !important;
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(219, 108, 124, .30) !important;
}

.btn-success {
  border-radius: var(--bi-r-pill) !important;
}

.btn-outline-secondary {
  border-radius: var(--bi-r-pill) !important;
}

/* ═══════════════════════════════════════════════════════════════
   HERO CAROUSEL
   ═══════════════════════════════════════════════════════════════ */
.bi-carousel-section {
  background: #000;
}

.bi-carousel-img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  opacity: .88;
}

@media(max-width:768px) {
  .bi-carousel-img {
    height: 220px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   MEGA SEARCH HERO  – gradient + SVG wave bottom
   ═══════════════════════════════════════════════════════════════ */
.bi-search-hero {
  background: linear-gradient(140deg, var(--bi-hibiscus) 0%, var(--bi-sunglo) 55%, #e8908c 100%);
  padding: 4rem 0 5.5rem;
  /* extra bottom for wave overlap */
  position: relative;
  overflow: hidden;
}

/* Subtle light-scatter overlay */
.bi-search-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 40%, rgba(255, 255, 255, .12) 0%, transparent 65%);
  pointer-events: none;
}

/* SVG wave at the bottom – curves hero into page */
.bi-search-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 56px;
  background: #ffffff;
  clip-path: ellipse(55% 100% at 50% 100%);
}

.bi-search-hero-title {
  color: #fff;
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  font-weight: 900;
  margin-bottom: .4rem;
  font-family: 'Montserrat', system-ui, sans-serif;
  text-shadow: 0 2px 16px rgba(45, 10, 24, .28);
}

.bi-search-hero-sub {
  color: rgba(255, 255, 255, .88);
  font-size: 1rem;
  margin-bottom: 2rem;
}

/* Search form container – pill card */
.bi-mega-search-form .row {
  background: #fff;
  border-radius: var(--bi-r-xl);
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(166, 42, 96, .28);
}

.bi-mega-search-form .form-control,
.bi-mega-search-form .form-select {
  border: none !important;
  border-right: 1.5px solid var(--bi-beauty-bush) !important;
  border-radius: 0 !important;
  height: 54px;
  font-size: .95rem;
  transition: background var(--bi-t-fast);
}

.bi-mega-search-form .form-control:focus,
.bi-mega-search-form .form-select:focus {
  box-shadow: none;
  background: #fdf5f7;
}

.bi-search-btn {
  height: 54px;
  border-radius: 0 var(--bi-r-xl) var(--bi-r-xl) 0 !important;
  border: none;
  background: var(--bi-hibiscus);
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0 1.5rem;
  transition: background var(--bi-t-fast) var(--bi-ease),
    transform var(--bi-t-fast) var(--bi-ease);
}

.bi-search-btn:hover {
  background: var(--bi-hibiscus-dk);
}

.bi-search-btn:active {
  transform: scale(.97);
}

@media(max-width:768px) {
  .bi-search-hero {
    padding-bottom: 4.5rem;
  }

  .bi-search-hero-title {
    font-size: 1.5rem;
  }

  .bi-mega-search-form .form-control,
  .bi-mega-search-form .form-select {
    border-right: none !important;
    border-bottom: 1.5px solid var(--bi-beauty-bush) !important;
    border-radius: 0 !important;
    height: 50px;
  }

  .bi-search-btn {
    border-radius: 0 0 var(--bi-r-xl) var(--bi-r-xl) !important;
    height: 50px;
  }
}

/* ═══════════════════════════════════════════════════════════════
   CATEGORY CARDS
   ═══════════════════════════════════════════════════════════════ */
.bi-cat-card {
  display: block;
  text-decoration: none;
}

.bi-cat-card-inner {
  background: var(--bi-white);
  border: 1.5px solid var(--bi-beauty-bush);
  border-radius: var(--bi-r-lg);
  padding: 1.75rem 1rem 1.5rem;
  text-align: center;
  transition: transform var(--bi-t-base) var(--bi-ease),
    box-shadow var(--bi-t-base) var(--bi-ease),
    border-color var(--bi-t-base) var(--bi-ease);
  cursor: pointer;
  will-change: transform;
}

.bi-cat-card-inner:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(166, 42, 96, .18);
  border-color: var(--cat-color, var(--bi-sunglo));
}

.bi-cat-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--bi-vanilla);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.8rem;
  color: var(--cat-color, var(--bi-sunglo));
  transition: background var(--bi-t-base) var(--bi-ease),
    transform var(--bi-t-base) var(--bi-ease),
    box-shadow var(--bi-t-base) var(--bi-ease);
}

.bi-cat-card-inner:hover .bi-cat-icon {
  background: var(--cat-color, var(--bi-sunglo));
  color: #fff;
  transform: scale(1.15) rotate(-4deg);
  box-shadow: 0 6px 18px rgba(166, 42, 96, .25);
}

.bi-cat-name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--bi-dark);
  margin-bottom: .25rem;
}

.bi-cat-desc {
  color: var(--bi-muted);
  font-size: .78rem;
  margin: 0;
}

/* ═══════════════════════════════════════════════════════════════
   LISTING CARDS
   ═══════════════════════════════════════════════════════════════ */
.bi-listing-card {
  border-radius: var(--bi-r-lg) !important;
  background: var(--bi-white);
  border: 1px solid var(--bi-beauty-bush) !important;
  box-shadow: var(--bi-shadow);
  transition: transform var(--bi-t-base) var(--bi-ease),
    box-shadow var(--bi-t-base) var(--bi-ease);
  overflow: hidden;
  will-change: transform;
}

.bi-listing-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--bi-shadow-lg) !important;
  border-color: var(--bi-beauty-bush) !important;
}

.bi-card-img-wrap {
  display: block;
  position: relative;
  overflow: hidden;
  height: 200px;
}

.bi-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--bi-t-slow) var(--bi-ease);
}

.bi-listing-card:hover .bi-card-img-wrap img {
  transform: scale(1.06);
}

.bi-featured-badge,
.bi-cat-badge {
  position: absolute;
  font-size: .68rem;
  font-weight: 700;
  padding: .28rem .7rem;
  border-radius: var(--bi-r-pill);
  letter-spacing: .02em;
}

.bi-featured-badge {
  top: 10px;
  left: 10px;
  background: var(--bi-hibiscus);
  color: #fff;
  box-shadow: 0 2px 8px rgba(166, 42, 96, .35);
}

.bi-cat-badge {
  bottom: 10px;
  right: 10px;
  background: rgba(45, 10, 24, .65);
  color: #fff;
  backdrop-filter: blur(6px);
}

.bi-stars {
  display: flex;
  gap: 2px;
  font-size: .8rem;
}

.text-warning {
  color: var(--bi-sunglo) !important;
}

/* List view */
.bi-list-card {
  border-radius: var(--bi-r-lg);
  background: var(--bi-white);
}

.bi-list-thumb {
  width: 120px;
  height: 90px;
  object-fit: cover;
  border-radius: var(--bi-r-sm);
}

/* ═══════════════════════════════════════════════════════════════
   CTA BANNER  – Hibiscus gradient (10% accent, high impact)
   ═══════════════════════════════════════════════════════════════ */
.bi-cta-section {
  background: var(--bi-vanilla);
  /* warm vanilla tint wraps the gradient card */
}

.bi-cta-card {
  background: linear-gradient(135deg, var(--bi-hibiscus) 0%, var(--bi-sunglo) 100%);
  border-radius: var(--bi-r-xl);
  padding: 3rem 2.5rem;
  box-shadow: var(--bi-shadow-lg);
  position: relative;
  overflow: hidden;
}

/* Soft light shimmer inside CTA card */
.bi-cta-card::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(255, 255, 255, .14) 0%, transparent 70%);
  pointer-events: none;
}

/* Featured section */
.bi-featured-section {
  background: var(--bi-vanilla);
  /* warm blush tint to lift featured from white */
}

/* ═══════════════════════════════════════════════════════════════
   AUTH PAGES
   ═══════════════════════════════════════════════════════════════ */
.bi-auth-section {
  background: #fdf5f7;
  /* near-white blush – warmer than white, softer than vanilla */
  min-height: calc(100vh - var(--navbar-h) - 60px);
}

.bi-auth-card {
  border-radius: var(--bi-r-xl) !important;
  border: 1px solid var(--bi-beauty-bush) !important;
  box-shadow: var(--bi-shadow-md);
}

.bi-logo-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--bi-sunglo), var(--bi-hibiscus));
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  color: #fff;
}

.bi-auth-logo {
  height: 52px;
  width: auto;
}

.bi-form-input {
  height: 48px;
  border-radius: var(--bi-r-sm) !important;
  border-color: var(--bi-beauty-bush) !important;
  transition: border-color var(--bi-t-fast) var(--bi-ease),
    box-shadow var(--bi-t-fast) var(--bi-ease);
}

.bi-form-input:focus {
  border-color: var(--bi-sunglo) !important;
  box-shadow: 0 0 0 3.5px rgba(219, 108, 124, .20) !important;
}

textarea.bi-form-input {
  height: auto;
}

.bi-btn-lg {
  height: 52px;
  border-radius: var(--bi-r-pill) !important;
  font-size: 1rem;
  letter-spacing: .02em;
}

/* ═══════════════════════════════════════════════════════════════
   WIZARD STEP INDICATORS
   ═══════════════════════════════════════════════════════════════ */
.bi-steps-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding: .5rem 0;
}

.bi-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 72px;
}

.bi-step-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bi-vanilla-dk);
  color: var(--bi-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: .95rem;
  border: 2px solid var(--bi-beauty-bush);
  transition: all .25s;
}

.bi-step.active .bi-step-circle {
  background: var(--bi-sunglo);
  color: #fff;
  border-color: var(--bi-sunglo);
  box-shadow: 0 0 0 4px rgba(219, 108, 124, .22);
}

.bi-step.done .bi-step-circle {
  background: var(--bi-hibiscus);
  color: #fff;
  border-color: var(--bi-hibiscus);
}

.bi-step-label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--bi-muted);
  margin-top: .35rem;
  text-align: center;
}

.bi-step.active .bi-step-label {
  color: var(--bi-sunglo-dk);
}

.bi-step.done .bi-step-label {
  color: var(--bi-hibiscus);
}

.bi-step-line {
  flex: 1;
  height: 2px;
  background: var(--bi-beauty-bush);
  min-width: 24px;
}

.bi-step-line.done {
  background: var(--bi-hibiscus);
}

/* Review summary & price box */
.bi-review-summary {
  background: #fdf5f7;
  /* near-white blush */
  border: 1px solid var(--bi-beauty-bush);
  border-radius: var(--bi-radius);
  padding: 1.25rem 1.5rem;
}

.bi-price-box {
  background: linear-gradient(135deg, var(--bi-vanilla), var(--bi-vanilla-dk));
  border: 1.5px solid var(--bi-sunglo);
  border-radius: var(--bi-radius);
  padding: 1.25rem 1.5rem;
}

.bi-price-tag {
  font-size: 2rem;
  font-weight: 800;
  color: var(--bi-hibiscus);
}

/* ═══════════════════════════════════════════════════════════════
   LISTING DETAIL
   ═══════════════════════════════════════════════════════════════ */
.bi-detail-hero {
  height: 320px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.bi-detail-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(45, 10, 24, .55) 0%, transparent 60%);
}

.bi-detail-hero-overlay {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  display: flex;
  gap: .5rem;
}

.bi-detail-section {
  background: var(--bi-white);
  border: 1px solid var(--bi-beauty-bush);
  border-radius: var(--bi-r-lg);
  padding: 1.5rem;
  box-shadow: var(--bi-shadow);
}

.bi-sidebar-card {
  border-radius: var(--bi-r-lg) !important;
  border: 1px solid var(--bi-beauty-bush) !important;
  box-shadow: var(--bi-shadow);
}

.bi-review-card {
  background: #fdf5f7;
  border: 1px solid var(--bi-beauty-bush);
  border-radius: var(--bi-r-md);
  padding: 1rem 1.25rem;
  transition: box-shadow var(--bi-t-base) var(--bi-ease);
}

.bi-review-card:hover {
  box-shadow: var(--bi-shadow);
}

.bi-write-review {
  background: var(--bi-white);
  border: 1px solid var(--bi-beauty-bush);
  border-radius: var(--bi-r-lg);
  padding: 1.5rem;
}

/* Star rating widget */
.bi-star-rating {
  display: flex;
  flex-direction: row-reverse;
  gap: 4px;
  width: fit-content;
}

.bi-star-label {
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--bi-beauty-bush);
  transition: color .15s;
}

.bi-star-rating:not(:hover) input:checked~label {
  color: var(--bi-sunglo);
}

.bi-star-rating input:checked~label {
  color: var(--bi-sunglo);
}

.bi-star-rating label:hover,
.bi-star-rating label:hover~label {
  color: var(--bi-sunglo);
}

/* ═══════════════════════════════════════════════════════════════
   DASHBOARD / ADMIN STAT CARDS
   ═══════════════════════════════════════════════════════════════ */
.bi-stat-card {
  background: var(--bi-white);
  border: 1px solid var(--bi-beauty-bush);
  border-radius: var(--bi-r-lg);
  padding: 1.4rem;
  text-align: center;
  box-shadow: var(--bi-shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  transition: transform var(--bi-t-base) var(--bi-ease),
    box-shadow var(--bi-t-base) var(--bi-ease);
}

.bi-stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bi-shadow-md);
}

.bi-stat-card i {
  font-size: 1.75rem;
  color: var(--bi-sunglo);
}

.bi-stat-card span {
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1;
  color: var(--bi-dark);
}

.bi-stat-card small {
  font-size: .78rem;
  font-weight: 600;
  color: var(--bi-muted);
  text-transform: uppercase;
}

.bi-stat-card--green i {
  color: #22C55E;
}

.bi-stat-card--orange i {
  color: #F97316;
}

.bi-stat-card--blue i {
  color: #3B82F6;
}

.bi-stat-card--purple i {
  color: var(--bi-hibiscus);
}

.bi-table-thumb {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
}

.bi-empty-state {
  min-height: 40vh;
}

/* ═══════════════════════════════════════════════════════════════
   ADMIN NAV
   ═══════════════════════════════════════════════════════════════ */
.bi-admin-nav {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  border-bottom: 2px solid var(--bi-beauty-bush);
  padding-bottom: .75rem;
}

.bi-admin-nav-item {
  text-decoration: none;
  color: var(--bi-muted);
  font-weight: 600;
  font-size: .875rem;
  padding: .4rem .9rem;
  border-radius: 8px;
  transition: all .15s;
}

.bi-admin-nav-item:hover {
  background: var(--bi-vanilla);
  color: var(--bi-hibiscus);
}

.bi-admin-nav-item.active {
  background: var(--bi-hibiscus);
  color: #fff;
}

.bi-admin-quick-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--bi-white);
  border: 1px solid var(--bi-beauty-bush);
  border-radius: var(--bi-radius);
  padding: 2rem 1rem;
  color: var(--bi-text);
  transition: transform .2s, box-shadow .2s;
  text-align: center;
}

.bi-admin-quick-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--bi-shadow-lg);
  border-color: var(--bi-sunglo);
  color: var(--bi-hibiscus);
}

.bi-admin-quick-card i {
  color: var(--bi-sunglo);
}

/* ═══════════════════════════════════════════════════════════════
   SEARCH RESULTS
   ═══════════════════════════════════════════════════════════════ */
.bi-search-refine-bar {
  background: var(--bi-white);
  border: 1px solid var(--bi-beauty-bush);
  border-radius: var(--bi-radius);
  padding: 1rem;
  box-shadow: var(--bi-shadow);
}

/* ═══════════════════════════════════════════════════════════════
   FOOTER  ─  Light theme, all text fully visible
   ═══════════════════════════════════════════════════════════════ */
.bi-footer {
  background: var(--bi-white);
  border-top: 2px solid var(--bi-beauty-bush);
  color: var(--bi-text);
}

.bi-footer-logo {
  height: 48px;
  width: auto;
}

.bi-footer-brand-text {
  color: var(--bi-hibiscus);
  font-family: 'Montserrat', sans-serif;
}

.bi-footer-tagline {
  color: var(--bi-muted);
  font-size: .9rem;
  margin-bottom: 0;
}

.bi-footer-contact-text {
  color: var(--bi-text);
  font-size: .9rem;
}

.bi-footer-heading {
  font-family: 'Montserrat', sans-serif;
  color: var(--bi-hibiscus);
  font-weight: 700;
  font-size: .85rem;
  margin-bottom: .85rem;
  text-transform: uppercase;
  letter-spacing: .6px;
}

.bi-footer-links {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.bi-footer-links a {
  color: var(--bi-text);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 500;
  transition: color .15s, padding-left .15s;
}

.bi-footer-links a:hover {
  color: var(--bi-hibiscus);
  padding-left: 4px;
}

.bi-footer a {
  color: var(--bi-text);
  text-decoration: none;
  transition: color .15s;
}

.bi-footer a:hover {
  color: var(--bi-hibiscus);
}

/* Footer bottom bar */
.bi-footer-bottom {
  background: var(--bi-vanilla-dk);
  border-top: 1px solid var(--bi-beauty-bush);
}

.bi-footer-copy {
  color: var(--bi-muted);
  font-size: .85rem;
}

/* Social icons */
.bi-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: var(--bi-vanilla);
  color: var(--bi-sunglo);
  border: 1px solid var(--bi-beauty-bush);
  transition: background .15s, color .15s, border-color .15s;
}

.bi-social a:hover {
  background: var(--bi-sunglo);
  color: #fff;
  border-color: var(--bi-sunglo);
}

/* ═══════════════════════════════════════════════════════════════
   FLASH MESSAGES
   ═══════════════════════════════════════════════════════════════ */
.bi-flash {
  position: fixed;
  top: 80px;
  right: 1rem;
  z-index: 9999;
  min-width: 280px;
  max-width: 400px;
  animation: slideIn .25s ease;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }

  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PAGINATION
   ═══════════════════════════════════════════════════════════════ */
.page-link {
  color: var(--bi-text);
  font-weight: 600;
  border-color: var(--bi-beauty-bush);
}

.page-item.active .page-link {
  background: var(--bi-hibiscus);
  border-color: var(--bi-hibiscus);
  color: #fff;
}

.page-link:hover {
  color: var(--bi-hibiscus);
  background: var(--bi-vanilla);
}

/* ═══════════════════════════════════════════════════════════════
   GLOBAL INPUT FOCUS
   ═══════════════════════════════════════════════════════════════ */
.form-control:focus,
.form-select:focus {
  border-color: var(--bi-sunglo) !important;
  box-shadow: 0 0 0 3px rgba(219, 108, 124, .15) !important;
}

.form-control,
.form-select {
  border-color: var(--bi-beauty-bush);
}

/* ═══════════════════════════════════════════════════════════════
   UTILITY
   ═══════════════════════════════════════════════════════════════ */
a {
  color: inherit;
}

.rounded {
  border-radius: var(--bi-radius) !important;
}

.card {
  border-radius: var(--bi-radius) !important;
  border-color: var(--bi-beauty-bush) !important;
}

.table {
  --bs-table-bg: var(--bi-white);
}

.table-light {
  --bs-table-bg: var(--bi-vanilla);
}

.badge.bg-light {
  background-color: var(--bi-vanilla) !important;
  color: var(--bi-hibiscus) !important;
  border: 1px solid var(--bi-beauty-bush);
}

.dropdown-menu {
  border-color: var(--bi-beauty-bush);
}

.dropdown-item:hover {
  background: var(--bi-vanilla);
  color: var(--bi-hibiscus);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   320px+  : phones
   576px+  : large phones
   768px+  : tablets
   992px+  : laptops
   1200px+ : desktops
   ═══════════════════════════════════════════════════════════════ */

/* ── Mobile (≤ 575px) ──────────────────────────────────────────── */
@media (max-width:575px) {
  :root {
    --navbar-h: 56px;
  }

  .bi-navbar .bi-brand-logo {
    height: 34px;
  }

  .bi-search-hero {
    padding: 2rem 0;
  }

  .bi-search-hero-title {
    font-size: 1.4rem;
  }

  .bi-search-hero-sub {
    font-size: .875rem;
    margin-bottom: 1.25rem;
  }

  .bi-mega-search-form .row {
    border-radius: 10px;
  }

  .bi-search-btn {
    height: 46px;
  }

  .bi-carousel-img {
    height: 180px;
  }

  .bi-cat-icon {
    width: 52px;
    height: 52px;
    font-size: 1.4rem;
  }

  .bi-cat-name {
    font-size: .85rem;
  }

  .bi-card-img-wrap {
    height: 175px;
  }

  .bi-cta-card {
    padding: 1.5rem;
  }

  .bi-cta-card h3 {
    font-size: 1.2rem;
  }

  .bi-detail-hero {
    height: 220px;
    border-radius: 10px;
  }

  .bi-steps-indicator {
    gap: 0;
  }

  .bi-step-circle {
    width: 34px;
    height: 34px;
    font-size: .8rem;
  }

  .bi-step-label {
    font-size: .65rem;
    min-width: 60px;
  }

  .bi-footer {
    text-align: center;
  }

  .bi-social {
    justify-content: center;
  }

  .bi-footer-bottom .container-xl {
    text-align: center;
  }
}

/* ── Small phones (576–767px) ────────────────────────────────── */
@media (min-width:576px) and (max-width:767px) {
  .bi-carousel-img {
    height: 240px;
  }

  .bi-search-hero-title {
    font-size: 1.6rem;
  }

  .bi-card-img-wrap {
    height: 190px;
  }
}

/* ── Tablets (768–991px) ─────────────────────────────────────── */
@media (min-width:768px) and (max-width:991px) {
  :root {
    --navbar-h: 64px;
  }

  .bi-carousel-img {
    height: 300px;
  }

  .bi-search-hero {
    padding: 2.5rem 0;
  }

  .bi-search-hero-title {
    font-size: 1.8rem;
  }

  .bi-detail-hero {
    height: 260px;
  }

  .bi-list-thumb {
    width: 100px;
    height: 75px;
  }
}

/* ── Laptops (992–1199px) ───────────────────────────────────── */
@media (min-width:992px) and (max-width:1199px) {
  .bi-carousel-img {
    height: 360px;
  }

  .bi-search-hero-title {
    font-size: 2rem;
  }
}

/* ── Large desktops (1400px+) ───────────────────────────────── */
@media (min-width:1400px) {
  .bi-carousel-img {
    height: 480px;
  }

  .bi-search-hero-title {
    font-size: 2.6rem;
  }

  .bi-detail-hero {
    height: 380px;
  }
}

/* ── Touch-friendly tap targets ─────────────────────────────── */
@media (max-width:767px) {
  .btn {
    min-height: 44px;
  }

  .bi-admin-nav-item {
    font-size: .8rem;
    padding: .35rem .65rem;
  }

  .bi-stat-card span {
    font-size: 1.4rem;
  }

  .bi-table-thumb {
    width: 38px;
    height: 28px;
  }

  .table {
    font-size: .85rem;
  }

  /* Stack listing card CTA buttons on very small screens */
  .card-footer .d-flex {
    flex-wrap: wrap;
    gap: .4rem !important;
  }

  .card-footer .btn {
    flex: 1 1 40%;
    min-width: 80px;
  }

  /* Dashboard stats 2-col on phones */
  .bi-stat-card {
    padding: .85rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   EVENT CARDS  (public events page)
   ═══════════════════════════════════════════════════════════════ */
.bi-event-card {
  background: var(--bi-white);
  border: 1px solid var(--bi-beauty-bush);
  border-radius: var(--bi-r-lg);
  overflow: hidden;
  box-shadow: var(--bi-shadow);
  display: flex;
  flex-direction: column;
  transition: transform var(--bi-t-base) var(--bi-ease),
    box-shadow var(--bi-t-base) var(--bi-ease);
}

.bi-event-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--bi-shadow-lg);
}

.bi-event-img-wrap {
  height: 190px;
  overflow: hidden;
}

.bi-event-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--bi-t-slow) var(--bi-ease);
}

.bi-event-card:hover .bi-event-img-wrap img {
  transform: scale(1.06);
}

.bi-event-img-placeholder {
  height: 190px;
  background: var(--bi-vanilla);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: var(--bi-sunglo);
}

.bi-event-body {
  padding: 1.25rem 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: .6rem;
}

.bi-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .9rem;
}

.bi-event-meta-item {
  font-size: .78rem;
  color: var(--bi-muted);
  display: flex;
  align-items: center;
  gap: .3rem;
}

.bi-event-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--bi-dark);
  margin: 0;
  font-size: 1rem;
  line-height: 1.35;
}

.bi-event-desc {
  font-size: .86rem;
  color: var(--bi-muted);
  margin: 0;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bi-event-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  margin-top: auto;
  padding-top: .75rem;
  border-top: 1px solid var(--bi-beauty-bush);
  flex-wrap: wrap;
}

.bi-event-price {
  display: flex;
  flex-direction: column;
}

.bi-event-price-label {
  font-size: .7rem;
  color: var(--bi-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.bi-event-price-value {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--bi-hibiscus);
  font-family: 'Montserrat', sans-serif;
  line-height: 1.1;
}

.bi-event-btn {
  font-size: .82rem;
  padding: .45rem 1rem;
  white-space: nowrap;
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE SEARCH BAR  (below navbar on < md screens)
   Bootstrap .form-control uses width:100% - must override with !important
   ═══════════════════════════════════════════════════════════════ */
.bi-mobile-search {
  background: #fff;
  border-bottom: 1.5px solid var(--bi-beauty-bush);
  padding: .4rem .75rem;
  position: sticky;
  top: 56px;
  z-index: 1025;
  box-shadow: 0 2px 8px rgba(166, 42, 96, .08);
}

/* Outer flex row: [pill inputs] [search btn] */
.bi-mobile-search-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: .5rem;
}

/* The combined pill that holds both text inputs */
.bi-mobile-search-inputs {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  flex: 1 1 0;
  min-width: 0;
  border: 1.5px solid var(--bi-beauty-bush);
  border-radius: 999px;
  overflow: hidden;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}

.bi-mobile-search-inputs:focus-within {
  border-color: var(--bi-sunglo);
  box-shadow: 0 0 0 3px rgba(219, 108, 124, .15);
}

/* CRITICAL: override Bootstrap .form-control display:block + width:100% */
.bi-mobile-search-inputs .form-control {
  display: block !important;
  width: auto !important;
  /* defeat Bootstrap's width:100% */
  flex: 1 1 0 !important;
  min-width: 0 !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  font-size: .875rem;
  height: 42px;
  padding: 0 .75rem;
}

/* City field - fixed narrow width so it never truncates oddly */
.bi-mobile-search-inputs .bi-mobile-city {
  flex: 0 0 90px !important;
  width: 90px !important;
  max-width: 90px !important;
  min-width: 0 !important;
  font-size: .8rem;
  padding: 0 .5rem;
  border-left: 1.5px solid var(--bi-beauty-bush) !important;
  color: var(--bi-muted);
}

/* Search button - always a solid Hibiscus circle */
.bi-mobile-search-btn {
  flex-shrink: 0;
  width: 42px !important;
  height: 42px !important;
  min-width: 42px;
  padding: 0 !important;
  border-radius: 999px !important;
  background: var(--bi-hibiscus) !important;
  border-color: var(--bi-hibiscus) !important;
  color: #fff !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  line-height: 1;
}

.bi-mobile-search-btn:hover,
.bi-mobile-search-btn:active {
  background: var(--bi-sunglo) !important;
  border-color: var(--bi-sunglo) !important;
}

/* Tiny phones: hide city field, search takes full pill width */
@media (max-width: 360px) {
  .bi-mobile-search-inputs .bi-mobile-city {
    display: none !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   PHONES  (≤ 575px)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 575px) {

  /* ── Root token overrides ── */
  :root {
    --bi-r-lg: 14px;
    --bi-r-xl: 18px;
    --bi-sp-lg: 24px;
    --bi-sp-xl: 36px;
  }

  /* ── Body ── */
  body {
    font-size: .9375rem;
  }

  /* ── Navbar ── */
  .bi-navbar {
    height: auto;
    min-height: 56px;
  }

  .navbar-brand {
    padding: .5rem 0;
  }

  .bi-brand-logo {
    height: 34px !important;
  }

  /* Collapsed nav menu – stack items */
  #mainNav.show {
    padding: .5rem 0 .75rem;
    border-top: 1px solid var(--bi-beauty-bush);
  }

  #mainNav .navbar-nav {
    gap: .15rem !important;
  }

  #mainNav .nav-link {
    padding: .6rem .5rem;
    font-size: .92rem;
  }

  #mainNav .btn {
    width: 100%;
    margin-top: .4rem;
    text-align: center;
  }

  /* ── Mobile search ── */
  .bi-mobile-city {
    max-width: 90px;
  }

  /* ── Hero ── */
  .bi-search-hero {
    padding: 2rem 0 3.5rem;
  }

  .bi-search-hero-title {
    font-size: 1.35rem;
    margin-bottom: .3rem;
  }

  .bi-search-hero-sub {
    font-size: .875rem;
    margin-bottom: 1.25rem;
  }

  .bi-mega-search-form .row {
    border-radius: var(--bi-r-md);
    box-shadow: 0 6px 20px rgba(166, 42, 96, .22);
  }

  .bi-mega-search-form .form-control,
  .bi-mega-search-form .form-select {
    height: 46px;
    font-size: .875rem;
  }

  .bi-search-btn {
    height: 46px;
    font-size: .9rem;
    padding: 0 1rem;
  }

  /* ── Section spacing ── */
  .bi-section {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .bi-section-title {
    font-size: 1.2rem;
  }

  /* ── Category cards – 2-col grid ── */
  .bi-cat-card-inner {
    padding: 1.25rem .75rem 1rem;
  }

  .bi-cat-icon {
    width: 52px;
    height: 52px;
    font-size: 1.5rem;
  }

  .bi-cat-name {
    font-size: .85rem;
  }

  .bi-cat-desc {
    font-size: .72rem;
  }

  /* ── Listing cards ── */
  .bi-listing-card {
    border-radius: var(--bi-r-md) !important;
  }

  .bi-card-img-wrap {
    height: 170px;
  }

  /* ── Buttons ── */
  .bi-cta-card .btn,
  .bi-search-hero .btn {
    width: 100%;
  }

  /* ── CTA card ── */
  .bi-cta-card {
    padding: 2rem 1.25rem;
    border-radius: var(--bi-r-lg);
    text-align: center;
  }

  /* ── Auth card ── */
  .bi-auth-card {
    border-radius: var(--bi-r-lg) !important;
    margin: 1rem;
  }

  /* ── Admin nav – horizontal scroll ── */
  .bi-admin-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: .25rem;
  }

  .bi-admin-nav::-webkit-scrollbar {
    display: none;
  }

  .bi-admin-nav-item {
    white-space: nowrap;
    font-size: .78rem;
    padding: .3rem .6rem;
  }

  /* ── Admin quick-action cards – 2-col ── */
  .bi-admin-quick-card {
    padding: 1rem .75rem;
  }

  .bi-admin-quick-card .display-6 {
    font-size: 1.6rem;
  }

  /* ── Stat cards ── */
  .bi-stat-card {
    padding: .85rem .65rem;
  }

  .bi-stat-card span {
    font-size: 1.6rem;
  }

  /* ── Tables ── */
  .table {
    font-size: .8rem;
  }

  .bi-table-thumb {
    width: 34px;
    height: 26px;
  }

  /* ── Event cards ── */
  .bi-event-img-wrap,
  .bi-event-img-placeholder {
    height: 160px;
  }

  .bi-event-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }

  .bi-event-btn {
    width: 100%;
    text-align: center;
  }

  /* ── Footer ── */
  .bi-footer-bottom .container-xl {
    flex-direction: column;
    text-align: center;
    gap: .4rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   LARGE PHONES  (576px – 767px)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 576px) and (max-width: 767px) {

  :root {
    --bi-r-xl: 22px;
    --bi-sp-xl: 44px;
  }

  .bi-navbar {
    height: auto;
    min-height: 60px;
  }

  #mainNav.show {
    padding: .4rem 0 .6rem;
    border-top: 1px solid var(--bi-beauty-bush);
  }

  #mainNav .btn {
    width: auto;
  }

  .bi-search-hero {
    padding: 2.5rem 0 4rem;
  }

  .bi-search-hero-title {
    font-size: 1.55rem;
  }

  .bi-mega-search-form .form-control,
  .bi-mega-search-form .form-select {
    height: 48px;
  }

  .bi-search-btn {
    height: 48px;
  }

  .bi-cat-icon {
    width: 56px;
    height: 56px;
    font-size: 1.6rem;
  }

  /* ── Admin nav ── */
  .bi-admin-nav {
    overflow-x: auto;
    flex-wrap: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: .25rem;
  }

  .bi-admin-nav::-webkit-scrollbar {
    display: none;
  }

  .bi-admin-nav-item {
    white-space: nowrap;
    font-size: .82rem;
  }

  /* ── Event cards ── */
  .bi-event-footer {
    flex-wrap: wrap;
  }
}

/* ═══════════════════════════════════════════════════════════════
   TABLETS  (768px – 991px)
   ═══════════════════════════════════════════════════════════════ */
@media (min-width: 768px) and (max-width: 991px) {

  /* Navbar search – compact on tablet */
  .bi-navbar-search .input-group {
    border-radius: var(--bi-r-pill);
  }

  .bi-city-input {
    max-width: 110px;
  }

  .bi-search-hero-title {
    font-size: 1.75rem;
  }

  .bi-search-hero {
    padding: 3rem 0 4.5rem;
  }

  /* Category grid – 3-col on tablet no change needed (Bootstrap handles) */
  .bi-cat-icon {
    width: 58px;
    height: 58px;
  }

  /* Listing cards – images slightly shorter */
  .bi-card-img-wrap {
    height: 185px;
  }

  /* Admin nav – allow wrap but keep pill style */
  .bi-admin-nav {
    flex-wrap: wrap;
  }

  .bi-admin-nav-item {
    font-size: .82rem;
    padding: .32rem .7rem;
  }

  /* Event footer – keep row layout on tablet */
  .bi-event-btn {
    font-size: .8rem;
  }
}

/* ═══════════════════════════════════════════════════════════════
   LANDSCAPE PHONES  (max-height 500px, landscape)
   ═══════════════════════════════════════════════════════════════ */
@media (max-height: 500px) and (orientation: landscape) {
  .bi-search-hero {
    padding: 1.5rem 0 2.5rem;
  }

  .bi-mobile-search {
    position: relative;
    top: auto;
  }

  .bi-navbar {
    position: relative;
  }
}