/* ============================================================
   مساحتي · Brand-Banner Theme
   Final design system — matches the brand banner aesthetic
   ============================================================ */

/* ---------- 1. RESET ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { min-height: 100vh; line-height: 1.5; }
img, picture, svg { display: block; max-width: 100%; }
button { background: none; border: 0; cursor: pointer; font: inherit; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
ol, ul { list-style: none; }
h1, h2, h3, h4, h5, h6 { line-height: 1.15; font-weight: 800; }

/* ---------- 2. TOKENS ---------- */
:root {
  --c-navy:       #1B3A6D;
  --c-navy-700:   #15305A;
  --c-blue:       #2563EB;
  --c-blue-soft:  #DBEAFE;
  --c-blue-pale:  #EFF6FF;
  --c-teal:       #0EA5A4;
  --c-green:      #16A34A;
  --c-green-soft: #DCFCE7;
  --c-warning:    #F59E0B;
  --c-warning-bg: #FEF3C7;
  --c-warning-fg: #92400E;
  --c-danger:     #DC2626;
  --c-danger-bg:  #FEE2E2;
  --c-danger-fg:  #991B1B;
  --c-success-bg: #DCFCE7;
  --c-success-fg: #15803D;
  --c-info-bg:    #DBEAFE;
  --c-info-fg:    #1E40AF;

  --c-ink:        #0B1F3F;
  --c-text:       #1F2937;
  --c-text-2:     #4B5563;
  --c-text-3:     #6B7280;
  --c-text-4:     #9CA3AF;
  --c-line:       #E5E7EB;
  --c-line-2:     #F1F3F5;
  --c-bg:         #FFFFFF;
  --c-bg-alt:     #F9FAFB;
  --c-bg-cool:    #F3F4F6;

  --s-1: 4px;  --s-2: 8px;   --s-3: 12px;  --s-4: 16px;
  --s-5: 20px; --s-6: 24px;  --s-8: 32px;  --s-10: 40px;
  --s-12: 48px; --s-16: 64px; --s-20: 80px; --s-24: 96px;

  --r-sm: 8px; --r-md: 12px; --r-lg: 16px;
  --r-xl: 20px; --r-2xl: 28px; --r-pill: 999px;

  --sh-xs: 0 1px 2px rgba(15,23,42,.04);
  --sh-sm: 0 1px 3px rgba(15,23,42,.06), 0 1px 2px rgba(15,23,42,.04);
  --sh-md: 0 6px 16px -4px rgba(27,58,109,.10), 0 2px 6px -2px rgba(27,58,109,.06);
  --sh-lg: 0 16px 36px -10px rgba(27,58,109,.18), 0 6px 16px -6px rgba(27,58,109,.08);
  --sh-xl: 0 30px 60px -20px rgba(27,58,109,.25), 0 10px 20px -8px rgba(27,58,109,.12);
  --sh-focus: 0 0 0 3px rgba(37,99,235,.18);

  --ease: cubic-bezier(.4,0,.2,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
  --t-fast: 150ms; --t-mid: 250ms; --t-slow: 400ms;

  --header-h: 80px;
  --container: 1280px;

  --bs-primary: var(--c-blue);
  --bs-primary-rgb: 37, 99, 235;
  --bs-success: var(--c-green);
  --bs-success-rgb: 22, 163, 74;
  --bs-body-color: var(--c-text);
  --bs-body-bg: #fff;
  --bs-border-color: var(--c-line);
  --bs-link-color: var(--c-blue);
  --bs-link-hover-color: var(--c-navy);
  --bs-border-radius: var(--r-md);
}

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800;900&family=Tajawal:wght@400;500;700;800;900&display=swap');

body {
  font-family: 'Cairo', 'Tajawal', system-ui, sans-serif;
  font-size: 15px;
  color: var(--c-text);
  background: #fff;
  font-feature-settings: 'kern','liga';
}

h1, h2, h3, h4 { color: var(--c-navy); letter-spacing: -.022em; }
h1 { font-size: 36px; font-weight: 900; }
h2 { font-size: 28px; }
h3 { font-size: 22px; }
h4 { font-size: 18px; }

a { color: var(--c-blue); transition: color var(--t-fast); }
a:hover { color: var(--c-navy); }

.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-blue);
  background: var(--c-blue-pale);
  padding: 6px 14px;
  border-radius: var(--r-pill);
  margin-bottom: var(--s-3);
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 40px);
  width: 100%;
}

.text-soft { color: var(--c-text-2); }
.text-mute { color: var(--c-text-3); }
.text-brand { color: var(--c-navy); }
.font-mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; }

/* ---------- 3. BRAND LOGO ---------- */
.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}
.brand-logo__mark {
  position: relative;
  width: 56px; height: 56px;
  flex-shrink: 0;
}
.brand-logo__mark svg { width: 100%; height: 100%; }
.brand-logo__text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}
.brand-logo__name {
  font-size: 30px;
  font-weight: 800;
  color: var(--c-navy);
  letter-spacing: -.02em;
}
.brand-logo__tag {
  font-size: 12px;
  color: var(--c-text-3);
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.brand-logo__tag::before {
  content: '';
  width: 16px;
  height: 2px;
  background: var(--c-blue);
}
.brand-logo__tag::after {
  content: '';
  width: 16px;
  height: 2px;
  background: var(--c-green);
}
.brand-logo--sm .brand-logo__mark { width: 40px; height: 40px; }
.brand-logo--sm .brand-logo__name { font-size: 22px; }
.brand-logo--sm .brand-logo__tag { display: none; }

/* ---------- 4. HEADER ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--c-line);
  height: var(--header-h);
}
.site-header__inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-6);
}
.nav-primary {
  display: flex;
  align-items: center;
  gap: var(--s-1);
}
.nav-link {
  padding: 10px 18px;
  border-radius: var(--r-pill);
  color: var(--c-text-2);
  font-weight: 600;
  font-size: 14.5px;
  transition: background var(--t-fast), color var(--t-fast);
}
.nav-link:hover { background: var(--c-blue-pale); color: var(--c-navy); }
.nav-link.is-active { color: var(--c-navy); background: var(--c-blue-pale); }
.nav-end { display: flex; align-items: center; gap: var(--s-3); }
@media (max-width: 920px) { .nav-primary { display: none; } }

/* User pill */
.user-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px 6px 16px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-pill);
  background: #fff;
  transition: box-shadow var(--t-fast), transform var(--t-fast);
  cursor: pointer;
}
.user-pill:hover { box-shadow: var(--sh-md); transform: translateY(-1px); }
.avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--c-navy), var(--c-blue));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}

/* ---------- 5. BUTTONS ---------- */
.btn {
  --bg: #fff;
  --fg: var(--c-navy);
  --bd: var(--c-line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  height: 44px;
  padding: 0 22px;
  border-radius: var(--r-pill);
  background: var(--bg);
  color: var(--fg);
  border: 1.5px solid var(--bd);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease),
              background var(--t-fast), border-color var(--t-fast);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--sh-md); color: var(--fg); }
.btn:active { transform: translateY(0); }
.btn:focus-visible { outline: none; box-shadow: var(--sh-focus); }
.btn--primary { --bg: var(--c-navy); --fg: #fff; --bd: var(--c-navy); }
.btn--primary:hover { --bg: var(--c-navy-700); --bd: var(--c-navy-700); }
.btn--blue { --bg: var(--c-blue); --fg: #fff; --bd: var(--c-blue); }
.btn--blue:hover { --bg: #1D4ED8; --bd: #1D4ED8; }
.btn--green { --bg: var(--c-green); --fg: #fff; --bd: var(--c-green); }
.btn--green:hover { --bg: #15803D; --bd: #15803D; }
.btn--danger { --bg: var(--c-danger); --fg: #fff; --bd: var(--c-danger); }
.btn--danger:hover { --bg: #B91C1C; --bd: #B91C1C; }
.btn--outline-danger { --bg: #fff; --fg: var(--c-danger); --bd: rgba(220,38,38,.3); }
.btn--outline-danger:hover { --bg: var(--c-danger); --fg: #fff; --bd: var(--c-danger); }
.btn--ghost { --bg: transparent; --bd: transparent; }
.btn--ghost:hover { --bg: var(--c-bg-cool); }
.btn--lg { height: 52px; padding: 0 28px; font-size: 15.5px; }
.btn--xl { height: 60px; padding: 0 36px; font-size: 17px; }
.btn--sm { height: 36px; padding: 0 16px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--icon { width: 44px; padding: 0; }

/* ---------- 6. FORMS ---------- */
.field { display: block; margin-bottom: var(--s-4); }
.field__label {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-navy);
  margin-bottom: 6px;
}
.field__hint { font-size: 12px; color: var(--c-text-3); margin-top: 6px; }

.input, .select, .textarea {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  background: #fff;
  font-size: 14.5px;
  color: var(--c-ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.textarea { height: auto; padding: 12px 14px; line-height: 1.5; resize: vertical; min-height: 96px; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--c-text-4); }
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: var(--sh-focus);
}
.input::placeholder, .textarea::placeholder { color: var(--c-text-4); }
.form-control, .form-select {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md);
  background: #fff;
  font-size: 14.5px;
  color: var(--c-ink);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--c-blue);
  box-shadow: var(--sh-focus);
}
textarea.form-control { height: auto; padding: 12px 14px; min-height: 96px; }
.form-label { font-size: 13.5px; font-weight: 600; color: var(--c-navy); margin-bottom: 6px; display: block; }
.form-text { font-size: 12px; color: var(--c-text-3); margin-top: 6px; }

/* ---------- 7. CARDS ---------- */
.card {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.card-header {
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg-alt);
  font-weight: 700;
  color: var(--c-navy);
  font-size: 15px;
}
.card-body { padding: var(--s-5); }
.card-footer {
  padding: var(--s-4) var(--s-5);
  border-top: 1px solid var(--c-line);
  background: var(--c-bg-alt);
}

/* ---------- 8. BADGES ---------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 700;
}
.badge.bg-success, .badge--success { background: var(--c-success-bg) !important; color: var(--c-success-fg) !important; }
.badge.bg-warning, .badge--warning { background: var(--c-warning-bg) !important; color: var(--c-warning-fg) !important; }
.badge.bg-danger, .badge--danger   { background: var(--c-danger-bg)  !important; color: var(--c-danger-fg)  !important; }
.badge.bg-info, .badge--info       { background: var(--c-info-bg)    !important; color: var(--c-info-fg)    !important; }
.badge.bg-secondary, .badge--neutral { background: var(--c-bg-cool)  !important; color: var(--c-text-2)     !important; }
.badge.bg-primary, .badge--primary { background: var(--c-blue-pale)  !important; color: var(--c-blue)       !important; }

/* ---------- 9. TABLES ---------- */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: transparent;
  margin-bottom: 0;
}
.table thead { background: var(--c-bg-alt); }
.table thead th {
  text-align: start;
  font-weight: 700;
  font-size: 12.5px;
  color: var(--c-text-2);
  text-transform: uppercase;
  letter-spacing: .04em;
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-line);
}
.table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--c-line-2);
  vertical-align: middle;
  color: var(--c-text);
}
.table tbody tr { transition: background var(--t-fast); }
.table tbody tr:hover { background: var(--c-bg-alt); }
.table tbody tr:last-child td { border-bottom: 0; }
.table-responsive { overflow-x: auto; border-radius: var(--r-lg); }
code.ref {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  background: var(--c-blue-pale);
  color: var(--c-navy);
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  font-weight: 600;
}

/* ---------- 10. ALERTS ---------- */
.alert {
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  display: flex;
  align-items: start;
  gap: 10px;
  margin-bottom: var(--s-4);
  border: 1px solid transparent;
}
.alert-success, .alert--success { background: var(--c-success-bg); color: var(--c-success-fg); border-color: rgba(22,163,74,.18); }
.alert-warning, .alert--warning { background: var(--c-warning-bg); color: var(--c-warning-fg); border-color: rgba(245,158,11,.2); }
.alert-danger, .alert--danger   { background: var(--c-danger-bg);  color: var(--c-danger-fg);  border-color: rgba(220,38,38,.15); }
.alert-info, .alert--info       { background: var(--c-info-bg);    color: var(--c-info-fg);    border-color: rgba(37,99,235,.15); }

/* ============================================================
   PAGE: HERO (banner-style)
   Blob is now a background-image so it can NEVER overflow.
   ============================================================ */
.hero {
  position: relative;
  padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 6vw, 80px);
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 600 500'><path d='M450,80 Q580,150 540,280 Q500,420 350,460 Q200,490 100,400 Q20,310 60,180 Q120,40 280,30 Q400,30 450,80 Z' fill='%23DBEAFE' opacity='0.55'/><path d='M420,100 Q540,170 510,290 Q480,400 350,430 Q220,450 130,380 Q60,300 100,190 Q150,70 290,70 Q380,70 420,100 Z' fill='%23BFDBFE' opacity='0.4'/></svg>");
  background-repeat: no-repeat;
  background-position: top -120px left -180px;
  background-size: 560px 560px;
  overflow: hidden;
}
@media (max-width: 980px) {
  .hero {
    background-size: 360px 360px;
    background-position: top -80px left -120px;
  }
}
@media (max-width: 600px) {
  .hero {
    background-size: 240px 240px;
    background-position: top -60px left -80px;
  }
}

/* Hide the old SVG blob div — replaced by background-image */
.hero__blob { display: none !important; }
.hero__dots { display: none !important; }

.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: var(--s-12);
  align-items: center;
}
@media (max-width: 980px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--s-10); }
}

.hero__brand-block { margin-bottom: var(--s-8); }
.hero__title {
  font-size: clamp(32px, 5vw, 60px);
  font-weight: 900;
  color: var(--c-navy);
  line-height: 1.15;
  letter-spacing: -.02em;
  margin-bottom: var(--s-6);
}
.hero__title-emph {
  position: relative;
  display: inline-block;
}
.hero__title-emph::after {
  content: '';
  position: absolute;
  inset-inline-start: 0;
  bottom: 6px;
  width: 100%;
  height: 12px;
  background: var(--c-green);
  opacity: .25;
  border-radius: 6px;
  z-index: -1;
}
.hero__subtitle {
  font-size: 17px;
  color: var(--c-text-2);
  line-height: 1.7;
  max-width: 540px;
  margin-bottom: var(--s-8);
}
.hero__ctas {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin-bottom: var(--s-12);
}

/* Hero quick-search bar (alternative to ctas) */
.hero__search {
  background: #fff;
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-pill);
  padding: 8px;
  display: flex;
  align-items: stretch;
  max-width: 600px;
  margin-bottom: var(--s-12);
  box-shadow: var(--sh-lg);
}
.hero__search-field {
  flex: 1;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: background var(--t-fast);
}
.hero__search-field + .hero__search-field { border-inline-start: 1px solid var(--c-line); }
.hero__search-field:hover { background: var(--c-bg-cool); }
.hero__search-label { font-size: 11px; font-weight: 700; color: var(--c-navy); margin-bottom: 2px; }
.hero__search-input {
  border: 0; background: transparent;
  font-size: 13px;
  width: 100%;
  outline: none;
  height: 22px;
  color: var(--c-text);
}
.hero__search-input::placeholder { color: var(--c-text-3); }
.hero__search-submit {
  flex-shrink: 0;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--c-blue);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  cursor: pointer;
  border: 0;
  transition: all var(--t-fast);
}
.hero__search-submit:hover { background: var(--c-navy); transform: scale(1.05); }
@media (max-width: 720px) {
  .hero__search { flex-direction: column; border-radius: var(--r-xl); padding: 12px; }
  .hero__search-field + .hero__search-field { border-inline-start: 0; border-top: 1px solid var(--c-line); }
  .hero__search-submit { width: 100%; height: 44px; border-radius: var(--r-md); margin-top: 8px; }
}

/* Hero features row (4 cards in line — banner footer) */
.hero__features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-3);
  padding-top: var(--s-8);
  border-top: 1px solid var(--c-line);
}
@media (max-width: 700px) { .hero__features { grid-template-columns: repeat(2, 1fr); gap: var(--s-5); } }
.hero__feature {
  display: flex;
  flex-direction: column;
  align-items: start;
  gap: var(--s-2);
}
.hero__feature-icon {
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-blue-pale), #fff);
  border: 1px solid var(--c-blue-soft);
  border-radius: var(--r-md);
  color: var(--c-navy);
  margin-bottom: 6px;
}
.hero__feature-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--c-navy);
  line-height: 1.3;
}
.hero__feature-sub { font-size: 12.5px; color: var(--c-text-3); line-height: 1.4; }

/* Hero visual (laptop + phone mockup) */
.hero__visual {
  position: relative;
  height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  contain: layout;
}
@media (max-width: 980px) { .hero__visual { height: 420px; } }
@media (max-width: 600px) { .hero__visual { height: 320px; max-width: 100%; overflow: hidden; } }

.mockup { position: relative; width: 100%; height: 100%; }

.mockup-laptop {
  position: absolute;
  inset-inline-start: 8%;
  top: 50%;
  transform: translateY(-50%);
  width: 78%;
  aspect-ratio: 16/10;
  background: var(--c-navy);
  border-radius: 14px 14px 6px 6px;
  padding: 10px 10px 14px 10px;
  box-shadow: var(--sh-xl);
  z-index: 2;
}
.mockup-laptop::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: -8%;
  right: -8%;
  height: 14px;
  background: linear-gradient(180deg, var(--c-navy) 0%, #0a1429 100%);
  border-radius: 0 0 20px 20px;
}
.mockup-laptop__screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 6px;
  overflow: hidden;
}

.mock-dash {
  display: grid;
  grid-template-columns: 1fr 80px;
  height: 100%;
}
.mock-dash__main { padding: 10px; background: #fff; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
.mock-dash__topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--c-line);
}
.mock-dash__brand { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; color: var(--c-navy); font-size: 10px; }
.mock-dash__brand-mark { width: 14px; height: 14px; display: grid; grid-template-columns: 1fr 1fr; gap: 1px; }
.mock-dash__brand-mark span { border-radius: 1.5px; }
.mock-dash__brand-mark span:nth-child(1) { background: var(--c-blue); }
.mock-dash__brand-mark span:nth-child(2) { background: var(--c-green); }
.mock-dash__brand-mark span:nth-child(3) { background: var(--c-navy); }
.mock-dash__brand-mark span:nth-child(4) { background: var(--c-teal); }
.mock-dash__title { color: var(--c-navy); font-size: 9px; font-weight: 700; }
.mock-dash__kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.mock-kpi { background: var(--c-bg-alt); border: 1px solid var(--c-line); border-radius: 4px; padding: 5px 6px; }
.mock-kpi__lbl { font-size: 6.5px; color: var(--c-text-3); margin-bottom: 1px; }
.mock-kpi__val { font-size: 11px; font-weight: 800; color: var(--c-navy); line-height: 1; }
.mock-dash__row { display: grid; grid-template-columns: 1.2fr 1fr; gap: 6px; flex: 1; min-height: 0; }
.mock-dash__panel {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: 4px;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow: hidden;
}
.mock-dash__panel-title { color: var(--c-navy); font-weight: 700; font-size: 8px; border-bottom: 1px solid var(--c-line); padding-bottom: 3px; }
.mock-bookings { display: flex; flex-direction: column; gap: 3px; }
.mock-booking { display: grid; grid-template-columns: 18px 1fr; gap: 4px; padding: 3px; background: #fff; border-radius: 3px; align-items: center; }
.mock-booking__thumb { width: 18px; height: 18px; border-radius: 3px; background: linear-gradient(135deg, var(--c-blue), var(--c-teal)); }
.mock-booking__lines { display: flex; flex-direction: column; gap: 1.5px; }
.mock-booking__line { height: 3px; border-radius: 2px; background: var(--c-line); }
.mock-booking__line:first-child { background: var(--c-navy); width: 80%; }
.mock-booking__line:last-child { width: 50%; }
.mock-mini-cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1.5px; }
.mock-mini-cal__cell { aspect-ratio: 1; background: #fff; border-radius: 1.5px; font-size: 5px; display: flex; align-items: center; justify-content: center; color: var(--c-text-3); }
.mock-mini-cal__cell--booked { background: var(--c-blue-soft); color: var(--c-navy); }
.mock-mini-cal__cell--selected { background: var(--c-blue); color: #fff; }
.mock-dash__sidebar {
  background: var(--c-navy);
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 6px;
}
.mock-dash__nav-item {
  padding: 4px 6px;
  color: rgba(255,255,255,.65);
  border-radius: 3px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 7px;
}
.mock-dash__nav-item--active { background: var(--c-blue); color: #fff; }
.mock-dash__nav-item span { width: 6px; height: 6px; background: currentColor; border-radius: 1.5px; opacity: .8; }

.mockup-phone {
  position: absolute;
  inset-inline-end: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 28%;
  max-width: 200px;
  aspect-ratio: 9/19;
  background: var(--c-navy);
  border-radius: 24px;
  padding: 6px;
  box-shadow: var(--sh-xl);
  z-index: 3;
}
.mockup-phone__screen {
  width: 100%;
  height: 100%;
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px 8px 8px;
}
.mockup-phone__notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px; height: 14px;
  background: var(--c-navy);
  border-radius: 0 0 8px 8px;
  z-index: 2;
}
.mock-phone-greet { font-size: 9px; color: var(--c-text-3); margin-top: 8px; }
.mock-phone-greet strong { color: var(--c-navy); font-weight: 800; font-size: 12px; display: block; margin-top: 2px; }
.mock-phone-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; margin-top: 8px; }
.mock-phone-tile { aspect-ratio: 1; background: var(--c-blue-pale); border-radius: 6px; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 6.5px; color: var(--c-navy); font-weight: 700; gap: 2px; }
.mock-phone-tile__icon { width: 14px; height: 14px; background: var(--c-blue); border-radius: 4px; }
.mock-phone-tile:nth-child(2) .mock-phone-tile__icon { background: var(--c-green); }
.mock-phone-tile:nth-child(3) .mock-phone-tile__icon { background: var(--c-teal); }
.mock-phone-tile:nth-child(4) .mock-phone-tile__icon { background: var(--c-navy); }
.mock-phone-tile:nth-child(5) .mock-phone-tile__icon { background: var(--c-blue); }
.mock-phone-tile:nth-child(6) .mock-phone-tile__icon { background: var(--c-teal); }
.mock-phone-listed { margin-top: 10px; padding: 6px 4px; font-size: 7px; color: var(--c-text-3); border-top: 1px solid var(--c-line); }
.mock-phone-listed strong { display: block; font-size: 9px; color: var(--c-navy); margin-bottom: 4px; }
.mock-phone-card { display: grid; grid-template-columns: 30px 1fr; gap: 5px; padding: 4px; background: #fff; border: 1px solid var(--c-line); border-radius: 6px; margin-top: 4px; align-items: center; }
.mock-phone-card__thumb { width: 30px; height: 24px; border-radius: 3px; background: linear-gradient(135deg, var(--c-blue), var(--c-teal)); }
.mock-phone-card__lines { display: flex; flex-direction: column; gap: 2px; }
.mock-phone-card__line { height: 3px; background: var(--c-line); border-radius: 2px; }
.mock-phone-card__line:first-child { background: var(--c-navy); width: 80%; }
.mock-phone-card__line:last-child { width: 60%; }

.mock-photo-card {
  position: absolute;
  background-size: cover;
  background-position: center;
  border-radius: 12px;
  border: 4px solid #fff;
  box-shadow: var(--sh-lg);
  z-index: 4;
}
.mock-photo-card--1 { top: 4%; inset-inline-end: -2%; width: 110px; height: 80px; transform: rotate(8deg); background: linear-gradient(135deg, #FCD34D, #F59E0B); }
.mock-photo-card--2 { top: 28%; inset-inline-end: -6%; width: 120px; height: 90px; transform: rotate(-4deg); background: linear-gradient(135deg, #4ADE80, #16A34A); }
.mock-photo-card--3 { bottom: 14%; inset-inline-end: -3%; width: 110px; height: 80px; transform: rotate(6deg); background: linear-gradient(135deg, #93C5FD, #3B82F6); }
.mock-photo-card--4 { bottom: -2%; inset-inline-end: 18%; width: 100px; height: 70px; transform: rotate(-8deg); background: linear-gradient(135deg, #C4B5FD, #8B5CF6); }
@media (max-width: 700px) {
  .mock-photo-card { display: none; }
  .mockup-laptop { width: 90%; inset-inline-start: 5%; }
  .mockup-phone { width: 35%; max-width: 160px; inset-inline-end: 0; }
}

/* Feature strip below hero */
.feature-strip {
  background: var(--c-navy);
  color: rgba(255,255,255,.85);
  border-radius: var(--r-2xl);
  padding: var(--s-8) var(--s-10);
  margin-top: -60px;
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  box-shadow: var(--sh-xl);
}
@media (max-width: 800px) { .feature-strip { grid-template-columns: repeat(2, 1fr); padding: var(--s-6); } }
.feature-strip__item { display: flex; align-items: center; gap: var(--s-3); }
.feature-strip__icon {
  width: 44px; height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,.1);
  border-radius: var(--r-md);
  color: var(--c-green);
  font-size: 20px;
  flex-shrink: 0;
}
.feature-strip__text { display: flex; flex-direction: column; gap: 2px; }
.feature-strip__title { font-size: 14px; font-weight: 700; color: #fff; line-height: 1.3; }
.feature-strip__sub { font-size: 12px; color: rgba(255,255,255,.65); }

/* ---------- Generic sections ---------- */
.section { padding: clamp(60px, 9vw, 110px) 0; }
.section--alt { background: var(--c-bg-alt); }
.section__head { text-align: center; max-width: 720px; margin: 0 auto var(--s-12); }
.section__head h2 { font-size: clamp(26px, 3.5vw, 40px); margin-bottom: var(--s-3); }
.section__head p { font-size: 16px; color: var(--c-text-2); line-height: 1.6; }

/* Section-head for in-app pages (left-aligned) */
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-bottom: var(--s-8);
}
.page-head h1 { font-size: 28px; margin-bottom: 4px; }
.page-head p { color: var(--c-text-3); font-size: 14px; }

/* ---------- Categories ---------- */
.cats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-4);
}
.cat-card {
  position: relative;
  padding: var(--s-6);
  border-radius: var(--r-xl);
  background: #fff;
  border: 1px solid var(--c-line);
  transition: all var(--t-mid) var(--ease);
  display: block;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); border-color: transparent; }
.cat-card__icon {
  width: 52px; height: 52px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: var(--s-4);
  background: var(--c-blue-pale);
  color: var(--c-navy);
}
.cat-card[data-tone="blue"] .cat-card__icon { background: var(--c-blue-pale); color: var(--c-blue); }
.cat-card[data-tone="green"] .cat-card__icon { background: var(--c-green-soft); color: var(--c-green); }
.cat-card[data-tone="teal"] .cat-card__icon { background: rgba(14,165,164,.12); color: var(--c-teal); }
.cat-card[data-tone="navy"] .cat-card__icon { background: rgba(27,58,109,.08); color: var(--c-navy); }
.cat-card h4 { font-size: 17px; margin-bottom: 6px; color: var(--c-navy); }
.cat-card p { font-size: 13.5px; color: var(--c-text-3); line-height: 1.5; }
.cat-card__count { display: inline-block; margin-top: var(--s-3); font-size: 12px; font-weight: 700; color: var(--c-blue); }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-6);
}
@media (max-width: 800px) { .steps { grid-template-columns: 1fr; } }
.step {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-line);
  padding: var(--s-8) var(--s-6);
  border-radius: var(--r-xl);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.step:hover { transform: translateY(-3px); box-shadow: var(--sh-md); }
.step__num {
  position: absolute;
  top: var(--s-6);
  inset-inline-end: var(--s-6);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--c-blue-pale);
  color: var(--c-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 16px;
}
.step__icon {
  width: 60px; height: 60px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: linear-gradient(135deg, var(--c-blue), var(--c-teal));
  color: #fff;
  margin-bottom: var(--s-5);
}
.step:nth-child(2) .step__icon { background: linear-gradient(135deg, var(--c-teal), var(--c-green)); }
.step:nth-child(3) .step__icon { background: linear-gradient(135deg, var(--c-green), #15803D); }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--c-text-2); line-height: 1.6; }

/* ---------- Stats band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-6);
  background: linear-gradient(135deg, var(--c-navy) 0%, #1E40AF 100%);
  padding: var(--s-12) var(--s-8);
  border-radius: var(--r-2xl);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.stat { text-align: center; position: relative; }
.stat__num { font-size: clamp(28px, 4vw, 44px); font-weight: 900; letter-spacing: -.02em; color: #fff; line-height: 1; margin-bottom: 8px; }
.stat__lbl { font-size: 14px; color: rgba(255,255,255,.7); }
@media (max-width: 700px) { .stats-band { grid-template-columns: repeat(2, 1fr); padding: var(--s-8); } }

/* ---------- CTA block ---------- */
.cta-block {
  background: linear-gradient(135deg, var(--c-blue-pale), #fff);
  border: 1px solid var(--c-blue-soft);
  border-radius: var(--r-2xl);
  padding: clamp(40px, 6vw, 80px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block::before {
  content: '';
  position: absolute;
  top: -50%;
  inset-inline-end: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,.12), transparent 70%);
  pointer-events: none;
}
.cta-block > * { position: relative; }
.cta-block h2 { font-size: clamp(26px, 4vw, 40px); color: var(--c-navy); margin-bottom: var(--s-3); }
.cta-block p { font-size: 16px; color: var(--c-text-2); margin-bottom: var(--s-8); max-width: 540px; margin-inline: auto; }
.cta-block__ctas { display: flex; gap: var(--s-3); justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--c-navy);
  color: rgba(255,255,255,.7);
  padding: var(--s-16) 0 var(--s-8);
}
.site-footer h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: var(--s-4);
}
.site-footer__cols {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-8);
  margin-bottom: var(--s-12);
}
@media (max-width: 800px) { .site-footer__cols { grid-template-columns: 1fr 1fr; gap: var(--s-8); } }
.footer-link { display: block; padding: 6px 0; color: rgba(255,255,255,.6); font-size: 14px; transition: color var(--t-fast); }
.footer-link:hover { color: #fff; }
.site-footer .brand-logo__name { color: #fff; }
.site-footer .brand-logo__tag { color: rgba(255,255,255,.6); }
.site-footer__bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--s-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 13px;
}
.social-row { display: flex; gap: var(--s-3); }
.social-row a {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  transition: all var(--t-fast);
}
.social-row a:hover { background: var(--c-blue); color: #fff; transform: translateY(-2px); }

/* ============================================================
   PAGE: SPACES BROWSE — integrated search bar + responsive grid
   ============================================================ */
.browse-page {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}
.browse-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  flex-wrap: wrap;
  gap: var(--s-3);
}
.browse-head h1 {
  margin: 0 0 4px 0;
  color: var(--c-navy);
  font-size: clamp(22px, 4vw, 28px);
}
.browse-head__count {
  margin: 0;
  font-size: 14px;
  color: var(--c-text-2);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.browse-head__count strong { color: var(--c-blue); font-weight: 800; }

/* ---- Integrated search bar (Airbnb-style) ---- */
.search-bar {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--s-3);
  box-shadow: var(--sh-sm);
}
.search-bar__main {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr auto auto;
  gap: 8px;
  align-items: stretch;
}
.search-bar__field {
  position: relative;
  background: var(--c-bg-alt);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  transition: all var(--t-fast);
}
.search-bar__field:focus-within {
  background: #fff;
  border-color: var(--c-blue);
  box-shadow: 0 0 0 3px rgba(37,99,235,.10);
}
.search-bar__field > i {
  flex-shrink: 0;
  margin-inline-start: 14px;
  color: var(--c-text-3);
  font-size: 16px;
}
.search-bar__field input,
.search-bar__field select {
  flex: 1;
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 10px 12px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--c-text);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}
.search-bar__field--select::after {
  content: '\F282';
  font-family: 'bootstrap-icons';
  position: absolute;
  inset-inline-start: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--c-text-4);
  font-size: 12px;
  pointer-events: none;
}
.search-bar__field--select select {
  padding-inline-start: 30px;
}

/* "More" filters toggle */
.search-bar__more {
  background: var(--c-bg-alt);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-navy);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: all var(--t-fast);
}
.search-bar__more:hover { background: var(--c-blue-pale); }
.search-bar__more.is-active {
  background: var(--c-blue-pale);
  color: var(--c-blue);
  border-color: var(--c-blue-soft);
}
.search-bar__more-badge {
  position: absolute;
  top: -4px;
  inset-inline-start: -4px;
  background: var(--c-warning);
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

/* Submit button */
.search-bar__submit {
  background: linear-gradient(135deg, var(--c-blue), var(--c-navy));
  color: #fff;
  border: 0;
  border-radius: var(--r-md);
  padding: 0 22px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  transition: transform var(--t-fast), box-shadow var(--t-fast);
}
.search-bar__submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 18px rgba(37,99,235,.30);
}

/* Advanced (collapsible) filters */
.search-bar__advanced {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px dashed var(--c-line);
}
.search-bar__advanced[hidden] { display: none; }
.search-bar__advanced-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}
.search-bar__advanced .search-bar__field {
  flex-direction: column;
  align-items: stretch;
  padding: 8px 12px;
}
.search-bar__advanced .search-bar__field label {
  font-size: 11px;
  font-weight: 600;
  color: var(--c-text-3);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin-bottom: 2px;
}
.search-bar__advanced .search-bar__field input {
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text);
}

/* Active filter chips */
.search-bar__active {
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px dashed var(--c-line);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.search-bar__active-label {
  font-size: 12px;
  color: var(--c-text-3);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-inline-end: 4px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  background: var(--c-blue-pale);
  color: var(--c-blue);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
}
.chip--clear {
  background: #fef2f2;
  color: var(--c-danger);
  text-decoration: none;
  cursor: pointer;
  transition: all var(--t-fast);
}
.chip--clear:hover { background: var(--c-danger); color: #fff; }

/* ---- Spaces grid (responsive) ---- */
.spaces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--s-5);
}

/* ---- Mobile responsive ---- */
@media (max-width: 720px) {
  .search-bar { padding: 10px; }
  .search-bar__main {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }
  .search-bar__field--search { grid-column: 1 / -1; }
  .search-bar__more {
    grid-column: 1;
    padding: 10px;
    font-size: 13px;
  }
  .search-bar__more-label { display: none; }
  .search-bar__submit {
    grid-column: 2;
    padding: 10px 16px;
    justify-content: center;
  }
  .search-bar__field input,
  .search-bar__field select {
    padding: 10px 8px 10px 12px;
    font-size: 14px;
  }
  .spaces-grid {
    grid-template-columns: 1fr;
    gap: var(--s-3);
  }
}

@media (max-width: 480px) {
  .search-bar__active-label { display: none; }
  .chip { font-size: 11px; padding: 3px 10px; }
}

/* ---- Pagination ---- */
.pagination {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  padding: 0;
  margin: var(--s-6) 0 0;
  flex-wrap: wrap;
}
.page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border-radius: var(--r-md);
  background: #fff;
  color: var(--c-text);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  border: 1px solid var(--c-line);
  transition: all var(--t-fast);
}
.page-link:hover {
  background: var(--c-blue-pale);
  color: var(--c-blue);
  border-color: var(--c-blue-soft);
}
.page-link.is-active {
  background: var(--c-navy);
  color: #fff;
  border-color: var(--c-navy);
}
.page-link--nav { width: 38px; }
.page-link--ellipsis {
  border: 0;
  background: transparent;
  color: var(--c-text-4);
  cursor: default;
}
.page-link--ellipsis:hover { background: transparent; }

/* Space card */
.space-card {
  display: block;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: all var(--t-mid) var(--ease);
  text-decoration: none;
  color: inherit;
}
.space-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--sh-lg);
  border-color: transparent;
  color: inherit;
}
.space-card__media {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--c-bg-cool);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.space-card__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,.18));
}
.space-card__badge {
  position: absolute;
  top: var(--s-3);
  inset-inline-start: var(--s-3);
  background: rgba(255,255,255,.96);
  color: var(--c-navy);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-size: 11px;
  font-weight: 700;
  z-index: 2;
}
.space-card__body { padding: var(--s-4); }
.space-card__title-row {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: var(--s-3);
  margin-bottom: 6px;
}
.space-card__title {
  font-size: 16px;
  font-weight: 700;
  color: var(--c-navy);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.space-card__rating {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-navy);
  flex-shrink: 0;
}
.space-card__rating .bi-star-fill { color: var(--c-warning); font-size: 12px; }
.space-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  font-size: 13px;
  color: var(--c-text-3);
  margin-bottom: var(--s-3);
}
.space-card__meta i { color: var(--c-blue); margin-inline-end: 2px; }
.space-card__desc {
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: var(--s-4);
}
.space-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--s-3);
  border-top: 1px solid var(--c-line-2);
}
.space-card__price-amount { font-size: 18px; font-weight: 800; color: var(--c-navy); }
.space-card__price-unit { font-size: 12px; color: var(--c-text-3); margin-inline-start: 2px; }
.space-card__cta {
  font-size: 13px;
  font-weight: 700;
  color: var(--c-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ============================================================
   PAGE: SPACE DETAILS
   ============================================================ */
.detail-hero { padding: var(--s-8) 0 var(--s-6); }
.detail-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--c-text-3);
  margin-bottom: var(--s-4);
}
.detail-back:hover { color: var(--c-navy); }
.detail-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--s-3);
  font-size: 14px;
  color: var(--c-text-2);
  margin-bottom: var(--s-6);
}
.detail-meta__rating { font-weight: 700; color: var(--c-navy); display: inline-flex; align-items: center; gap: 4px; }
.detail-meta__rating .bi-star-fill { color: var(--c-warning); }

.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 8px;
  border-radius: var(--r-xl);
  overflow: hidden;
  margin-bottom: var(--s-8);
}
.gallery__cell {
  background: var(--c-bg-cool);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  transition: filter var(--t-fast);
}
.gallery__cell:hover { filter: brightness(.92); }
.gallery__cell--main { grid-row: span 2; }
@media (max-width: 700px) {
  .gallery { grid-template-columns: 1fr; grid-template-rows: 280px; }
  .gallery__cell:not(.gallery__cell--main) { display: none; }
}

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--s-12);
}
@media (max-width: 1000px) { .detail-layout { grid-template-columns: 1fr; } }

.detail-block {
  padding: var(--s-8) 0;
  border-bottom: 1px solid var(--c-line);
}
.detail-block:last-child { border-bottom: 0; }
.detail-block h2 { margin-bottom: var(--s-5); font-size: 22px; }

/* Booking widget */
.booking-widget {
  position: sticky;
  top: calc(var(--header-h) + 24px);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-xl);
  padding: var(--s-6);
  box-shadow: var(--sh-md);
}
.booking-widget__price-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: var(--s-5);
}
.booking-widget__price { font-size: 26px; font-weight: 800; color: var(--c-navy); }
.booking-widget__per { color: var(--c-text-2); font-size: 14px; }

#spaceCalendar {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--s-3);
  margin-top: var(--s-4);
}
.fc { font-family: inherit; }
.fc .fc-toolbar-title { font-size: 16px; color: var(--c-navy); font-weight: 800; }
.fc .fc-button {
  background: #fff !important;
  border: 1.5px solid var(--c-line) !important;
  color: var(--c-text-2) !important;
  box-shadow: none !important;
  padding: 6px 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  border-radius: var(--r-pill) !important;
  text-transform: none !important;
}
.fc .fc-button:hover { background: var(--c-blue-pale) !important; color: var(--c-navy) !important; }
.fc .fc-button-primary:not(:disabled).fc-button-active {
  background: var(--c-navy) !important;
  border-color: var(--c-navy) !important;
  color: #fff !important;
}
.fc-day-today { background: var(--c-blue-pale) !important; }
.fc-event { border-radius: 4px !important; padding: 2px 4px !important; font-size: 11px !important; }

/* ============================================================
   PAGE: AUTH
   ============================================================ */
.auth-shell {
  min-height: calc(100vh - var(--header-h));
  display: grid;
  grid-template-columns: 1fr 1fr;
}
@media (max-width: 900px) { .auth-shell { grid-template-columns: 1fr; } .auth-side { display: none; } }
.auth-form-wrap { display: flex; align-items: center; justify-content: center; padding: var(--s-12) var(--s-8); }
.auth-form-card { width: 100%; max-width: 440px; }
.auth-form-card h1 { font-size: 30px; margin-bottom: var(--s-3); }
.auth-form-card .lead { color: var(--c-text-2); font-size: 15px; margin-bottom: var(--s-8); }
.auth-side {
  background:
    radial-gradient(circle at 0% 100%, rgba(14,165,164,.4), transparent 50%),
    radial-gradient(circle at 100% 0%, rgba(22,163,74,.25), transparent 50%),
    linear-gradient(135deg, var(--c-navy) 0%, #1E40AF 100%);
  color: #fff;
  padding: var(--s-12);
  display: flex;
  flex-direction: column;
  justify-content: end;
  position: relative;
  overflow: hidden;
}
.auth-side::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.auth-side > * { position: relative; }
.auth-side h2 { color: #fff; font-size: clamp(28px, 3vw, 36px); line-height: 1.2; margin-bottom: var(--s-4); }
.auth-side p { color: rgba(255,255,255,.7); font-size: 15px; line-height: 1.6; }
.auth-side__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: var(--r-pill);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: var(--s-6);
  align-self: flex-start;
}
.auth-side__features {
  margin-top: var(--s-8);
  display: grid;
  gap: var(--s-3);
}
.auth-side__feature {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.85);
}
.auth-side__feature i { color: #5EEAD4; font-size: 18px; }

/* ============================================================
   PAGE: DASHBOARD
   ============================================================ */
.dash-greet {
  background: linear-gradient(135deg, var(--c-navy) 0%, #1E40AF 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: var(--s-8);
  margin-bottom: var(--s-6);
  position: relative;
  overflow: hidden;
}
.dash-greet::before {
  content: '';
  position: absolute;
  top: -40%;
  inset-inline-end: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(14,165,164,.3), transparent 70%);
  pointer-events: none;
}
.dash-greet h1 { color: #fff; font-size: 26px; margin-bottom: 6px; position: relative; }
.dash-greet p { color: rgba(255,255,255,.75); font-size: 15px; position: relative; }

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
  margin-bottom: var(--s-8);
}
@media (max-width: 900px) { .kpi-grid { grid-template-columns: repeat(2, 1fr); } }
.kpi {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  display: flex;
  align-items: center;
  gap: var(--s-3);
  transition: transform var(--t-mid) var(--ease), box-shadow var(--t-mid) var(--ease);
}
.kpi:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.kpi__icon {
  width: 48px; height: 48px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.kpi__icon--blue   { background: var(--c-blue-pale); color: var(--c-blue); }
.kpi__icon--green  { background: var(--c-green-soft); color: var(--c-green); }
.kpi__icon--warning{ background: var(--c-warning-bg); color: var(--c-warning-fg); }
.kpi__icon--info   { background: rgba(14,165,164,.12); color: var(--c-teal); }
.kpi__icon--navy   { background: rgba(27,58,109,.08); color: var(--c-navy); }
.kpi__lbl { font-size: 13px; color: var(--c-text-3); margin-bottom: 4px; font-weight: 500; }
.kpi__num { font-size: 24px; font-weight: 800; color: var(--c-navy); line-height: 1; letter-spacing: -.02em; }

/* ---------- Empty state ---------- */
.empty-state {
  text-align: center;
  padding: var(--s-16) var(--s-6);
}
.empty-state__icon {
  width: 80px; height: 80px;
  margin: 0 auto var(--s-4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--c-blue-pale);
  border-radius: 50%;
  font-size: 32px;
  color: var(--c-blue);
}
.empty-state h3 { color: var(--c-navy); margin-bottom: var(--s-2); }
.empty-state p { color: var(--c-text-3); margin-bottom: var(--s-6); }

/* ---------- Pagination ---------- */
.pagination { gap: 6px; display: flex; justify-content: center; padding: var(--s-6) 0; flex-wrap: wrap; }
.pagination .page-link {
  border: 1.5px solid var(--c-line);
  border-radius: var(--r-md) !important;
  color: var(--c-text-2);
  padding: 8px 14px;
  font-weight: 600;
  font-size: 13px;
  transition: all var(--t-fast);
}
.pagination .page-link:hover { background: var(--c-blue-pale); color: var(--c-navy); border-color: var(--c-blue-soft); }
.pagination .page-item.active .page-link { background: var(--c-navy); border-color: var(--c-navy); color: #fff; }

/* ---------- Modal ---------- */
.modal-content { border: 1px solid var(--c-line); border-radius: var(--r-xl); box-shadow: var(--sh-lg); }
.modal-header { border-bottom: 1px solid var(--c-line); padding: var(--s-5); }
.modal-title { color: var(--c-navy); font-weight: 800; font-size: 18px; }
.modal-footer { border-top: 1px solid var(--c-line); padding: var(--s-4) var(--s-5); }
[dir=rtl] .modal-header .btn-close { margin-right: auto; margin-left: 0; }

/* ---------- Bootstrap dropdown override ---------- */
.dropdown-menu {
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  padding: 6px;
  min-width: 200px;
}
.dropdown-item {
  border-radius: var(--r-sm);
  padding: 8px 12px;
  font-size: 14px;
  color: var(--c-text);
  font-weight: 500;
}
.dropdown-item:hover, .dropdown-item:focus { background: var(--c-blue-pale); color: var(--c-navy); }
.dropdown-divider { margin: 6px 0; border-color: var(--c-line); }
.dropdown-header { padding: 8px 12px; font-size: 12px; color: var(--c-text-3); }

/* ---------- Notif dropdown ---------- */
.notif-trigger { position: relative; }
.notif-badge-pill {
  position: absolute;
  top: 4px; inset-inline-start: 4px;
  min-width: 18px; height: 18px;
  background: var(--c-danger);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: var(--r-pill);
  padding: 0 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.notif-list { max-height: 380px; overflow-y: auto; }
.notif-item {
  display: block;
  padding: var(--s-3) var(--s-4);
  border-bottom: 1px solid var(--c-line-2);
  color: var(--c-text);
  transition: background var(--t-fast);
}
.notif-item:hover { background: var(--c-bg-alt); color: var(--c-text); }
.notif-item.unread { background: var(--c-blue-pale); border-inline-end: 3px solid var(--c-blue); }
.notif-item__title { font-weight: 700; font-size: 13px; color: var(--c-navy); margin-bottom: 2px; }
.notif-item__msg { font-size: 12.5px; color: var(--c-text-3); line-height: 1.4; }
.notif-item__time { font-size: 11px; color: var(--c-text-4); margin-top: 4px; }

/* ---------- Booking summary banner ---------- */
.booking-summary {
  background: linear-gradient(135deg, var(--c-navy) 0%, var(--c-blue) 100%);
  color: #fff;
  border-radius: var(--r-xl);
  padding: var(--s-6);
  margin-bottom: var(--s-6);
}
.booking-summary h2 { color: #fff; margin-bottom: 4px; }
.booking-summary .reference {
  font-family: ui-monospace, 'SF Mono', Menlo, monospace;
  background: rgba(255,255,255,.18);
  padding: 4px 10px;
  border-radius: var(--r-sm);
  font-size: 13px;
  display: inline-block;
}
.booking-detail-row {
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--c-line-2);
  display: flex;
  justify-content: space-between;
  gap: var(--s-3);
  font-size: 14px;
}
.booking-detail-row:last-child { border-bottom: 0; }
.booking-detail-row .label { color: var(--c-text-3); }
.booking-detail-row .value { font-weight: 700; color: var(--c-navy); text-align: end; }

/* ---------- Owner space form ---------- */
.form-section {
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  margin-bottom: var(--s-4);
  overflow: hidden;
}
.form-section__head {
  padding: var(--s-4) var(--s-5);
  border-bottom: 1px solid var(--c-line);
  background: var(--c-bg-alt);
}
.form-section__head h3 { font-size: 16px; }
.form-section__body { padding: var(--s-5); }

/* ---------- Image grid for uploads ---------- */
.upload-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: var(--s-2);
  margin-bottom: var(--s-3);
}
.upload-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--r-sm);
  border: 1px solid var(--c-line);
}

/* ---------- Tabs (nav-pills override) ---------- */
.nav-pills { gap: 4px; flex-wrap: wrap; }
.nav-pills .nav-link {
  background: #fff;
  border: 1.5px solid var(--c-line);
  color: var(--c-text-2);
  padding: 8px 16px;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 13.5px;
}
.nav-pills .nav-link:hover { background: var(--c-blue-pale); color: var(--c-navy); border-color: var(--c-blue-soft); }
.nav-pills .nav-link.active { background: var(--c-navy); color: #fff; border-color: var(--c-navy); }

/* ---------- Misc ---------- */
::selection { background: var(--c-navy); color: #fff; }
::-webkit-scrollbar { width: 12px; height: 12px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--c-line); border: 3px solid #fff; border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: var(--c-text-4); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* RTL fixes */
[dir=rtl] .me-1 { margin-left: .25rem !important; margin-right: 0 !important; }
[dir=rtl] .me-2 { margin-left: .5rem !important; margin-right: 0 !important; }
[dir=rtl] .me-3 { margin-left: 1rem !important; margin-right: 0 !important; }
[dir=rtl] .ms-1 { margin-right: .25rem !important; margin-left: 0 !important; }
[dir=rtl] .ms-2 { margin-right: .5rem !important; margin-left: 0 !important; }
[dir=rtl] .carousel-control-prev { right: 0; left: auto; }
[dir=rtl] .carousel-control-next { left: 0; right: auto; }

/* ============================================================
   FEATURES, VIDEOS, PACKAGES, REPEATER ROWS
   ============================================================ */

/* ---- Highlights list ---- */
.highlights-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-3);
  list-style: none;
  padding: 0;
}
.highlights-list li {
  display: flex;
  align-items: start;
  gap: 10px;
  padding: 12px 16px;
  background: var(--c-bg-alt);
  border-radius: var(--r-md);
  font-size: 14px;
  color: var(--c-text);
  line-height: 1.5;
}
.highlights-list li i { font-size: 18px; flex-shrink: 0; margin-top: 1px; }

/* ---- Features grid ---- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--s-3);
}
.feature-card {
  display: flex;
  gap: 14px;
  padding: var(--s-4);
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  transition: all var(--t-fast);
}
.feature-card:hover {
  border-color: var(--c-blue-soft);
  box-shadow: var(--sh-sm);
}
.feature-card__icon {
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: var(--r-md);
  background: var(--c-blue-pale);
  color: var(--c-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.feature-card strong {
  display: block;
  color: var(--c-navy);
  font-size: 14.5px;
  margin-bottom: 2px;
}
.feature-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--c-text-3);
  line-height: 1.5;
}

/* ---- Packages grid ---- */
.packages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--s-4);
}
.package-card {
  position: relative;
  background: #fff;
  border: 1px solid var(--c-line);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  transition: all var(--t-mid) var(--ease);
  display: flex;
  flex-direction: column;
}
.package-card:hover {
  border-color: var(--c-blue-soft);
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
}
.package-card--featured {
  border-color: var(--c-warning);
  border-width: 2px;
}
.package-card--selected {
  border-color: var(--c-blue);
  border-width: 2px;
  box-shadow: var(--sh-lg);
}
.package-card__ribbon {
  position: absolute;
  top: 12px;
  inset-inline-end: 12px;
  background: var(--c-warning-bg);
  color: var(--c-warning-fg);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.package-card__name {
  color: var(--c-navy);
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}
.package-card__duration {
  font-size: 13px;
  color: var(--c-text-3);
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.package-card__duration i { color: var(--c-blue); }
.package-card__desc {
  font-size: 13px;
  color: var(--c-text-2);
  line-height: 1.5;
  margin-bottom: var(--s-3);
}
.package-card__price-row {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: var(--s-3);
  padding-bottom: var(--s-3);
  border-bottom: 1px solid var(--c-line-2);
}
.package-card__price {
  font-size: 26px;
  font-weight: 900;
  color: var(--c-navy);
  letter-spacing: -.02em;
}
.package-card__price-old {
  font-size: 14px;
  color: var(--c-text-4);
  text-decoration: line-through;
}
.package-card__includes {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--s-4);
  flex: 1;
}
.package-card__includes li {
  font-size: 13px;
  color: var(--c-text);
  padding: 4px 0;
  display: flex;
  align-items: start;
  gap: 8px;
}
.package-card__includes li i {
  color: var(--c-green);
  font-size: 14px;
  margin-top: 2px;
}

/* ---- Booking widget package banner ---- */
.booking-widget__pkg-banner {
  background: var(--c-blue-pale);
  border: 1px solid var(--c-blue-soft);
  border-radius: var(--r-md);
  padding: 12px 14px;
  margin-bottom: var(--s-4);
}

/* ---- Video gallery ---- */
.video-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: var(--s-3);
}
.video-item {
  position: relative;
  aspect-ratio: 16/9;
  background: var(--c-bg-cool);
  border-radius: var(--r-md);
  overflow: hidden;
  cursor: pointer;
  transition: transform var(--t-fast);
}
.video-item:hover { transform: scale(1.02); }
.video-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-item__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--c-navy), var(--c-blue));
  color: rgba(255,255,255,.7);
  font-size: 32px;
}
.video-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--t-fast);
}
.video-item:hover .video-item__overlay { background: rgba(0,0,0,.45); }
.video-item__play {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.95);
  color: var(--c-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}
.video-item__title {
  position: absolute;
  inset-inline: 8px;
  bottom: 8px;
  background: rgba(0,0,0,.7);
  color: #fff;
  padding: 6px 10px;
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 600;
}

/* ---- Video modal ---- */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 1050;
  display: none;
}
.video-modal.is-open { display: block; }
.video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(4px);
}
.video-modal__inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  width: 90%;
  margin: 5vh auto;
}
.video-modal__close {
  position: absolute;
  top: -44px;
  inset-inline-end: 0;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 0;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.video-modal__close:hover { background: rgba(255,255,255,.25); }
.video-modal__frame {
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--r-lg);
  overflow: hidden;
}
.video-modal__frame iframe {
  width: 100%;
  height: 100%;
  display: block;
}

/* ---- Repeater rows (form builders) ---- */
.repeater-row {
  background: var(--c-bg-alt);
  border: 1px solid var(--c-line);
  border-radius: var(--r-md);
  padding: var(--s-3);
  margin-bottom: var(--s-3);
}
.repeater-row.package-row {
  background: #fff;
  border: 1px solid var(--c-line);
  padding: var(--s-4);
}

/* =====================================================================
   LANGUAGE TOGGLE — pill style with globe icon
   ===================================================================== */
.lang-toggle {
  display: inline-flex;
  align-items: center;
  height: 38px;
  padding: 0 4px 0 14px;
  background: linear-gradient(135deg, #1B3A6D, #2563EB);
  color: #fff;
  border-radius: 999px;
  text-decoration: none;
  font-family: inherit;
  box-shadow: 0 2px 8px rgba(27, 58, 109, .25);
  transition: transform .15s, box-shadow .15s;
  margin-inline-end: 8px;
}
.lang-toggle:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(27, 58, 109, .35);
  color: #fff;
}
.lang-toggle__icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-inline-end: 8px;
}
.lang-toggle__current {
  font-size: 13px;
  font-weight: 700;
  opacity: .55;
  margin-inline-end: 6px;
  color: #fff;
}
.lang-toggle__target {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 28px;
  min-width: 38px;
  padding: 0 12px;
  background: #fff;
  color: #1B3A6D;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

/* LTR adjustments — make the toggle look natural in EN mode */
html[dir="ltr"] .lang-toggle__current { font-family: 'Inter', sans-serif; }
html[dir="rtl"] .lang-toggle__current { font-family: 'Cairo', sans-serif; font-size: 14px; }

/* =====================================================================
   PARTNERSHIP BANNER — Ramallah Municipality strategic partner
   ===================================================================== */
.partnership-section {
  padding-top: var(--s-8);
  padding-bottom: var(--s-4);
}

.partnership-banner {
  position: relative;
  background: linear-gradient(135deg, #0F2952 0%, #1B3A6D 50%, #2563EB 100%);
  border-radius: var(--r-xl);
  overflow: hidden;
  color: #fff;
  box-shadow: 0 20px 60px rgba(15, 41, 82, .25);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
  isolation: isolate;
}
.partnership-banner:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 80px rgba(15, 41, 82, .35);
}

/* Invisible overlay button — covers the whole banner so clicking it opens popup,
   while inner anchors (CTA + ramallah.ps + the ribbon link) remain clickable above it. */
.partnership-banner__overlay-btn {
  position: absolute;
  inset: 0;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1;
  padding: 0;
  margin: 0;
}
.partnership-banner__grid,
.partnership-banner__footer {
  position: relative;
  z-index: 2;
}
/* Islamic pattern overlay */
.partnership-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cpath d='M30 0 L60 30 L30 60 L0 30 Z' fill='none' stroke='%23FFFFFF' stroke-width='0.4' opacity='0.08'/%3E%3Ccircle cx='30' cy='30' r='6' fill='none' stroke='%23FFFFFF' stroke-width='0.3' opacity='0.06'/%3E%3C/svg%3E");
  z-index: -1;
}
/* Palestinian flag accent */
.partnership-banner::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, #16A34A, #FFFFFF, #000000, #DC2626);
  z-index: 1;
}

.partnership-banner__grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: var(--s-8);
  padding: 44px 48px 40px;
  align-items: center;
}

.partnership-banner__content { position: relative; z-index: 2; }

.partnership-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  padding: 7px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 16px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.partnership-eyebrow__dot {
  width: 8px; height: 8px;
  background: #16A34A;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(22, 163, 74, .25);
  animation: partnership-pulse 2s ease-in-out infinite;
}
@keyframes partnership-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(22, 163, 74, .25); }
  50%      { box-shadow: 0 0 0 8px rgba(22, 163, 74, .1); }
}

.partnership-banner__title {
  font-family: inherit;
  font-size: 38px;
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 12px;
  color: #fff;
}
.partnership-banner__title-emph {
  color: #FCD34D;
  display: block;
}

.partnership-banner__subtitle {
  font-size: 15.5px;
  font-weight: 500;
  opacity: 0.92;
  margin: 0 0 24px;
  max-width: 540px;
  color: #fff;
}

.partnership-banner__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.partnership-banner__btn-primary {
  background: #FCD34D;
  color: #0F2952;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 14.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
  box-shadow: 0 8px 20px rgba(252, 211, 77, .3);
}
.partnership-banner__btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(252, 211, 77, .45);
  color: #0F2952;
}
.partnership-banner__btn-secondary {
  background: transparent;
  color: #fff;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1.5px solid rgba(255, 255, 255, .35);
  transition: all .2s;
}
.partnership-banner__btn-secondary:hover {
  background: rgba(255, 255, 255, .1);
  border-color: #fff;
  color: #fff;
}

.partnership-banner__logo-card {
  background: #fff;
  border-radius: 18px;
  padding: 22px;
  position: relative;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .18), 0 0 0 1px rgba(255, 255, 255, .08);
  transition: transform .3s;
}
.partnership-banner:hover .partnership-banner__logo-card {
  transform: scale(1.02);
}
.partnership-banner__ribbon {
  position: absolute;
  top: 12px;
  inset-inline-start: -8px;
  background: #16A34A;
  color: #fff;
  padding: 5px 16px;
  font-size: 11.5px;
  font-weight: 800;
  border-radius: 4px;
  box-shadow: 0 4px 10px rgba(22, 163, 74, .35);
  z-index: 2;
}
.partnership-banner__logo-img {
  width: 100%;
  height: auto;
  max-height: 120px;
  object-fit: contain;
  margin-block: 8px;
  display: block;
}
.partnership-banner__logo-meta {
  text-align: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
  color: #64748B;
  font-size: 12px;
  font-weight: 600;
}
.partnership-banner__logo-meta .yr { color: #DC2626; font-weight: 800; }
.partnership-banner__logo-meta a {
  color: #2563EB;
  text-decoration: none;
  font-weight: 700;
}
.partnership-banner__logo-meta a:hover { text-decoration: underline; }

.partnership-banner__footer {
  position: absolute;
  bottom: 12px;
  inset-inline-start: 48px;
  font-size: 11.5px;
  opacity: 0.7;
  z-index: 2;
}
.partnership-banner__footer .accent { color: #FCD34D; font-weight: 800; }

@media (max-width: 900px) {
  .partnership-banner__grid {
    grid-template-columns: 1fr;
    padding: 32px 24px 28px;
    gap: var(--s-6);
  }
  .partnership-banner__title { font-size: 28px; }
  .partnership-banner__actions { flex-direction: column; }
  .partnership-banner__btn-primary,
  .partnership-banner__btn-secondary { width: 100%; justify-content: center; }
  .partnership-banner__footer { position: static; padding: 0 24px 16px; opacity: .8; }
}

/* =====================================================================
   PARTNERSHIP POPUP MODAL
   ===================================================================== */
.partnership-popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, .65);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1080;
  padding: 20px;
  opacity: 0;
  transition: opacity .25s;
}
.partnership-popup-overlay.is-open {
  display: flex;
  opacity: 1;
}
.partnership-popup {
  background: #fff;
  border-radius: 22px;
  max-width: 700px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 32px 80px rgba(0,0,0,.4);
  transform: scale(0.95);
  transition: transform .25s;
}
.partnership-popup-overlay.is-open .partnership-popup { transform: scale(1); }

.partnership-popup__header {
  background: linear-gradient(135deg, #0F2952, #1B3A6D, #2563EB);
  color: #fff;
  padding: 28px 32px 76px;
  border-radius: 22px 22px 0 0;
  position: relative;
}
.partnership-popup__close {
  position: absolute;
  top: 16px;
  inset-inline-end: 16px;
  background: rgba(255,255,255,.18);
  border: none;
  color: #fff;
  width: 36px; height: 36px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
  display: grid;
  place-items: center;
  line-height: 1;
}
.partnership-popup__close:hover { background: rgba(255,255,255,.28); }
.partnership-popup__header h2 {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 6px;
}
.partnership-popup__header p {
  font-size: 13.5px;
  opacity: 0.9;
  margin: 0;
}

.partnership-popup__body {
  padding: 0 28px 28px;
  margin-top: -56px;
}
.partnership-popup__logo {
  background: #fff;
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 12px 32px rgba(0,0,0,.12);
  margin-bottom: 22px;
  text-align: center;
}
.partnership-popup__logo img {
  max-width: 240px;
  height: auto;
}
.partnership-popup__section { margin-bottom: 20px; }
.partnership-popup__section h3 {
  font-size: 15px;
  font-weight: 800;
  color: #1B3A6D;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.partnership-popup__section h3::before {
  content: '';
  display: inline-block;
  width: 4px; height: 16px;
  background: #2563EB;
  border-radius: 2px;
}
.partnership-popup__section p {
  color: #475569;
  font-size: 13.5px;
  line-height: 1.75;
  margin: 0;
}

.partnership-popup__features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.partnership-popup__feature {
  display: flex;
  gap: 10px;
  padding: 12px;
  background: #F8FAFC;
  border-radius: 10px;
  border: 1px solid #E5E7EB;
}
.partnership-popup__feature-icon {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #1B3A6D, #2563EB);
  color: #fff;
  border-radius: 9px;
  display: grid; place-items: center;
  font-size: 16px;
}
.partnership-popup__feature-text strong {
  display: block;
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
}
.partnership-popup__feature-text span {
  font-size: 11.5px;
  color: #64748B;
}

.partnership-popup__cta {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #E5E7EB;
}
.partnership-popup__cta-primary,
.partnership-popup__cta-outline {
  flex: 1;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13.5px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all .2s;
}
.partnership-popup__cta-primary {
  background: #FCD34D;
  color: #0F2952;
  border: none;
  font-weight: 800;
}
.partnership-popup__cta-primary:hover {
  background: #FBBF24;
  color: #0F2952;
}
.partnership-popup__cta-outline {
  background: #fff;
  color: #0F172A;
  border: 1.5px solid #E5E7EB;
}
.partnership-popup__cta-outline:hover {
  border-color: #2563EB;
  color: #2563EB;
}

@media (max-width: 600px) {
  .partnership-popup__features { grid-template-columns: 1fr; }
  .partnership-popup__cta { flex-direction: column; }
}

/* ====================================================================
   PWA — install banner, offline indicator, update bar
   ==================================================================== */
.pwa-banner {
    position: fixed;
    bottom: 16px;
    inset-inline-start: 16px;
    inset-inline-end: 16px;
    max-width: 480px;
    margin-inline: auto;
    background: #fff;
    border: 1px solid var(--c-line, #e5e7eb);
    border-radius: 14px;
    box-shadow: 0 10px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
    padding: 14px 16px;
    z-index: 9999;
    display: grid;
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    grid-template-areas: "icon body" "icon actions";
    column-gap: 12px;
    row-gap: 10px;
    transform: translateY(20px);
    opacity: 0;
    transition: transform .25s ease, opacity .25s ease;
}
.pwa-banner.is-visible { transform: translateY(0); opacity: 1; }
.pwa-banner__icon { grid-area: icon; align-self: center; }
.pwa-banner__icon img { display: block; width: 48px; height: 48px; border-radius: 12px; }
.pwa-banner__body { grid-area: body; }
.pwa-banner__body strong { display: block; color: var(--c-navy, #1B3A6D); font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.pwa-banner__body p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--c-text-3, #6b7280); }
.pwa-banner__actions { grid-area: actions; display: flex; gap: 8px; }
.pwa-banner__close {
    position: absolute;
    top: 6px;
    inset-inline-end: 8px;
    background: transparent;
    border: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--c-text-3, #6b7280);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
}
.pwa-banner__close:hover { background: var(--c-bg-cool, #f3f4f6); }
.pwa-banner--ios { grid-template-areas: "icon body" "icon body"; }

@media (max-width: 480px) {
    .pwa-banner { bottom: 8px; inset-inline-start: 8px; inset-inline-end: 8px; }
}

/* Update bar — slim bar at the top */
.pwa-update-bar {
    position: fixed;
    top: 0;
    inset-inline-start: 0;
    inset-inline-end: 0;
    background: linear-gradient(135deg, #1B3A6D, #2563EB);
    color: #fff;
    padding: 10px 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    font-size: 13.5px;
    font-weight: 600;
    z-index: 10000;
    transform: translateY(-100%);
    transition: transform .25s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,.15);
}
.pwa-update-bar.is-visible { transform: translateY(0); }
.pwa-update-bar .btn { background: #fff; color: var(--c-navy, #1B3A6D); border: 0; }
.pwa-update-bar .btn:hover { background: rgba(255,255,255,.92); }

/* Connection toast */
.pwa-conn-toast {
    position: fixed;
    bottom: 24px;
    inset-inline-start: 50%;
    transform: translateX(-50%);
    padding: 10px 18px;
    border-radius: 24px;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0,0,0,.2);
    z-index: 10001;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    animation: pwaToastSlideIn .25s ease;
}
.pwa-conn-toast--offline { background: #dc2626; }
.pwa-conn-toast--online  { background: #16a34a; }
@keyframes pwaToastSlideIn {
    from { transform: translate(-50%, 20px); opacity: 0; }
    to   { transform: translate(-50%, 0);    opacity: 1; }
}

/* Body when offline — subtle banner indicator */
body.is-offline { /* hook for future styling */ }

/* iOS standalone tweaks — extra padding for the status bar */
@supports (padding: max(0px)) {
    @media (display-mode: standalone) {
        body { padding-top: env(safe-area-inset-top); }
        .site-header { padding-top: max(env(safe-area-inset-top), 0px); }
    }
}

/* ====================================================================
   PWA Standalone Mode — when installed as an app
   ==================================================================== */
@media (display-mode: standalone) {
    /* Disable text selection on UI chrome (more app-like) */
    .site-header, .site-footer, .nav__menu, .partnership-banner,
    .pwa-banner, .pwa-update-bar, .modal-header, .modal-footer {
        -webkit-user-select: none;
        user-select: none;
        -webkit-touch-callout: none;
    }

    /* Disable pull-to-refresh on the body to feel more like an app */
    body {
        overscroll-behavior-y: contain;
    }

    /* Smooth scrolling */
    * { -webkit-overflow-scrolling: touch; }

    /* Hide install banner since user already installed */
    .pwa-banner { display: none !important; }

    /* Tap highlight color matches brand */
    a, button, [role="button"] {
        -webkit-tap-highlight-color: rgba(27, 58, 109, 0.1);
    }
}

/* iOS standalone — extra padding for the dynamic island / notch */
@supports (padding: max(0px)) {
    @media (display-mode: standalone) {
        .site-header {
            padding-top: max(env(safe-area-inset-top), 12px);
        }
        .site-footer {
            padding-bottom: max(env(safe-area-inset-bottom), 24px);
        }
        body {
            padding-left: env(safe-area-inset-left);
            padding-right: env(safe-area-inset-right);
        }
    }
}
