/* ============================================================
   World Cup Services — Main Stylesheet
   Modern, minimal, calm design
   ============================================================ */

/* ── Google Fonts (Inter + Cairo for Arabic) ── */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Cairo:wght@400;500;600;700;800&display=swap');

/* ── CSS Variables ── */
:root {
  --white:        #FFFFFF;
  --off-white:    #F8F7F4;
  --beige:        #F0EDE6;
  --beige-dark:   #E5E0D5;
  --blue:         #2B87C5;
  --blue-light:   #4A9FD4;
  --blue-pale:    #EAF4FB;
  --blue-hover:   #1E6FA8;
  --green:        #5AAB72;
  --green-light:  #E8F5EE;
  --green-pale:   #F0FAF3;
  --red:          #E05252;
  --red-pale:     #FEF0F0;
  --orange:       #F0894C;
  --orange-pale:  #FEF4EE;
  --gold:         #F5A623;
  --gold-pale:    #FEF8EC;

  --text-primary:   #1A1C2E;
  --text-secondary: #4A4E6A;
  --text-muted:     #8A8FAB;
  --text-light:     #B8BCCC;

  --border:         #E8E5DE;
  --border-focus:   #2B87C5;
  --shadow-sm:      0 1px 4px rgba(0,0,0,.05);
  --shadow:         0 4px 16px rgba(0,0,0,.07);
  --shadow-md:      0 8px 32px rgba(0,0,0,.09);
  --shadow-lg:      0 16px 48px rgba(0,0,0,.12);

  --radius-sm:   8px;
  --radius:      12px;
  --radius-lg:   16px;
  --radius-xl:   24px;
  --radius-full: 999px;

  --transition: .22s cubic-bezier(.4,0,.2,1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-ar: 'Cairo', 'Segoe UI', Tahoma, sans-serif;
}

/* ── RTL Arabic Font Override ── */
body.rtl { font-family: var(--font-ar); direction: rtl; }
body.rtl h1, body.rtl h2, body.rtl h3, body.rtl h4 { font-family: var(--font-ar); }

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  background: var(--off-white);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a  { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font); }
input, select, textarea { font-family: var(--font); }

/* ── Typography ── */
h1 { font-size: clamp(2rem, 5vw, 3.25rem); font-weight: 800; line-height: 1.15; letter-spacing: -.03em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; line-height: 1.25; letter-spacing: -.02em; }
h3 { font-size: 1.25rem; font-weight: 600; line-height: 1.3; }
h4 { font-size: 1.05rem; font-weight: 600; }
p  { color: var(--text-secondary); }

/* ── Layout helpers ── */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 1.25rem; }
.section    { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.flex       { display: flex; }
.flex-col   { flex-direction: column; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1  { gap: .5rem; }
.gap-2  { gap: 1rem; }
.gap-3  { gap: 1.5rem; }
.gap-4  { gap: 2rem; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.w-full      { width: 100%; }
.hidden      { display: none !important; }

/* ── Grid ── */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.5rem; border-radius: var(--radius-full);
  font-size: .9rem; font-weight: 600; transition: var(--transition);
  border: 2px solid transparent; white-space: nowrap;
}
.btn-primary {
  background: var(--blue); color: var(--white);
}
.btn-primary:hover { background: var(--blue-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(43,135,197,.35); }

.btn-outline {
  background: transparent; color: var(--blue); border-color: var(--blue);
}
.btn-outline:hover { background: var(--blue-pale); color: var(--blue); transform: translateY(-1px); }

/* Hero / dark-background outline button — stays readable on white hover */
.btn-outline-white {
  background: transparent;
  color: rgba(255,255,255,.9);
  border: 1.5px solid rgba(255,255,255,.4);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,.15);
  color: var(--white);
  border-color: rgba(255,255,255,.75);
  transform: translateY(-1px);
}

.btn-white {
  background: var(--white); color: var(--blue);
}
.btn-white:hover { background: var(--off-white); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent; color: var(--text-secondary);
}
.btn-ghost:hover { background: var(--beige); color: var(--text-primary); }

.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { background: #c93d3d; }
.btn-success { background: var(--green); color: var(--white); }
.btn-success:hover { background: #499960; }

.btn-sm { padding: .5rem 1rem; font-size: .82rem; }
.btn-lg { padding: .9rem 2rem; font-size: 1rem; }
.btn-icon { padding: .75rem; border-radius: var(--radius); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ── Badge ── */
.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .75rem; border-radius: var(--radius-full);
  font-size: .75rem; font-weight: 600;
}
.badge-blue   { background: var(--blue-pale);   color: var(--blue); }
.badge-green  { background: var(--green-light);  color: var(--green); }
.badge-orange { background: var(--orange-pale);  color: var(--orange); }
.badge-red    { background: var(--red-pale);     color: var(--red); }
.badge-gray   { background: var(--beige);        color: var(--text-secondary); }

/* ── Cards ── */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform var(--transition), box-shadow var(--transition);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-body  { padding: 1.25rem; }

/* ── Forms ── */
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-label {
  font-size: .85rem; font-weight: 500; color: var(--text-secondary);
}
.form-control {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius);
  font-size: .95rem; color: var(--text-primary);
  background: var(--white); transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--border-focus);
  box-shadow: 0 0 0 3px rgba(43,135,197,.12);
}
.form-control::placeholder { color: var(--text-light); }
textarea.form-control { resize: vertical; min-height: 120px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A8FAB' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; padding-right: 2.5rem; }
.form-hint  { font-size: .78rem; color: var(--text-muted); }
.form-error { font-size: .78rem; color: var(--red); }
.input-group { position: relative; }
.input-group .input-icon {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); pointer-events: none;
}
.input-group .form-control { padding-left: 2.75rem; }

/* ── Alerts ── */
.alert {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: 1rem 1.25rem; border-radius: var(--radius);
  font-size: .9rem; line-height: 1.5;
}
.alert-success { background: var(--green-pale); color: #2d7a48; border: 1px solid #b6e0c8; }
.alert-error   { background: var(--red-pale);   color: #a33030; border: 1px solid #f5c2c2; }
.alert-info    { background: var(--blue-pale);  color: #1a5d8a; border: 1px solid #b8dcf2; }
.alert-warning { background: var(--orange-pale); color: #8a4a1a; border: 1px solid #f5ceaa; }

/* ── Spinner / Loading ── */
.spinner {
  width: 2rem; height: 2rem;
  border: 2.5px solid var(--beige-dark);
  border-top-color: var(--blue);
  border-radius: 50%; animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.skeleton {
  background: linear-gradient(90deg, var(--beige) 25%, var(--beige-dark) 50%, var(--beige) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: var(--radius);
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* ── Divider ── */
.divider {
  display: flex; align-items: center; gap: 1rem;
  color: var(--text-light); font-size: .85rem;
}
.divider::before, .divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ════════════════════════════════════════════
   NAVBAR
   ════════════════════════════════════════════ */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
  /* Keep overflow:visible — lang-btn is inside the navbar but the
     panel itself is in <body>, so this is mainly for other dropdowns */
  overflow: visible;
}
.navbar.scrolled { box-shadow: var(--shadow); }

.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}

.navbar-logo {
  display: flex; align-items: center; gap: .65rem;
}
.navbar-logo-icon {
  width: 38px; height: 38px; background: var(--blue);
  border-radius: var(--radius); display: flex; align-items: center; justify-content: center;
}
.navbar-logo-icon svg { color: var(--white); }
.navbar-logo-text {
  font-size: 1.15rem; font-weight: 800;
  color: var(--text-primary); letter-spacing: -.02em;
}
.navbar-logo-text span { color: var(--blue); }

.navbar-nav {
  display: flex; align-items: center; gap: .25rem;
}
.navbar-nav a {
  padding: .5rem .85rem; border-radius: var(--radius-full);
  font-size: .88rem; font-weight: 500; color: var(--text-secondary);
  transition: all var(--transition);
}
.navbar-nav a:hover, .navbar-nav a.active {
  background: var(--blue-pale); color: var(--blue);
}

.navbar-actions { display: flex; align-items: center; gap: .75rem; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: .5rem;
  cursor: pointer;
}
.hamburger span {
  display: block; width: 22px; height: 2px;
  background: var(--text-primary); border-radius: 2px;
  transition: var(--transition);
}

/* ── Mobile menu ── */
.mobile-menu {
  display: none; position: fixed; inset: 68px 0 0 0;
  background: var(--white); z-index: 99;
  padding: 1.5rem; overflow-y: auto;
}
.mobile-menu.open { display: flex; flex-direction: column; gap: .25rem; animation: slideDown .22s ease; }
@keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } }
.mobile-menu a {
  padding: .9rem 1.25rem; border-radius: var(--radius);
  font-weight: 500; color: var(--text-secondary);
  transition: var(--transition);
}
.mobile-menu a:hover { background: var(--blue-pale); color: var(--blue); }
.mobile-menu .btn { margin-top: .5rem; justify-content: center; }

/* ════════════════════════════════════════════
   HERO SECTION
   Background set via PHP inline style.
   Filter & stats have been moved out; hero
   now contains only badge + heading + CTA.
   ════════════════════════════════════════════ */
.hero {
  /* Fallback gradient when no image found */
  background: linear-gradient(160deg, #0d1f3c 0%, #1a3464 50%, #0d2040 100%);
  padding: 7rem 0 6.5rem;
  min-height: 580px;
  position: relative;
  overflow: hidden;
}

/* Bottom-fade vignette — improves CTA readability without killing image */
.hero::after {
  content: '';
  position: absolute; inset: 0; z-index: 0;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 50%,
    rgba(0,0,0,.25) 100%
  );
}

.hero-inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  gap: 1.5rem;
  max-width: 780px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(255,255,255,.13);
  color: rgba(255,255,255,.95);
  padding: .45rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: .82rem; font-weight: 500;
  border: 1px solid rgba(255,255,255,.24);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  letter-spacing: .01em;
}
.hero-badge span {
  width: 7px; height: 7px; flex-shrink: 0;
  background: #5AAB72; border-radius: 50%;
  animation: pulse 2s ease infinite;
}
@keyframes pulse {
  0%  { transform:scale(1);   box-shadow: 0 0 0 0   rgba(90,171,114,.7); }
  60% { transform:scale(1.15); box-shadow: 0 0 0 7px rgba(90,171,114,0); }
  100%{ transform:scale(1);   box-shadow: 0 0 0 0   rgba(90,171,114,0); }
}

.hero h1 {
  color: var(--white);
  max-width: 700px;
  text-shadow: 0 2px 20px rgba(0,0,0,.35);
  margin: 0;
}
.hero h1 em { color: #7EC8E3; font-style: normal; }
.hero p {
  color: rgba(255,255,255,.80);
  font-size: 1.1rem;
  max-width: 500px;
  text-shadow: 0 1px 10px rgba(0,0,0,.25);
  line-height: 1.65;
  margin: 0;
}

.hero-actions {
  display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center;
  margin-top: .5rem;
}

@media (max-width: 860px) { .hero { padding: 5.5rem 0 5rem; } }
@media (max-width: 520px)  { .hero { padding: 4.5rem 0 4rem; min-height: auto; } }

/* ════════════════════════════════════════════
   STATS STRIP — single horizontal row
   Centered text layout (number · label · sub).
   No icons — clean and compact like hero stats.
   ════════════════════════════════════════════ */
.stats-section {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 0;
}

.stats-strip {
  display: flex;
  align-items: stretch;
}

/* Each stat: number centred on top, label + sub below */
.ss-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.5rem;
  gap: .18rem;
  cursor: default;
  transition: background .18s ease;
  min-width: 0;
}
.ss-item:hover { background: var(--off-white); }

/* Big coloured number */
.ss-num {
  display: block;
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -.05em;
  white-space: nowrap;
}

/* Main label */
.ss-lbl {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-top: .35rem;
  white-space: nowrap;
}

/* Subtitle / descriptor */
.ss-sub {
  display: block;
  font-size: .73rem;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Vertical divider between items */
.ss-sep {
  display: block;
  flex-shrink: 0;
  width: 1px;
  background: var(--border);
  align-self: stretch;
}

/* ── Tablet (≤ 760px): 2 × 2 grid ── */
@media (max-width: 760px) {
  .stats-strip { display: grid; grid-template-columns: 1fr 1fr; }
  .ss-sep { display: none; }
  .ss-item { border-bottom: 1px solid var(--border); padding: 1.6rem 1rem; }
  .ss-item:nth-child(odd) { border-right: 1px solid var(--border); }
  .ss-item:nth-last-child(1),
  .ss-item:nth-last-child(2) { border-bottom: none; }
  .ss-num { font-size: 2rem; }
}

/* ── Mobile (≤ 480px): tighter ── */
@media (max-width: 480px) {
  .ss-item { padding: 1.25rem .75rem; }
  .ss-num  { font-size: 1.75rem; }
  .ss-lbl  { font-size: .82rem; }
}

/* ── Search bar ── */
.search-bar {
  background: var(--white); border-radius: var(--radius-xl);
  padding: .75rem; box-shadow: var(--shadow-lg);
  display: grid; grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: .5rem; align-items: center;
  width: 100%; max-width: 860px;
}
.search-field {
  display: flex; flex-direction: column; padding: .5rem .75rem;
  border-radius: var(--radius); cursor: pointer;
  transition: background var(--transition);
}
.search-field:hover { background: var(--off-white); }
.search-field-label {
  font-size: .7rem; font-weight: 600; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .06em;
}
.search-field select, .search-field input {
  border: none; outline: none; font-size: .9rem;
  color: var(--text-primary); background: transparent;
  font-family: var(--font); padding: .15rem 0;
  -webkit-appearance: none;
}
.search-bar .btn { border-radius: var(--radius-lg); padding: .85rem 1.75rem; }

.search-divider { width: 1px; height: 36px; background: var(--border); }

/* ════════════════════════════════════════════
   LISTING CARDS
   ════════════════════════════════════════════ */
.listing-card {
  background: var(--white); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-sm);
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex; flex-direction: column;
}
.listing-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.listing-card-img {
  position: relative; overflow: hidden;
  aspect-ratio: 1/1; background: var(--beige);
}
.listing-card-img img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.listing-card:hover .listing-card-img img { transform: scale(1.04); }
.listing-card-img-placeholder {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--beige) 0%, var(--beige-dark) 100%);
}

.listing-card-type {
  position: absolute; top: .75rem; left: .75rem;
}
.listing-card-body {
  padding: 1.1rem 1.25rem; flex: 1; display: flex; flex-direction: column; gap: .5rem;
}
.listing-card-city {
  display: flex; align-items: center; gap: .35rem;
  font-size: .78rem; color: var(--text-muted); font-weight: 500;
}
.listing-card-title { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.listing-card-meta {
  display: flex; align-items: center; gap: 1rem;
  font-size: .8rem; color: var(--text-muted);
}
.listing-card-meta span { display: flex; align-items: center; gap: .3rem; }
.listing-card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.25rem; border-top: 1px solid var(--border);
  background: var(--off-white);
}
.listing-price { font-size: 1.15rem; font-weight: 700; color: var(--text-primary); }
.listing-price small { font-size: .72rem; color: var(--text-muted); font-weight: 400; }

/* ── Favorite Heart Button ── */
.fav-heart-btn {
  position: absolute; top: .65rem; right: .65rem;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,.92); border: none;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 2;
  transition: transform .18s, background .18s;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.fav-heart-btn:hover { transform: scale(1.12); background: #fff; }
.fav-heart-btn svg { stroke: var(--text-muted); fill: none; transition: stroke .18s, fill .18s; }
.fav-heart-btn.saved svg { stroke: #e05252; fill: #e05252; }
.fav-heart-btn:disabled { opacity: .6; pointer-events: none; }

/* ════════════════════════════════════════════
   SECTION HEADERS
   ════════════════════════════════════════════ */
.section-header { margin-bottom: 2.5rem; }
.section-header.centered { text-align: center; }
.section-label {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: .78rem; font-weight: 600; color: var(--blue);
  text-transform: uppercase; letter-spacing: .08em;
  margin-bottom: .5rem;
}
.section-label::before {
  content: ''; display: block; width: 18px; height: 2px; background: var(--blue); border-radius: 2px;
}
.section-header h2 { margin-bottom: .6rem; }
.section-header p  { font-size: 1rem; max-width: 520px; }
.section-header.centered p { margin: 0 auto; }

/* ════════════════════════════════════════════
   WHY CHOOSE US
   ════════════════════════════════════════════ */
.feature-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.75rem; display: flex; flex-direction: column; gap: .75rem;
  border: 1.5px solid var(--border); transition: all var(--transition);
}
.feature-card:hover { border-color: var(--blue-pale); box-shadow: var(--shadow); transform: translateY(-2px); }
.feature-icon {
  width: 52px; height: 52px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
}
.feature-card h3 { font-size: 1rem; }
.feature-card p  { font-size: .88rem; line-height: 1.6; }

/* ════════════════════════════════════════════
   HOW IT WORKS
   ════════════════════════════════════════════ */
.steps-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem; position: relative;
}
.steps-grid::before {
  content: ''; position: absolute; top: 30px; left: 10%; right: 10%;
  height: 1px; background: linear-gradient(90deg, transparent, var(--border-focus), transparent);
  z-index: 0;
}
.step-card { text-align: center; padding: 1.5rem 1rem; position: relative; z-index: 1; }
.step-number {
  width: 56px; height: 56px; margin: 0 auto .75rem;
  background: var(--blue); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; font-weight: 800;
  box-shadow: 0 6px 20px rgba(43,135,197,.3);
}
.step-card h3 { font-size: .95rem; margin-bottom: .4rem; }
.step-card p  { font-size: .83rem; }

/* ════════════════════════════════════════════
   TESTIMONIALS
   ════════════════════════════════════════════ */
.testimonial-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 1.75rem;
  border: 1.5px solid var(--border); display: flex; flex-direction: column; gap: 1rem;
}
.testimonial-stars { display: flex; gap: .2rem; align-items: center; color: var(--gold); }
.testimonial-text  { font-size: .92rem; color: var(--text-secondary); line-height: 1.7; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; margin-top: auto; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue-pale); color: var(--blue);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .9rem; flex-shrink: 0;
}
.testimonial-author-name  { font-size: .88rem; font-weight: 600; }
.testimonial-author-label { font-size: .75rem; color: var(--text-muted); }

/* ════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════ */
.footer {
  background: var(--text-primary); color: rgba(255,255,255,.65);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 3rem;
  padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand { display: flex; flex-direction: column; gap: 1rem; }
.footer-brand p { font-size: .88rem; line-height: 1.7; max-width: 280px; }
.footer-logo { display: flex; align-items: center; gap: .6rem; }
.footer-logo-icon {
  width: 34px; height: 34px; background: var(--blue);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
}
.footer-logo-text { font-size: 1.05rem; font-weight: 800; color: var(--white); letter-spacing: -.02em; }
.footer-logo-text span { color: var(--blue-light); }

.footer-col h4 { font-size: .85rem; font-weight: 600; color: var(--white); margin-bottom: 1rem; letter-spacing: .05em; text-transform: uppercase; }
.footer-col a  { display: block; padding: .3rem 0; font-size: .88rem; transition: color var(--transition); }
.footer-col a:hover { color: var(--white); }

.footer-bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 1.75rem; font-size: .8rem; flex-wrap: wrap; gap: .75rem;
}
.footer-bottom a { transition: color var(--transition); }
.footer-bottom a:hover { color: var(--white); }
.footer-socials { display: flex; gap: .75rem; }
.footer-social-btn {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,.08); border: none;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65); transition: all var(--transition);
}
.footer-social-btn:hover { background: var(--blue); color: var(--white); }

/* ════════════════════════════════════════════
   LISTINGS PAGE
   ════════════════════════════════════════════ */
.page-header {
  background: linear-gradient(135deg, #1A2B4A 0%, #1E3F6B 100%);
  padding: 2.75rem 0;
}
.page-header h1 { font-size: clamp(1.6rem, 4vw, 2.25rem); color: var(--white); }
.page-header p  { color: rgba(255,255,255,.65); font-size: .95rem; margin-top: .35rem; }

.filters-panel {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem;
  position: sticky; top: 80px; display: flex; flex-direction: column; gap: 1.25rem;
}
.filters-panel h3 { font-size: .9rem; font-weight: 600; display: flex; align-items: center; gap: .5rem; }
.filter-group { display: flex; flex-direction: column; gap: .5rem; }
.filter-group-label { font-size: .75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: .06em; }

.price-range { display: flex; gap: .5rem; align-items: center; }
.price-range .form-control { flex: 1; padding: .6rem .75rem; font-size: .85rem; }

.amenity-chip-group { display: flex; flex-wrap: wrap; gap: .4rem; }
.amenity-chip {
  padding: .3rem .7rem; border-radius: var(--radius-full);
  font-size: .75rem; font-weight: 500;
  border: 1.5px solid var(--border); color: var(--text-secondary);
  background: var(--off-white); cursor: pointer; transition: all var(--transition);
}
.amenity-chip:hover, .amenity-chip.active {
  border-color: var(--blue); background: var(--blue-pale); color: var(--blue);
}

.listings-layout { display: grid; grid-template-columns: 260px 1fr; gap: 1.75rem; align-items: start; }

.listings-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 1.25rem; flex-wrap: wrap; gap: .75rem;
}
.listings-count { font-size: .9rem; color: var(--text-muted); }
.listings-count strong { color: var(--text-primary); }

.listings-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

/* ── Pagination ── */
.pagination { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: 2.5rem; }
.page-item {
  min-width: 38px; height: 38px; display: flex; align-items: center; justify-content: center;
  border-radius: var(--radius); font-size: .88rem; font-weight: 500;
  color: var(--text-secondary); transition: all var(--transition);
}
.page-item:hover { background: var(--beige); color: var(--text-primary); }
.page-item.active { background: var(--blue); color: var(--white); box-shadow: 0 4px 12px rgba(43,135,197,.3); }
.page-item.disabled { opacity: .4; pointer-events: none; }

/* ── Empty state ── */
.empty-state {
  text-align: center; padding: 4rem 2rem;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.empty-state-icon {
  width: 80px; height: 80px; background: var(--beige); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted);
}
.empty-state h3 { color: var(--text-primary); }
.empty-state p { font-size: .9rem; max-width: 340px; }

/* ════════════════════════════════════════════
   LISTING DETAIL
   ════════════════════════════════════════════ */
.gallery-grid {
  display: grid; gap: .5rem;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto;
  border-radius: var(--radius-lg); overflow: hidden;
}
.gallery-main { aspect-ratio: 4/3; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-main:hover img { transform: scale(1.03); }

.gallery-side { display: grid; gap: .5rem; }
.gallery-thumb { aspect-ratio: 4/3; overflow: hidden; position: relative; }
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gallery-thumb:hover img { transform: scale(1.05); }
.gallery-thumb-more {
  position: absolute; inset: 0; background: rgba(0,0,0,.5);
  display: flex; align-items: center; justify-content: center;
  color: var(--white); font-size: 1.1rem; font-weight: 700;
}

.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; margin-top: 2rem; }

.amenity-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--off-white); border: 1.5px solid var(--border);
  padding: .45rem .9rem; border-radius: var(--radius-full);
  font-size: .82rem; color: var(--text-secondary); font-weight: 500;
}
.amenities-grid { display: flex; flex-wrap: wrap; gap: .5rem; }

.contact-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  position: sticky; top: 80px; display: flex; flex-direction: column; gap: 1.25rem;
}
.contact-price { font-size: 2rem; font-weight: 800; color: var(--text-primary); line-height: 1; }
.contact-price small { font-size: .8rem; font-weight: 400; color: var(--text-muted); }

.owner-info { display: flex; align-items: center; gap: .75rem; padding: .75rem; background: var(--off-white); border-radius: var(--radius); }
.owner-avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--blue-pale);
  color: var(--blue); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1rem; flex-shrink: 0;
}
.owner-name  { font-weight: 600; font-size: .92rem; }
.owner-label { font-size: .75rem; color: var(--text-muted); }

/* ════════════════════════════════════════════
   ADD LISTING PAGE
   ════════════════════════════════════════════ */
.add-listing-layout { display: grid; grid-template-columns: 1fr 300px; gap: 2rem; align-items: start; }

.form-card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 1.5px solid var(--border); overflow: hidden;
}
.form-card-header {
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border);
  background: var(--off-white);
}
.form-card-header h3 { display: flex; align-items: center; gap: .5rem; }
.form-card-body { padding: 1.5rem; display: flex; flex-direction: column; gap: 1.25rem; }

.grid-2-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }

.upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 2.5rem 1.5rem; text-align: center;
  background: var(--off-white); cursor: pointer; transition: all var(--transition);
}
.upload-zone:hover, .upload-zone.dragover {
  border-color: var(--blue); background: var(--blue-pale);
}
.upload-zone input { display: none; }
.upload-zone-icon { color: var(--text-muted); margin: 0 auto .75rem; }
.upload-zone p { font-size: .88rem; }
.upload-zone p strong { color: var(--blue); }
.upload-zone small { font-size: .75rem; color: var(--text-muted); }

.image-preview-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin-top: .75rem; }
.image-preview-item { position: relative; aspect-ratio: 1; border-radius: var(--radius-sm); overflow: hidden; }
.image-preview-item img { width: 100%; height: 100%; object-fit: cover; }
.image-preview-remove {
  position: absolute; top: .25rem; right: .25rem; width: 22px; height: 22px;
  background: rgba(0,0,0,.6); color: var(--white); border: none;
  border-radius: 50%; font-size: .7rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.add-listing-tips { display: flex; flex-direction: column; gap: 1rem; }
.tip-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem;
  display: flex; gap: .75rem;
}
.tip-icon {
  width: 36px; height: 36px; border-radius: var(--radius-sm); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.tip-card h4 { font-size: .85rem; margin-bottom: .2rem; }
.tip-card p  { font-size: .8rem; }

/* ════════════════════════════════════════════
   ADMIN
   ════════════════════════════════════════════ */
.admin-layout { display: flex; min-height: 100vh; background: var(--off-white); }
.admin-sidebar {
  width: 240px; background: #1A1C2E; flex-shrink: 0;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-sidebar-logo {
  padding: 1.5rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex; align-items: center; gap: .6rem;
}
.admin-sidebar-logo-icon {
  width: 32px; height: 32px; background: var(--blue);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
}
.admin-sidebar-logo-text { font-size: .95rem; font-weight: 800; color: var(--white); letter-spacing: -.01em; }
.admin-sidebar-logo-text span { color: var(--blue-light); }

.admin-nav { padding: 1rem .75rem; display: flex; flex-direction: column; gap: .15rem; flex: 1; }
.admin-nav a {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem 1rem; border-radius: var(--radius);
  font-size: .85rem; font-weight: 500; color: rgba(255,255,255,.5);
  transition: all var(--transition);
}
.admin-nav a:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); }
.admin-nav a.active { background: var(--blue); color: var(--white); }
.admin-nav a .badge { margin-left: auto; }

.admin-main { flex: 1; display: flex; flex-direction: column; overflow: hidden; }
.admin-topbar {
  background: var(--white); border-bottom: 1px solid var(--border);
  padding: 0 1.5rem; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
}
.admin-topbar h2 { font-size: 1.05rem; }
.admin-content { flex: 1; padding: 1.75rem; overflow-y: auto; }

.stat-card {
  background: var(--white); border-radius: var(--radius-lg);
  padding: 1.4rem 1.5rem; display: flex; align-items: flex-start;
  gap: 1rem; border: 1.5px solid var(--border); transition: box-shadow var(--transition);
}
.stat-card:hover { box-shadow: var(--shadow); }
.stat-icon {
  width: 48px; height: 48px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.stat-body { flex: 1; }
.stat-value { font-size: 1.85rem; font-weight: 800; line-height: 1; color: var(--text-primary); }
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: .3rem; }
.stat-change { font-size: .75rem; margin-top: .25rem; }
.stat-change.up   { color: var(--green); }
.stat-change.down { color: var(--red); }

.data-table { width: 100%; border-collapse: collapse; font-size: .88rem; }
.data-table th {
  text-align: left; padding: .75rem 1rem;
  background: var(--off-white); color: var(--text-muted);
  font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em;
  border-bottom: 2px solid var(--border);
}
.data-table th:first-child { border-radius: var(--radius) 0 0 0; }
.data-table th:last-child  { border-radius: 0 var(--radius) 0 0; }
.data-table td {
  padding: .85rem 1rem; border-bottom: 1px solid var(--border);
  vertical-align: middle; color: var(--text-secondary);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--off-white); }
.data-table .actions { display: flex; gap: .4rem; }

.table-img {
  width: 48px; height: 48px; border-radius: var(--radius-sm);
  object-fit: cover; background: var(--beige);
}

/* Admin login */
.admin-login-page {
  min-height: 100vh; background: #1A1C2E;
  display: flex; align-items: center; justify-content: center; padding: 1.5rem;
}
.admin-login-card {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 2.5rem; width: 100%; max-width: 400px;
  box-shadow: 0 25px 60px rgba(0,0,0,.3);
}
.admin-login-logo {
  text-align: center; margin-bottom: 2rem;
}
.admin-login-logo-icon {
  width: 52px; height: 52px; background: var(--blue); border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center; margin-bottom: .75rem;
}
.admin-login-logo h2 { font-size: 1.35rem; }
.admin-login-logo p  { font-size: .85rem; color: var(--text-muted); }

/* ════════════════════════════════════════════
   BREADCRUMB
   ════════════════════════════════════════════ */
.breadcrumb {
  display: flex; align-items: center; gap: .4rem;
  font-size: .82rem; color: var(--text-muted); padding: 1rem 0;
}
.breadcrumb a:hover { color: var(--blue); }
.breadcrumb .sep { color: var(--text-light); }

/* ════════════════════════════════════════════
   CITY PILLS
   ════════════════════════════════════════════ */
.city-pills { display: flex; gap: .5rem; flex-wrap: wrap; }
.city-pill {
  padding: .45rem 1rem; border-radius: var(--radius-full);
  font-size: .82rem; font-weight: 500;
  background: var(--beige); color: var(--text-secondary);
  border: 1.5px solid var(--border); transition: all var(--transition);
}
.city-pill:hover, .city-pill.active {
  background: var(--blue); color: var(--white); border-color: var(--blue);
  box-shadow: 0 4px 12px rgba(43,135,197,.25);
}

/* ════════════════════════════════════════════
   CTA SECTION
   ════════════════════════════════════════════ */
.cta-section {
  background: linear-gradient(135deg, #1A2B4A 0%, #234F80 100%);
  border-radius: var(--radius-xl); padding: 3.5rem 2rem;
  text-align: center; color: var(--white); position: relative; overflow: hidden;
}
.cta-section h2 { color: var(--white); }
.cta-section p  { color: rgba(255,255,255,.7); margin: .75rem auto 2rem; max-width: 460px; }
.cta-section .btn-white { box-shadow: 0 6px 20px rgba(0,0,0,.2); }

/* ════════════════════════════════════════════
   NOTIFICATION TOAST
   ════════════════════════════════════════════ */
.toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  display: flex; flex-direction: column; gap: .5rem;
}
.toast {
  background: var(--white); border-radius: var(--radius);
  padding: .9rem 1.25rem; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: .75rem;
  font-size: .88rem; min-width: 280px; max-width: 380px;
  border-left: 3px solid var(--blue);
  animation: toastIn .3s cubic-bezier(.34,1.56,.64,1);
}
.toast.success { border-color: var(--green); }
.toast.error   { border-color: var(--red); }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
.toast-dismiss { margin-left: auto; background: none; border: none; color: var(--text-muted); font-size: 1rem; }

/* ════════════════════════════════════════════
   ANIMATIONS
   ════════════════════════════════════════════ */
.fade-in { animation: fadeIn .5s ease forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.stagger > * { opacity: 0; animation: fadeIn .5s ease forwards; }
.stagger > *:nth-child(1) { animation-delay: .05s; }
.stagger > *:nth-child(2) { animation-delay: .10s; }
.stagger > *:nth-child(3) { animation-delay: .15s; }
.stagger > *:nth-child(4) { animation-delay: .20s; }
.stagger > *:nth-child(5) { animation-delay: .25s; }
.stagger > *:nth-child(6) { animation-delay: .30s; }

/* Intersection observer reveal */
.reveal { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ════════════════════════════════════════════
   RESPONSIVE
   ════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .listings-layout  { grid-template-columns: 220px 1fr; }
  .listings-grid    { grid-template-columns: repeat(2, 1fr); }
  .footer-grid      { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .steps-grid       { grid-template-columns: repeat(2, 1fr); }
  .steps-grid::before { display: none; }
  .grid-4           { grid-template-columns: repeat(2, 1fr); }
  .add-listing-layout { grid-template-columns: 1fr; }
  .add-listing-tips { display: grid; grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 860px) {
  .navbar-nav    { display: none; }
  .navbar-actions .btn { display: none; }
  .hamburger     { display: flex; }
  .hero { padding: 3.5rem 0 3rem; }
  .search-bar    {
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius-lg);
  }
  .search-divider { display: none; }
  .search-bar .btn { grid-column: 1 / -1; }
  .listings-layout { grid-template-columns: 1fr; }
  .filters-panel { position: static; }
  .detail-layout { grid-template-columns: 1fr; }
  .contact-card  { position: static; }
  .gallery-grid  { grid-template-columns: 1fr; }
  .gallery-side  { grid-template-columns: repeat(3, 1fr); }
  .admin-sidebar { display: none; }
  .admin-layout  { flex-direction: column; }
}

@media (max-width: 640px) {
  h1 { font-size: 1.9rem; }
  .section    { padding: 3rem 0; }
  .section-sm { padding: 2rem 0; }
  .search-bar { grid-template-columns: 1fr; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .listings-grid { grid-template-columns: 1fr; }
  .grid-2-form   { grid-template-columns: 1fr; }
  .hero-stats    { gap: 1.5rem; }
  .steps-grid    { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .add-listing-tips { grid-template-columns: 1fr; }
  .cta-section { padding: 2.5rem 1.25rem; border-radius: var(--radius-lg); }
  .hero-actions  { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { justify-content: center; }
  .image-preview-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ════════════════════════════════════════════
   LOGO IMAGE
   ════════════════════════════════════════════ */
.navbar-logo-img {
  height: 42px;
  width: auto;
  object-fit: contain;
  border-radius: var(--radius-sm);
  display: block;
  flex-shrink: 0;
}
/* Logo text next to image — hide on very small screens to save space */
@media (max-width: 640px) {
  .navbar-logo-img { height: 34px; }
  .navbar-logo .navbar-logo-text { display: none; }
}
/* Footer logo text colour overrides (footer is dark background) */
.footer-logo .footer-logo-text { color: var(--white); }
.footer-logo img { flex-shrink: 0; }

/* ════════════════════════════════════════════════════════════
   LANGUAGE SWITCHER
   ─────────────────────────────────────────────────────────
   Panel and backdrop are hidden via style="display:none" in
   HTML — immune to CSS cache/load failures.
   JS toggles style.display directly (no CSS class dependency).
   ════════════════════════════════════════════════════════════ */

/* ── Button wrapper ── */
.lang-switcher { display: flex; align-items: center; }

/* ── Trigger button ─────────────────────────────────────────
   Pill shape: [globe] [flag] [name] [chevron]
   ─────────────────────────────────────────────────────────── */
#lang-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px 7px 9px;
  background: #ffffff;
  border: 1.5px solid #dedad2;
  border-radius: 999px;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: #1a1c2e;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1;
  user-select: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.15s ease, border-color 0.15s ease,
              color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 1px 3px rgba(0,0,0,0.07), 0 1px 8px rgba(0,0,0,0.04);
}
#lang-btn:hover {
  background: #eaf4fb;
  border-color: #2b87c5;
  color: #2b87c5;
  box-shadow: 0 2px 12px rgba(43,135,197,0.20);
}
/* Active/open state — JS adds class .lsw-open */
#lang-btn.lsw-open {
  background: #eaf4fb;
  border-color: #2b87c5;
  color: #2b87c5;
  box-shadow: 0 0 0 3px rgba(43,135,197,0.18), 0 2px 10px rgba(43,135,197,0.15);
}

/* Button sub-elements */
.lang-globe  { color: #8a8fab; flex-shrink: 0; }
.lang-flag   { font-size: 1.05rem; line-height: 1; flex-shrink: 0; }
.lang-name   { font-size: 13px; font-weight: 600; max-width: 80px;
               overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lang-chevron {
  color: #8a8fab;
  flex-shrink: 0;
  margin-left: 1px;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}
#lang-btn.lsw-open .lang-chevron { transform: rotate(180deg); }

/* ── Backdrop — invisible on desktop, dimmed on mobile ────────
   Managed by JS (style.display toggle), not CSS classes.
   ─────────────────────────────────────────────────────────── */
#lang-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: transparent;
  cursor: default;
  -webkit-tap-highlight-color: transparent;
  /* display:none set inline in HTML — JS sets display:block on open */
  transition: opacity .2s ease;
}

/* ── Floating panel ──────────────────────────────────────────
   position:fixed coordinates calculated by JS on open.
   display:none set inline in HTML — JS sets display:block.
   CSS animation plays automatically when element is rendered.
   ─────────────────────────────────────────────────────────── */
#lang-panel {
  position: fixed;
  z-index: 9999;
  min-width: 215px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.09);
  border-radius: 16px;
  padding: 6px;
  box-shadow:
    0 1px 3px  rgba(0,0,0,0.06),
    0 8px 24px rgba(0,0,0,0.10),
    0 24px 56px rgba(0,0,0,0.12);
  /* Animation runs every time display goes none → block */
  animation: lp-appear 0.20s cubic-bezier(0.34, 1.56, 0.64, 1);
  /* Fallback coords — JS immediately overrides these on open */
  top: 76px;
  right: 16px;
  left: auto;
}

@keyframes lp-appear {
  from { opacity: 0; transform: translateY(-10px) scale(0.95); }
  to   { opacity: 1; transform: translateY(0)     scale(1);    }
}

/* ── Panel header row ── */
.lp-header {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px 9px;
  border-bottom: 1px solid #ece9e2;
  margin-bottom: 4px;
  font-size: 10.5px;
  font-weight: 700;
  color: #9a9fb8;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

/* ── Language row ── */
.lp-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: #3a3e5a;
  text-decoration: none;
  transition: background 0.13s ease, color 0.13s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  cursor: pointer;
}
.lp-item:hover { background: #eef6fc; color: #1e72a8; }
.lp-item:active { background: #d9eef8; }

/* Active / selected language */
.lp-active {
  background: #2b87c5;
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(43,135,197,0.28);
}
.lp-active:hover { background: #1e72a8; color: #ffffff; }

/* Row sub-elements */
.lp-flag { font-size: 1.2rem; line-height: 1; flex-shrink: 0; }
.lp-name { flex: 1; }
.lp-code {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #9a9fb8;
  background: #f0ede6;
  padding: 2px 6px;
  border-radius: 4px;
}
.lp-active .lp-code { display: none; }
.lp-check { flex-shrink: 0; color: rgba(255,255,255,0.95); }

/* ── Mobile menu language grid ── */
.mobile-lang-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: .3rem; padding: 0 .5rem;
}
.mobile-lang-btn {
  display: flex; align-items: center; gap: .45rem;
  padding: .55rem .75rem; border-radius: var(--radius);
  font-size: .83rem; font-weight: 500;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  background: var(--off-white);
  transition: all .15s;
  text-decoration: none;
}
.mobile-lang-btn:hover,
.mobile-lang-btn.active {
  background: var(--blue); color: var(--white); border-color: var(--blue);
}

/* ── RTL overrides ── */
body.rtl .navbar-actions { flex-direction: row-reverse; }
body.rtl .toast-container { right: auto; left: 1.5rem; }
body.rtl .toast { border-left: none; border-right: 3px solid var(--blue); }
body.rtl .toast.success { border-right-color: var(--green); }
body.rtl .toast.error   { border-right-color: var(--red); }
body.rtl .breadcrumb    { flex-direction: row-reverse; }
body.rtl .section-label { flex-direction: row-reverse; }
body.rtl .section-label::before { display: none; }
body.rtl .section-label::after  { content:''; display:block; width:18px; height:2px; background:var(--blue); border-radius:2px; }
body.rtl .listing-card-city { flex-direction: row-reverse; }
body.rtl .listing-card-meta { flex-direction: row-reverse; }
body.rtl .admin-sidebar { order: 2; }
body.rtl .admin-layout  { flex-direction: row-reverse; }
body.rtl .footer-grid   { direction: rtl; }
body.rtl .search-bar    { direction: rtl; }

/* ════════════════════════════════════════════
   HERO SEARCH / FILTER BAR
   ─────────────────────────────────────────────
   Desktop  (> 860px) : single pill row — CSS Grid
   Tablet   (≤ 860px) : 2-col card grid
   Mobile   (≤ 520px) : 1-col stacked card

   Grid approach instead of flex avoids the
   flex-wrap + calc() bugs across browsers.
   ════════════════════════════════════════════ */

.hero-search-wrap {
  width: 100%;
  max-width: 930px;
  margin-top: .5rem;
}

/* ── Desktop pill ────────────────────────────
   Columns: field | 1px | field | 1px | field | 1px | field | clear-btn | search-btn
   The 1px separator columns hold .sb-sep spans.
   ─────────────────────────────────────────── */
.search-bar-mid {
  display: grid;
  grid-template-columns: 1fr 1px 1fr 1px 1fr 1px 1fr auto auto;
  grid-template-rows: 1fr;
  align-items: center;
  background: rgba(255,255,255,.98);
  border-radius: 999px;
  padding: 5px;
  box-shadow:
    0 2px 6px  rgba(0,0,0,.1),
    0 8px 24px rgba(0,0,0,.16),
    0 20px 50px rgba(0,0,0,.16);
  border: 1px solid rgba(255,255,255,.5);
  gap: 0;
}

/* ── Each filter field ── */
.sb-field {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: .72rem 1.2rem;
  border-radius: 994px;   /* stays "inside" the 999px pill */
  cursor: pointer;
  min-width: 0;
  transition: background .15s ease;
}
.sb-field:hover       { background: rgba(0,0,0,.04); }
.sb-field:focus-within { background: var(--blue-pale); }

/* ── Label (small caps above the control) ── */
.sb-label {
  display: block;
  font-size: .57rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-primary);
  margin-bottom: .22rem;
  white-space: nowrap;
  line-height: 1;
  pointer-events: none;
}

/* ── Select + number input ── */
.sb-field select,
.sb-field input[type="number"] {
  width: 100%;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0;
  cursor: pointer;
  line-height: 1.4;
  /* Remove native appearance cross-browser */
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.sb-field input[type="number"]::placeholder { color: var(--text-light); font-weight: 400; }
/* Hide number spinners */
.sb-field input[type="number"]::-webkit-inner-spin-button,
.sb-field input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.sb-field input[type="number"] { -moz-appearance: textfield; }

/* ── 1px column separator ── */
.sb-sep {
  display: block;
  width: 1px;
  height: 28px;
  background: rgba(0,0,0,.1);
  justify-self: center;
}

/* ── Clear button ──────────────────────────
   Always in grid flow (so no layout shift).
   Invisible when no field has a value;
   shown by JS via .visible class.
   ─────────────────────────────────────────
   On tablet/mobile this button is hidden via
   display:none — field "Any" resets happen
   through the select default option.
   ─────────────────────────────────────────*/
.sb-clear {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--text-muted);
  cursor: pointer;
  margin: 0 3px;
  flex-shrink: 0;
  /* invisible (but keeps its grid column width) */
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, background .15s, color .15s, border-color .15s;
}
.sb-clear.visible {
  opacity: 1;
  pointer-events: auto;
}
.sb-clear:hover { background: var(--red-pale); border-color: var(--red); color: var(--red); }

/* ── Search / submit button ── */
.sb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .88rem 1.7rem;
  border-radius: 994px;
  font-family: var(--font);
  font-size: .88rem;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: .01em;
  border: none;
  cursor: pointer;
  background: var(--blue);
  color: var(--white);
  box-shadow: 0 2px 10px rgba(43,135,197,.38);
  transition: background .16s, box-shadow .16s;
  flex-shrink: 0;
}
.sb-btn:hover {
  background: var(--blue-hover);
  box-shadow: 0 4px 16px rgba(43,135,197,.5);
  transform: none;   /* override .btn-primary:hover translateY */
}
.sb-btn:disabled {
  opacity: .7;
  cursor: not-allowed;
  transform: none;
}

/* ════════════════════════════════════════════
   TABLET  ≤ 860px
   Switches from pill to a 2-column card grid.
   No flex-wrap + calc() — pure CSS Grid.
   ════════════════════════════════════════════ */
@media (max-width: 860px) {
  .hero-search-wrap { margin-top: .25rem; }

  .search-bar-mid {
    /* 2-col card grid */
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;   /* rows: fields row, fields row, button row */
    border-radius: var(--radius-xl);
    padding: .75rem;
    gap: .5rem;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
  }

  /* Hide separators — they're only for the pill layout */
  .sb-sep   { display: none; }
  /* Hide clear button on tablet — too complex to place in card grid */
  .sb-clear { display: none; }

  .sb-field {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    padding: .72rem 1rem;
    background: var(--white);
    transition: border-color .15s, background .15s;
  }
  .sb-field:hover       { background: var(--blue-pale); border-color: var(--blue-light); }
  .sb-field:focus-within { background: var(--blue-pale); border-color: var(--blue); }

  /* Search button spans both columns */
  .sb-btn {
    grid-column: 1 / -1;
    border-radius: var(--radius-lg);
    padding: .92rem 1.5rem;
    font-size: .9rem;
  }
}

/* ════════════════════════════════════════════
   MOBILE  ≤ 520px
   Switch to 1-column stacked layout.
   ════════════════════════════════════════════ */
@media (max-width: 520px) {
  .search-bar-mid {
    grid-template-columns: 1fr;
  }
  .sb-btn { grid-column: 1; }
}

/* ════════════════════════════════════════════
   POLICY PAGES — Layout helpers (legacy kept)
   ════════════════════════════════════════════ */
.policy-date-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: rgba(255,255,255,.12); border-radius: var(--radius-full);
  padding: .3rem .85rem; font-size: .75rem; color: rgba(255,255,255,.7);
  margin-top: .6rem;
}

/* ── Policy section/role cards defined at bottom of file ── */
.policy-section-num {
  width: 30px; height: 30px; background: var(--blue); color: var(--white);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800; flex-shrink: 0;
}
.policy-role-title {
  display: flex; align-items: center; gap: .65rem;
  font-size: 1rem; font-weight: 700; margin-bottom: .75rem;
}

/* ── Navbar actions RTL ── */
@media (max-width: 860px) {
  .navbar-actions .lang-switcher { display: flex; }
}

/* ── Detail & booking base (extended at bottom of file) ── */
.booking-divider { height: 1px; background: var(--border); margin: 1rem 0; }
.amenity-item {
  display: flex; align-items: center; gap: .6rem;
  padding: .65rem .85rem; background: var(--off-white);
  border-radius: var(--radius); font-size: .85rem;
  color: var(--text-secondary); font-weight: 500;
}
.amenity-item svg { color: var(--green); flex-shrink: 0; }
.host-terms-box.required-check { border-color: var(--blue); background: var(--blue-pale); }

/* ════════════════════════════════════════════
   LISTING DETAIL — New gallery & booking classes
   ════════════════════════════════════════════ */
.detail-main-title {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  font-weight: 800; line-height: 1.2;
  letter-spacing: -.02em; margin-bottom: .3rem;
}
.detail-meta-row {
  display: flex; align-items: center; gap: 1.1rem;
  flex-wrap: wrap; font-size: .87rem;
  color: var(--text-secondary); margin-top: .4rem;
}
.detail-meta-row span {
  display: flex; align-items: center; gap: .35rem;
}
.detail-price-badge {
  text-align: right; flex-shrink: 0;
  background: var(--blue-pale); border-radius: var(--radius-lg);
  padding: .85rem 1.25rem; border: 1.5px solid rgba(43,135,197,.18);
}
.detail-price-num {
  font-size: 2rem; font-weight: 800; line-height: 1;
  color: var(--blue);
}
.detail-price-per {
  font-size: .78rem; color: var(--text-muted); margin-top: .2rem;
}

/* Gallery redesigned */
.detail-gallery {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: .5rem;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 460px;
  margin-bottom: 2rem;
}
.detail-gallery-main {
  position: relative; overflow: hidden; cursor: pointer;
  height: 100%;
}
.detail-gallery-main img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .5s ease;
}
.detail-gallery-main:hover img { transform: scale(1.03); }
.detail-gallery-count {
  position: absolute; bottom: .85rem; right: .85rem;
  background: rgba(0,0,0,.55); backdrop-filter: blur(6px);
  color: white; font-size: .78rem; font-weight: 600;
  padding: .35rem .75rem; border-radius: var(--radius);
  display: flex; align-items: center; gap: .35rem;
}
.detail-gallery-side {
  display: grid; grid-template-rows: repeat(4, 1fr); gap: .5rem;
}
.detail-gallery-thumb {
  overflow: hidden; position: relative; cursor: pointer;
}
.detail-gallery-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s ease;
}
.detail-gallery-thumb:hover img { transform: scale(1.07); }
.gallery-thumb-more {
  position: absolute; inset: 0; background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem; font-weight: 700;
}

/* Info cells */
.detail-info-cell {
  display: flex; align-items: center; gap: .75rem;
  padding: .9rem; background: var(--off-white);
  border-radius: var(--radius); border: 1.5px solid var(--border);
}
.detail-info-icon {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.detail-info-label {
  font-size: .7rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: .07em; color: var(--text-muted); margin-bottom: .1rem;
}
.detail-info-value {
  font-size: .9rem; font-weight: 600; color: var(--text-primary);
}

/* Description text */
.detail-description {
  color: var(--text-secondary); line-height: 1.9;
  font-size: .95rem; white-space: pre-line;
}

/* Booking card improvements */
.booking-price-num {
  font-size: 2.1rem; font-weight: 800;
  color: var(--text-primary); line-height: 1;
}
.booking-price-per {
  font-size: .8rem; color: var(--text-muted);
  font-weight: 400;
}
.booking-price-note {
  font-size: .82rem; color: var(--text-muted);
  margin: .3rem 0 1rem;
}
.booking-no-payment {
  text-align: center; font-size: .76rem;
  color: var(--text-muted); margin-top: 1rem;
  padding-top: 1rem; border-top: 1px solid var(--border);
}

@media (max-width: 860px) {
  .detail-gallery { grid-template-columns: 1fr; height: 280px; }
  .detail-gallery-side { display: none; }
  .booking-card { position: static; }
}
@media (max-width: 640px) {
  .detail-price-badge { display: none; }
  .detail-title-row { flex-direction: column; }
}

/* ════════════════════════════════════════════
   POLICY PAGES — New layout (hero full-width)
   ════════════════════════════════════════════ */
.policy-wrap { padding: 0 0 4rem; }

.policy-hero-card {
  background: linear-gradient(135deg, #1A2B4A 0%, #1E3F6B 60%, #0f2d55 100%);
  padding: 3rem 0 2.5rem;
  margin-bottom: 0;
  color: var(--white);
}

.policy-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  align-items: start;
}

.policy-toc {
  position: sticky; top: 90px;
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem 1.25rem;
  margin-bottom: 0;
}
.policy-toc nav {
  display: flex; flex-direction: column; gap: .15rem;
}
.policy-toc nav a {
  display: block; font-size: .83rem; font-weight: 500;
  color: var(--text-secondary); padding: .4rem .6rem;
  border-radius: var(--radius-sm); transition: all var(--transition);
  line-height: 1.4;
}
.policy-toc nav a:hover {
  color: var(--blue); background: var(--blue-pale);
}

.policy-content { min-width: 0; }

.policy-section-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem;
  margin-bottom: 1rem;
}
.policy-section-card h2 {
  font-size: 1.05rem; font-weight: 700; color: var(--text-primary);
  margin-bottom: .85rem; display: flex; align-items: center; gap: .5rem;
  border: none; padding: 0; letter-spacing: 0;
}
.policy-section-card h3 {
  font-size: .95rem; font-weight: 700; color: var(--text-primary);
  margin-bottom: .6rem;
}
.policy-section-card p {
  font-size: .88rem; color: var(--text-secondary);
  line-height: 1.85; margin-bottom: .65rem;
}
.policy-section-card p:last-child { margin-bottom: 0; }
.policy-section-card ul {
  padding: 0; list-style: none;
  display: flex; flex-direction: column; gap: .4rem;
  margin-bottom: .5rem;
}
.policy-section-card li {
  display: flex; align-items: flex-start; gap: .6rem;
  font-size: .88rem; color: var(--text-secondary);
  line-height: 1.75; padding-left: 0;
}
.policy-section-card li::before {
  content: '✓'; color: var(--blue); font-weight: 700;
  font-size: .8rem; margin-top: .15rem; flex-shrink: 0;
}
body.rtl .policy-section-card li { flex-direction: row-reverse; text-align: right; }
body.rtl .policy-section-card li::before { margin-top: .15rem; }

/* Policy role cards (for Terms page) */
.policy-roles-row {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.25rem; margin-bottom: 1rem;
}
.policy-role-card {
  border-radius: var(--radius-xl); padding: 1.5rem;
  border: 2px solid;
  display: flex; flex-direction: column; gap: .75rem;
}
.policy-role-card.tenant {
  background: linear-gradient(160deg, #f0f8ff 0%, #e8f4fb 100%);
  border-color: var(--blue);
}
.policy-role-card.host {
  background: linear-gradient(160deg, #f0faf3 0%, #e8f5ee 100%);
  border-color: var(--green);
}
.policy-role-header {
  display: flex; align-items: center; gap: .85rem;
  margin-bottom: .25rem;
}
.policy-role-icon {
  width: 44px; height: 44px; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.policy-role-header h2 {
  font-size: 1.05rem; margin: 0; border: none;
  letter-spacing: 0; line-height: 1.3;
}
.policy-role-card .policy-section-card {
  background: rgba(255,255,255,.7);
  border: none; margin-bottom: 0;
  padding: 1rem 1.1rem;
}
.policy-role-card .policy-section-card h3 {
  font-size: .9rem; margin-bottom: .5rem;
}
.policy-role-card .policy-section-card li {
  font-size: .85rem;
}

@media (max-width: 960px) {
  .policy-layout { grid-template-columns: 1fr; }
  .policy-toc { position: static; display: none; }
  .policy-roles-row { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .policy-hero-card { padding: 2rem 0; }
}

/* ════════════════════════════════════════════
   AUTH PAGES (login / register)
   ════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  background: var(--off-white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}
.auth-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  width: 100%;
  max-width: 460px;
  box-shadow: var(--shadow-md);
}
.auth-logo { text-align: center; margin-bottom: 2rem; }
.auth-logo-icon {
  width: 56px; height: 56px; border-radius: var(--radius);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: .75rem;
}
.auth-logo h2 { font-size: 1.4rem; color: var(--text-primary); margin-bottom: .25rem; }
.auth-logo p  { font-size: .9rem;  color: var(--text-muted); }

/* Step progress wizard */
.step-progress {
  display: flex; margin-bottom: 2rem;
  border-radius: var(--radius); overflow: hidden;
  border: 1.5px solid var(--border);
}
.step-item {
  flex: 1; text-align: center; padding: .6rem .25rem;
  font-size: .72rem; font-weight: 600;
  color: var(--text-muted); background: var(--off-white);
  border-right: 1.5px solid var(--border);
  transition: all .2s;
}
.step-item:last-child { border-right: none; }
.step-item.active { background: var(--blue); color: #fff; }
.step-item.done   { background: var(--green-light); color: var(--green); }
.step-num { display: block; font-size: 1rem; font-weight: 700; margin-bottom: .1rem; }

/* Password strength bar */
.pw-strength {
  height: 4px; border-radius: 2px;
  margin-top: .4rem; transition: all .3s;
  background: var(--border);
}
.pw-strength[data-level="1"] { background: var(--red);    width: 25%; }
.pw-strength[data-level="2"] { background: var(--orange); width: 50%; }
.pw-strength[data-level="3"] { background: var(--gold);   width: 75%; }
.pw-strength[data-level="4"] { background: var(--green);  width: 100%; }

/* Doc upload zone */
.doc-upload-zone {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 2rem; text-align: center; cursor: pointer; transition: all .2s;
  display: block;
}
.doc-upload-zone:hover { border-color: var(--blue); background: var(--blue-pale); }
.doc-upload-zone p { font-size: .85rem; color: var(--text-muted); margin: 0; }
.doc-upload-zone strong { color: var(--blue); }

/* Payout section */
.payout-fields {
  padding: 1.25rem; background: var(--off-white);
  border-radius: var(--radius); border: 1.5px solid var(--border);
}

/* ════════════════════════════════════════════
   OWNER / TENANT DASHBOARD
   ════════════════════════════════════════════ */
.dash-page    { min-height: 100vh; background: var(--off-white); }
.dash-header  { background: var(--white); border-bottom: 1.5px solid var(--border); padding: 1rem 0; }
.dash-header-inner {
  max-width: 1100px; margin: 0 auto; padding: 0 1.5rem;
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
}
.dash-body    { max-width: 1100px; margin: 0 auto; padding: 2rem 1.5rem; }

.dash-welcome {
  border-radius: var(--radius-xl); padding: 2rem;
  margin-bottom: 1.75rem; position: relative; overflow: hidden;
  color: white;
}
.dash-welcome::before {
  content: ''; position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  background: rgba(255,255,255,.07); border-radius: 50%;
}
.dash-welcome h2 { font-size: 1.5rem; margin-bottom: .35rem; }
.dash-welcome p  { opacity: .85; font-size: .9rem; margin: 0; }

.dash-section { margin-bottom: 2rem; }
.dash-section-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 1rem;
}

.listing-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; transition: box-shadow .2s;
}
.listing-card:hover { box-shadow: var(--shadow-md); }
.listing-card-img {
  width: 100px; min-height: 80px; object-fit: cover;
  flex-shrink: 0; background: var(--beige);
  display: flex; align-items: center; justify-content: center;
}
.listing-card-body { padding: .9rem 1rem; flex: 1; }
.listing-card-title { font-weight: 600; font-size: .95rem; margin-bottom: .25rem; }
.listing-card-meta  { font-size: .8rem; color: var(--text-muted); }

.booking-card {
  background: var(--white); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
  display: flex; gap: 1.25rem; align-items: flex-start;
  transition: box-shadow .2s;
}
.booking-card:hover { box-shadow: var(--shadow); }
.booking-card-img {
  width: 80px; height: 72px; border-radius: var(--radius);
  flex-shrink: 0; background: var(--beige);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.booking-card-img img { width: 100%; height: 100%; object-fit: cover; }

.status-pill {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .85rem; border-radius: var(--radius-full);
  font-size: .8rem; font-weight: 600; margin-top: .75rem;
}

/* Pending/status notice */
.pending-notice {
  background: var(--orange-pale);
  border: 1.5px solid #f5d0a0;
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  display: flex; gap: 1rem; align-items: flex-start;
  margin-bottom: 1.75rem;
}

@media (max-width: 640px) {
  .listing-card { flex-direction: column; }
  .listing-card-img { width: 100%; height: 140px; }
  .booking-card { flex-direction: column; }
  .booking-card-img { width: 100%; height: 120px; }
  .auth-card { padding: 1.75rem 1.25rem; }
}

/* ════════════════════════════════════════════
   NAVBAR ACCOUNT DROPDOWN
   ════════════════════════════════════════════ */
.navbar-account-menu { position: relative; }

#acct-btn {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: 7px 12px; background: var(--white);
  border: 1.5px solid var(--border); border-radius: var(--radius-full);
  font-size: 13.5px; font-weight: 600; color: var(--text-primary);
  cursor: pointer; transition: all .15s;
  box-shadow: 0 1px 3px rgba(0,0,0,.07);
}
#acct-btn:hover  { background: var(--blue-pale); border-color: var(--blue); color: var(--blue); }
#acct-btn.open   { background: var(--blue-pale); border-color: var(--blue); color: var(--blue);
                   box-shadow: 0 0 0 3px rgba(43,135,197,.15); }
#acct-btn.open svg:last-child { transform: rotate(180deg); }
#acct-btn svg:last-child { transition: transform .2s; }

#acct-panel {
  position: fixed; z-index: 9999;
  min-width: 230px; background: var(--white);
  border: 1px solid rgba(0,0,0,.09); border-radius: var(--radius-lg);
  padding: 6px; box-shadow: 0 2px 8px rgba(0,0,0,.06), 0 12px 32px rgba(0,0,0,.12);
  animation: lp-appear .18s cubic-bezier(.34,1.56,.64,1);
}

.acct-panel-section { padding: 4px 0; }
.acct-panel-label {
  font-size: .68rem; font-weight: 700; letter-spacing: .07em;
  color: var(--text-muted); text-transform: uppercase;
  padding: 5px 12px 4px;
}
.acct-panel-item {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px; border-radius: 9px;
  font-size: .88rem; font-weight: 500; color: var(--text-secondary);
  text-decoration: none; transition: background .12s, color .12s;
}
.acct-panel-item:hover { background: var(--blue-pale); color: var(--blue); }
.acct-panel-item svg  { flex-shrink: 0; color: var(--text-muted); }
.acct-panel-item:hover svg { color: var(--blue); }

.acct-panel-item-highlight {
  background: var(--blue); color: var(--white) !important; font-weight: 600;
  margin-top: 2px;
}
.acct-panel-item-highlight:hover { background: var(--blue-hover) !important; }
.acct-panel-item-highlight svg { color: var(--white) !important; }

.acct-panel-divider {
  height: 1px; background: var(--border);
  margin: 4px 8px;
}

/* ════════════════════════════════════════════════════════════════
   MOBILE-FIRST APP EXPERIENCE
   Complete mobile optimization — touch targets, spacing, app feel
   ════════════════════════════════════════════════════════════════ */

/* ── Global mobile body padding (for bottom nav) ── */
@media (max-width: 768px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
  body.no-bottom-nav { padding-bottom: 0; }

  /* Better base touch typography */
  html { font-size: 15px; }

  /* Smoother momentum scrolling on iOS */
  html, body { -webkit-overflow-scrolling: touch; }

  /* Better tap highlights */
  a, button { -webkit-tap-highlight-color: transparent; }

  /* Container padding on mobile */
  .container { padding: 0 1rem; }

  /* Section spacing tighter on mobile */
  .section    { padding: 2.5rem 0; }
  .section-sm { padding: 1.75rem 0; }

  /* Typography scale for mobile */
  h1 { font-size: clamp(1.7rem, 6.5vw, 2.25rem); letter-spacing: -.025em; }
  h2 { font-size: clamp(1.25rem, 4.5vw, 1.75rem); }
  h3 { font-size: 1.1rem; }
}

/* ── Touch-friendly tap targets (min 44×44px) ── */
@media (max-width: 768px) {
  .btn        { min-height: 44px; padding-top: .65rem; padding-bottom: .65rem; }
  .btn-sm     { min-height: 38px; }
  .btn-lg     { min-height: 52px; font-size: 1rem; }
  .form-control { min-height: 46px; font-size: 16px; } /* 16px prevents iOS zoom */
  select.form-control { min-height: 46px; font-size: 16px; }
  textarea.form-control { min-height: auto; font-size: 16px; }
}

/* ── Navbar mobile improvements ── */
@media (max-width: 768px) {
  .navbar-inner { padding: 0 1rem; }
  .navbar-logo-text { font-size: .8rem; }
  .navbar-logo-img  { height: 34px; }
}

/* ── Listing cards — better mobile layout ── */
@media (max-width: 640px) {
  .listings-grid { grid-template-columns: 1fr !important; gap: .85rem; }
  .listing-card-img-wrap { height: 200px; }
  .listing-card-body { padding: .9rem; }
  .listing-card-title { font-size: 1rem; }
}

/* ── Hero section mobile ── */
@media (max-width: 640px) {
  .hero { padding: 3.5rem 0 2.5rem; min-height: 0; }
  .hero-content { text-align: center; padding: 0 .5rem; }
  .hero h1 { font-size: clamp(1.65rem, 7vw, 2rem); margin-bottom: .6rem; }
  .hero p   { font-size: .9rem; margin-bottom: 1.25rem; }
}

/* ── Search bar mobile ── */
@media (max-width: 640px) {
  .search-bar-mid { gap: .6rem; padding: .85rem; border-radius: var(--radius-lg); }
  .sb-field label { font-size: .67rem; }
  .sb-btn { padding: .9rem; font-size: .9rem; }
}

/* ── Smooth card press effect on mobile ── */
@media (hover: none) and (pointer: coarse) {
  .listing-card:active  { transform: scale(.98); transition: transform .12s; }
  .btn:active           { transform: scale(.96); transition: transform .1s; }
  .stat-card:active     { transform: scale(.98); }
}

/* ════════════════════════════════════════════════════════════════
   BOTTOM MOBILE NAVIGATION BAR  v2
   Fixed bottom app-nav — only on mobile ≤ 768px.

   Design principles:
   • All 5 tabs are equal flex children — no floating/translateY tricks
   • Center "+" tab has a filled blue pill icon to stand out
   • touch-action:manipulation on every link = instant tap, no delay
   • pointer-events auto + cursor pointer ensure taps always register
   • Safe-area support for iPhone notch/home-indicator
   ════════════════════════════════════════════════════════════════ */

.mobile-bottom-nav {
  display: none;                /* desktop hidden — shown via @media below */
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 500;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(24px) saturate(200%);
  -webkit-backdrop-filter: blur(24px) saturate(200%);
  border-top: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 -2px 20px rgba(0,0,0,.07);
  /* Safe area: reserve space below nav for home indicator */
  padding: 0 0 env(safe-area-inset-bottom, 0px);
}

@media (max-width: 768px) {
  .mobile-bottom-nav { display: flex; align-items: stretch; }
}

/* Each tab link */
.mbn-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: .6rem;
  font-weight: 600;
  letter-spacing: .025em;
  padding: 8px 2px 10px;
  cursor: pointer;
  pointer-events: auto;
  touch-action: manipulation;        /* eliminates 300ms iOS tap delay */
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  position: relative;
  transition: color .15s ease;
  min-height: 56px;
}

/* Tap feedback — shrink icon, not entire item */
.mbn-item:active .mbn-icon { transform: scale(.84); }

/* Icon container */
.mbn-icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
  transition: background .15s ease, transform .15s ease;
}
.mbn-icon svg { transition: stroke .15s ease; }

/* ── Active (current page) state ── */
.mbn-item.mbn-active               { color: var(--blue); }
.mbn-item.mbn-active .mbn-icon     { background: var(--blue-pale); }
.mbn-item.mbn-active .mbn-icon svg { stroke: var(--blue); }

/* ── Center "List / Add" tab — blue pill ── */
.mbn-item.mbn-center .mbn-icon {
  width: 52px;
  height: 34px;
  border-radius: 17px;
  background: var(--blue);
  box-shadow: 0 4px 14px rgba(43,135,197,.45);
  transition: background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.mbn-item.mbn-center .mbn-icon svg { stroke: #ffffff; }
.mbn-item.mbn-center              { color: var(--blue); font-weight: 700; }
.mbn-item.mbn-center:active .mbn-icon {
  transform: scale(.88);
  box-shadow: 0 2px 8px rgba(43,135,197,.35);
}
/* Keep blue pill on active page too */
.mbn-item.mbn-center.mbn-active .mbn-icon {
  background: var(--blue-hover);
}

/* ── Notification badge dot ── */
.mbn-badge {
  position: absolute;
  top: 6px; right: calc(50% - 18px);
  width: 7px; height: 7px;
  background: var(--red);
  border-radius: 50%;
  border: 1.5px solid white;
  pointer-events: none;
}

/* ── Profile avatar (when logged in) ── */
.mbn-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--blue);
  color: white;
  font-size: .62rem;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.mbn-item.mbn-active .mbn-avatar {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* ── Hide on admin pages ── */
.admin-layout ~ .mobile-bottom-nav,
body.admin-body .mobile-bottom-nav { display: none !important; }

/* ════════════════════════════════════════════════════════════════
   MOBILE PAGE IMPROVEMENTS
   ════════════════════════════════════════════════════════════════ */

/* Page header mobile */
@media (max-width: 640px) {
  .page-header { padding: 2rem 0 1.5rem; }
  .page-header h1 { font-size: 1.5rem; }
  .page-header .breadcrumb { font-size: .75rem; margin-bottom: .4rem; }
}

/* Listing detail mobile */
@media (max-width: 768px) {
  .detail-layout { grid-template-columns: 1fr !important; }
  .detail-gallery { height: 240px; }
  .booking-card { position: static !important; top: auto !important; }
}

/* Auth cards mobile */
@media (max-width: 480px) {
  .auth-card { border-radius: var(--radius-lg); margin: .5rem; padding: 1.5rem 1.25rem; }
  .auth-page  { align-items: flex-start; padding-top: 1rem; }
  .step-item  { font-size: .62rem; padding: .5rem .15rem; }
  .step-num   { font-size: .85rem; }
}

/* Better mobile table alternatives */
@media (max-width: 540px) {
  /* Stack table rows as cards on small screens */
  .data-table thead { display: none; }
  .data-table tr    { display: flex; flex-direction: column; padding: .75rem 1rem; border-bottom: 1px solid var(--border); gap: .3rem; }
  .data-table td    { border: none !important; padding: 0; font-size: .85rem; }
  .data-table tr:last-child { border-bottom: none; }
}

/* ════════════════════════════════════════════════════════════════
   SMOOTH TRANSITIONS — App-like feel
   ════════════════════════════════════════════════════════════════ */
@media (prefers-reduced-motion: no-preference) {
  .listing-card, .stat-card, .booking-card, .btn { will-change: transform; }

  /* Fade-in for page sections */
  .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity .45s ease, transform .45s ease;
  }
  .reveal.visible {
    opacity: 1;
    transform: none;
  }
}

/* ════════════════════════════════════════════════════════════════
   LANGUAGE SWITCHER — MOBILE BOTTOM SHEET
   On mobile ≤768px, the panel becomes a slide-up bottom sheet.
   JS adds/removes .lp-open class; CSS handles the animation.
   Z-index 9999 sits above bottom nav (500) and backdrop (9990).
   ════════════════════════════════════════════════════════════════ */
@media (max-width: 768px) {
  /* Dimmed backdrop on mobile */
  #lang-backdrop {
    background: rgba(0,0,0,.48) !important;
  }

  /* Panel becomes full-width bottom sheet */
  #lang-panel {
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: unset;
    border-radius: 24px 24px 0 0;
    max-height: 78vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Reserve space for bottom nav bar */
    padding-bottom: calc(62px + env(safe-area-inset-bottom, 0px));
    /* Disable the desktop keyframe animation */
    animation: none !important;
    /* Start hidden below viewport */
    transform: translateY(100%);
    transition: transform .3s cubic-bezier(.32,1,.56,1);
  }

  /* Open state — JS adds this class */
  #lang-panel.lp-open {
    transform: translateY(0) !important;
  }

  /* Bigger touch targets inside panel on mobile */
  .lp-item {
    padding: 14px 16px;
    font-size: 15px;
  }
  .lp-flag { font-size: 1.4rem; }
  .lp-header {
    padding: 14px 16px 12px;
    font-size: 11px;
  }

  /* Visual drag handle at top of sheet */
  #lang-panel::before {
    content: '';
    display: block;
    width: 40px;
    height: 4px;
    background: #d0ccc4;
    border-radius: 2px;
    margin: 10px auto 6px;
    flex-shrink: 0;
  }
}
