/* ===================== Sadran Safar — Design System ===================== */
/* Palette: Brand identity red (#EE212E) reserved strictly for CTA / Highlight / Price / Active-state;
   Dark Navy = structural complementary color used broadly for icons, headings, chrome;
   White + very light gray drive the main canvas. Gradients/shadows kept minimal for a premium feel. */
:root{
  --brand: #13294B;        /* Navy — structural/complementary color (icons, section chrome, borders) */
  --brand-dark: #0B1B33;
  --brand-darker: #060F1F;
  --brand-light: #EAF0F7;
  --accent: #EE212E;       /* Brand identity red — CTA / Highlight / Price / Active state ONLY */
  --accent-dark: #C81824;
  --accent-light: #FDEAEA;
  --ink: #14181F;
  --ink-soft: #4B5563;
  --muted: #8A93A3;
  --line: #E7E9EE;
  --surface: #FFFFFF;
  --bg: #F7F8FA;
  --teal: #0B3B4B;
  --teal-dark: #082B37;
  --gold: #D8B26A;
  --success: #13294B;      /* Was green (#16A34A) — replaced site-wide with brand navy per request (WhatsApp button intentionally excluded, stays brand green) */
  --danger: #EE212E;
  --danger-light: #FDEAEA;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 3px rgba(20,24,31,.05);
  --shadow-md: 0 4px 16px rgba(20,24,31,.07);
  --shadow-lg: 0 10px 30px rgba(20,24,31,.10);
}

@font-face{
  font-family:'Vazirmatn';
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight:400; font-display:swap;
}
@font-face{
  font-family:'Vazirmatn';
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight:500; font-display:swap;
}
@font-face{
  font-family:'Vazirmatn';
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-SemiBold.woff2') format('woff2');
  font-weight:600; font-display:swap;
}
@font-face{
  font-family:'Vazirmatn';
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight:700; font-display:swap;
}
@font-face{
  font-family:'Vazirmatn';
  src: url('https://cdn.jsdelivr.net/gh/rastikerdar/vazirmatn@v33.003/fonts/webfonts/Vazirmatn-ExtraBold.woff2') format('woff2');
  font-weight:800; font-display:swap;
}

*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; }
body{
  font-family:'Vazirmatn','Inter',system-ui,sans-serif;
  background:var(--bg);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
}
::selection{ background:var(--brand); color:#fff; }

/* Scrollbar */
::-webkit-scrollbar{ width:8px; height:8px; }
::-webkit-scrollbar-track{ background:transparent; }
::-webkit-scrollbar-thumb{ background:#D7DBE3; border-radius:8px; }
::-webkit-scrollbar-thumb:hover{ background:var(--brand); }

.container-x{ max-width:1360px; margin-inline:auto; padding-inline:20px; }
@media(min-width:1024px){ .container-x{ padding-inline:32px; } }

.text-brand{ color:var(--brand); }
.bg-brand{ background:var(--brand); }
.border-brand{ border-color:var(--brand); }

/* ---------- Buttons ---------- */
.btn{
  display:inline-flex; align-items:center; justify-content:center; gap:8px;
  font-weight:600; font-size:14.5px; border-radius:14px; padding:12px 22px;
  transition:all .18s ease; white-space:nowrap; cursor:pointer; border:1.5px solid transparent;
}
/* Primary CTA — brand identity red, used deliberately and sparingly per section */
.btn-primary{ background:var(--accent); color:#fff; box-shadow:0 6px 16px rgba(238,33,46,.22); }
.btn-primary:hover{ background:var(--accent-dark); transform:translateY(-1px); box-shadow:0 10px 22px rgba(238,33,46,.30); }
.btn-gold{ background:linear-gradient(135deg,#E7C77E,#C99B3E); color:#3a2a06; }
.btn-gold:hover{ filter:brightness(1.05); transform:translateY(-1px); }
/* Secondary action — navy outline, structural */
.btn-outline{ background:transparent; border-color:var(--brand); color:var(--brand); }
.btn-outline:hover{ background:var(--brand-light); }
.btn-ghost{ background:#fff; border-color:var(--line); color:var(--ink); }
.btn-ghost:hover{ border-color:var(--brand); color:var(--brand); }
.btn-dark{ background:var(--ink); color:#fff; }
.btn-sm{ padding:8px 16px; font-size:13px; border-radius:10px; }
.btn-lg{ padding:16px 30px; font-size:16px; border-radius:16px; }
.btn-block{ width:100%; }
.btn:disabled{ opacity:.5; cursor:not-allowed; }

/* ---------- Cards ---------- */
.card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--radius-md); box-shadow:var(--shadow-sm); }
.card-hover{ transition:transform .25s ease, box-shadow .25s ease; }
.card-hover:hover{ transform:translateY(-4px); box-shadow:var(--shadow-lg); }

.badge{ display:inline-flex; align-items:center; gap:5px; font-size:11.5px; font-weight:700; padding:5px 11px; border-radius:999px; line-height:1.6; }
.badge-brand{ background:var(--brand); color:#fff; }
/* Highlight badge — brand identity red, reserved for: پیشنهاد صدران / VIP / تخفیف / محبوب */
.badge-accent{ background:var(--accent); color:#fff; }
.badge-outline{ background:#fff; color:var(--brand); border:1.5px solid var(--brand); }
.badge-dark{ background:rgba(20,24,31,.72); color:#fff; backdrop-filter:blur(4px); }
.badge-gold{ background:linear-gradient(135deg,#EFD9A3,#C99B3E); color:#3a2a06; }
.badge-success{ background:var(--success); color:#fff; }
.badge-danger{ background:var(--danger); color:#fff; }
.badge-danger-soft{ background:var(--danger-light); color:var(--danger); }
.badge-soft{ background:#F1F2F5; color:var(--ink-soft); }
.badge-booking{ background:#003580; color:#fff; }
.badge-white{ background:rgba(255,255,255,.96); color:var(--ink); box-shadow:0 1px 4px rgba(0,0,0,.08); }

/* Price — brand identity red, used only for the price figure itself */
.price-tag{ color:var(--accent); font-weight:800; }

/* Tour / Hotel card */
.media-card{ position:relative; overflow:hidden; border-radius:var(--radius-md); }
.media-card img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .5s ease; }
.media-card:hover img{ transform:scale(1.06); }
.media-overlay-top{ position:absolute; inset-inline:0; top:0; padding:12px; display:flex; justify-content:space-between; align-items:flex-start; z-index:2; }
.media-overlay-bottom{ position:absolute; inset-inline:0; bottom:0; padding:12px; display:flex; justify-content:space-between; align-items:flex-end; z-index:2; }
.media-gradient::after{ content:''; position:absolute; inset:0; background:linear-gradient(180deg,rgba(0,0,0,0) 45%,rgba(0,0,0,.55) 100%); pointer-events:none; }

/* Tour card meta row — hotel-count chip (right) + airline logo badge (left), no redundant text label */
.tour-meta-row{ display:flex; align-items:center; justify-content:space-between; gap:8px; background:#F7F8FA; border-radius:12px; padding:8px 10px; }
.tour-meta-item{ display:flex; align-items:center; gap:6px; font-size:12px; font-weight:700; color:var(--ink-soft); }
.tour-meta-item i{ color:var(--brand); font-size:12px; }
.tour-card .media-overlay-bottom .badge-dark{ font-weight:700; }

/* Hotel card score/transfer chips — matches reference design (peach rating pill, dark navy score box, transfer capsule) */
.hotel-score-chip{ display:inline-flex; align-items:center; gap:4px; background:#FDECC8; color:#8A5A00; font-weight:800; font-size:12px; padding:5px 10px; border-radius:999px; }
.hotel-score-chip i{ color:#E8A200; font-size:10px; }
.hotel-transfer-pill{ display:inline-flex; align-items:center; gap:5px; background:rgba(255,255,255,.96); color:var(--ink-soft); font-weight:700; font-size:11px; padding:5px 10px; border-radius:999px; box-shadow:0 1px 4px rgba(0,0,0,.10); }
/* Negative "no transfer" state — same pill shape, red-tinted so it clearly reads as an absence, not a feature */
.hotel-transfer-pill-off{ background:rgba(255,255,255,.96); color:var(--danger); }
.hotel-score-box{ display:inline-flex; align-items:center; justify-content:center; min-width:34px; height:30px; padding:0 8px; background:var(--brand); color:#fff; font-weight:800; font-size:13px; border-radius:8px; box-shadow:0 2px 8px rgba(0,0,0,.20); }

/* Board-type label pill (e.g. "HALF BOARD", "BB", "ALL INCLUSIVE") shown on hotel cards */
.badge-board{ display:inline-flex; align-items:center; gap:5px; background:var(--brand-light); color:var(--brand); font-weight:800; font-size:10.5px; letter-spacing:.03em; padding:4px 10px; border-radius:8px; }

/* Booking.com-style rating widget — clearly branded (real Booking.com navy #003580 + wordmark),
   not just a plain colored box with a number, per explicit user request. */
.badge-booking-widget{ display:inline-flex; align-items:center; gap:8px; }
.badge-booking-box{ display:inline-flex; align-items:center; justify-content:center; min-width:34px; height:34px; padding:0 6px; background:#003580; color:#fff; font-weight:800; font-size:14px; border-radius:6px 6px 6px 0; box-shadow:0 2px 6px rgba(0,53,128,.30); }
.badge-booking-text{ display:flex; flex-direction:column; line-height:1.3; }
.badge-booking-text b{ font-size:12px; color:var(--ink); }
.badge-booking-brand{ font-size:10px; font-weight:800; color:#003580; letter-spacing:.01em; }

/* ===== Flight info widget — redesigned per reference (Mahan Air IST↔IKA style):
   a two-tone card: light meta column (dates/baggage/flight code) + dark-navy route diagram
   with large airport codes, city names, plane icon, and a distinct airline badge. Replaces the
   previous plain all-navy .flight-card look. ===== */
.flight-widget{ display:grid; grid-template-columns:1fr; gap:0; border-radius:18px; overflow:hidden; box-shadow:0 6px 20px rgba(19,41,75,.14); background:#fff; }
@media (min-width:640px){ .flight-widget{ grid-template-columns:200px 1fr; } }
.flight-widget-meta{ background:#F7F8FA; padding:18px; display:flex; flex-direction:column; gap:12px; justify-content:center; }
.flight-widget-meta-item{ display:flex; align-items:flex-start; gap:8px; font-size:12px; color:var(--ink-soft); font-weight:600; line-height:1.7; }
.flight-widget-meta-item i{ color:var(--accent); font-size:12px; margin-top:2px; }
.flight-widget-route{ background:linear-gradient(155deg, var(--brand) 0%, var(--brand-darker) 100%); padding:20px 22px; display:flex; align-items:center; justify-content:space-between; gap:14px; position:relative; }
.flight-widget-airline{ display:flex; flex-direction:column; align-items:center; gap:6px; text-align:center; shrink:0; }
.flight-widget-airline-name{ font-size:11.5px; font-weight:800; color:#fff; white-space:nowrap; }
.flight-widget-airline-tag{ font-size:10px; color:#9FADC7; }
.flight-widget-code{ font-size:clamp(26px,4vw,34px); font-weight:800; color:#fff; letter-spacing:.02em; line-height:1; }
.flight-widget-city{ font-size:12px; color:#EAF0FA; font-weight:700; margin-top:6px; }
.flight-widget-sub{ font-size:10.5px; color:#9FADC7; margin-top:2px; }
.flight-widget-mid{ display:flex; flex-direction:column; align-items:center; gap:4px; flex:1; padding:0 6px; min-width:60px; }
.flight-widget-line{ width:100%; display:flex; align-items:center; }
.flight-widget-line .dash{ flex:1; border-top:1.5px dashed rgba(255,255,255,.3); }
.flight-widget-direct{ font-size:9.5px; color:#9FADC7; margin-top:4px; white-space:nowrap; }

/* Pricing matrix table (room-type x hotel-pairing) — clear, readable table matching the
   Russia-tour / Antalya-tour reference design. */
.pricing-matrix{ width:100%; border-collapse:separate; border-spacing:0; font-size:13.5px; }
.pricing-matrix thead th{ background:var(--brand); color:#fff; font-weight:800; padding:12px 14px; text-align:center; white-space:nowrap; }
.pricing-matrix thead th:first-child{ text-align:right; border-radius:12px 0 0 0; }
.pricing-matrix thead th:last-child{ border-radius:0 12px 0 0; }
[dir="rtl"] .pricing-matrix thead th:first-child{ border-radius:0 12px 0 0; }
[dir="rtl"] .pricing-matrix thead th:last-child{ border-radius:12px 0 0 0; }
.pricing-matrix tbody td{ padding:12px 14px; text-align:center; border-bottom:1px solid var(--line); white-space:nowrap; }
.pricing-matrix tbody td:first-child{ text-align:right; font-weight:700; color:var(--ink); background:var(--bg); white-space:normal; }
.pricing-matrix tbody tr:nth-child(even) td:not(:first-child){ background:#FAFBFC; }
.pricing-matrix tbody tr:last-child td:first-child{ border-radius:0 0 0 12px; }
.pricing-matrix tbody tr:last-child td:last-child{ border-radius:0 0 12px 0; }
[dir="rtl"] .pricing-matrix tbody tr:last-child td:first-child{ border-radius:0 0 12px 0; }
[dir="rtl"] .pricing-matrix tbody tr:last-child td:last-child{ border-radius:0 0 0 12px; }
.pricing-matrix-price{ font-weight:800; color:var(--accent); }
.pricing-matrix-wrap{ overflow-x:auto; border-radius:16px; box-shadow:var(--shadow-md); }

/* Old flat flight-card kept for backward compatibility with any remaining usage */
.flight-card{ background:linear-gradient(155deg, var(--brand) 0%, var(--brand-darker) 100%); border-radius:18px; padding:20px; box-shadow:0 6px 20px rgba(19,41,75,.18); }
.flight-card-top{ display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; }
.flight-card-bottom{ display:flex; align-items:center; justify-content:space-between; margin-top:16px; padding-top:12px; border-top:1px solid rgba(255,255,255,.14); font-size:11.5px; color:#B7C3DB; }

/* ---------- Inputs ---------- */
.field{ width:100%; border:1.5px solid var(--line); border-radius:14px; padding:13px 16px; font-size:14.5px; background:#fff; transition:border-color .15s, box-shadow .15s; color:var(--ink); }
.field:focus{ outline:none; border-color:var(--brand); box-shadow:0 0 0 4px rgba(19,41,75,.10); }
.field-label{ font-size:13px; font-weight:600; color:var(--ink-soft); margin-bottom:6px; display:block; }

/* Chips — active state uses brand identity red per design rule */
.chip{ display:inline-flex; align-items:center; gap:6px; padding:9px 18px; border-radius:999px; border:1.5px solid var(--line); font-size:13.5px; font-weight:600; color:var(--ink-soft); background:#fff; cursor:pointer; transition:.15s; white-space:nowrap; }
.chip.active{ background:var(--accent); border-color:var(--accent); color:#fff; }
.chip:hover:not(.active){ border-color:var(--brand); color:var(--brand); }

/* Section headings — clear hierarchy, generous Persian line-height */
.eyebrow{ display:inline-flex; align-items:center; gap:8px; color:var(--accent); font-weight:700; font-size:13px; letter-spacing:.02em; }
.eyebrow::before{ content:''; width:22px; height:3px; background:var(--accent); border-radius:99px; }
.section-title{ font-size:clamp(22px,3vw,32px); font-weight:800; color:var(--ink); line-height:1.4; }
.section-sub{ color:var(--ink-soft); font-size:15px; line-height:2; }

/* Standard section rhythm */
.section-gap{ margin-top:88px; }
@media(max-width:767px){ .section-gap{ margin-top:56px; } }

/* Header — active nav item uses brand identity red (active-state rule) */
.header-nav a{ position:relative; color:var(--ink-soft); font-weight:500; font-size:14.5px; transition:color .15s; }
.header-nav a:hover{ color:var(--brand); }
.header-nav a.active{ color:var(--accent); }
.header-nav a.active::after{ content:''; position:absolute; bottom:-22px; inset-inline:0; height:2px; background:var(--accent); border-radius:2px; }

/* Mega-menu — two/multi-column country → destination dropdown for Tour/Hotel nav items.
   IMPORTANT: the hover-to-open behavior below is scoped to `(hover:hover) and (pointer:fine)`
   (real mouse devices) only. Without this guard, touch/tablet browsers that still match the
   `lg:` desktop breakpoint (e.g. iPad, some Android tablets, some hybrid laptops) fall into the
   classic ":hover requires two taps" trap: the FIRST tap on the "تورها"/"هتل ها" link only
   triggers the :hover state (opening the panel) instead of following the href, so the tour/hotel
   main-menu link appears completely broken ("تور در منو اصلی کار نمیکنه"). On such devices this
   rule block no longer applies, so the anchor's native href navigates immediately on first tap
   — exactly like every other plain nav link — while the panel itself is still reachable via the
   caret/label hover on real desktops. */
.mega-trigger{ position:relative; }
.mega-trigger > a{ display:flex; align-items:center; gap:6px; }
.mega-caret{ transition:transform .18s ease; color:var(--muted); }
.mega-panel{
  position:absolute; top:100%; inset-inline-start:50%; transform:translateX(50%) translateY(8px);
  min-width:640px; max-width:820px;
  background:#fff; border:1px solid var(--line); border-radius:16px; box-shadow:0 20px 48px rgba(20,24,31,.16);
  padding:18px; z-index:70;
  opacity:0; visibility:hidden; pointer-events:none;
  transition:opacity .18s ease, transform .18s ease, visibility .18s;
}
@media (hover:hover) and (pointer:fine){
  .mega-trigger:hover .mega-caret{ transform:rotate(180deg); color:var(--brand); }
  .mega-trigger:hover .mega-panel{ opacity:1; visibility:visible; pointer-events:auto; transform:translateX(50%) translateY(0); }
}
.mega-panel-inner{ display:grid; grid-template-columns:repeat(3,1fr); gap:6px 20px; }
.mega-col-title{ display:block; font-weight:800; font-size:13.5px; color:var(--brand); padding:8px 10px; border-radius:10px; background:var(--brand-light); margin-bottom:6px; }
.mega-col-title:hover{ background:var(--brand); color:#fff; }
.mega-col ul{ display:flex; flex-direction:column; }
.mega-col ul li a{ display:block; padding:7px 10px; border-radius:8px; font-size:13px; color:var(--ink-soft); }
.mega-col ul li a:hover{ background:#F5F6F8; color:var(--brand); }

/* Footer — dark navy, matching the site's own brand palette (no more teal) */
.footer-sadran{ background: radial-gradient(1200px 400px at 15% -10%, rgba(255,255,255,.05), transparent), linear-gradient(180deg, var(--brand) 0%, var(--brand-darker) 100%); color:#D7DEE8; }
.footer-sadran a{ color:#AEB9CA; transition:color .15s; }
.footer-sadran a:hover{ color:#fff; }
.footer-social{ width:38px; height:38px; border-radius:11px; background:rgba(255,255,255,.08); display:flex; align-items:center; justify-content:center; transition:.2s; }
.footer-social:hover{ background:var(--accent); }
/* Transparent, uniformly-sized trust/certification badges — previously a solid white box made the
   logos look like ugly mismatched stickers against the dark footer; now the logos sit directly on
   the footer background at one consistent height/width so they read as a clean, unified row. */
.trust-badge{ background:rgba(255,255,255,.07); border:1px solid rgba(255,255,255,.08); border-radius:12px; padding:6px 12px; display:flex; align-items:center; justify-content:center; height:48px; width:120px; flex-shrink:0; }
.trust-badge img{ max-height:34px; max-width:96px; width:auto; height:auto; object-fit:contain; }

/* Mobile bottom nav */
.mobile-nav{ position:fixed; bottom:0; inset-inline:0; z-index:50; background:#fff; border-top:1px solid var(--line); box-shadow:0 -6px 20px rgba(0,0,0,.06); }
.mobile-nav-item{ display:flex; flex-direction:column; align-items:center; gap:3px; font-size:11px; color:var(--muted); padding:10px 0; flex:1; }
.mobile-nav-item.active{ color:var(--brand); }

/* Hero — "framed" design inspired by modern travel-booking hero patterns (rounded image card floating
   inside the page rather than a full-bleed banner), with a slow, subtle Ken-Burns zoom for gentle motion
   that reads as premium/alive without being distracting. Respects prefers-reduced-motion. */
.hero-frame{ padding-top:18px; }
@media(min-width:768px){ .hero-frame{ padding-top:24px; } }
.hero-wrap{ position:relative; overflow:hidden; border-radius:var(--radius-xl); box-shadow:0 24px 60px rgba(6,15,31,.20); }
.hero-wrap::after{ content:''; position:absolute; inset:0; background:linear-gradient(180deg, rgba(6,15,31,.15) 0%, rgba(6,15,31,.32) 45%, rgba(6,15,31,.80) 100%); }
.hero-content{ position:relative; z-index:2; }
.hero-media-img{ animation:heroZoom 22s ease-in-out infinite alternate; will-change:transform; }
@keyframes heroZoom{ from{ transform:scale(1) translate(0,0); } to{ transform:scale(1.09) translate(-1%,-1%); } }
@media (prefers-reduced-motion: reduce){ .hero-media-img{ animation:none; } }
/* Floating glass stat badges (top corners of the framed hero image), matching the "price/stat badge
   over hero photo" pattern from the reference designs — subtle glassmorphism, hidden on small screens
   to avoid crowding the headline. */
.hero-float-badge{
  position:absolute; z-index:3; display:none; align-items:center; gap:10px;
  background:rgba(255,255,255,.14); backdrop-filter:blur(14px); -webkit-backdrop-filter:blur(14px);
  border:1px solid rgba(255,255,255,.28); border-radius:16px; padding:10px 16px; color:#fff;
  box-shadow:0 8px 24px rgba(0,0,0,.18);
}
@media(min-width:768px){ .hero-float-badge{ display:flex; } }
.hero-float-badge .num{ font-weight:800; font-size:17px; line-height:1; }
.hero-float-badge .lbl{ font-size:11px; color:rgba(255,255,255,.8); }
.hero-float-badge .ic{ width:34px; height:34px; border-radius:11px; background:rgba(255,255,255,.16); display:flex; align-items:center; justify-content:center; font-size:14px; }

/* Search widget — the primary homepage element; kept clean/neutral so it doesn't visually compete */
.search-widget{ background:#fff; border-radius:var(--radius-lg); box-shadow:0 16px 40px rgba(20,24,31,.14); padding:16px; border:1px solid var(--line); }
@media(max-width:767px){
  /* Prevent the search widget from over-stretching/locking up on mobile (tall screens) */
  .search-widget{ padding:14px; border-radius:20px; }
  .search-widget .field{ padding:12px 14px; font-size:14px; }
}

/* Divider dot list */
.dot-list li{ position:relative; padding-inline-start:18px; }
.dot-list li::before{ content:''; position:absolute; inset-inline-start:0; top:9px; width:6px; height:6px; border-radius:50%; background:var(--brand); }

/* Star rating */
.stars{ color:#F5B400; letter-spacing:1px; }

/* Utility: line clamp */
.clamp-1{ display:-webkit-box; -webkit-line-clamp:1; -webkit-box-orient:vertical; overflow:hidden; }
.clamp-2{ display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.clamp-3{ display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }

/* Sticky tab pills */
.pill-tabs{ display:flex; gap:8px; overflow-x:auto; scrollbar-width:none; }
.pill-tabs::-webkit-scrollbar{ display:none; }
.pill-tab{ white-space:nowrap; padding:10px 18px; border-radius:999px; font-weight:600; font-size:13.5px; color:var(--ink-soft); background:#F1F2F5; cursor:pointer; transition:.15s; }
.pill-tab.active{ background:var(--accent); color:#fff; }

/* Skeleton shimmer (progressive enhancement placeholder) */
.shimmer{ background:linear-gradient(90deg,#eee 25%,#f5f5f5 37%,#eee 63%); background-size:400% 100%; animation:shimmer 1.4s ease infinite; }
@keyframes shimmer{ 0%{background-position:100% 50%;} 100%{background-position:0 50%;} }

/* Fade-in on scroll (simple CSS-only fallback via animation) */
.fade-up{ animation:fadeUp .6s ease both; }
@keyframes fadeUp{ from{ opacity:0; transform:translateY(14px);} to{opacity:1; transform:none;} }

/* Range slider (native styling) */
input[type="range"]{ -webkit-appearance:none; width:100%; height:4px; border-radius:4px; background:var(--line); }
input[type="range"]::-webkit-slider-thumb{ -webkit-appearance:none; width:18px; height:18px; border-radius:50%; background:var(--brand); border:3px solid #fff; box-shadow:0 2px 6px rgba(0,0,0,.25); cursor:pointer; }

/* Table */
.table-sadran{ width:100%; border-collapse:collapse; }
.table-sadran th{ text-align:right; font-size:13px; color:var(--muted); font-weight:600; padding:12px 14px; border-bottom:1px solid var(--line); }
.table-sadran td{ padding:14px; border-bottom:1px solid var(--line); font-size:14px; }

/* Print/hidden utilities extension for RTL icons */
.flip-rtl{ transform:scaleX(-1); }

/* Elite luxury theme override scope */
.elite-scope{ --brand:#D8B26A; background:#0B0D10; color:#EDEDEE; }
.elite-scope .card{ background:#15181D; border-color:#262A31; }
.elite-scope .section-title{ color:#F5F1E6; }
.elite-scope .section-sub{ color:#B7B9BE; }

/* Toast */
.toast{ position:fixed; bottom:90px; inset-inline:0; margin-inline:auto; width:fit-content; background:var(--ink); color:#fff; padding:12px 22px; border-radius:14px; font-size:14px; z-index:100; box-shadow:var(--shadow-lg); }

/* Focus ring accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible{ outline:2px solid var(--brand); outline-offset:2px; }

@media (max-width: 767px){
  .hero-wrap{ border-radius:var(--radius-lg); }
}

/* AI Chat Widget (rule-based assistant) */
.chat-fab{ position:fixed; inset-inline-end:20px; bottom:96px; width:56px; height:56px; border-radius:50%; background:var(--accent); color:#fff; font-size:22px; display:flex; align-items:center; justify-content:center; box-shadow:0 8px 20px rgba(238,33,46,.30); z-index:90; border:none; cursor:pointer; }
.chat-fab:hover{ background:var(--accent-dark); transform:translateY(-2px); }
@media (min-width: 768px){ .chat-fab{ bottom:28px; } }

.chat-panel{ position:fixed; inset-inline-end:20px; bottom:160px; width:min(360px, calc(100vw - 32px)); height:min(480px, calc(100vh - 220px)); background:#fff; border-radius:20px; box-shadow:0 20px 50px rgba(0,0,0,.22); z-index:91; display:flex; flex-direction:column; overflow:hidden; border:1px solid var(--line); }
@media (min-width: 768px){ .chat-panel{ bottom:96px; } }
.chat-panel.hidden{ display:none; }

/* Mobile nav drawer/backdrop — hard-coded fixed positioning (NOT Tailwind utility classes).
   Root cause of the "menu freeze / duplicate content" bug on mobile: the drawer/backdrop relied
   on Tailwind CDN JIT-compiled utilities (fixed, inset-0, w-[82%], end-0, z-[60]) for their critical
   positioning. On slower connections/devices the CDN script can still be compiling those exact
   arbitrary-value classes when the user taps the hamburger, so the drawer briefly renders as normal
   in-flow block content instead of a true fixed overlay — exposing the Hero/search-widget behind it.
   These rules (same pattern as .chat-fab/.chat-panel above) guarantee correct positioning immediately,
   regardless of CDN timing. display is intentionally NOT set here — that stays controlled by the
   critical inline <style> in renderer.tsx + the open/close script in Header.tsx. */
#mobile-backdrop{ position:fixed !important; inset:0 !important; z-index:59 !important; background:rgba(0,0,0,.4); }
#mobile-drawer{ position:fixed !important; top:0 !important; inset-inline-end:0 !important; height:100% !important; width:82% !important; max-width:320px !important; z-index:60 !important; background:#fff; box-shadow:0 20px 50px rgba(0,0,0,.25); flex-direction:column; }

.chat-header{ background:var(--ink); padding:14px 16px; display:flex; align-items:center; justify-content:space-between; }
.chat-header button{ color:#fff; opacity:.8; background:none; border:none; font-size:16px; cursor:pointer; }
.chat-header button:hover{ opacity:1; }
.chat-avatar{ width:36px; height:36px; border-radius:50%; background:var(--brand); color:#fff; display:flex; align-items:center; justify-content:center; font-size:15px; }

.chat-body{ flex:1; overflow-y:auto; padding:14px; display:flex; flex-direction:column; gap:10px; background:#F7F8FA; }
.chat-msg{ max-width:88%; padding:10px 14px; border-radius:14px; font-size:13px; line-height:1.9; }
.chat-msg a{ color:var(--brand); text-decoration:underline; }
.chat-msg-bot{ background:#fff; border:1px solid var(--line); align-self:flex-start; border-start-start-radius:4px; }
.chat-typing{ color:var(--muted,#8A93A3); font-size:12px; }
.chat-msg-user{ background:var(--brand); color:#fff; align-self:flex-end; border-start-end-radius:4px; }

.chat-suggestions{ display:flex; flex-wrap:wrap; gap:6px; margin-top:2px; }
.chat-chip{ font-size:11.5px; padding:6px 12px; border-radius:999px; background:#fff; border:1px solid var(--line); color:var(--ink); cursor:pointer; }
.chat-chip:hover{ border-color:var(--brand); color:var(--brand); }

.chat-input-row{ display:flex; align-items:center; gap:8px; padding:10px; border-top:1px solid var(--line); background:#fff; }
.chat-input-row input{ flex:1; border:1px solid var(--line); border-radius:12px; padding:9px 12px; font-size:13px; background:#F7F8FA; }
.chat-input-row input:focus{ outline:none; border-color:var(--brand); }
.chat-input-row button{ width:36px; height:36px; border-radius:10px; background:var(--brand); color:#fff; border:none; display:flex; align-items:center; justify-content:center; cursor:pointer; flex-shrink:0; }
.chat-input-row button:hover{ background:var(--brand-dark); }
