/* ── Inter (variable font, self-hosted) ──────────────────────────────────────────────
   One file covers every weight 100-900. The browser only downloads the 'latin-ext' file if a page
   actually uses those characters. Served from this site, so no request goes to Google Fonts. */
/* inter-latin-ext-wght-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
/* inter-latin-wght-normal */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(../fonts/inter-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* ═══════════════════════════════════════════════
   HOSTELSTAY.COM — Main Stylesheet
   Aesthetic: Warm editorial · Syne + DM Sans
   ═══════════════════════════════════════════════ */

:root {
  /* HostelSansar Brand Colors — exact from brand identity sheet */
  --saffron: #F47A20;           /* Brand Orange — "Sansar" text, CTAs, accents */
  --saffron-ink: #B35309;        /* Brand orange for TEXT on light backgrounds (5:1 on white); the bright orange is for fills */
  --on-saffron: #0D2B45;         /* Text on a bright-orange fill (5.3:1) */
  --saffron-light: #F9A05A;     /* Lighter orange for hovers */
  --saffron-pale: #FEF3EA;      /* Very pale orange for backgrounds */
  --navy: #0D2B45;              /* Brand Navy — "Hostel" text, nav, footer */
  --crimson: #C0392B;           /* Error / destructive actions */
  --ink: #0D2B45;               /* Body text = brand navy */
  --ink-soft: #2C4A63;          /* Secondary text */
  --stone: #56687A;             /* Muted/placeholder text - darkened for WCAG AA contrast (was 4.32:1, now ~5.95:1) */
  --sand: #F5F6F7;              /* Brand light gray background */
  --sand-dark: #E4E8EC;         /* Slightly darker sand */
  --cream: #FFFFFF;             /* Page background = pure white */
  --white: #FFFFFF;
  --success: #1B7A4A;
  --boys-blue: #0D2B45;         /* Use brand navy for boys badge */
  --boys-light: #E8EFF5;
  --girls-rose: #9B2D6A;
  --girls-light: #FBEAF4;

  /* Brand Typography — Inter for professional clean look */
  --font-display: 'Inter', 'Syne', sans-serif;
  --font-body: 'Inter', 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;

  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --shadow-sm: 0 2px 8px rgba(13,43,69,.08);
  --shadow-md: 0 8px 32px rgba(13,43,69,.12);
  --shadow-lg: 0 24px 64px rgba(13,43,69,.16);
  --transition: 0.25s cubic-bezier(0.4,0,0.2,1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Data tables (portal): always horizontally scrollable, on every screen size -
   without this, columns past the visible width (e.g. the Actions/Edit column)
   are silently clipped with no indication anything is hidden. */
.tbl { display: block; overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; }
.tbl thead, .tbl tbody { display: table; width: 100%; table-layout: auto; }

/* ── Floating action buttons: Back-to-top / Favorites / WhatsApp ───────────────
   One fixed container stacks the three, so they are always evenly spaced and
   aligned on the same right edge, and it lifts itself above the cookie banner by
   that banner's REAL height (--cookie-h, set from JavaScript). Nothing here is
   positioned per-button, so one button can never drift away from the others. */
.fab-stack {
  position: fixed; right: 22px; z-index: 800;
  bottom: calc(24px + var(--cookie-h, 0px) + env(safe-area-inset-bottom, 0px));
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  pointer-events: none;                 /* the empty space around the buttons never blocks taps */
  transition: bottom .3s ease;
}
.fab {
  pointer-events: auto; position: relative; flex: 0 0 auto;
  width: 48px; height: 48px; border-radius: 50%; border: none; padding: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease;
}
.fab-fav { background: #0D2B45; box-shadow: 0 4px 16px rgba(13,43,69,.35); }
.fab-wa  { background: #25D366; box-shadow: 0 4px 20px rgba(37,211,102,.5); }
.fab-top { background: #F47A20; box-shadow: 0 4px 16px rgba(244,122,32,.4);
           opacity: 0; visibility: hidden; transform: translateY(8px);
           transition: opacity .25s ease, transform .25s ease, visibility .25s, background-color .15s ease; }
.fab-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.fab-top.is-visible:hover { background: #D96A10; transform: translateY(-2px); }
.fab-fav:hover, .fab-wa:hover { transform: scale(1.08); }
.fab:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px #0D2B45; }
.fab-heart { font-size: 20px; line-height: 1; }
.fab-count { position: absolute; top: -4px; right: -4px; background: #F47A20; color: var(--on-saffron);
             font-size: 10px; font-weight: 700; border-radius: 10px; min-width: 16px; height: 16px;
             align-items: center; justify-content: center; padding: 0 4px; border: 2px solid #fff; }
@media (max-width: 768px) {
  .fab-stack { right: 14px; gap: 12px; bottom: calc(20px + var(--cookie-h, 0px) + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .fab-stack, .fab, .fab-top { transition: none; }
}

/* ── UTILITIES ─────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

.icon-xs { width: 14px; height: 14px; display: inline-block; vertical-align: middle; }
.icon-sm { width: 18px; height: 18px; display: inline-block; vertical-align: middle; }
.icon-md { width: 22px; height: 22px; display: inline-block; vertical-align: middle; }
.icon-lg { width: 28px; height: 28px; display: inline-block; vertical-align: middle; }

/* ── BUTTONS ────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Inter', var(--font-display);
  font-weight: 600; font-size: 0.88rem; letter-spacing: 0.02em;
  padding: 10px 22px; border-radius: 8px;
  text-decoration: none; border: 2px solid transparent;
  cursor: pointer; transition: var(--transition);
  white-space: nowrap;
}
.btn-primary { background: #F47A20; color: var(--on-saffron); }
.btn-primary:hover { background: var(--crimson); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--saffron-ink); border-color: var(--saffron); }
.btn-outline:hover { background: var(--saffron); color: var(--white); }
.btn-ghost { background: transparent; color: var(--stone); }
.btn-ghost:hover { color: var(--ink); background: var(--sand); }
.btn-dark { background: var(--ink); color: var(--white); }
.btn-dark:hover { background: var(--ink-soft); transform: translateY(-1px); }
.btn-success { background: var(--success); color: var(--white); }
.btn-sm { padding: 7px 16px; font-size: 0.82rem; }
.btn-lg { padding: 14px 32px; font-size: 1rem; border-radius: 10px; }
.btn-full { width: 100%; justify-content: center; }

/* ── BADGES ─────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem; font-family: 'Inter', var(--font-display); font-weight: 700;
  padding: 3px 10px; border-radius: 100px; letter-spacing: 0.04em;
  text-transform: uppercase;
}
.badge-verified { background: #E6F7EE; color: #1B7A4A; }
.badge-featured { background: #FFF4E5; color: var(--saffron-ink); }
.badge-boys { background: var(--boys-light); color: var(--boys-blue); }
.badge-girls { background: var(--girls-light); color: var(--girls-rose); }
.badge-mixed { background: #F0F0F0; color: #555; }
.badge-tourist { background: #E6F4EA; color: #1B7A4A; }
.badge-available { background: #E6F7EE; color: #1B7A4A; }
.badge-full { background: #FEEAEA; color: var(--crimson); }
.badge-not_offered { background: #F5F5F5; color: #999; }

/* ── NAVIGATION ─────────────────────────────────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,251,247,0.92);
  backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid rgba(232,98,26,0.1);
  transition: box-shadow var(--transition);
}
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  display: flex; align-items: center; gap: 32px;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
  height: 68px;
}
.nav-logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; flex-shrink: 0;
}
.logo-icon { font-size: 1.4rem; }
.logo-text {
  font-family: 'Inter', var(--font-display); font-weight: 800;
  font-size: 1.25rem; color: var(--ink); letter-spacing: -0.02em;
}
.logo-accent { color: var(--saffron); }
.nav-links { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-link {
  font-family: 'Inter', var(--font-display); font-weight: 600; font-size: 0.88rem;
  color: var(--ink-soft); text-decoration: none; padding: 8px 14px;
  border-radius: 8px; transition: var(--transition); cursor: pointer;
  border: none; background: none; display: flex; align-items: center; gap: 4px;
}
.nav-link:hover, .nav-link.active { color: var(--saffron-ink); background: var(--saffron-pale); }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-menu-actions { display: none; }

/* Dropdown */
.nav-dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 8px); left: 0;
  background: var(--white); border-radius: var(--radius);
  box-shadow: var(--shadow-lg); border: 1px solid var(--sand-dark);
  padding: 8px; min-width: 220px; opacity: 0; visibility: hidden;
  transform: translateY(-8px); transition: var(--transition);
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-dropdown.dropdown-open .dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown-item {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-radius: 8px; text-decoration: none;
  color: var(--ink); transition: var(--transition);
}
.dropdown-item:hover { background: var(--sand); color: var(--saffron-ink); }
.dropdown-city { font-family: 'Inter', var(--font-display); font-weight: 600; font-size: 0.88rem; }
.dropdown-count { font-size: 0.75rem; color: var(--stone); }

/* ── HERO ───────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(160deg, var(--ink) 0%, #2D1A0A 60%, #4A2810 100%);
  display: flex; align-items: center;
  position: relative; overflow: hidden; padding-top: 68px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: var(--hero-bg-image, url('https://images.unsplash.com/photo-1605640840605-14ac1855827b?w=1600&q=60')) center/cover;
  opacity: 0.18; mix-blend-mode: luminosity;
}
.hero-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 20% 50%, rgba(232,98,26,0.15) 0%, transparent 50%),
                    radial-gradient(circle at 80% 20%, rgba(192,57,43,0.1) 0%, transparent 40%);
}
.hero-content {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center; padding: 80px 0;
}
.hero-left {}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(232,98,26,0.2); border: 1px solid rgba(232,98,26,0.4);
  color: var(--saffron-light); font-family: var(--font-mono); font-size: 0.78rem;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 24px;
  letter-spacing: 0.06em; text-transform: uppercase;
}
.hero-title {
  font-family: 'Inter', var(--font-display); font-weight: 800;
  font-size: clamp(2.8rem, 5vw, 4.2rem); line-height: 1.07;
  color: var(--white); margin-bottom: 20px; letter-spacing: -0.03em;
}
.hero-title span { color: var(--saffron); }
.hero-subtitle {
  font-size: 1.1rem; color: rgba(255,251,247,0.7);
  max-width: 480px; margin-bottom: 40px; line-height: 1.7;
  font-weight: 300;
}
.hero-stats { display: flex; gap: 32px; margin-top: 48px; }
.hero-stat { text-align: left; }
.hero-stat-num {
  font-family: 'Inter', var(--font-display); font-weight: 800;
  font-size: 2rem; color: var(--saffron); line-height: 1;
}
.hero-stat-label { font-size: 0.8rem; color: rgba(255,251,247,0.55); margin-top: 4px; }

/* Search box */
.search-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px; box-shadow: var(--shadow-lg);
  border: 1px solid rgba(232,98,26,0.1);
}
.search-card-title {
  font-family: 'Inter', var(--font-display); font-weight: 700;
  font-size: 1.3rem; color: var(--ink); margin-bottom: 24px;
  display: flex; align-items: center; gap: 10px;
}
.search-card-title .dot { width: 10px; height: 10px; background: var(--saffron); border-radius: 50%; }
.search-field { margin-bottom: 16px; }
.search-field label {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--stone); text-transform: uppercase; letter-spacing: 0.05em;
  margin-bottom: 6px; font-family: 'Inter', var(--font-display);
}
.search-select, .search-input {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--sand-dark); border-radius: var(--radius);
  font-family: var(--font-body); font-size: 0.95rem; color: var(--ink);
  background: var(--cream); transition: var(--transition);
  appearance: none; outline: none;
}
.search-select:focus, .search-input:focus {
  border-color: var(--saffron); background: var(--white);
  box-shadow: 0 0 0 4px rgba(232,98,26,0.08);
}
.search-select-wrap { position: relative; }
.search-select-wrap::after {
  content: ''; position: absolute; right: 14px; top: 50%;
  transform: translateY(-50%);
  border: 5px solid transparent; border-top-color: var(--stone);
  pointer-events: none;
}
.search-gender-btns { display: flex; gap: 8px; }
.gender-btn {
  flex: 1; padding: 11px; border-radius: var(--radius); border: 2px solid var(--sand-dark);
  font-family: 'Inter', var(--font-display); font-weight: 600; font-size: 0.85rem;
  cursor: pointer; background: var(--cream); color: var(--stone);
  transition: var(--transition); text-align: center;
}
.gender-btn.active-boys { background: var(--boys-light); border-color: var(--boys-blue); color: var(--boys-blue); }
.gender-btn.active-girls { background: var(--girls-light); border-color: var(--girls-rose); color: var(--girls-rose); }
.gender-btn:hover { background: var(--sand); }

/* ── SECTIONS ───────────────────────────────────── */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-alt { background: var(--sand); }
.section-dark { background: var(--ink); color: var(--white); }

.section-header { margin-bottom: 56px; }
.section-eyebrow {
  font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--saffron-ink);
  margin-bottom: 10px; display: block;
}
.section-title {
  font-family: 'Inter', var(--font-display); font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.8rem); line-height: 1.1;
  letter-spacing: -0.03em; color: var(--ink);
}
.section-dark .section-title { color: var(--white); }
.section-subtitle {
  font-size: 1.05rem; color: var(--stone); max-width: 520px;
  margin-top: 12px; line-height: 1.7;
}
.section-dark .section-subtitle { color: rgba(255,251,247,0.6); }
.section-header-flex {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 24px; flex-wrap: wrap;
}

/* ── HOSTEL CARDS ───────────────────────────────── */
.hostel-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.hostel-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; transition: var(--transition);
  box-shadow: var(--shadow-sm); border: 1px solid var(--sand-dark);
  display: flex; flex-direction: column;
}
.hostel-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.hostel-card-img {
  position: relative; aspect-ratio: 4/3; overflow: hidden;
  background: var(--sand);
}
.hostel-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.hostel-card:hover .hostel-card-img img { transform: scale(1.06); }
.hostel-card-badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; gap: 6px; flex-wrap: wrap;
}
.hostel-card-price {
  position: absolute; bottom: 12px; right: 12px;
  background: var(--ink); color: var(--white);
  font-family: 'Inter', var(--font-display); font-weight: 700;
  font-size: 0.82rem; padding: 5px 12px; border-radius: 100px;
}
.hostel-card-price-inline {
  font-size: 0.78rem; color: var(--saffron-ink); font-weight: 700; margin-top: 2px;
}
.hostel-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.hostel-card-city {
  font-size: 0.75rem; color: var(--stone); font-weight: 500;
  display: flex; align-items: center; gap: 4px; margin-bottom: 6px;
}
.hostel-card-name {
  font-family: 'Inter', var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--ink); margin-bottom: 10px; line-height: 1.3;
  text-decoration: none; display: block;
}
.hostel-card-name:hover { color: var(--saffron-ink); }
.hostel-card-addr {
  font-size: 0.82rem; color: var(--stone);
  display: flex; align-items: center; gap: 4px; margin-bottom: 14px;
}
.hostel-card-amenities {
  display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; flex: 1;
}
.amenity-tag {
  font-size: 0.73rem; color: var(--stone);
  background: var(--sand); padding: 4px 10px; border-radius: 100px;
  display: flex; align-items: center; gap: 4px;
}
.hostel-card-footer {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 14px; border-top: 1px solid var(--sand-dark);
}
.hostel-card-contact { font-size: 0.8rem; color: var(--stone); display: flex; align-items: center; gap: 4px; }

/* Placeholder img */
.img-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--sand) 0%, var(--sand-dark) 100%);
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem; color: var(--stone);
}

/* ── CITY GRID ──────────────────────────────────── */
.city-grid { --cols: 4; --gap: 16px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.city-grid > .city-card { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; }
.city-card {
  position: relative; aspect-ratio: 3/2; border-radius: var(--radius-lg);
  overflow: hidden; cursor: pointer; text-decoration: none;
  background: var(--sand-dark);
}
.city-card-img {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--ink-soft), var(--saffron));
  transition: transform 0.5s cubic-bezier(0.4,0,0.2,1);
}
.city-card:hover .city-card-img { transform: scale(1.08); }
.city-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(26,18,8,0.85) 0%, rgba(26,18,8,0.1) 60%);
}
.city-card-body {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px 18px; z-index: 1;
}
.city-card-name {
  font-family: 'Inter', var(--font-display); font-weight: 700; font-size: 1.1rem;
  color: var(--white); display: block; margin-bottom: 2px;
}
.city-card-count { font-size: 0.78rem; color: rgba(255,255,255,0.7); }

/* ── FILTER BAR ─────────────────────────────────── */
.filter-bar {
  background: var(--white); border-bottom: 1px solid var(--sand-dark);
  padding: 16px 0; z-index: 100;
  box-shadow: var(--shadow-sm);
}
.filter-inner {
  display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap;
}
.filter-group { display: flex; flex-direction: column; gap: 4px; }
.filter-label {
  font-size: 0.72rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.06em; color: var(--stone); font-family: 'Inter', var(--font-display);
}
.filter-select {
  padding: 10px 36px 10px 14px; border: 2px solid var(--sand-dark);
  border-radius: 10px; font-family: var(--font-body); font-size: 0.88rem;
  color: var(--ink); background: var(--cream) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%237A6A5A' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
  appearance: none; outline: none; cursor: pointer;
  transition: var(--transition); min-width: 150px;
}
.filter-select:focus { border-color: var(--saffron); background-color: var(--white); }
.filter-results-count {
  font-family: 'Inter', var(--font-display); font-weight: 600; font-size: 0.85rem;
  color: var(--stone); margin-left: auto; align-self: center;
  white-space: nowrap;
}
.filter-results-count strong { color: var(--saffron-ink); }

/* ── HOSTEL PROFILE ─────────────────────────────── */
.profile-hero {
  background: var(--ink); padding-top: 68px;
  position: relative; overflow: hidden; min-height: 400px;
}
.profile-gallery {
  display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 280px 140px; gap: 3px;
  height: 423px;
}
.gallery-main { grid-row: span 2; position: relative; overflow: hidden; background: var(--sand); }
.gallery-thumb { position: relative; overflow: hidden; background: var(--sand); cursor: pointer; }
.gallery-main img, .gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-overlay {
  position: absolute; inset: 0; background: rgba(26,18,8,0.5);
  display: flex; align-items: center; justify-content: center;
  color: white; font-family: 'Inter', var(--font-display); font-weight: 700;
  font-size: 1.05rem; opacity: 0; transition: var(--transition);
}
.gallery-thumb:hover .gallery-overlay { opacity: 1; }

.profile-body { padding: 48px 0 80px; }
.profile-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
.profile-main {}
.profile-sidebar {}

.profile-top-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.profile-name {
  font-family: 'Inter', var(--font-display); font-weight: 800;
  font-size: 2.2rem; letter-spacing: -0.03em;
  color: var(--ink); margin-bottom: 8px; line-height: 1.15;
}
.profile-address {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.95rem; color: var(--stone); margin-bottom: 24px;
}
.profile-section { margin-bottom: 40px; }
.profile-section-title {
  font-family: 'Inter', var(--font-display); font-weight: 700; font-size: 1.1rem;
  color: var(--ink); margin-bottom: 16px; padding-bottom: 10px;
  border-bottom: 2px solid var(--sand-dark);
}
.profile-description { font-size: 0.97rem; color: var(--ink-soft); line-height: 1.8; }
.profile-description h1, .profile-description h2, .profile-description h3,
.profile-description h4, .profile-description h5, .profile-description h6 { margin: 16px 0 8px; color: var(--ink); }
.profile-description p { margin-bottom: 10px; }
.profile-description ul, .profile-description ol { margin: 8px 0 12px 22px; }
.profile-description blockquote { border-left: 3px solid var(--saffron); padding-left: 14px; margin: 10px 0; color: var(--stone); }
.profile-description a { color: var(--saffron-ink); }

/* Amenities */
.amenity-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.amenity-item {
  display: flex; align-items: center; gap: 10px;
  background: var(--sand); padding: 12px 14px; border-radius: 10px;
  font-size: 0.85rem; color: var(--ink-soft); font-weight: 500;
}
.amenity-item .icon-sm { color: var(--saffron); flex-shrink: 0; }

/* Room table */
.room-table { width: 100%; border-collapse: collapse; }
.room-table th {
  font-family: 'Inter', var(--font-display); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em; color: var(--stone);
  padding: 10px 14px; text-align: left; background: var(--sand);
  border-bottom: 2px solid var(--sand-dark);
}
.room-table td { padding: 14px; border-bottom: 1px solid var(--sand-dark); font-size: 0.9rem; }
.room-table tr:last-child td { border-bottom: none; }
/* very small phones (320-380px): tighter cells so the whole pricing table fits without sideways scrolling */
@media (max-width: 380px) {
  .room-table th, .room-table td { padding: 12px 8px; }
  .room-table td { font-size: 0.82rem; }
}
.room-price {
  font-family: 'Inter', var(--font-display); font-weight: 700; color: var(--saffron);
  font-size: 1rem;
}

/* Inquiry sidebar */
.inquiry-card {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 28px; box-shadow: var(--shadow-md); border: 1px solid var(--sand-dark);
  position: sticky; top: 88px;
}
.inquiry-card-title {
  font-family: 'Inter', var(--font-display); font-weight: 700; font-size: 1.15rem;
  color: var(--ink); margin-bottom: 6px;
}
.inquiry-card-sub { font-size: 0.82rem; color: var(--stone); margin-bottom: 24px; }
.form-field { margin-bottom: 14px; }
.form-label {
  display: block; font-size: 0.78rem; font-weight: 600;
  color: var(--stone); text-transform: uppercase; letter-spacing: 0.04em;
  margin-bottom: 5px; font-family: 'Inter', var(--font-display);
}
.form-input, .form-select, .form-textarea {
  width: 100%; padding: 11px 14px;
  border: 2px solid var(--sand-dark); border-radius: 10px;
  font-family: var(--font-body); font-size: 0.9rem; color: var(--ink);
  background: var(--cream); transition: var(--transition); outline: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  border-color: var(--saffron); background: var(--white);
  box-shadow: 0 0 0 4px rgba(232,98,26,0.08);
}
.form-textarea { resize: vertical; min-height: 80px; }
.form-select { appearance: none; cursor: pointer; }
.inquiry-notice {
  display: flex; gap: 8px; font-size: 0.78rem; color: var(--stone);
  background: var(--sand); padding: 10px 12px; border-radius: 8px;
  margin-top: 12px; line-height: 1.5;
}
.form-msg {
  padding: 12px 14px; border-radius: 10px; font-size: 0.88rem;
  font-weight: 500; display: none; margin-bottom: 12px;
}
.form-msg.success { background: #E6F7EE; color: #1B7A4A; display: block; }
.form-msg.error { background: #FEE; color: var(--crimson); display: block; }
.contact-info { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--sand-dark); }
.contact-info-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 8px;
}
.contact-info-item a { color: var(--saffron-ink); text-decoration: none; }
.contact-info-item a:hover { text-decoration: underline; }

/* Breadcrumb */
.breadcrumb {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; color: rgba(255,251,247,0.6);
  padding: 20px 0 0; flex-wrap: wrap;
}
.breadcrumb a { color: rgba(255,251,247,0.6); text-decoration: none; }
.breadcrumb a:hover { color: var(--saffron-light); }
.breadcrumb .sep { opacity: 0.4; }
.breadcrumb .current { color: var(--white); font-weight: 600; }

/* ── TESTIMONIALS ───────────────────────────────── */
.testimonial-grid { --cols: 2; --gap: 20px; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.testimonial-grid > .testimonial-card { flex: 0 0 calc((100% - (var(--cols) - 1) * var(--gap)) / var(--cols)); min-width: 0; box-sizing: border-box; }
.testimonial-card {
  background: rgba(255,251,247,0.06); border: 1px solid rgba(255,251,247,0.1);
  border-radius: var(--radius-lg); padding: 28px;
  transition: var(--transition);
}
.testimonial-card:hover { background: rgba(255,251,247,0.1); }
.testimonial-stars { color: var(--saffron); font-size: 1rem; letter-spacing: 2px; margin-bottom: 14px; }
.testimonial-text {
  font-size: 0.95rem; color: rgba(255,251,247,0.75);
  line-height: 1.75; margin-bottom: 20px; font-style: italic;
}
.testimonial-author { display: flex; align-items: center; gap: 12px; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--saffron); color: var(--on-saffron);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Inter', var(--font-display); font-weight: 700; font-size: 0.88rem;
  flex-shrink: 0;
}
.testimonial-name { font-family: 'Inter', var(--font-display); font-weight: 700; color: var(--white); font-size: 0.92rem; }
.testimonial-college { font-size: 0.78rem; color: rgba(255,251,247,0.72); }

/* ── HOW IT WORKS ───────────────────────────────── */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.step-card {
  text-align: center; padding: 40px 32px;
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); border: 1px solid var(--sand-dark);
  transition: var(--transition);
}
.step-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--saffron); color: var(--white);
  font-family: 'Inter', var(--font-display); font-weight: 800; font-size: 1.3rem;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px;
}
.step-icon { font-size: 2.2rem; margin-bottom: 16px; }
.step-title {
  font-family: 'Inter', var(--font-display); font-weight: 700; font-size: 1.1rem;
  color: var(--ink); margin-bottom: 10px;
}
.step-desc { font-size: 0.9rem; color: var(--stone); line-height: 1.7; }

/* ── TRUST BANNER ───────────────────────────────── */
.trust-row {
  display: flex; gap: 0; border-radius: var(--radius-lg);
  overflow: hidden; background: var(--white);
  box-shadow: var(--shadow-sm); border: 1px solid var(--sand-dark);
}
.trust-item {
  flex: 1; padding: 28px 24px; text-align: center;
  border-right: 1px solid var(--sand-dark);
  transition: var(--transition);
}
.trust-item:last-child { border-right: none; }
.trust-item:hover { background: var(--sand); }
.trust-icon { font-size: 1.8rem; margin-bottom: 10px; }
.trust-title { font-family: 'Inter', var(--font-display); font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.trust-desc { font-size: 0.8rem; color: var(--stone); margin-top: 4px; }

/* ── OWNER PORTAL ───────────────────────────────── */
.owner-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; min-height: 80vh; }
.owner-sidebar {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 24px; box-shadow: var(--shadow-sm); border: 1px solid var(--sand-dark);
  height: fit-content; position: sticky; top: 88px;
}
.owner-sidebar-title {
  font-family: 'Inter', var(--font-display); font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--stone);
  margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--sand-dark);
}
.owner-nav-link {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  border-radius: 8px; text-decoration: none; color: var(--ink-soft);
  font-weight: 500; font-size: 0.9rem; margin-bottom: 2px;
  transition: var(--transition);
}
.owner-nav-link:hover, .owner-nav-link.active { background: var(--saffron-pale); color: var(--saffron-ink); }
.owner-content {}
.owner-page-title {
  font-family: 'Inter', var(--font-display); font-weight: 800; font-size: 1.8rem;
  color: var(--ink); margin-bottom: 8px; letter-spacing: -0.02em;
}
.owner-page-sub { font-size: 0.9rem; color: var(--stone); margin-bottom: 32px; }
.owner-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px; box-shadow: var(--shadow-sm); border: 1px solid var(--sand-dark);
  margin-bottom: 24px;
}
.owner-card-title {
  font-family: 'Inter', var(--font-display); font-weight: 700; font-size: 1.05rem;
  color: var(--ink); margin-bottom: 20px; padding-bottom: 12px;
  border-bottom: 2px solid var(--sand-dark); display: flex; align-items: center; gap: 8px;
}
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.alert { padding: 14px 18px; border-radius: 10px; font-size: 0.9rem; font-weight: 500; margin-bottom: 16px; }
.alert-success { background: #E6F7EE; color: #1B7A4A; border: 1px solid #A7E3BF; }
.alert-error { background: #FEE; color: var(--crimson); border: 1px solid #FFB3B3; }
.availability-select { font-family: var(--font-body); }

/* ── PAGES: ABOUT, FAQ, etc ─────────────────────── */
.page-hero {
  padding: 120px 0 64px; text-align: center;
  background: linear-gradient(180deg, var(--sand) 0%, var(--cream) 100%);
  border-bottom: 1px solid var(--sand-dark);
}
.page-hero-title {
  font-family: 'Inter', var(--font-display); font-weight: 800;
  font-size: clamp(2.5rem, 5vw, 4rem); color: var(--ink);
  letter-spacing: -0.03em; margin-bottom: 16px;
}
.page-hero-sub { font-size: 1.1rem; color: var(--stone); max-width: 560px; margin: 0 auto; }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin: 48px 0; }
.stat-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 28px; text-align: center; box-shadow: var(--shadow-sm);
  border: 1px solid var(--sand-dark);
}
.stat-num {
  font-family: 'Inter', var(--font-display); font-weight: 800; font-size: 2.5rem;
  color: var(--saffron-ink); line-height: 1;
}
.section-dark .stat-num { color: var(--saffron); }
.stat-label { font-size: 0.85rem; color: var(--stone); margin-top: 6px; }

.faq-list { max-width: 720px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--sand-dark); }
.faq-q {
  width: 100%; text-align: left; padding: 20px 0;
  font-family: 'Inter', var(--font-display); font-weight: 600; font-size: 1rem;
  color: var(--ink); background: none; border: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: color var(--transition);
}
.faq-q:hover { color: var(--saffron-ink); }
.faq-q .faq-arrow { transition: transform var(--transition); color: var(--stone); flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); color: var(--saffron); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height 0.4s ease, padding 0.3s;
  font-size: 0.95rem; color: var(--ink-soft); line-height: 1.8;
}
.faq-item.open .faq-a { max-height: 400px; padding-bottom: 20px; }

/* ── PAGINATION ─────────────────────────────────── */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 48px; flex-wrap: wrap; }
.page-btn {
  width: 40px; height: 40px; border-radius: 8px; border: 2px solid var(--sand-dark);
  font-family: 'Inter', var(--font-display); font-weight: 600; font-size: 0.88rem;
  color: var(--ink); text-decoration: none; display: flex; align-items: center;
  justify-content: center; transition: var(--transition); background: var(--white);
}
.page-btn:hover { border-color: var(--saffron-ink); color: var(--saffron-ink); }
.page-btn.active { background: var(--saffron); border-color: var(--saffron); color: var(--on-saffron); }
.page-btn.disabled { opacity: 0.4; pointer-events: none; }

/* ── EMPTY STATE ────────────────────────────────── */
.empty-state {
  text-align: center; padding: 80px 40px;
  background: var(--white); border-radius: var(--radius-lg);
  border: 2px dashed var(--sand-dark);
}
.empty-icon { font-size: 3.5rem; margin-bottom: 16px; }
.empty-title { font-family: 'Inter', var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--ink); margin-bottom: 8px; }
.empty-sub { font-size: 0.9rem; color: var(--stone); max-width: 400px; margin: 0 auto 24px; }

/* ── LIGHTBOX ───────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; background: rgba(26,18,8,0.95); z-index: 9999;
  display: none; align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox-img { max-width: 90vw; max-height: 90vh; border-radius: var(--radius); object-fit: contain; }
.lightbox-close {
  position: fixed; top: 24px; right: 24px; background: rgba(255,255,255,0.15);
  border: none; color: white; font-size: 1.5rem; width: 44px; height: 44px;
  border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.lightbox-close:hover { background: var(--saffron); }
.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.15); border: none; color: white;
  width: 50px; height: 50px; border-radius: 50%; cursor: pointer;
  font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
  transition: var(--transition);
}
.lightbox-nav:hover { background: var(--saffron); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }

/* ── PHOTO GRID (Owner) ─────────────────────────── */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 20px; }
.photo-item { position: relative; aspect-ratio: 4/3; border-radius: var(--radius); overflow: hidden; background: var(--sand); }
.photo-item img { width: 100%; height: 100%; object-fit: cover; }
.photo-remove {
  position: absolute; top: 6px; right: 6px;
  background: rgba(26,18,8,0.7); color: white; border: none;
  width: 28px; height: 28px; border-radius: 50%; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem; transition: var(--transition);
}
.photo-remove:hover { background: var(--crimson); }

/* ── FOOTER ─────────────────────────────────────── */
.footer {
  background: #0D2B45; color: rgba(255,251,247,0.7);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px;
  padding-bottom: 48px; border-bottom: 1px solid rgba(255,251,247,0.1);
}
.footer-tagline { font-size: 0.88rem; line-height: 1.75; color: rgba(255,251,247,0.72); margin-top: 16px; max-width: 320px; }
.footer-socials { display: flex; gap: 12px; margin-top: 20px; }
.social-link {
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255,251,247,0.08); color: rgba(255,251,247,0.6);
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: var(--transition);
}
.social-link:hover { background: var(--saffron); color: var(--white); }
.footer-heading { margin-block:0 0;
  font-family: 'Inter', var(--font-display); font-weight: 700; font-size: 0.85rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--white); margin-bottom: 16px;
}
.footer-link {
  display: block; font-size: 0.88rem; color: rgba(255,251,247,0.72);
  text-decoration: none; padding: 4px 0; transition: color var(--transition);
}
.footer-link:hover { color: var(--saffron-light); }
.footer-contact { font-size: 0.85rem; display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
/* Phone and e-mail are real tap-to-call / tap-to-mail links in a light colour, so phones (iOS/Android auto-links)
   can't paint them blue on the navy footer. */
.footer a.footer-contact-link, .footer a[href^="tel:"], .footer a[x-apple-data-detectors] { color: rgba(255,251,247,0.85) !important; text-decoration: none; }
.footer a.footer-contact-link:hover { color: var(--saffron-light) !important; text-decoration: underline; }
.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 0; font-size: 0.8rem; color: rgba(255,251,247,0.3);
}
.footer-bottom-links { display: flex; gap: 20px; font-size: 0.8rem; }
.footer-bottom-links a { color: rgba(255,251,247,0.72); text-decoration: none; }
.footer-bottom-links a:hover { color: var(--saffron-light); }

/* ── ANIMATIONS ─────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes scaleIn { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }

.animate-fade-up { animation: fadeUp 0.6s cubic-bezier(0.4,0,0.2,1) both; }
.animate-fade-in { animation: fadeIn 0.5s ease both; }
[data-delay="1"] { animation-delay: 0.1s; }
[data-delay="2"] { animation-delay: 0.2s; }
[data-delay="3"] { animation-delay: 0.3s; }
[data-delay="4"] { animation-delay: 0.4s; }
[data-delay="5"] { animation-delay: 0.5s; }

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 1024px) {
  .hostel-grid { grid-template-columns: repeat(2, 1fr); }
  .city-grid { --cols: 3; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .profile-layout { grid-template-columns: minmax(0, 1fr); }   /* minmax(0,..) lets the column shrink to the screen instead of being stretched by a wide table */
  .inquiry-card { position: static; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .amenity-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-actions { display: none; }
  .nav-inner { gap: 10px; }
  .nav-search { max-width: none; margin: 0 8px; }
  .hero-content { grid-template-columns: 1fr; gap: 40px; padding: 48px 0 56px; }
  .hostel-grid { grid-template-columns: 1fr; }
  .city-grid { --cols: 2; }
  .steps-grid { grid-template-columns: 1fr; }
  .testimonial-grid { --cols: 1; }
  .trust-row { flex-direction: column; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--sand-dark); }
  .filter-inner { flex-direction: column; align-items: stretch; }
  .filter-select { width: 100%; }
  .profile-gallery { grid-template-columns: 1fr; grid-template-rows: 240px; }
  .gallery-thumb { display: none; }
  .gallery-main { grid-row: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .owner-layout { grid-template-columns: 1fr; }
  .owner-sidebar { position: static; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { gap: 20px; }
  .section { padding: 64px 0; }
  .page-hero { padding: 100px 0 48px; }
}
@media (max-width: 480px) {
  .city-grid { --cols: 2; }
  .amenity-grid { grid-template-columns: 1fr 1fr; }
  .photo-grid { grid-template-columns: repeat(2, 1fr); }
}

/* HostelSansar brand footer social icons */
.footer .social-link,
.footer-socials .social-link {
  color: rgba(255,255,255,0.7) !important;
  transition: color 0.2s, transform 0.2s;
}
.footer .social-link:hover,
.footer-socials .social-link:hover {
  color: #F47A20 !important;
  transform: translateY(-2px);
}
.footer .social-link svg,
.footer-socials .social-link svg,
.footer .social-link i[data-lucide] {
  color: inherit !important;
}


/* ══════════════════════════════════════════════════════════════════════
   HOSTELSANSAR — UI/UX IMPROVEMENTS v9
   ══════════════════════════════════════════════════════════════════════ */

/* Skip to content (accessibility) */
.skip-link {
  position: absolute;
  top: 0;
  left: 16px;
  transform: translateY(-150%);
  background: #F47A20;
  color: #fff;
  padding: 8px 16px;
  border-radius: 0 0 8px 8px;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  z-index: 10000;
  transition: transform .2s;
  text-decoration: none;
}
.skip-link:focus { transform: translateY(0); }

/* Focus states (accessibility) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 2px solid #F47A20;
  outline-offset: 2px;
  border-radius: 4px;
}

/* CTA Button Hierarchy */
.btn-primary   { background:#F47A20 !important; color:var(--on-saffron) !important; border:none; }
.btn-primary:hover { background:#D96A10 !important; }
.btn-secondary { background:transparent !important; color:#0D2B45 !important; border:2px solid #0D2B45 !important; }
.btn-secondary:hover { background:#0D2B45 !important; color:#fff !important; }
.btn-ghost     { background:transparent !important; color:var(--saffron-ink) !important; border:1px solid #F47A20 !important; }
.btn-ghost:hover { background:#FEF3EA !important; }

/* ── Skeleton Loader ─────────────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #E4E8EC 25%, #F0F4F8 50%, #E4E8EC 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  border-radius: 8px;
}
@keyframes skeleton-shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position:  200% 0; }
}
.hostel-card.loading .hostel-card-img   { background:#E4E8EC; animation: skeleton-shimmer 1.4s infinite; background-size:200% 100%; }
.hostel-card.loading .hostel-card-title { height:18px; width:70%; border-radius:4px; }
.hostel-card.loading .hostel-card-city  { height:14px; width:40%; border-radius:4px; margin-top:6px; }

/* ── Filter Chips ────────────────────────────────────────────────── */
.filter-chip { transition: all .15s ease; }
.filter-chip:hover { transform: translateY(-1px); box-shadow: 0 2px 8px rgba(0,0,0,.1); }



/* ── Share Buttons ───────────────────────────────────────────────── */
.share-btn { transition: all .15s ease; }
.share-btn:hover { transform: translateY(-1px); box-shadow: 0 3px 10px rgba(0,0,0,.15); }

/* ── Profile Sidebar Sticky ──────────────────────────────────────── */
.profile-sidebar { position: sticky; top: 80px; align-self: start; }

/* ══════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — 768px (Tablet)
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {

  /* Touch targets: share buttons need real tap height on mobile (WCAG 2.1 min 44x44) */
  .share-btn { min-height: 44px; padding-top: 10px !important; padding-bottom: 10px !important; }

  /* Mobile hamburger */
  #nav-toggle { display: flex !important; }
  .nav-links, #nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    padding: 12px 16px 20px;
    box-shadow: 0 8px 30px rgba(0,0,0,.12);
    z-index: 999;
    gap: 4px;
    border-top: 2px solid #F47A20;
  }
  .nav-links.nav-open, #nav-menu.nav-open { display: flex; }
  .nav-links .nav-link, #nav-menu .nav-link { padding: 10px 8px; font-size: 0.95rem; }
  .nav-links .btn, #nav-menu .btn { margin-top: 8px; width: 100%; text-align: center; justify-content: center; }
  /* Account buttons (Portal Login / My Portal / Logout): the desktop copy hides on phones, so show the
     in-menu copy - it was hidden by default and nothing turned it back on. */
  #nav-menu .nav-menu-actions { display: flex; flex-direction: column; gap: 8px; width: 100%; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--sand-dark, #E8E2D9); }
  #nav-menu .nav-menu-actions .btn { margin-top: 0; min-height: 44px; }
  .nav { position: relative; flex-wrap: wrap; }

  /* Find Hostels / Cities submenus: stack inline within the mobile menu instead
     of floating absolutely - the desktop hover-panel layout doesn't work in a
     narrow stacked mobile menu, and tapping the button (not hovering) is what
     reveals these on mobile - see the JS click handler for .nav-drop-btn. */
  #nav-menu .nav-drop-btn { width: 100%; display: flex; justify-content: space-between; align-items: center; }
  #nav-menu .dropdown-menu {
    position: static; opacity: 1; visibility: visible; transform: none;
    display: none; box-shadow: none; border: none; background: var(--sand, #F7F5F2);
    margin: 2px 0 6px; padding: 4px; min-width: 0; max-height: 50vh; overflow-y: auto;
  }
  #nav-menu .nav-dropdown.dropdown-open .dropdown-menu { display: block; }

  /* Layout adjustments */
  .container { padding-left: 14px !important; padding-right: 14px !important; }
  .profile-grid, .hostel-profile-grid { grid-template-columns: 1fr !important; }
  .profile-sidebar { position: static !important; }

  /* Hero section */
  .hero { padding: 40px 16px 32px !important; }
  .hero-title { font-size: clamp(1.6rem, 6vw, 2.4rem) !important; }
  .hero-sub { font-size: 0.9rem !important; }
  .hero-ctas { flex-direction: column; align-items: center; gap: 10px !important; }
  .hero-ctas .btn { width: 100%; max-width: 280px; justify-content: center; }

  /* Hero search on mobile */
  .hero-search-form { flex-wrap: wrap; border-radius: 10px !important; }
  .hero-search-form input { width: 100%; border-bottom: 1px solid #E4E8EC; border-right: none !important; }
  .hero-search-form select { flex: 1; }
  .hero-search-form button { width: 100%; border-radius: 0 0 10px 10px !important; }

  /* Hostel cards */
  .hostel-grid { grid-template-columns: 1fr !important; gap: 14px !important; }
  .hostel-card { border-radius: 12px; }
  .hostel-card-img { height: 180px !important; }

  /* Filter bar */
  .filter-bar { flex-direction: column !important; gap: 8px !important; padding: 14px 12px !important; border-radius: 10px !important; position: static !important; top: auto !important; }
  .filter-group, .fb-group { width: 100% !important; }
  .filter-select, .fb-sel { width: 100% !important; }
  .filter-bar button[type=submit] { width: 100%; }

  /* City grid */
  .city-grid { --cols: 2 !important; --gap: 10px !important; }
  .city-card { padding: 14px 10px !important; }

  /* Stats */
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; }

  /* Blog */
  .blog-grid { grid-template-columns: 1fr !important; }

  /* Profile page */
  .profile-main { padding: 0 !important; }
  .profile-section { padding: 16px 0 !important; }
  .photo-gallery { grid-template-columns: repeat(2, 1fr) !important; gap: 8px !important; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr !important; gap: 24px !important; text-align: center; }
  .footer-heading { margin-top: 8px; margin-bottom: 14px !important; }
  .footer-link { padding: 7px 0 !important; font-size: 0.92rem !important; }
  .footer-socials { justify-content: center; margin-bottom: 4px; }
  .footer-contact { justify-content: center; }
  .footer-bottom { flex-direction: column !important; gap: 10px !important; text-align: center !important; padding: 24px 0 !important; }
  .footer-bottom-links { justify-content: center; flex-wrap: wrap; gap: 14px 20px !important; }
  .footer-socials { justify-content: center !important; }
  .footer-links { align-items: center !important; }


  /* Tables */
  table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* Forms */
  .form-grid { grid-template-columns: 1fr !important; }
  .inquiry-form input, .inquiry-form select, .inquiry-form textarea { font-size: 16px !important; }

  /* Hardcoded inline multi-column grids (about/contact/faq/hostel pages) */
  .rgrid { grid-template-columns: 1fr !important; gap: 24px !important; }
  .rgrid-sidebar { position: static !important; margin-bottom: 20px; }
}

/* ══════════════════════════════════════════════════════════════════════
   MOBILE RESPONSIVE — 480px (Phone)
   ══════════════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .hero-title { font-size: 1.5rem !important; }
  .city-grid  { --cols: 2 !important; }
  .stats-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .hostel-card-footer { flex-direction: column; align-items: flex-start; gap: 8px; }
  .hostel-card-footer .btn { width: 100%; text-align: center; justify-content: center; }
  .photo-gallery { grid-template-columns: 1fr 1fr !important; }
  .room-grid { grid-template-columns: 1fr !important; }
}

/* ══════════════════════════════════════════════════════════════════════
   DESKTOP ONLY — 1024px+
   ══════════════════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  #nav-toggle { display: none !important; }
  .hero-search-form select#hero-gender-select { display: block !important; }
}

/* Smooth image hover on cards */
.hostel-card-img img { transition: transform .4s ease; }
.hostel-card:hover .hostel-card-img img { transform: scale(1.04); }
.hostel-card { overflow: hidden; transition: box-shadow .2s, transform .2s; }
.hostel-card:hover { box-shadow: 0 8px 32px rgba(13,43,69,.12); transform: translateY(-2px); }

/* Gallery image zoom cursor */
.gallery-img { cursor: zoom-in; transition: transform .2s ease, opacity .2s; }
.gallery-img:hover { transform: scale(1.02); opacity: .92; }

/* Inquiry form improvements */
.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
  border-color: #F47A20 !important;
  box-shadow: 0 0 0 3px rgba(244,122,32,.12) !important;
}

/* Loading state for cards */
.hostel-card { position: relative; }

/* ── Hover-effect classes (replace inline onmouseover/onmouseout JS — CSP hardening) ── */
.hv-fade { transition: opacity .15s; }
.hv-fade:hover { opacity: .8; }


.hv-orange-btn:hover { background: #D96A10 !important; }

.hv-lift { transition: transform .15s, box-shadow .15s; }
.hv-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.hv-sand:hover { background: var(--sand) !important; }

.hv-faq-item:hover { background: var(--sand) !important; color: var(--saffron) !important; }

/* Mobile menu button: two icons, CSS swaps them (no JavaScript rewriting the button's contents) */
#nav-toggle .icon-close { display: none; }
#nav-toggle.is-open .icon-menu { display: none; }
#nav-toggle.is-open .icon-close { display: block; }

/* ══════════════════════════════════════════════════════════════════════
   COOKIE BANNER - compact on every device
   desktop: one line (about 48px) · phones: text + one row of buttons (under 90px)
   ══════════════════════════════════════════════════════════════════════ */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 8000; background: #0D2B45; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: nowrap;
  padding: 8px 24px calc(8px + env(safe-area-inset-bottom, 0px)); font: 400 0.8rem/1.35 'Inter', sans-serif;
  transition: transform .4s ease; box-shadow: 0 -2px 12px rgba(0,0,0,.18); }
.cookie-text { color: rgba(255,255,255,.88); min-width: 0; }
.cookie-text a { color: #F9A05A; text-decoration: underline; white-space: nowrap; }
.cookie-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.cookie-btn { height: 32px; padding: 0 14px; border-radius: 6px; font: 600 0.8rem/1 'Inter', sans-serif; cursor: pointer; white-space: nowrap; }
.cookie-btn-main { background: #F47A20; color: var(--on-saffron); border: 1px solid #F47A20; }
.cookie-btn-ghost { background: transparent; color: rgba(255,255,255,.85); border: 1px solid rgba(255,255,255,.35); }
.cookie-x { background: transparent; border: none; color: rgba(255,255,255,.6); font-size: 1.25rem; line-height: 1; cursor: pointer;
  width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.cookie-btn:focus-visible, .cookie-x:focus-visible { outline: 2px solid #F9A05A; outline-offset: 2px; }
@media (max-width: 640px) {
  .cookie-banner { flex-direction: column; align-items: stretch; gap: 6px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); font-size: 0.75rem; line-height: 1.3; }
  .cookie-text { text-align: center; }
  .cookie-actions { gap: 8px; }
  .cookie-btn { flex: 1; height: 34px; }
  .cookie-x { width: 34px; height: 34px; flex: 0 0 34px; }
}

/* ══════════════════════════════════════════════════════════════════════
   LISTING / CITY HUB blocks (counts line, browse-by-type lanes, FAQ, related links)
   ══════════════════════════════════════════════════════════════════════ */
.hub-counts { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 12px; font-size: 0.9rem; color: var(--stone); }
.hub-counts strong { color: var(--ink); font-weight: 700; }
.hub-band { background: #fff; border-bottom: 1px solid var(--sand-dark); padding: 18px 0; }
.hub-band-title { font-size: 0.82rem; font-weight: 700; color: var(--ink); margin: 0 0 10px; text-transform: uppercase; letter-spacing: .03em; }
.hub-lanes { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.hub-lane { border: 1px solid var(--sand-dark); border-radius: 12px; padding: 14px 16px; background: var(--sand, #F7F5F2); }
.hub-lane h2 { font-size: 0.98rem; font-weight: 700; color: var(--ink); margin: 0 0 4px; font-family: var(--font-display); }
.hub-lane p { font-size: 0.82rem; color: var(--stone); margin: 0 0 10px; line-height: 1.5; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 5px; background: #fff; color: var(--ink); padding: 6px 12px; border-radius: 20px;
  font-size: 0.8rem; font-weight: 600; text-decoration: none; border: 1px solid var(--sand-dark); }
.chip:hover { border-color: var(--saffron-ink); color: var(--saffron-ink); }
.chip span { color: var(--stone); font-weight: 500; }
.chip.is-current { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.is-current span { color: rgba(255,255,255,.7); }
.hub-faq { max-width: 820px; }
.hub-faq h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; color: var(--ink); margin: 0 0 14px; }
.hub-faq details { border-bottom: 1px solid var(--sand-dark); padding: 12px 0; }
.hub-faq summary { font-weight: 600; color: var(--ink); cursor: pointer; font-size: 0.95rem; }
.hub-faq details p { color: var(--stone); font-size: 0.9rem; line-height: 1.65; margin: 8px 0 0; }
.related-links { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 720px) { .hub-lanes { grid-template-columns: 1fr; } }

/* Filter bar: one "Filters" button on phones, the full bar on larger screens */
.filter-toggle { display: none; }
@media (max-width: 768px) {
  .filter-toggle { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 44px; padding: 0 12px; background: #fff; color: var(--ink, #1A1208);
    border: 1px solid var(--sand-dark, #E4E8EC); border-radius: 10px; font: 600 0.9rem/1 'Inter', sans-serif; cursor: pointer; }
  .filter-toggle-n { background: #F47A20; color: var(--on-saffron); border-radius: 999px; font-size: 0.72rem; padding: 2px 7px; }
  .filter-toggle-count { margin-left: auto; font-weight: 500; color: var(--stone, #6B7E8F); font-size: 0.82rem; }
  .filter-toggle-arrow { transition: transform .15s; }
  .filter-toggle.open .filter-toggle-arrow { transform: rotate(180deg); }
  .filter-inner:not(.open) { display: none !important; }
  .filter-inner.open { margin-top: 10px; }
}

/* Ads: one label style; Google units get reserved height so nothing jumps, and vanish when unfilled */
.ad-label{font-size:10.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--stone,#56687a);margin-bottom:4px}
.ad-slot-adsense{min-height:var(--ad-h,250px);max-width:100%;overflow:hidden}
.ad-slot-adsense ins.adsbygoogle{min-height:calc(var(--ad-h,250px) - 20px);max-width:100%}
@media(max-width:768px){.ad-slot-adsense{min-height:var(--ad-hm,100px)}.ad-slot-adsense ins.adsbygoogle{min-height:calc(var(--ad-hm,100px) - 20px)}}
.ad-slot-adsense:has(ins.adsbygoogle[data-ad-status="unfilled"]){display:none}

.hub-extra h2{font-size:1.15rem;margin:22px 0 10px;color:var(--ink)}.hub-extra h2:first-child{margin-top:0}
.hub-price{width:100%;max-width:640px;border-collapse:collapse;background:#fff;border-radius:8px;overflow:hidden;font-size:.9rem}
.hub-price th,.hub-price td{padding:10px 14px;text-align:left;border-bottom:1px solid var(--sand-dark)}.hub-price th{font-size:.75rem;text-transform:uppercase;letter-spacing:.05em;color:var(--stone)}
.hub-note{font-size:.8rem;color:var(--stone);margin-top:8px}.hub-links{margin:0;padding-left:18px;line-height:1.9}

.filter-select-fee{min-width:0;width:108px;padding-left:12px;padding-right:28px}
@media(min-width:769px){.filter-inner{gap:10px}}
@media(max-width:768px){.filter-select-fee{width:100%}}
.hub-links{list-style:none;padding-left:0}.hub-links a{color:var(--saffron-ink);font-weight:600;text-decoration:none}.hub-links a:hover{text-decoration:underline}

/* Menu items never wrap onto two lines; on mid-size screens they sit a little closer so "Hostel Marketplace" fits */
.nav-link { white-space: nowrap; }
@media (min-width: 769px) and (max-width: 1280px) {
  .nav-links { gap: 0; }
  .nav-link { padding: 8px 9px; font-size: 0.85rem; }
  .nav-search { margin: 0 10px !important; max-width: 210px !important; }
}
@media (min-width: 769px) and (max-width: 1040px) {
  .nav-search { max-width: 150px !important; }
  .nav-link { padding: 8px 7px; font-size: 0.82rem; }
}
@media (min-width: 769px) and (max-width: 960px) {
  .nav-search { display: none !important; }
  .nav-link { padding: 8px 6px; font-size: 0.8rem; }
}
@media (min-width: 769px) and (max-width: 860px) {
  .nav-link { padding: 8px 4px; font-size: 0.76rem; }
  .nav-actions .btn, .nav-inner > .btn { padding-left: 12px; padding-right: 12px; }
}

.section-dark .section-eyebrow { color: var(--saffron); }
.btn.disabled, .page-btn.disabled { opacity: 1; color: #6b6560; background: #ece8e3; border-color: #d9d3cc; }

/* ── Find-by-college strip: a quiet frosted bar that overlaps the bottom of the hero ── */
.college-strip{position:relative;z-index:5;margin-top:-30px;margin-bottom:8px}
.cs-bar{display:flex;align-items:center;gap:10px 14px;padding:10px 16px;border-radius:16px;
  background:rgba(255,255,255,.88);-webkit-backdrop-filter:blur(10px) saturate(1.1);backdrop-filter:blur(10px) saturate(1.1);
  border:1px solid rgba(228,232,236,.9);box-shadow:0 10px 28px rgba(13,43,69,.10)}
.cs-label{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;font-size:.78rem;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--stone)}
.cs-label .icon-xs{color:var(--saffron-ink)}
.cs-row{display:flex;gap:8px;list-style:none;margin:0;padding:2px;overflow-x:auto;scrollbar-width:none;-webkit-overflow-scrolling:touch}
.cs-row::-webkit-scrollbar{display:none}
.cs-colleges{flex:1 1 auto;min-width:0;-webkit-mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(to right,#000 calc(100% - 28px),transparent);padding-right:28px}
.cs-filters{flex:0 0 auto}
.cs-row li{flex:0 0 auto}
.cs-chip{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:0 13px;border-radius:99px;border:1px solid var(--sand-dark);background:#fff;
  color:var(--navy);font-size:.84rem;font-weight:600;white-space:nowrap;text-decoration:none;transition:border-color .15s,background .15s,color .15s}
.cs-chip:hover{border-color:var(--saffron);background:var(--saffron-pale);color:var(--saffron-ink)}
.cs-chip:focus-visible,.cs-all:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
.cs-quiet{background:transparent;color:var(--ink-soft);font-weight:500}
.cs-n{font-size:.72rem;font-weight:600;color:var(--stone);background:var(--sand);border-radius:99px;padding:1px 7px}
.cs-sep{flex:0 0 1px;align-self:stretch;margin:6px 0;background:var(--sand-dark)}
.cs-all{flex:0 0 auto;margin-left:auto;font-size:.84rem;font-weight:700;color:var(--saffron-ink);text-decoration:none;white-space:nowrap}
.cs-all:hover{text-decoration:underline}
@media (max-width:900px){
  .cs-bar{flex-wrap:wrap;padding:12px 12px 10px}
  .cs-label{flex:1 0 100%}
  .cs-colleges{flex:1 0 100%}
  .cs-sep{display:none}
  .cs-filters{flex:1 1 auto;min-width:0}
  .cs-chip{min-height:44px}
  .college-strip{margin-top:-22px}
}
@media (prefers-reduced-motion:reduce){.cs-chip{transition:none}}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

.blog-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:64px;align-items:start}
.blog-side{position:sticky;top:88px;min-width:0}
@media (max-width:900px){.blog-layout{grid-template-columns:minmax(0,1fr);gap:32px}.blog-side{position:static}}

/* Homepage "Top-rated hostels" header: title left, filter pills and one View all link right */
.top-head{display:flex;justify-content:space-between;align-items:center;gap:20px;flex-wrap:wrap;margin-bottom:28px}
.top-head .section-title{margin:0}
.top-pills{display:flex;align-items:center;gap:10px;flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding:2px 2px 4px;scrollbar-width:none}
.top-pills::-webkit-scrollbar{display:none}
.top-pill{flex:0 0 auto;display:inline-flex;align-items:center;min-height:44px;padding:0 22px;border-radius:999px;border:1px solid var(--sand-dark);background:#fff;color:var(--ink);font-weight:500;font-size:.98rem;text-decoration:none;white-space:nowrap;transition:border-color .15s,background .15s}
.top-pill:hover{border-color:var(--saffron);background:var(--saffron-pale)}
.top-pill[aria-current="true"]{background:var(--saffron-pale);border-color:var(--saffron);color:var(--saffron-ink)}
.top-pill:focus-visible,.top-all:focus-visible{outline:2px solid var(--navy);outline-offset:2px}
.top-all{flex:0 0 auto;margin-left:8px;font-weight:700;font-size:1.02rem;color:var(--saffron-ink);text-decoration:underline;text-underline-offset:3px;white-space:nowrap;display:inline-flex;align-items:center;min-height:44px}
@media (max-width:640px){.top-head{align-items:flex-start}.top-pills{width:100%}}

/* Comment avatar picker */
.av-pick{border:0;margin:0 0 14px;padding:0;min-width:0}
.av-pick legend{padding:0;margin-bottom:6px}
.av-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(56px,1fr));gap:8px;max-width:480px}
.av-opt{position:relative;display:block;cursor:pointer;line-height:0;border-radius:50%}
.av-opt input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.av-opt span{display:block;padding:3px;border:2px solid transparent;border-radius:50%}
.av-opt span svg{width:100%;height:auto}
.av-opt input:checked + span{border-color:var(--saffron)}
.av-opt input:focus-visible + span{outline:2px solid var(--navy);outline-offset:2px}
.av-opt:hover span{border-color:var(--sand-dark)}
.av-opt input:checked:hover + span{border-color:var(--saffron)}

[data-top-grid][hidden]{display:none!important}

/* ── Homepage "Tell us what you need" strip ── */
.help-strip{background:#fbf8f5;border-top:1px solid var(--sand-dark);padding:48px 0}
.help-wrap{display:flex;gap:56px;align-items:center}
.help-copy{flex:0 0 340px}
.help-kicker{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#8a3d03;margin-bottom:10px}
.help-copy h2{margin:0 0 12px;font-size:2rem;line-height:1.15;font-weight:800;letter-spacing:-.02em}
.help-copy p{margin:0;color:#5b5048;line-height:1.55}
.help-card{flex:1;min-width:0;background:#fff;border:1px solid #ece5de;border-radius:16px;padding:26px}
.help-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px 16px}
.help-grid .form-field{margin:0}
.help-span2{grid-column:span 2}
.help-phone{display:flex;gap:8px}.help-phone select{flex:0 0 200px;max-width:50%}.help-phone input{flex:1;min-width:0}
.help-hint{font-weight:400;color:#5b5048}
.help-go{display:flex;align-items:flex-end}.help-go .btn{width:100%}
.help-note{margin:12px 0 0;font-size:13px;color:#5b5048;line-height:1.5}
.help-errors{background:#FBEAEA;color:#8f2a20;border-radius:10px;padding:10px 14px;margin-bottom:14px;font-size:14px}
@media (max-width:900px){.help-wrap{flex-direction:column;align-items:stretch;gap:20px}.help-copy{flex:none}.help-copy h2{font-size:1.65rem}.help-card{padding:18px 16px}.help-grid{grid-template-columns:minmax(0,1fr)}.help-span2{grid-column:auto}.help-phone select{flex:0 0 150px}}

/* long country names in the phone code picker must never widen a form on small screens */
.form-grid-2>*,.form-field{min-width:0}
select[name="phone_cc"]{min-width:0;text-overflow:ellipsis}

/* Sticky contact bar on hostel pages, phones only. Sits above the cookie banner; the quick-action buttons move up to clear it. */
.m-cta { display: none; }
@media (max-width: 768px) {
  .m-cta { display: flex; gap: 8px; position: fixed; left: 0; right: 0; z-index: 790; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    bottom: var(--cookie-h, 0px); background: #fff; border-top: 1px solid rgba(13,43,69,.12); box-shadow: 0 -4px 16px rgba(13,43,69,.10);
    transition: transform .2s ease, bottom .3s ease; }
  .m-cta.is-hidden { transform: translateY(120%); }
  .m-cta .btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  .m-cta-main { flex: 1; }
  .m-cta-icon { flex: 0 0 48px; padding: 0; }
  body.has-mcta { padding-bottom: 72px; }
  body.has-mcta .fab-stack { bottom: calc(84px + var(--cookie-h, 0px) + env(safe-area-inset-bottom, 0px)); }
}

/* Ad pictures always fit their space: never wider or taller than the size shown in the admin panel
   (a bigger picture is scaled down and trimmed, a right-sized one is unchanged), and centered. */
.ad-slot .ad-img{max-width:var(--mw,100%);max-height:var(--mh,none);object-fit:cover;margin-left:auto;margin-right:auto}
@media (max-width:768px){.ad-slot .ad-img{max-width:var(--mwm,var(--mw,100%));max-height:var(--mhm,var(--mh,none))}}
