/* ================================================================
   BookBula — Redesigned UI
   Inspired by Airbnb's clean, content-first design language
   Navy #0A2342  |  Teal #00A2B3  |  Orange #FF8A00
================================================================ */

:root {
  --navy:        #0A2342;
  --teal:        #00A2B3;
  --teal-dark:   #007f8d;
  --orange:      #FF8A00;
  --orange-dark: #e07a00;
  --yellow:      #FFC107;

  /* Airbnb-inspired neutrals */
  --white:     #FFFFFF;
  --off-white: #F7F7F7;
  --border:    #DDDDDD;
  --mid:       #B0B0B0;
  --text:      #222222;
  --text-2:    #717171;
  --text-3:    #AAAAAA;

  --radius-card: 12px;
  --radius-pill: 50px;
  --radius-sm:   8px;
  --radius:      16px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow:    0 2px 12px rgba(0,0,0,0.10);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.12);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.15);

  --transition: 0.18s ease;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: inherit; background: none; border: none; }
input, select, textarea { font-family: inherit; color: var(--text); }

/* ── Layout ── */
.container    { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 840px; margin: 0 auto; padding: 0 24px; }
.container-md { max-width: 1060px; margin: 0 auto; padding: 0 24px; }
.section      { padding: 56px 0; }
.section-sm   { padding: 36px 0; }
.section-lg   { padding: 80px 0; }

/* ── Typography ── */
h1,h2,h3,h4 { font-family: 'Poppins', 'Inter', sans-serif; line-height: 1.2; color: var(--text); font-weight: 600; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 700; }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); }
h3 { font-size: 1rem; }
h4 { font-size: 0.9rem; }
p  { color: var(--text-2); line-height: 1.65; }

.section-title { font-size: clamp(1.2rem, 2vw, 1.5rem); font-weight: 600; color: var(--text); margin-bottom: 6px; }
.section-sub   { color: var(--text-2); font-size: 0.9rem; }
.section-header { margin-bottom: 32px; }
.section-header.flex-between {
  display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.875rem;
  border: 1.5px solid transparent;
  transition: all var(--transition);
  white-space: nowrap; cursor: pointer; text-decoration: none;
  line-height: 1.4;
}
.btn-primary      { background: var(--orange);   color: #fff; border-color: var(--orange); }
.btn-primary:hover { background: var(--orange-dark); border-color: var(--orange-dark); color: #fff; }
.btn-teal         { background: var(--teal);     color: #fff; border-color: var(--teal); }
.btn-teal:hover   { background: var(--teal-dark); border-color: var(--teal-dark); color: #fff; }
.btn-navy         { background: var(--navy);     color: #fff; border-color: var(--navy); }
.btn-navy:hover   { background: #132d52; border-color: #132d52; color: #fff; }
.btn-outline      { background: transparent; color: var(--text); border-color: var(--border); }
.btn-outline:hover { border-color: var(--text); }
.btn-outline-white  { background: transparent; color: #fff; border-color: rgba(255,255,255,0.7); }
.btn-outline-white:hover { background: #fff; color: var(--navy); }
.btn-sm  { padding: 7px 14px; font-size: 0.8rem; }
.btn-lg  { padding: 14px 28px; font-size: 1rem; }
.btn-full { width: 100%; justify-content: center; }
.btn-link { background: none; border: none; color: var(--text); text-decoration: underline; font-size: 0.875rem; font-weight: 600; padding: 0; cursor: pointer; }

/* ── Header ── */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  gap: 16px; height: 88px;
}
.logo-link { flex-shrink: 0; display: flex; align-items: center; }
.logo-img  { height: 56px; width: auto; }

/* Compact search pill in header */
.header-search {
  flex: 1; max-width: 460px;
  display: flex; align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-sm);
  height: 46px;
  overflow: hidden;
  transition: box-shadow var(--transition);
}
.header-search:hover { box-shadow: var(--shadow); }
.hs-field {
  flex: 1; min-width: 0;    /* allows shrinking */
  padding: 0 12px;
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  justify-content: center; height: 100%; overflow: hidden;
}
.hs-field:last-of-type { border-right: none; }
.hs-label { font-size: 0.58rem; font-weight: 700; color: var(--text); text-transform: uppercase; letter-spacing: 0.06em; white-space: nowrap; }
.hs-value { font-size: 0.78rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-btn {
  width: 36px; height: 36px; margin: 0 6px; flex-shrink: 0;
  background: var(--orange); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; border: none; cursor: pointer;
  transition: background var(--transition);
}
.hs-btn:hover { background: var(--orange-dark); }
.hs-btn svg { width: 16px; height: 16px; }

.main-nav {
  display: flex; align-items: center; gap: 4px;
}
.nav-link {
  padding: 8px 12px; border-radius: var(--radius-pill);
  font-weight: 500; font-size: 0.875rem; color: var(--text);
  transition: background var(--transition); white-space: nowrap;
}
.nav-link:hover { background: var(--off-white); }
.nav-host {
  font-weight: 600; border: 1px solid transparent;
}
.nav-host:hover { border-color: var(--border); background: var(--off-white); }

.header-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  position: relative; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%; color: var(--text);
  transition: background var(--transition);
}
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn:hover { background: var(--off-white); }
.badge {
  position: absolute; top: -2px; right: -2px;
  background: var(--orange); color: #fff;
  font-size: 0.58rem; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 2px solid var(--white);
}

.user-menu-wrap { position: relative; }
.user-menu-btn {
  display: flex; align-items: center; gap: 10px;
  padding: 5px 5px 5px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: 0.875rem; color: var(--text);
  transition: box-shadow var(--transition);
}
.user-menu-btn:hover { box-shadow: var(--shadow); }
.hamburger { display: flex; flex-direction: column; gap: 4px; padding: 2px; }
.hamburger span { display: block; width: 16px; height: 1.5px; background: var(--text); border-radius: 2px; }
.avatar-sm {
  width: 30px; height: 30px; border-radius: 50%; object-fit: cover;
}
.avatar-initials {
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-weight: 700; font-size: 0.8rem;
  display: flex; align-items: center; justify-content: center;
}
.user-name-short { font-weight: 600; font-size: 0.875rem; }
.chevron { width: 14px; height: 14px; margin-left: -4px; }

.user-dropdown {
  position: absolute; top: calc(100% + 10px); right: 0;
  min-width: 210px; background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 6px; display: none; z-index: 200;
}
.user-dropdown.open { display: block; }
.user-dropdown a {
  display: block; padding: 9px 14px;
  color: var(--text); font-size: 0.875rem;
  border-radius: var(--radius-sm); font-weight: 500;
}
.user-dropdown a:hover { background: var(--off-white); }
.user-dropdown hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; }
.logout-link { color: #dc2626 !important; }

.mobile-menu-btn {
  display: none; flex-direction: column; gap: 5px;
  width: 36px; height: 36px;
  align-items: center; justify-content: center; padding: 6px;
}
.mobile-menu-btn span {
  display: block; width: 20px; height: 1.5px;
  background: var(--text); border-radius: 2px;
  transition: all var(--transition);
}

/* ── Flash ── */
.flash-container { position: fixed; top: 88px; right: 20px; z-index: 999; display: flex; flex-direction: column; gap: 8px; }
.flash {
  padding: 12px 18px; border-radius: var(--radius-sm);
  font-weight: 500; font-size: 0.875rem;
  max-width: 320px; box-shadow: var(--shadow-md);
  animation: slideIn 0.25s ease;
}
.flash-error   { background: #fff1f2; border: 1px solid #fca5a5; color: #b91c1c; }
.flash-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
@keyframes slideIn { from { opacity:0; transform:translateX(12px); } to { opacity:1; transform:translateX(0); } }

/* ── Hero ── */
.hero {
  position: relative;
  background: linear-gradient(160deg, var(--navy) 0%, #163d6e 50%, #0a5a6d 100%);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-image: url('../images/hero-bg.png');
  background-size: cover; background-position: center 30%;
  opacity: 0.22;
}
.hero-container {
  position: relative; z-index: 2;
  padding: 72px 24px 64px;
  max-width: 1280px; margin: 0 auto;
  text-align: center;
}
.hero h1 { color: #fff; margin-bottom: 12px; font-size: clamp(1.9rem, 4vw, 3rem); }
.hero h1 span { color: var(--yellow); }
.hero-sub {
  color: rgba(255,255,255,0.82); font-size: 1rem;
  margin-bottom: 28px; max-width: 500px; margin-left: auto; margin-right: auto;
}

/* ══════════════════════════════════════════
   Hero Search — CSS Grid (flat, no nesting)
   Desktop: single pill row  |  Mobile: 2-col card
═══════════════════════════════════════════ */
.hero-search {
  display: grid;
  /* Desktop columns: location | check-in | check-out | guests | button */
  grid-template-columns: 2.2fr 1.3fr 1.3fr 1fr auto;
  grid-template-rows: 1fr;
  background: var(--white);
  border-radius: var(--radius-pill);
  max-width: 780px;
  margin: 0 auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.22);
  overflow: hidden;
}
/* Each search field */
.hsf {
  display: flex; flex-direction: column; justify-content: center;
  padding: 14px 18px;
  border-right: 1px solid #e0e0e0;
  background: var(--white);
  min-width: 0;
  cursor: pointer;
  transition: background 0.15s;
}
.hsf:hover { background: #f9f9f9; }
.hsf-label {
  font-size: 0.62rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: #333; margin-bottom: 4px; white-space: nowrap;
  pointer-events: none;
}
.hsf-control {
  border: none; outline: none; background: transparent;
  font-size: 0.9rem; font-weight: 500; color: #222;
  width: 100%; min-width: 0; padding: 0;
  font-family: inherit; cursor: pointer;
}
.hsf-control::placeholder { color: #aaa; }

/* Search button */
.hsf-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--orange); color: #fff; border: none;
  padding: 0 28px;
  font-size: 1rem; font-weight: 700;
  cursor: pointer; white-space: nowrap;
  transition: background 0.15s;
}
.hsf-btn:hover { background: var(--orange-dark); }
.hsf-btn svg { width: 17px; height: 17px; flex-shrink: 0; }

/* ── Mobile: 2-column card layout ── */
@media (max-width: 768px) {
  .hero-search {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto auto;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    max-width: 100%;
  }
  /* Location spans full width — row 1 */
  .hsf-location {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 14px 18px;
  }
  /* Check-in — row 2, left */
  .hsf-checkin {
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 14px;
  }
  /* Check-out — row 2, right */
  .hsf-checkout {
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    border-left: 1px solid #e0e0e0;
    padding: 12px 14px;
  }
  /* Guests spans full width — row 3 */
  .hsf-guests {
    grid-column: 1 / -1;
    border-right: none;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 14px;
  }
  /* Search button spans full width — row 4 */
  .hsf-btn {
    grid-column: 1 / -1;
    padding: 16px;
    font-size: 1rem;
    border-radius: 0 0 14px 14px;
  }
}

/* Legacy hero search classes — kept so old pages don't break */
.hero-search-btn { display: none; }
.hs-field-hero   { display: none; }
.hero-dates-row  { display: none; }

/* ── Category Filter Bar ── */
.category-bar {
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky; top: 80px; z-index: 90;
}
.category-bar-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 0 24px;
  display: flex; align-items: center; gap: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.category-bar-inner::-webkit-scrollbar { display: none; }
.cat-item {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  padding: 14px 20px;
  color: var(--text-2); font-size: 0.72rem;
  font-weight: 500; white-space: nowrap;
  border-bottom: 2px solid transparent;
  cursor: pointer; transition: all var(--transition);
  text-decoration: none; flex-shrink: 0;
}
.cat-item:hover { color: var(--text); border-color: var(--mid); }
.cat-item.active { color: var(--text); border-color: var(--text); font-weight: 600; }
.cat-icon { font-size: 1.4rem; line-height: 1; }

/* ── Listing Cards (Airbnb style: no card box, image is the card) ── */
.listings-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 20px;
}
.listing-card {
  cursor: pointer;
  transition: opacity var(--transition);
}
.listing-card:hover { opacity: 0.92; }

.card-photo-wrap {
  position: relative; overflow: hidden;
  border-radius: var(--radius-card);
  aspect-ratio: 20/19;
  background: var(--off-white);
}
.card-photo {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.4s ease;
}
.listing-card:hover .card-photo { transform: scale(1.03); }

/* Bookmark/save button on cards */
.card-save {
  position: absolute; top: 10px; right: 10px;
  background: rgba(255,255,255,0.92); border: none;
  border-radius: 50%;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2);
  filter: drop-shadow(0 1px 3px rgba(0,0,0,0.15));
  transition: all var(--transition);
  cursor: pointer; padding: 0;
  backdrop-filter: blur(4px);
}
.card-save:hover { background: var(--white); color: var(--navy); transform: scale(1.08); }
.card-save svg { width: 18px; height: 18px; }
.card-save.saved { background: var(--navy); color: var(--white); }
.card-save.saved svg { fill: var(--white); }
/* Keep for backward compat */
.card-wishlist { display: none; }

.card-type-badge {
  position: absolute; top: 10px; left: 10px;
  background: rgba(255,255,255,0.92);
  color: var(--text); padding: 3px 9px;
  border-radius: var(--radius-pill);
  font-size: 0.68rem; font-weight: 600;
  backdrop-filter: blur(4px);
}

/* Card text below the photo */
.card-body { padding: 10px 2px 0; }
.card-top-row {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 8px;
  margin-bottom: 2px;
}
.card-location-name {
  font-size: 0.875rem; font-weight: 600;
  color: var(--text); flex: 1; overflow: hidden;
  white-space: nowrap; text-overflow: ellipsis;
}
.card-rating-inline {
  display: flex; align-items: center; gap: 3px;
  font-size: 0.8rem; font-weight: 500; color: var(--text);
  flex-shrink: 0;
}
.card-rating-inline svg { width: 11px; height: 11px; fill: var(--text); }

.card-type-label { font-size: 0.8rem; color: var(--text-2); margin-bottom: 2px; }
.card-meta-inline { font-size: 0.8rem; color: var(--text-2); }
.card-price-row { margin-top: 4px; }
.card-price-main { font-size: 0.9rem; font-weight: 600; color: var(--text); }
.card-price-main span { font-weight: 400; color: var(--text-2); }

.payment-pills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.payment-pill {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: var(--radius-pill);
  font-size: 0.67rem; font-weight: 600;
  background: rgba(0,162,179,0.08);
  color: var(--teal); border: 1px solid rgba(0,162,179,0.15);
}

.listings-view-all { text-align: center; margin-top: 40px; }
.no-listings { grid-column: 1 / -1; text-align: center; padding: 60px; color: var(--text-2); }

/* ── Payment Section ── */
.payment-bar {
  background: var(--off-white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.payment-bar-inner {
  max-width: 1280px; margin: 0 auto;
  padding: 28px 24px;
  display: flex; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.pay-bar-label {
  font-size: 0.8rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-2); flex-shrink: 0; white-space: nowrap;
}
.pay-bar-sep { width: 1px; height: 24px; background: var(--border); flex-shrink: 0; }
.pay-bar-methods { display: flex; flex-wrap: wrap; gap: 8px; }
.pay-bar-item {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 500; color: var(--text);
}
.pay-bar-item-icon { font-size: 1rem; }

/* ── How It Works ── */
.hiw-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px;
}
.hiw-step { text-align: left; }
.hiw-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff;
  font-weight: 700; font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.hiw-step h3 { font-size: 1rem; margin-bottom: 8px; }
.hiw-step p  { font-size: 0.875rem; }

/* ── CTA / Host Banner ── */
.host-cta {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px; align-items: center;
}
.host-cta h2 { margin-bottom: 8px; }
.host-cta p  { font-size: 0.9rem; max-width: 480px; }
.host-cta-btns { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }

/* ── Why pills (compact) ── */
.why-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.why-pill {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem; color: var(--text);
  font-weight: 500;
}
.why-pill-icon { font-size: 1.1rem; }

/* ── Listings Browse Page ── */
.listings-page-layout { max-width: 1280px; margin: 0 auto; padding: 0 24px; }

/* Top filter bar for listings page */
/* ── Listings search bar ── */
.listings-search-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  overflow: hidden;
}
/* Desktop: all fields on one row */
.lsb-row {
  display: flex;
  align-items: stretch;
  min-height: 60px;
}
.lsb-field {
  flex: 1;
  min-width: 0;            /* critical: lets flex children shrink below content */
  display: flex; flex-direction: column; justify-content: center;
  padding: 10px 14px;
  border-right: 1px solid var(--border);
  overflow: hidden;
}
.lsb-field-location { flex: 1.8; }  /* location gets slightly more space */
.lsb-field:last-of-type { border-right: none; }
.lsb-field-label {
  font-size: 0.6rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-2); margin-bottom: 3px;
  white-space: nowrap;
}
.lsb-field select,
.lsb-field input {
  border: none; outline: none; background: transparent;
  font-size: 0.85rem; font-weight: 500; color: var(--text);
  width: 100%; min-width: 0; padding: 0;
  font-family: inherit;
  /* Prevent select arrow overlap */
  -webkit-appearance: auto;
  appearance: auto;
}
.lsb-field input[type="number"] { -webkit-appearance: none; appearance: textfield; }
.lsb-field input[type="number"]::-webkit-inner-spin-button { -webkit-appearance: none; }
.lsb-actions {
  display: flex; align-items: center; gap: 4px;
  padding: 8px; flex-shrink: 0;
}
.lsb-search-btn {
  background: var(--navy); color: #fff; border: none;
  border-radius: calc(var(--radius) - 4px);
  padding: 0 18px; height: 42px;
  font-size: 0.85rem; font-weight: 700;
  display: flex; align-items: center; gap: 6px;
  cursor: pointer; white-space: nowrap;
  transition: background var(--transition);
}
.lsb-search-btn:hover { background: #132d52; }
.lsb-search-btn svg { width: 14px; height: 14px; flex-shrink: 0; }
.lsb-clear-btn {
  background: none; border: none; color: var(--text-2);
  width: 32px; height: 32px;
  border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all var(--transition); flex-shrink: 0;
}
.lsb-clear-btn:hover { background: var(--off-white); color: var(--text); }
.lsb-clear-btn svg { width: 14px; height: 14px; }
.lsb-sort-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 14px;
  border-top: 1px solid var(--border);
  background: var(--off-white);
  flex-wrap: wrap; gap: 8px;
}
.lsb-result-count { font-size: 0.8rem; color: var(--text-2); }
.lsb-result-count strong { color: var(--text); }

/* ── Mobile search pill + drawer (listings page) ── */
.mobile-search-pill {
  display: none;
  align-items: center; gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 10px 16px;
  box-shadow: var(--shadow-sm);
  cursor: pointer; margin-bottom: 16px;
  width: 100%;
}
.mobile-search-pill svg { width: 18px; height: 18px; color: var(--text-2); flex-shrink: 0; }
.msp-text { flex: 1; font-size: 0.875rem; font-weight: 500; color: var(--text); text-align: left; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.msp-badge {
  background: var(--navy); color: #fff;
  font-size: 0.68rem; font-weight: 700;
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.msp-filter-icon {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  background: var(--white); flex-shrink: 0;
}
.msp-filter-icon svg { width: 16px; height: 16px; color: var(--text); }

/* Mobile search drawer */
.mobile-search-drawer {
  position: fixed; inset: 0; z-index: 600;
  display: flex; flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  pointer-events: none;
}
.mobile-search-drawer.open { transform: translateY(0); pointer-events: auto; }
.msd-backdrop {
  flex: 1; background: rgba(0,0,0,0.5);
  cursor: pointer;
}
.msd-panel {
  background: var(--white);
  border-radius: var(--radius) var(--radius) 0 0;
  max-height: 90vh;
  overflow-y: auto;
  padding: 0 0 env(safe-area-inset-bottom, 16px);
}
.msd-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; background: var(--white); z-index: 1;
}
.msd-header h3 { font-size: 1rem; }
.msd-close {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--white);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--text);
}
.msd-close svg { width: 16px; height: 16px; }
.msd-body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.msd-field { display: flex; flex-direction: column; gap: 5px; }
.msd-field label { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-2); }
.msd-field select,
.msd-field input { width: 100%; padding: 11px 14px; border: 1.5px solid var(--border); border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--text); outline: none; font-family: inherit; background: var(--white); }
.msd-field select:focus,
.msd-field input:focus { border-color: var(--teal); }
.msd-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.msd-footer { padding: 16px 20px; border-top: 1px solid var(--border); display: flex; gap: 10px; position: sticky; bottom: 0; background: var(--white); }
.msd-footer .btn { flex: 1; justify-content: center; }

.listings-top-bar {
  padding: 0; display: flex; align-items: center;
  gap: 10px; flex-wrap: wrap;
}
.filter-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  font-size: 0.85rem; font-weight: 500;
  color: var(--text); background: var(--white);
  cursor: pointer; transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active { border-color: var(--text); background: var(--off-white); }
.filter-btn.active { font-weight: 600; }
.filter-btn svg { width: 14px; height: 14px; }

.listings-count-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 0 16px; flex-wrap: wrap; gap: 10px;
}
.listings-count { font-size: 0.85rem; color: var(--text-2); }
.sort-select {
  padding: 8px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); font-size: 0.85rem;
  background: var(--white); color: var(--text);
}

/* Filter panel (slide down) */
.filter-panel {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-md);
  display: none; margin-bottom: 16px;
}
.filter-panel.open { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.filter-group-label {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--text-2); margin-bottom: 10px; display: block;
}
.filter-options { display: flex; flex-direction: column; gap: 7px; }
.filter-option { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.filter-option input { width: 14px; height: 14px; accent-color: var(--teal); flex-shrink: 0; }
.filter-option label { font-size: 0.85rem; color: var(--text); cursor: pointer; }
.price-inputs { display: flex; gap: 8px; }
.price-input {
  flex: 1; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.85rem;
}

.pagination {
  display: flex; align-items: center; justify-content: center;
  gap: 4px; margin-top: 48px;
}
.page-btn {
  width: 36px; height: 36px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--white);
  font-size: 0.85rem; font-weight: 600; color: var(--text);
  transition: all var(--transition);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none;
}
.page-btn:hover, .page-btn.active { background: var(--text); border-color: var(--text); color: #fff; }

/* ── Listing Detail ── */
.listing-detail-layout { display: grid; grid-template-columns: 1fr 360px; gap: 56px; align-items: start; }

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 8px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 28px;
}
.gallery-main { grid-row: 1 / 3; }
.gallery-img-wrap { overflow: hidden; position: relative; }
.gallery-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery-img-wrap:hover .gallery-img { transform: scale(1.03); }
.gallery-more-btn {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(255,255,255,0.92); border: none;
  border-radius: var(--radius-sm); padding: 7px 14px;
  font-weight: 600; font-size: 0.8rem; color: var(--text);
  cursor: pointer; box-shadow: var(--shadow-sm);
}

.listing-header { padding-bottom: 20px; border-bottom: 1px solid var(--border); margin-bottom: 20px; }
.listing-title { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-bottom: 8px; }
.listing-meta-row {
  display: flex; align-items: center; gap: 12px;
  flex-wrap: wrap; font-size: 0.875rem; color: var(--text-2);
}
.listing-rating { display: flex; align-items: center; gap: 4px; font-weight: 600; color: var(--text); }
.dot-sep { width: 3px; height: 3px; border-radius: 50%; background: var(--text-2); flex-shrink: 0; }

.listing-section { padding: 24px 0; border-top: 1px solid var(--border); }
.listing-section h3 { font-size: 1.1rem; margin-bottom: 14px; }
.listing-desc { font-size: 0.9rem; line-height: 1.75; color: var(--text-2); white-space: pre-line; }

.amenities-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 10px; }
.amenity-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.875rem; color: var(--text-2);
}
.amenity-item::before { content: '✓'; color: var(--teal); font-weight: 700; flex-shrink: 0; }

.host-card {
  display: flex; gap: 16px; padding: 20px;
  background: var(--off-white); border-radius: var(--radius);
}
.host-avatar, .host-avatar-placeholder {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
}
.host-avatar { object-fit: cover; }
.host-avatar-placeholder {
  background: var(--navy); color: #fff;
  font-size: 1.6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.host-info h4 { font-size: 1rem; margin-bottom: 3px; }
.host-since { font-size: 0.78rem; color: var(--text-2); margin-bottom: 6px; }
.host-bio   { font-size: 0.875rem; color: var(--text-2); }

.verified-badge {
  display: inline-flex; align-items: center; gap: 3px;
  background: rgba(0,162,179,0.1); color: var(--teal);
  padding: 2px 8px; border-radius: var(--radius-pill);
  font-size: 0.7rem; font-weight: 700;
}

.reviews-list { display: flex; flex-direction: column; gap: 20px; }
.review-item { padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.review-item:last-child { border-bottom: none; padding-bottom: 0; }
.review-header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.review-avatar, .review-avatar-placeholder {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
}
.review-avatar { object-fit: cover; }
.review-avatar-placeholder {
  background: var(--teal); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.review-name { font-weight: 600; font-size: 0.875rem; }
.review-date { font-size: 0.775rem; color: var(--text-2); }
.review-stars { color: var(--text); font-size: 0.8rem; }
.review-text  { font-size: 0.875rem; line-height: 1.7; color: var(--text-2); }

/* ── Booking Widget ── */
.booking-widget {
  position: sticky; top: 88px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-md);
}
.booking-price { font-size: 1.4rem; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.booking-price span { font-size: 0.95rem; font-weight: 400; color: var(--text-2); }
.booking-rating { display: flex; align-items: center; gap: 5px; font-size: 0.8rem; color: var(--text-2); margin-bottom: 16px; }
.booking-form { display: flex; flex-direction: column; gap: 10px; }

.date-inputs {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden;
}
.date-input-field { padding: 8px 12px; border: none; border-right: 1px solid var(--border); }
.date-input-field:last-child { border-right: none; }
.date-input-field label { display: block; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin-bottom: 2px; }
.date-input-field input { border: none; outline: none; width: 100%; font-size: 0.85rem; color: var(--text); background: transparent; }

.guest-input, .payment-select { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px 12px; }
.guest-input label, .payment-select label { display: block; font-size: 0.6rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text); margin-bottom: 2px; }
.guest-input select, .payment-select select { border: none; outline: none; width: 100%; font-size: 0.85rem; color: var(--text); background: transparent; }

.booking-breakdown { background: var(--off-white); border-radius: var(--radius-sm); padding: 12px; }
.breakdown-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 3px 0; color: var(--text-2); }
.breakdown-row.total { font-weight: 700; color: var(--text); border-top: 1px solid var(--border); padding-top: 8px; margin-top: 4px; }

.booking-note { font-size: 0.75rem; color: var(--text-2); text-align: center; margin-top: 6px; }
.booking-actions { display: flex; flex-direction: column; gap: 8px; }
.contact-host-btn {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  padding: 10px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--white); color: var(--text);
  font-size: 0.85rem; font-weight: 600; text-decoration: none;
  transition: border-color var(--transition);
}
.contact-host-btn:hover { border-color: var(--text); }

/* ── Auth Pages ── */
.auth-page { min-height: calc(100vh - 80px); display: flex; align-items: center; padding: 48px 20px; background: var(--white); }
.auth-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 40px;
  box-shadow: var(--shadow-md);
  width: 100%; max-width: 440px; margin: 0 auto;
}
.auth-logo { text-align: center; margin-bottom: 20px; }
.auth-logo img { height: 40px; margin: 0 auto; }
.auth-title    { text-align: center; margin-bottom: 6px; font-size: 1.4rem; }
.auth-subtitle { text-align: center; color: var(--text-2); font-size: 0.875rem; margin-bottom: 24px; }
.auth-footer   { text-align: center; margin-top: 18px; font-size: 0.85rem; color: var(--text-2); }
.auth-footer a { font-weight: 600; color: var(--text); text-decoration: underline; }
.divider { display: flex; align-items: center; gap: 10px; margin: 16px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.divider span { font-size: 0.75rem; color: var(--text-2); }
.role-selector { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 16px; }
.role-option { display: none; }
.role-label {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all var(--transition); text-align: center;
}
.role-label:hover { border-color: var(--text); }
.role-option:checked + .role-label { border-color: var(--text); background: var(--off-white); }
.role-icon { font-size: 1.6rem; }
.role-name { font-weight: 600; font-size: 0.875rem; }
.role-desc { font-size: 0.72rem; color: var(--text-2); }

/* ── Forms ── */
.form-group { margin-bottom: 16px; }
.form-label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.form-label span { color: #dc2626; }
.form-control {
  width: 100%; padding: 10px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.875rem; color: var(--text); background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--text); box-shadow: 0 0 0 2px rgba(34,34,34,0.08); }
.form-control::placeholder { color: var(--text-3); }
textarea.form-control { resize: vertical; min-height: 90px; }
.form-hint  { font-size: 0.75rem; color: var(--text-2); margin-top: 4px; }
.form-error { font-size: 0.75rem; color: #dc2626; margin-top: 4px; }
.form-row   { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox-group { display: flex; align-items: flex-start; gap: 9px; }
.checkbox-group input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--text); margin-top: 2px; flex-shrink: 0; }
.checkbox-group label { font-size: 0.875rem; }

/* ── Dashboard ── */
.dashboard-layout { display: grid; grid-template-columns: 216px 1fr; gap: 32px; align-items: start; min-height: 70vh; }
.dashboard-sidebar {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 20px;
  position: sticky; top: 88px;
}
.dash-user { text-align: center; margin-bottom: 20px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.dash-avatar {
  width: 64px; height: 64px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--border); margin: 0 auto 10px;
}
.dash-avatar-ph {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--navy); color: #fff; font-size: 1.6rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center; margin: 0 auto 10px;
}
.dash-name { font-weight: 700; font-size: 0.95rem; }
.dash-role { font-size: 0.775rem; color: var(--text-2); margin-top: 2px; }
.dash-nav  { display: flex; flex-direction: column; gap: 1px; }
.dash-nav-link {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: 0.875rem; font-weight: 500;
  color: var(--text); text-decoration: none;
  transition: background var(--transition);
}
.dash-nav-link:hover, .dash-nav-link.active { background: var(--off-white); }
.dash-nav-link.active { font-weight: 600; }
.dash-nav-link svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--text-2); }

.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 28px; }
.stat-card {
  background: var(--off-white); border-radius: var(--radius-sm);
  padding: 16px; text-align: center; border: 1px solid var(--border);
}
.stat-value { font-size: 1.6rem; font-weight: 700; color: var(--text); font-family: 'Poppins', sans-serif; }
.stat-label { font-size: 0.775rem; color: var(--text-2); }
.stat-icon  { font-size: 1.3rem; margin-bottom: 6px; }

.dash-section { margin-bottom: 28px; }
.dash-section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dash-section-header h3 { font-size: 1rem; }

.booking-item {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 14px;
  display: flex; gap: 14px; align-items: center;
  margin-bottom: 8px; transition: box-shadow var(--transition);
}
.booking-item:hover { box-shadow: var(--shadow); }
.booking-thumb    { width: 64px; height: 48px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.booking-thumb-ph { width: 64px; height: 48px; border-radius: var(--radius-sm); background: var(--off-white); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.booking-info     { flex: 1; min-width: 0; }
.booking-prop     { font-weight: 600; font-size: 0.875rem; color: var(--text); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.booking-dates    { font-size: 0.78rem; color: var(--text-2); }
.booking-price-dash { font-weight: 700; color: var(--text); font-size: 0.9rem; margin-left: auto; flex-shrink: 0; }

.status-badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: var(--radius-pill);
  font-size: 0.68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.status-pending   { background: #fef3c7; color: #92400e; }
.status-confirmed { background: #d1fae5; color: #065f46; }
.status-declined  { background: #fee2e2; color: #991b1b; }
.status-cancelled { background: #f3f4f6; color: #374151; }
.status-completed { background: #dbeafe; color: #1e40af; }

.listing-item { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px; display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.listing-thumb    { width: 72px; height: 54px; border-radius: var(--radius-sm); object-fit: cover; flex-shrink: 0; }
.listing-thumb-ph { width: 72px; height: 54px; border-radius: var(--radius-sm); background: var(--off-white); display: flex; align-items: center; justify-content: center; font-size: 1.3rem; flex-shrink: 0; }
.listing-item-info { flex: 1; min-width: 0; }
.listing-item-title { font-weight: 600; font-size: 0.875rem; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.listing-item-meta { font-size: 0.775rem; color: var(--text-2); margin-top: 2px; }
.listing-item-actions { display: flex; gap: 6px; flex-shrink: 0; }

/* ── Create/Edit Listing ── */
.create-listing-layout { max-width: 760px; margin: 0 auto; }
.form-section {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 28px; margin-bottom: 16px;
}
.form-section h3 { font-size: 1rem; margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.type-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
.type-option { display: none; }
.type-label {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 14px 10px; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  transition: all var(--transition); text-align: center;
  font-size: 0.8rem; font-weight: 500; color: var(--text-2);
}
.type-label:hover { border-color: var(--text); color: var(--text); }
.type-option:checked + .type-label { border-color: var(--text); color: var(--text); font-weight: 600; background: var(--off-white); }
.type-icon { font-size: 1.5rem; }

.amenity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 8px; }
.amenity-option { display: none; }
.amenity-label {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 12px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); cursor: pointer;
  font-size: 0.825rem; color: var(--text-2);
  transition: all var(--transition);
}
.amenity-label:hover { border-color: var(--text); color: var(--text); }
.amenity-option:checked + .amenity-label { border-color: var(--text); color: var(--text); font-weight: 600; background: var(--off-white); }

/* Photo management grid (edit-listing) */
.pm-grid { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:4px; }
.pm-item {
  position:relative; width:110px; height:88px;
  border-radius:8px; overflow:hidden; flex-shrink:0;
}
.pm-item img { width:100%; height:100%; object-fit:cover; display:block; }
.pm-overlay {
  position:absolute; top:0; left:0; right:0; bottom:0;
  background:rgba(0,0,0,0.45);
  display:flex; align-items:flex-start; justify-content:flex-end;
  gap:4px; padding:5px;
  opacity:0; transition:opacity .15s;
}
.pm-item:hover .pm-overlay { opacity:1; }
.pm-btn {
  width:24px; height:24px; border-radius:50%; border:none;
  background:rgba(255,255,255,0.92); cursor:pointer;
  font-size:0.75rem; display:flex; align-items:center; justify-content:center;
  line-height:1; padding:0; transition:background .15s;
}
.pm-btn:hover { background:#fff; }
.pm-del      { color:#dc2626; }
.pm-setcover { color:#0A2342; }
.pm-badge {
  position:absolute; bottom:0; left:0; right:0;
  background:rgba(0,162,179,0.9); color:#fff;
  font-size:0.62rem; text-align:center; padding:2px 0;
}

.photo-upload-area {
  position: relative; border: 1.5px dashed var(--border); border-radius: var(--radius-sm);
  padding: 40px 20px; text-align: center; cursor: pointer;
  transition: all var(--transition); background: var(--off-white);
}
.photo-upload-area:hover { border-color: var(--text); }
.photo-upload-area input[type="file"] {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  width: 100%; height: 100%;
  opacity: 0; cursor: pointer; z-index: 2;
}
.upload-icon { font-size: 2.5rem; margin-bottom: 10px; }
.upload-text { font-weight: 600; font-size: 0.9rem; }
.upload-hint { font-size: 0.775rem; color: var(--text-2); margin-top: 4px; }
.photo-preview-grid { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.photo-preview { position: relative; width: 90px; height: 72px; }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-sm); }
.photo-remove {
  position: absolute; top: -5px; right: -5px;
  width: 20px; height: 20px; background: #dc2626; color: #fff;
  border: none; border-radius: 50%; font-size: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ── Static Pages ── */
.page-hero {
  background: linear-gradient(160deg, var(--navy) 0%, #163d6e 100%);
  padding: 64px 0; text-align: center;
}
.page-hero h1 { color: #fff; }
.page-hero p  { color: rgba(255,255,255,0.75); max-width: 520px; margin: 12px auto 0; font-size: 1rem; }
.value-card {
  display: flex; gap: 16px; align-items: flex-start;
  padding: 20px; background: var(--off-white);
  border-radius: var(--radius-sm);
}
.value-icon { font-size: 1.8rem; flex-shrink: 0; }

/* ── Messages ── */
.messages-layout {
  display: grid; grid-template-columns: 264px 1fr; gap: 0;
  min-height: 560px; background: var(--white);
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.conversation-list { border-right: 1px solid var(--border); overflow-y: auto; }
.conversation-item {
  display: flex; gap: 10px; padding: 14px;
  border-bottom: 1px solid var(--border); cursor: pointer;
  transition: background var(--transition); text-decoration: none; color: inherit;
}
.conversation-item:hover, .conversation-item.active { background: var(--off-white); }
.conv-avatar  { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.conv-info    { flex: 1; min-width: 0; }
.conv-name    { font-weight: 600; font-size: 0.875rem; }
.conv-preview { font-size: 0.775rem; color: var(--text-2); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.conv-time    { font-size: 0.7rem; color: var(--text-2); }
.chat-area  { display: flex; flex-direction: column; }
.chat-header { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 10px; }
.chat-messages { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; min-height: 360px; }
.message-bubble {
  max-width: 65%; padding: 10px 14px; border-radius: 18px;
  font-size: 0.875rem; line-height: 1.6;
}
.message-bubble.sent     { background: var(--navy); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.message-bubble.received { background: var(--off-white); color: var(--text); align-self: flex-start; border-bottom-left-radius: 4px; }
.message-time { font-size: 0.68rem; opacity: 0.65; margin-top: 3px; }
.chat-input { padding: 12px 14px; border-top: 1px solid var(--border); display: flex; gap: 8px; }
.chat-input textarea { flex: 1; border: 1px solid var(--border); border-radius: 20px; padding: 8px 14px; resize: none; font-size: 0.875rem; outline: none; }
.chat-input textarea:focus { border-color: var(--text); }
.chat-send {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; border: none;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background var(--transition);
}
.chat-send:hover { background: #132d52; }
.chat-send svg { width: 16px; height: 16px; }

/* ── Misc ── */
.empty-state { text-align: center; padding: 52px 20px; }
.empty-state-icon { font-size: 3rem; margin-bottom: 12px; }
.empty-state h3 { margin-bottom: 8px; }
.tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: var(--radius-pill); font-size: 0.72rem; font-weight: 600; }
.tag-teal   { background: rgba(0,162,179,0.1); color: var(--teal); }
.tag-orange { background: rgba(255,138,0,0.1); color: var(--orange); }
.tag-navy   { background: rgba(10,35,66,0.08); color: var(--navy); }
.star.filled { color: #222; }
.alert { padding: 12px 16px; border-radius: var(--radius-sm); font-size: 0.85rem; margin-bottom: 16px; }
.alert-info    { background: rgba(0,162,179,0.07); border: 1px solid rgba(0,162,179,0.25); color: var(--teal-dark); }
.alert-warning { background: #fef3c7; border: 1px solid #f59e0b; color: #92400e; }
.alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.alert-error   { background: #fef2f2; border: 1px solid #fca5a5; color: #b91c1c; }
.card-base { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.no-listings { grid-column: 1 / -1; text-align: center; padding: 56px; color: var(--text-2); }
.hidden { display: none !important; }

/* ── Footer ── */
.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 40px 0 0;
  margin-top: 64px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px; padding-bottom: 40px;
  border-bottom: 1px solid var(--border);
}
.footer-logo    { height: 34px; margin-bottom: 12px; }
.footer-tagline { color: var(--teal); font-weight: 600; font-size: 0.825rem; margin-bottom: 8px; }
.footer-desc    { font-size: 0.825rem; color: var(--text-2); line-height: 1.65; }
.footer-social  { display: flex; gap: 10px; margin-top: 16px; }
.social-link {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); transition: all var(--transition);
}
.social-link:hover { border-color: var(--text); color: var(--text); }
.social-link svg { width: 16px; height: 16px; }
.footer-col h4  { font-size: 0.825rem; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.footer-col ul  { display: flex; flex-direction: column; gap: 9px; }
.footer-col ul li a { color: var(--text-2); font-size: 0.825rem; transition: color var(--transition); }
.footer-col ul li a:hover { color: var(--text); text-decoration: underline; }
.footer-payments h4 { margin-top: 20px; }
.payment-icons { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.pay-badge {
  background: var(--off-white); color: var(--text-2);
  padding: 3px 8px; border-radius: var(--radius-pill);
  font-size: 0.72rem; font-weight: 500; border: 1px solid var(--border);
}
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px; padding: 18px 0;
  font-size: 0.775rem; color: var(--text-2);
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-links a { color: var(--text-2); font-size: 0.775rem; }
.footer-links a:hover { text-decoration: underline; color: var(--text); }

/* ================================================================
   Responsive
================================================================ */
@media (max-width: 1200px) {
  .listings-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 1024px) {
  .listing-detail-layout { grid-template-columns: 1fr; }
  .booking-widget { position: static; }
  .hiw-grid { grid-template-columns: 1fr; gap: 28px; }
  .host-cta { grid-template-columns: 1fr; }
  .host-cta-btns { justify-content: flex-start; }
}
@media (max-width: 900px) {
  .dashboard-layout { grid-template-columns: 1fr; }
  .dashboard-sidebar { position: static; }
  .messages-layout { grid-template-columns: 1fr; }
  .conversation-list { max-height: 260px; border-right: none; border-bottom: 1px solid var(--border); }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 180px 140px; }
  .gallery-main { grid-column: 1 / 3; grid-row: auto; }
  .header-search { display: none; }
}
@media (max-width: 768px) {
  /* Navigation */
  .main-nav { display: none; }
  .main-nav.open {
    display: flex; flex-direction: column;
    position: fixed; top: 88px; left: 0; right: 0; bottom: 0;
    background: var(--white); padding: 16px; z-index: 99;
    border-top: 1px solid var(--border); overflow-y: auto;
  }
  .main-nav.open .nav-link { padding: 12px 16px; font-size: 0.95rem; border-radius: var(--radius-sm); }
  .mobile-menu-btn { display: flex; }
  .user-name-short { display: none; }

  /* Hero: tighter on mobile */
  .hero-container { padding: 36px 16px 32px; }
  .hero h1 { font-size: 1.7rem; }
  .hero-sub { font-size: 0.875rem; margin-bottom: 20px; }
  /* hero-search mobile layout is defined in its own block above */

  /* Listings: show mobile pill, hide desktop search bar */
  .mobile-search-pill { display: flex; }
  .desktop-search-bar { display: none; }

  .listings-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .cat-item { padding: 12px 14px; }
  .cat-icon { font-size: 1.2rem; }
  .host-cta { padding: 28px 20px; }
  .section { padding: 40px 0; }
  .section-sm { padding: 28px 0; }
  .form-row { grid-template-columns: 1fr; }
  .auth-card { padding: 28px 20px; }
  .form-section { padding: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 8px; }
  .site-footer { margin-top: 40px; }
  .date-inputs { grid-template-columns: 1fr; }
  .date-input-field { border-right: none; border-bottom: 1px solid var(--border); }
  .date-input-field:last-child { border-bottom: none; }
}

/* Desktop: pill hidden, full bar shown */
@media (min-width: 769px) {
  .mobile-search-pill   { display: none !important; }
  .mobile-search-drawer { display: none !important; }
  .desktop-search-bar   { display: block; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .listings-grid { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: auto; }
  .gallery-main { grid-column: auto; }
  .booking-widget { padding: 18px; }
  .page-hero { padding: 48px 0; }
  .hero h1 { font-size: 1.5rem; }
  /* On very small phones, collapse check-in/out to single column */
  .hsf-checkin, .hsf-checkout {
    grid-column: 1 / -1;
    border-left: none;
    border-bottom: 1px solid #e0e0e0;
  }
}

/* 600px: calendar single column */

/* ── Availability calendar grid responsive ── */
@media (max-width: 600px) {
  .availability-calendar + .availability-calendar { display: none; }
  div:has(> .availability-calendar) { grid-template-columns: 1fr !important; }
}

/* ── Mobile Nav Drawer ── */
.mobile-nav-drawer {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 290px; max-width: 85vw;
  background: var(--white);
  z-index: 500;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column;
  overflow-y: auto;
}
.mobile-nav-drawer.open { transform: translateX(0); }
.mobile-nav-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45);
  z-index: 499; opacity: 0; pointer-events: none;
  transition: opacity 0.28s ease;
}
.mobile-nav-overlay.open { opacity: 1; pointer-events: auto; }
.mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px; border-bottom: 1px solid var(--border);
}
.mobile-nav-header button { background: none; border: none; cursor: pointer; color: var(--text-2); padding: 4px; }
.mobile-nav-user {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 18px; border-bottom: 1px solid var(--border);
  background: var(--off-white);
}
.mobile-nav-links { padding: 8px 0; flex: 1; }
.mobile-nav-links li a {
  display: block; padding: 12px 20px;
  color: var(--text); font-size: 0.95rem; font-weight: 500;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
.mobile-nav-links li:last-child a { border-bottom: none; }
.mobile-nav-links li a:hover { background: var(--off-white); }

/* ── Payment badge with icon ── */
.pay-badge-icon {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-pill); font-size: 0.82rem; font-weight: 500; color: var(--text);
}
.pay-badge-icon svg, .pay-badge-icon img { flex-shrink: 0; }
.pay-badge-icon span { white-space: nowrap; }

/* ── Availability Calendar ── */
.availability-calendar { margin: 0; }
.cal-nav {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 12px;
}
.cal-nav button {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--border); background: var(--white);
  color: var(--text); font-size: 1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--transition);
}
.cal-nav button:hover { background: var(--off-white); }
.cal-month { font-weight: 700; font-size: 0.95rem; }
.cal-grid {
  display: grid; grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}
.cal-dow {
  text-align: center; font-size: 0.65rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-2); padding: 6px 0;
}
.cal-day {
  aspect-ratio: 1; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; cursor: pointer;
  border: none; background: transparent;
  transition: all var(--transition); color: var(--text);
  position: relative;
}
.cal-day:hover:not(.blocked):not(.past) { background: var(--off-white); }
.cal-day.today { font-weight: 700; border: 1.5px solid var(--text); }
.cal-day.blocked { background: var(--off-white); color: var(--text-2); text-decoration: line-through; cursor: default; }
.cal-day.blocked::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: rgba(0,0,0,0.06); }
.cal-day.past { color: var(--text-3); cursor: default; }
.cal-day.selected { background: var(--navy); color: var(--white); font-weight: 700; }
.cal-day.in-range { background: rgba(10,35,66,0.08); }
.cal-day.empty { cursor: default; }

.cal-legend { display: flex; gap: 16px; margin-top: 12px; flex-wrap: wrap; }
.cal-legend-item { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--text-2); }
.cal-swatch { width: 16px; height: 16px; border-radius: 50%; border: 1px solid var(--border); }
.cal-swatch.available { background: var(--white); }
.cal-swatch.blocked   { background: var(--off-white); }

/* ── Admin styles ── */
.admin-layout { display: grid; grid-template-columns: 220px 1fr; gap: 0; min-height: 100vh; }
.admin-sidebar {
  background: var(--navy); color: var(--white);
  padding: 0; position: sticky; top: 0;
  height: 100vh; overflow-y: auto; flex-shrink: 0;
}
.admin-logo { padding: 20px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-logo img { height: 32px; filter: brightness(10); }
.admin-nav { padding: 12px 0; }
.admin-nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 20px; color: rgba(255,255,255,0.75);
  font-size: 0.875rem; font-weight: 500;
  transition: all var(--transition); text-decoration: none;
}
.admin-nav-link:hover, .admin-nav-link.active { background: rgba(255,255,255,0.1); color: var(--white); }
.admin-nav-link svg { width: 16px; height: 16px; flex-shrink: 0; }
.admin-nav-section { padding: 16px 20px 6px; font-size: 0.65rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: rgba(255,255,255,0.4); }
.admin-main { background: var(--off-white); }
.admin-topbar {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 0 28px; height: 60px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.admin-topbar h1 { font-size: 1.1rem; font-weight: 700; }
.admin-content { padding: 28px; }
.admin-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.admin-stat {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 20px;
}
.admin-stat-label { font-size: 0.775rem; color: var(--text-2); margin-bottom: 6px; }
.admin-stat-value { font-size: 1.8rem; font-weight: 700; color: var(--text); }
.admin-stat-icon { float: right; font-size: 1.6rem; margin-top: -32px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.admin-table th {
  text-align: left; padding: 10px 14px;
  background: var(--off-white); border-bottom: 1px solid var(--border);
  font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-2);
}
.admin-table td { padding: 10px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--off-white); }
.admin-card { background: var(--white); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 20px; }
.admin-card-header { padding: 14px 18px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.admin-card-header h3 { font-size: 0.95rem; }
.admin-card-body { padding: 18px; }
.admin-toggle { display: flex; align-items: center; gap: 10px; }
.admin-toggle input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--teal); cursor: pointer; }

/* ── Share buttons ── */
.share-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.share-btn {
  display: flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: var(--radius-pill);
  font-size: 0.8rem; font-weight: 600; border: 1px solid var(--border);
  background: var(--white); color: var(--text); cursor: pointer;
  transition: all var(--transition); text-decoration: none;
}
.share-btn:hover { border-color: var(--text); }
.share-btn svg { width: 16px; height: 16px; }
.share-btn.fb   { color: #1877f2; border-color: #1877f2; }
.share-btn.fb:hover   { background: #1877f2; color: #fff; }
.share-btn.wa   { color: #25d366; border-color: #25d366; }
.share-btn.wa:hover   { background: #25d366; color: #fff; }
.share-btn.tw   { color: #000; border-color: #000; }
.share-btn.tw:hover   { background: #000; color: #fff; }

/* Mobile nav rules (already handled above — kept for safety) */
@media (max-width: 768px) {
  .mobile-menu-btn { display: flex; }
  .main-nav { display: none !important; }
}
@media (min-width: 769px) {
  .mobile-nav-drawer { display: none; }
  .mobile-nav-overlay { display: none; }
  .mobile-menu-btn { display: none; }
}

