/* Allo Kurdistan website.
   Layout: mobile first (app-style bottom tabs, sticky call bar on detail pages); from 900px a top navigation,
   wide grids and a two-column detail page with a sticky contact panel.
   Identity: the logo's navy, teal and gold plus the app's cyan; a scalloped "awning" edge borrowed from the logo. */
:root {
  --brand: #008EB5;
  --brand-600: #00749A;
  --brand-700: #005E7D;
  --brand-50: #EAF6FB;
  --brand-100: #D2ECF6;
  --navy: #12243A;
  --navy-2: #1A3150;
  --teal: #1D6B5F;
  --teal-50: #E6F2EF;
  --gold: #C99A4A;
  --gold-50: #FBF4E6;
  --red: #D2452B;
  --wa: #0F7F43;
  --bg: #F4F7F9;
  --surface: #FFFFFF;
  --surface-2: #EFF3F6;
  --line: #E1E8EC;
  --line-2: #D3DCE2;
  --text: #182532;
  --muted: #586774;
  --faint: #7D8C97;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --sh-1: 0 1px 2px rgba(18, 36, 58, .06);
  --sh-2: 0 1px 2px rgba(18, 36, 58, .05), 0 10px 28px rgba(18, 36, 58, .07);
  --sh-3: 0 2px 6px rgba(18, 36, 58, .08), 0 22px 48px rgba(18, 36, 58, .14);
  --gutter: 16px;
  --tabbar-h: 66px;
  --font-body: "IBM Plex Sans Arabic", "Noto Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --font-display: "Noto Kufi Arabic", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-brand: "Outfit", "IBM Plex Sans", system-ui, sans-serif;
  color-scheme: light;
}
html[lang="en"] {
  --font-body: "IBM Plex Sans", "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Outfit", "IBM Plex Sans Arabic", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 400 15.5px/1.7 var(--font-body);
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom, 0px));
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip; /* safety net: the page never scrolls sideways; clip, unlike hidden, keeps the sticky top bar */
}
html[lang="en"] body { line-height: 1.6; }
.main { flex: 1 0 auto; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1, h2, h3 { margin: 0; color: var(--navy); font-family: var(--font-display); font-weight: 700; line-height: 1.35; text-wrap: balance; }
h1 { font-size: 26px; }
h2 { font-size: 19px; }
h3 { font-size: 16px; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -.01em; line-height: 1.2; }
p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 8px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: var(--navy); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 8px; color: #fff; }
.muted { color: var(--muted); }
.center { display: flex; justify-content: center; }
.center-text { text-align: center; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }
.stack { display: grid; gap: 28px; padding-block: 24px 36px; }

.ico { width: 22px; height: 22px; flex: none; }
.ico-sm { width: 18px; height: 18px; }
.ico-xs { width: 15px; height: 15px; }
[dir="rtl"] .flip { transform: scaleX(-1); }
[dir="ltr"] .flip-back { transform: scaleX(-1); }

/* ---------- Awning edge (from the logo) ---------- */
.awning {
  position: absolute; inset-inline: 0; bottom: -15px; height: 16px; z-index: 1;
  background: repeating-linear-gradient(90deg, var(--teal) 0 36px, var(--gold) 36px 72px);
  -webkit-mask: radial-gradient(18px 16px at 18px 0, #000 calc(100% - 1px), transparent 100%) 0 0 / 36px 16px repeat-x;
  mask: radial-gradient(18px 16px at 18px 0, #000 calc(100% - 1px), transparent 100%) 0 0 / 36px 16px repeat-x;
}
.awning-top { position: static; height: 5px; -webkit-mask: none; mask: none; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px);
}
.topbar-in { display: flex; align-items: center; gap: 10px; min-height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--navy); margin-inline-end: auto; flex: none; }
.brand:hover { color: var(--navy); }
.brand img { width: 38px; height: 38px; }
.brand-word { display: grid; line-height: 1; direction: ltr; text-align: start; font-family: var(--font-brand); }
.brand-word b { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.brand-word span { font-size: 9px; font-weight: 700; letter-spacing: .3em; text-transform: uppercase; color: var(--teal); margin-top: 4px; }
.brand-light, .brand-light:hover { color: #fff; }
.brand-light .brand-word span { color: var(--gold); }
.topnav, .topsearch, .langmenu { display: none; }
.city-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 6px 12px;
  border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--navy);
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.city-chip { flex: 0 1 auto; min-width: 0; } /* long city names shrink with an ellipsis instead of widening the bar */
.city-chip > span:not(.sr-only) { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.city-chip:hover { border-color: var(--brand-100); background: var(--brand-50); color: var(--navy); }
.city-chip .ico { color: var(--brand); width: 18px; height: 18px; }
.city-chip .ico-xs { color: var(--faint); }
.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; flex: none;
  background: var(--surface-2); color: var(--navy); border: 0;
}
.icon-btn:hover { background: var(--brand-50); color: var(--brand-700); }
.icon-btn-lg { width: 50px; height: 50px; border-radius: var(--r); }

/* ---------- Bottom tab bar (phones) ---------- */
.tabbar {
  position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: repeat(5, 1fr);
  min-height: var(--tabbar-h); padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(18, 36, 58, .06);
}
.tabbar a { display: grid; justify-items: center; align-content: center; gap: 3px; color: var(--faint); font-size: 11.5px; font-weight: 600; }
.tabbar a:hover { color: var(--navy); }
.tabbar .ico { width: 48px; height: 30px; padding: 4px 12px; border-radius: 999px; transition: background .2s, color .2s; }
.tabbar a[aria-current="page"] { color: var(--brand-600); }
.tabbar a[aria-current="page"] .ico { background: var(--brand-50); color: var(--brand); }

/* ---------- Buttons, chips, links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 18px; border-radius: var(--r); border: 1px solid transparent;
  font-weight: 600; font-size: 15px; white-space: nowrap; transition: background .15s, border-color .15s, color .15s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn .ico { width: 20px; height: 20px; }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: 14px; border-radius: 12px; }
.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: #0B6A37; color: #fff; }
.btn-ghost { background: var(--surface); color: var(--navy); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand-700); }
.btn-light { background: #fff; color: var(--brand-700); }
.btn-light:hover { background: var(--brand-50); color: var(--brand-700); }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; background: none; border: 0; padding: 0; color: var(--brand-600); font-size: 14.5px; }
.link:hover { color: var(--brand-700); text-decoration: underline; text-underline-offset: 4px; }
.see-all { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 14px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px;
  background: var(--brand-50); color: var(--brand-700); font-size: 12.5px; font-weight: 600; width: fit-content;
}
.count-pill { padding: 2px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 13px; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 3px 12px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); font-size: 13px; font-weight: 600; }
.chip:hover { background: var(--brand-100); color: var(--brand-700); }
.chips-lg .chip { min-height: 42px; padding: 6px 14px; font-size: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--navy); }
.chips-lg .chip:hover { border-color: var(--brand-100); background: var(--brand-50); }
.chips-lg .chip img { width: 22px; height: 22px; object-fit: contain; }

/* ---------- Home hero ---------- */
.hero {
  position: relative; color: #fff; margin-bottom: 16px;
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(0, 142, 181, .35), transparent 60%),
    radial-gradient(700px 380px at 0% 110%, rgba(29, 107, 95, .45), transparent 60%),
    var(--navy);
}
[dir="rtl"] .hero { background:
    radial-gradient(900px 420px at 10% -10%, rgba(0, 142, 181, .35), transparent 60%),
    radial-gradient(700px 380px at 100% 110%, rgba(29, 107, 95, .45), transparent 60%),
    var(--navy); }
.hero-in { display: grid; gap: 24px; padding-block: 26px 40px; }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: center; min-width: 0; }
.hero-city {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 5px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-size: 14px; font-weight: 600;
}
.hero-city:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.hero-city .ico-sm { color: var(--gold); }
.hero h1 { color: #fff; font-size: 28px; line-height: 1.35; font-weight: 800; }
html[lang="en"] .hero h1 { line-height: 1.12; }
.hero-lead { color: rgba(255, 255, 255, .78); font-size: 15.5px; max-width: 54ch; }
.hero-search {
  display: flex; align-items: center; gap: 10px; min-height: 58px; padding: 6px; padding-inline-start: 16px;
  background: #fff; border-radius: 18px; box-shadow: var(--sh-3); color: var(--text);
}
.hero-search > .ico { color: var(--faint); }
.hero-search input { flex: 1; width: 0; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; padding: 8px 0; }
.hero-search .btn { min-height: 46px; border-radius: 13px; }
.hero-search:focus-within { box-shadow: 0 0 0 4px rgba(0, 142, 181, .28), var(--sh-3); }
.hero-search-light { background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--sh-1); }
.hero-search-light:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 142, 181, .15); }
.hero-quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); }
.hero-quick::-webkit-scrollbar { display: none; }
.hero-quick a {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px 6px 9px; padding-inline: 9px 13px; border-radius: 999px; white-space: nowrap;
  background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .16); color: #fff; font-size: 13.5px; font-weight: 500;
}
.hero-quick a:hover { background: rgba(255, 255, 255, .17); color: #fff; }
.hero-quick li { flex: none; } /* the row scrolls; chips must not squeeze */
.hero-quick img { width: 22px; height: 22px; object-fit: contain; }
/* chip icons: a % max-width lets the browser leave the icon out of the chip's width, so the label spilled out */
.hero-quick img, .feature-chips img, .chips-lg .chip img { flex: none; max-width: none; }
.hero-stats { display: flex; gap: 0; margin: 4px 0 0; }
.hero-stats > div { padding-inline: 16px; border-inline-start: 1px solid rgba(255, 255, 255, .16); }
.hero-stats > div:first-child { padding-inline-start: 0; border: 0; }
.hero-stats dt { font-size: 12.5px; color: rgba(255, 255, 255, .62); }
.hero-stats dd { margin: 0; font: 700 22px/1.2 var(--font-brand); color: #fff; font-variant-numeric: tabular-nums; }
.hero-media { min-width: 0; }
.hero-media .slides { border-radius: var(--r-lg); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); }
.hero-media .dot { background: rgba(255, 255, 255, .3); }
.hero-media .dot.on { background: var(--gold); }

/* ---------- Slider ---------- */
.slider { position: relative; }
.slides {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain;
  aspect-ratio: var(--rw, 16) / var(--rh, 9); background: var(--surface-2); border-radius: var(--r-lg);
}
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: center; }
.slide a, .slide > img { display: block; width: 100%; height: 100%; }
.slide img { width: 100%; height: 100%; object-fit: cover; }
.dots { display: flex; justify-content: center; gap: 6px; padding-top: 12px; }
.dot { width: 7px; height: 7px; border-radius: 999px; background: var(--line-2); transition: width .25s, background .25s; }
.dot.on { width: 22px; background: var(--brand); }

/* ---------- Blocks and tiles ---------- */
.block { display: grid; gap: 16px; }
.block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px 8px; }
.tile { display: grid; justify-items: center; gap: 7px; text-align: center; color: var(--navy); }
.tile:hover { color: var(--navy); }
.tile-ico {
  display: grid; place-items: center; width: 100%; max-width: 80px; aspect-ratio: 1; border-radius: 22px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.tile-ico img { width: 66%; height: 66%; object-fit: contain; }
.tile:hover .tile-ico { transform: translateY(-3px); box-shadow: var(--sh-2); border-color: var(--brand-100); }
.tile-name { font-size: 13px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; hyphens: auto; }
.tile-count { font-size: 11.5px; color: var(--faint); margin-top: -5px; }

/* ---------- Allo Doctors feature ---------- */
.feature {
  position: relative; overflow: hidden; display: grid; border-radius: var(--r-xl); color: #fff;
  /* the body figure is part of the background so no layer sits on top of the gradient */
  background: url(img/body.png?v=2) no-repeat right 4px top 22px / 112px auto, linear-gradient(135deg, var(--brand-700), var(--brand-600) 55%, #0A86A8);
}
[dir="rtl"] .feature { background-position: left 4px top 22px, 0 0; }
.feature-copy { position: relative; z-index: 1; display: grid; gap: 12px; padding: 26px 22px 28px; padding-inline-end: 120px; align-content: center; }
.feature .eyebrow { background: rgba(255, 255, 255, .14); color: #fff; }
.feature h2 { color: #fff; font-size: 24px; }
.feature p { color: rgba(255, 255, 255, .86); max-width: 52ch; }
.feature .btn { justify-self: start; }
.feature-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.feature-chips a {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 6px; padding-inline: 6px 11px; border-radius: 999px;
  background: rgba(255, 255, 255, .12); color: #fff; font-size: 13px; font-weight: 500;
}
.feature-chips a:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.feature-chips img { width: 22px; height: 22px; object-fit: contain; border-radius: 6px; background: #fff; padding: 2px; }

/* ---------- Recently added ---------- */
.gcards {
  display: grid; grid-auto-flow: column; grid-auto-columns: 158px; gap: 12px; overflow-x: auto;
  scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) 8px;
}
.gcards::-webkit-scrollbar { display: none; }
.gcards li { scroll-snap-align: start; }
.gcard { display: grid; grid-template-rows: auto 1fr; height: 100%; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); color: var(--navy); transition: box-shadow .2s, transform .2s; }
.gcard:hover { color: var(--navy); box-shadow: var(--sh-2); transform: translateY(-2px); }
.gcard-img { aspect-ratio: 1; background: #fff; border-bottom: 1px solid var(--line); }
.gcard-img img { width: 100%; height: 100%; object-fit: contain; }
.gcard-body { display: grid; gap: 2px; align-content: start; padding: 10px 12px 12px; }
.gcard-title { font-weight: 600; font-size: 14px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcard-sub { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- App band ---------- */
.appband {
  display: grid; gap: 14px; justify-items: start; padding: 22px; border-radius: var(--r-xl);
  background: var(--gold-50); border: 1px solid #F0E2C6;
}
.appband img { width: 60px; height: 60px; }
.appband-copy { display: grid; gap: 6px; }
.appband-copy p { color: var(--muted); }
.appband-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Page header band ---------- */
.pagehead { background: var(--surface); border-bottom: 1px solid var(--line); }
.pagehead-in { display: flex; align-items: center; gap: 14px; padding-block: 20px; }
.pagehead-text { min-width: 0; display: grid; gap: 6px; }
.pagehead-text h1 { font-size: 24px; }
.pagehead-text p { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; color: var(--muted); font-size: 14.5px; }
.pagehead-text p .ico { color: var(--brand); }
.pagehead-text .sep { color: var(--line-2); }
.pagehead-ico { display: grid; place-items: center; width: 62px; height: 62px; flex: none; border-radius: 18px; background: var(--bg); border: 1px solid var(--line); }
.pagehead-ico img { width: 44px; height: 44px; object-fit: contain; }
.pagehead-ico-svg { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand); }
.pagehead-ico-svg .ico { width: 28px; height: 28px; }
.pagehead-extra { padding-bottom: 20px; }
.back {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 999px; flex: none;
  background: var(--surface); color: var(--navy); border: 1px solid var(--line);
}
.back:hover { background: var(--brand-50); color: var(--brand-700); }

/* ---------- List cards ---------- */
.filterbar {
  display: flex; align-items: center; gap: 10px; min-height: 50px; padding-inline: 14px; border-radius: var(--r);
  background: var(--surface); border: 1px solid var(--line-2);
}
.filterbar .ico { color: var(--faint); }
.filterbar input { flex: 1; width: 0; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; padding: 10px 0; }
.filterbar:focus-within { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 142, 181, .14); }
.lcards { display: grid; gap: 10px; }
.lcard {
  position: relative; display: flex; align-items: center; gap: 14px; padding: 12px; padding-inline-end: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1);
  transition: box-shadow .2s, border-color .2s;
}
.lcard:hover { box-shadow: var(--sh-2); border-color: var(--line-2); }
.lcard:has(.lcard-title:focus-visible) { outline: 3px solid var(--brand); outline-offset: 2px; }
.lcard[hidden] { display: none; }
.lcard-img { flex: none; width: 76px; height: 76px; border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; }
.lcard-img img { width: 100%; height: 100%; object-fit: contain; }
.lcard-img.is-photo img { object-fit: cover; }
.ph { font: 800 26px/1 var(--font-display); color: var(--brand); }
.lcard-body { flex: 1; min-width: 0; display: grid; gap: 1px; }
.lcard-title { font-size: 16px; font-weight: 600; color: var(--navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard-title::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.lcard-title:hover { color: var(--brand-700); }
.lcard-title:focus-visible { outline: none; }
.lcard-sub { font-size: 13.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard-meta { display: flex; align-items: center; gap: 4px; font-size: 13px; color: var(--faint); min-width: 0; margin-top: 2px; }
.lcard-meta .ico { color: var(--brand); }
.lcard-meta span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lcard-call {
  position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  background: var(--brand-50); color: var(--brand-600); transition: background .15s, color .15s;
}
.lcard-call:hover { background: var(--brand-600); color: #fff; }
.lcard-chev { color: var(--line-2); }

/* ---------- Empty states ---------- */
.empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 36px 20px; background: var(--surface); border: 1px dashed var(--line-2); border-radius: var(--r-lg); }
.empty-ico { display: grid; place-items: center; width: 62px; height: 62px; border-radius: 999px; background: var(--brand-50); color: var(--brand); }
.empty-ico .ico { width: 28px; height: 28px; }
.empty-title { font-family: var(--font-display); font-weight: 700; color: var(--navy); font-size: 17px; }
h1.empty-title { font-size: 24px; }
.empty-hint { color: var(--muted); max-width: 46ch; }
.empty .btn { margin-top: 8px; }
.empty-page { margin-block: 32px; border-style: solid; }

/* ---------- Detail page ---------- */
.detail { padding-bottom: 32px; }
.dcover { position: relative; height: 190px; overflow: hidden; background: var(--navy); }
.dcover > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.dcover.is-blur > img { filter: blur(26px) saturate(1.5); transform: scale(1.35); opacity: .85; }
.dcover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(18, 36, 58, .25), rgba(18, 36, 58, .05) 40%, rgba(18, 36, 58, .45)); }
.dcover.is-blur::after { background: linear-gradient(to bottom, rgba(18, 36, 58, .35), rgba(18, 36, 58, .55)); }
.dcover-bar { position: absolute; z-index: 1; inset-inline: 0; top: 14px; display: flex; justify-content: space-between; }
.dcover-bar .back { background: rgba(255, 255, 255, .92); border: 0; box-shadow: var(--sh-1); }
.dhead { background: var(--surface); border-bottom: 1px solid var(--line); }
.dhead-in { position: relative; display: grid; gap: 14px; padding-bottom: 20px; }
.davatar {
  width: 104px; height: 104px; margin-top: -56px; border-radius: 26px; overflow: hidden; display: grid; place-items: center;
  background: #fff; border: 4px solid #fff; box-shadow: var(--sh-3); position: relative; z-index: 2;
}
.davatar img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }
.davatar.is-photo img { object-fit: cover; padding: 0; }
.davatar .ph { font-size: 40px; }
.dhead-text { display: grid; gap: 7px; min-width: 0; }
.dhead-text h1 { font-size: 25px; }
.dspec { color: var(--teal); font-weight: 600; font-size: 15.5px; }
.dmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; color: var(--muted); font-size: 14px; }
.dmeta > span { display: inline-flex; align-items: center; gap: 5px; }
.dmeta .ico { color: var(--brand); }
.dmeta-rating b { color: var(--navy); }
.dactions { display: none; }
.dbody { display: flex; flex-direction: column; gap: 16px; padding-top: 18px; }
.dmain, .daside { display: contents; }
.p-about { order: 1; } .p-contact { order: 2; } .p-map { order: 3; } .p-photos { order: 4; } .p-videos { order: 5; } .p-reviews { order: 6; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; display: grid; gap: 14px; align-content: start; min-width: 0; }
.panel h2 { font-size: 18px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.prose { color: #2F3E4B; overflow-wrap: anywhere; font-size: 15.5px; line-height: 1.85; }
html[lang="en"] .prose { line-height: 1.7; }
.contact-list { display: grid; gap: 4px; }
.contact-list li { display: flex; align-items: center; gap: 12px; padding-block: 8px; border-bottom: 1px solid var(--line); }
.contact-list li:last-child { border-bottom: 0; }
.ci { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--brand-50); color: var(--brand); }
.ci-wa { background: #E5F4EC; color: var(--wa); }
.cl { display: grid; min-width: 0; }
.cl small { font-size: 12.5px; color: var(--faint); }
.cl a, .cl span { font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.cl a:hover { color: var(--brand-700); }
[dir="rtl"] .cl a[dir="ltr"], [dir="rtl"] .cl span[dir="ltr"] { text-align: right; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.soc { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--surface-2); color: var(--navy); }
.soc:hover { background: var(--brand-50); color: var(--brand-700); }
.map { border-radius: var(--r); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 4 / 3; background: var(--surface-2); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.photo-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 92px; gap: 6px; }
.photo-grid li { min-width: 0; }
.photo-grid button { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; border-radius: 12px; overflow: hidden; background: var(--surface-2); }
.photo-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.photo-grid button:hover img { transform: scale(1.04); }
.photo-grid li:first-child { grid-column: span 2; grid-row: span 2; }
.photo-grid.n1 li:first-child { grid-column: span 4; }
.photo-grid.n2 li { grid-column: span 2; grid-row: span 2; }
.photo-grid.n3 li:not(:first-child) { grid-column: span 2; }
.photo-grid.n4 li:nth-child(2) { grid-column: span 2; }
.more-count { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(18, 36, 58, .55); color: #fff; font: 700 20px var(--font-brand); }
.stars { display: inline-flex; gap: 1px; font-size: 15px; line-height: 1; }
.star { color: #D4DCE1; }
.star.on { color: #F1A534; }
.rating-sum { display: flex; align-items: center; gap: 14px; }
.rating-sum b { font: 700 40px/1 var(--font-brand); color: var(--navy); }
.rating-sum > div { display: grid; gap: 4px; color: var(--muted); font-size: 13.5px; }
.rating-sum .stars { font-size: 18px; }
.reviews { display: grid; gap: 12px; }
.review { display: flex; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.review:last-child { border-bottom: 0; padding-bottom: 0; }
.review-av { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 999px; background: var(--teal-50); color: var(--teal); font-weight: 700; }
.review-body { display: grid; gap: 3px; min-width: 0; }
.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.review-head time { font-size: 12.5px; color: var(--faint); }
.app-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r); background: var(--brand-50); }
.app-cta p { flex: 1 1 180px; font-size: 14px; color: var(--navy); font-weight: 600; }
.related { padding-top: 28px; }
.actionbar {
  position: fixed; z-index: 41; inset-inline: 0; bottom: 0; display: flex; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); box-shadow: 0 -6px 24px rgba(18, 36, 58, .08);
}
.actionbar .btn { flex: 1 1 0; min-width: 0; min-height: 50px; padding-inline: 12px; } /* always fits, even with long labels on 320px phones */
.actionbar .btn span { overflow: hidden; text-overflow: ellipsis; }
.pg-detail .tabbar { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0; background: #0B141E; }
.lightbox[open] { display: grid; }
.lightbox::backdrop { background: rgba(5, 10, 16, .9); }
.lb-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; height: 100dvh; }
.lb-track::-webkit-scrollbar { display: none; }
.lb-slide { flex: 0 0 100%; margin: 0; display: grid; place-items: center; scroll-snap-align: center; padding: 56px 12px; }
.lb-slide img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb-close { position: fixed; z-index: 2; top: calc(14px + env(safe-area-inset-top, 0px)); inset-inline-end: 14px; background: rgba(255, 255, 255, .14); color: #fff; }
.lb-nav { position: fixed; z-index: 2; top: 50%; transform: translateY(-50%); background: rgba(255, 255, 255, .14); color: #fff; width: 46px; height: 46px; }
.lb-prev { inset-inline-start: 12px; }
.lb-next { inset-inline-end: 12px; }
.lb-close:hover, .lb-nav:hover { background: rgba(255, 255, 255, .26); color: #fff; }

/* ---------- Body map (Allo Doctors) ---------- */
.bodymap {
  direction: ltr; /* anatomy is not mirrored for right-to-left languages */
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(82px, 120px) minmax(0, 1fr); gap: 6px; align-items: center;
  border-radius: var(--r-xl); border: 1px solid var(--line); padding: 16px 8px;
  background: radial-gradient(closest-side at 50% 50%, var(--brand-50), transparent 75%), var(--surface);
}
.bm-col { display: grid; gap: 8px; }
.bm-item { display: grid; justify-items: center; gap: 4px; text-align: center; color: var(--navy); padding: 6px 2px; border-radius: 14px; transition: background .15s; }
.bm-item:hover { color: var(--navy); background: var(--brand-50); }
[dir="rtl"] .bm-name { direction: rtl; }
.bm-ico { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.bm-ico img { width: 32px; height: 32px; object-fit: contain; }
.bm-name { font-size: 11.5px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; hyphens: auto; }
.bm-figure img { width: 100%; height: auto; max-height: 560px; object-fit: contain; margin-inline: auto; }

/* ---------- Videos ---------- */
.vgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vgrid-sm { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.vcard { position: relative; display: block; aspect-ratio: 9 / 16; border-radius: var(--r-lg); overflow: hidden; background: var(--navy-2); color: #fff; }
.vcard:hover { color: #fff; }
.vthumb, .vthumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vthumb img { transition: transform .4s; }
.vcard:hover .vthumb img { transform: scale(1.05); }
.vcard::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(10, 18, 28, .9), rgba(10, 18, 28, 0) 58%); }
.vplay { position: absolute; z-index: 1; top: 50%; left: 50%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 52px; height: 52px; border-radius: 999px; background: rgba(255, 255, 255, .2); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .35); transition: transform .2s, background .2s; }
.vcard:hover .vplay { transform: translate(-50%, -50%) scale(1.08); background: rgba(255, 255, 255, .3); }
.vplay .ico { width: 26px; height: 26px; }
.vtext { position: absolute; z-index: 1; inset-inline: 12px; bottom: 12px; display: grid; gap: 2px; }
.vtitle { font-size: 13.5px; font-weight: 600; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vby { font-size: 12px; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vgrid-sm .vtitle { font-size: 12px; }
.vgrid-sm .vplay { width: 40px; height: 40px; }

/* ---------- Offers ---------- */
.offers { display: grid; gap: 16px; }
.offer { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); }
.offer-img { position: relative; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.offer-img img { width: 100%; height: auto; }
.offer-badge { position: absolute; top: 12px; inset-inline-start: 12px; background: var(--red); color: #fff; font: 700 14px/1 var(--font-brand); padding: 7px 12px; border-radius: 999px; box-shadow: 0 4px 12px rgba(210, 69, 43, .35); }
.offer-body { padding: 16px 18px 18px; display: grid; gap: 10px; }
.offer-body h2 { font-size: 18px; }

/* ---------- More (settings style) ---------- */
.more-grid { display: grid; gap: 22px; }
.sgroup { display: grid; gap: 8px; align-content: start; }
.sgroup > h2 { font: 600 14px var(--font-body); color: var(--muted); padding-inline: 6px; }
.srows { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.srow { display: flex; align-items: center; gap: 12px; min-height: 58px; padding: 10px 16px; color: var(--navy); border-bottom: 1px solid var(--line); }
.srows li:last-child .srow { border-bottom: 0; }
.srow:hover { background: #F8FBFC; color: var(--navy); }
.srow-ico { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 11px; background: var(--brand-50); color: var(--brand); }
.srow-ico-wa { background: #E5F4EC; color: var(--wa); }
.srow-label { flex: 1; min-width: 0; display: grid; font-weight: 600; }
.srow-label small { font-weight: 400; font-size: 13px; color: var(--muted); }
.srow-value { color: var(--muted); font-size: 14px; }
.srow-chev { color: var(--line-2); }
.srow[aria-current="true"] { color: var(--brand-700); }
.srow .ico-check { color: var(--brand); }
.sgroup-text { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; color: #2F3E4B; line-height: 1.8; }
.app-card { display: grid; gap: 14px; padding: 22px; border-radius: var(--r-xl); background: var(--navy); color: #fff; justify-items: start; }
.app-card img { width: 56px; height: 56px; }
.app-card h2 { color: #fff; font-size: 20px; }
.app-card p { color: rgba(255, 255, 255, .78); }
.app-card-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.soon { font-size: 13.5px; color: rgba(255, 255, 255, .7); }

/* ---------- Dialogs ---------- */
dialog { border: 0; padding: 0; color: var(--text); }
dialog::backdrop { background: rgba(10, 20, 30, .55); }
.sheet { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: 24px 24px 0 0; padding: 18px var(--gutter) calc(18px + env(safe-area-inset-bottom, 0px)); background: var(--surface); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.pick-list { display: grid; gap: 6px; }
.pick-list a { display: flex; align-items: center; gap: 10px; min-height: 50px; padding: 8px 14px; border-radius: var(--r); background: var(--bg); color: var(--navy); font-weight: 600; }
.pick-list a:hover { background: var(--brand-50); color: var(--navy); }
.pick-list .ico { color: var(--brand); }
.pick-list a[aria-current="true"] { background: var(--brand-50); color: var(--brand-700); box-shadow: inset 0 0 0 2px var(--brand); }
.player { background: #000; width: 100%; max-width: 100%; height: 100%; max-height: 100%; margin: 0; padding: 0; color: #fff; }
.player[open] { display: grid; place-items: center; }
.player video { width: 100%; height: 100%; max-height: 100dvh; object-fit: contain; background: #000; }
.player-close { position: absolute; z-index: 2; top: calc(12px + env(safe-area-inset-top, 0px)); inset-inline-end: 12px; background: rgba(255, 255, 255, .18); color: #fff; }
.player-title { position: absolute; inset-inline: 16px; bottom: calc(70px + env(safe-area-inset-bottom, 0px)); font-weight: 600; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); pointer-events: none; }
.toast { position: fixed; z-index: 60; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + 18px + env(safe-area-inset-bottom, 0px)); background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; box-shadow: var(--sh-3); }

/* ---------- Footer ---------- */
.foot { background: var(--navy); color: rgba(255, 255, 255, .74); margin-top: 24px; }
.foot-grid { display: grid; gap: 28px; padding-block: 32px 24px; }
.foot-brand { display: grid; gap: 14px; justify-items: start; }
.foot-brand p { max-width: 36ch; }
.store-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 12px; background: #fff; color: var(--navy); font-weight: 600; font-size: 14px; }
.store-btn:hover { background: var(--gold-50); color: var(--navy); }
.foot-social { display: flex; gap: 8px; }
.foot-social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255, 255, 255, .08); color: #fff; }
.foot-social a:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.foot-col { display: grid; gap: 9px; align-content: start; }
.foot-col h2 { color: #fff; font-size: 15px; margin-bottom: 4px; }
.foot-col a { color: rgba(255, 255, 255, .74); font-size: 14.5px; }
.foot-col a:hover { color: #fff; }
.foot-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding-block: 18px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; }
.foot-langs { display: flex; gap: 16px; }
.foot-langs a { color: rgba(255, 255, 255, .6); font-weight: 600; }
.foot-langs a:hover, .foot-langs a[aria-current="true"] { color: #fff; }

/* ---------- Small phones: room for long city names (Sulaymaniyah, Halabja) in the top bar ---------- */
@media (max-width: 400px) {
  .city-chip { gap: 5px; padding-inline: 10px; }
  .city-chip .ico-xs { display: none; }
}
@media (max-width: 350px) {
  .topbar-in { gap: 8px; }
  .topbar .brand-word { display: none; }
}

/* ---------- Wider phones and tablets ---------- */
@media (min-width: 600px) {
  .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .vgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .offers { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .hero-media { width: 100%; max-width: 520px; margin-inline: auto; }
  .stack > .block > .slider { max-width: calc(440px * var(--rw, 16) / var(--rh, 9)); margin-inline: auto; width: 100%; }
  .gcards { grid-auto-columns: 190px; }
  .feature-copy { padding: 32px; padding-inline-end: 200px; }
  .feature { background-size: 160px auto, auto; background-position: right 28px top 26px, 0 0; }
  [dir="rtl"] .feature { background-position: left 28px top 26px, 0 0; }
  .appband { grid-template-columns: auto minmax(0, 1fr); align-items: center; }
  .appband-actions { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bm-name { font-size: 12.5px; }
  .photo-grid { grid-auto-rows: 120px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 900px) {
  body { font-size: 16px; padding-bottom: 0; }
  :root { --gutter: 28px; }
  h1 { font-size: 34px; }
  h2 { font-size: 22px; }
  .tabbar, .search-link, .actionbar { display: none; }
  .topbar-in { min-height: 74px; gap: 20px; }
  .brand { margin-inline-end: 4px; }
  .topnav { display: flex; align-self: stretch; gap: 2px; }
  .topnav a { position: relative; display: flex; align-items: center; padding-inline: 14px; color: var(--muted); font-weight: 600; font-size: 15px; }
  .topnav a:hover { color: var(--navy); }
  .topnav a[aria-current="page"] { color: var(--navy); }
  .topnav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 14px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--brand); }
  .topsearch {
    display: flex; align-items: center; gap: 8px; flex: 1; max-width: 360px; margin-inline-start: auto;
    background: var(--surface-2); border: 1px solid transparent; border-radius: 13px; padding-inline: 14px; min-height: 44px;
  }
  .topsearch .ico { width: 19px; height: 19px; color: var(--faint); }
  .topsearch input { flex: 1; width: 0; min-width: 0; border: 0; outline: 0; background: transparent; padding: 8px 0; font-size: 15px; }
  .topsearch:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(0, 142, 181, .12); }
  .langmenu { display: block; position: relative; }
  .langmenu summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 10px; border-radius: 12px; cursor: pointer; font-weight: 600; font-size: 14px; color: var(--navy); }
  .langmenu summary::-webkit-details-marker { display: none; }
  .langmenu summary:hover { background: var(--surface-2); }
  .langmenu summary .ico { width: 19px; height: 19px; color: var(--faint); }
  .langmenu ul { position: absolute; inset-inline-end: 0; top: calc(100% + 8px); min-width: 170px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sh-3); padding: 6px; }
  .langmenu a { display: block; padding: 9px 12px; border-radius: 10px; color: var(--navy); font-weight: 600; }
  .langmenu a:hover { background: var(--brand-50); }
  .langmenu a[aria-current="true"] { color: var(--brand-700); background: var(--brand-50); }

  .stack { gap: 44px; padding-block: 40px 56px; }
  .hero-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 56px 72px; }
  .hero h1 { font-size: 44px; }
  .hero-lead { font-size: 17.5px; }
  .hero-media { max-width: none; }
  .hero-quick { flex-wrap: wrap; overflow: visible; margin-inline: 0; padding-inline: 0; }
  .hero-stats dd { font-size: 26px; }
  .tiles { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 26px 14px; }
  .tile-name { font-size: 14px; }
  .lcards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .vgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
  .gcards { grid-auto-flow: row; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-inline: 0; padding: 0; overflow: visible; gap: 20px; }
  .feature { min-height: 320px; }
  .feature-copy { padding: 44px; padding-inline-end: 320px; gap: 16px; }
  .feature h2 { font-size: 32px; }
  .feature { background-size: 200px auto, auto; background-position: right 72px top 34px, 0 0; }
  [dir="rtl"] .feature { background-position: left 72px top 34px, 0 0; }
  .appband { grid-template-columns: auto minmax(0, 1fr) auto; gap: 24px; padding: 28px 32px; }
  .appband-actions { grid-column: auto; }
  .pagehead-in { padding-block: 32px; gap: 18px; }
  .pagehead-text h1 { font-size: 32px; }
  .pagehead-ico { width: 72px; height: 72px; border-radius: 20px; }
  .pagehead-ico img { width: 52px; height: 52px; }
  .pagehead-extra { padding-bottom: 28px; }
  .pagehead-extra .hero-search { max-width: 680px; }

  .dcover { height: 300px; }
  .dhead-in { grid-template-columns: auto minmax(0, 1fr) auto; align-items: end; gap: 24px; padding-bottom: 26px; }
  .davatar { width: 140px; height: 140px; margin-top: -70px; border-radius: 32px; }
  .dhead-text h1 { font-size: 34px; }
  .dactions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
  .dbody { display: grid; grid-template-columns: minmax(0, 1fr) 370px; gap: 24px; align-items: start; padding-top: 28px; }
  .dmain, .daside { display: grid; gap: 20px; }
  .daside { position: sticky; top: 98px; }
  .panel { padding: 24px; }
  .panel h2 { font-size: 20px; }
  .photo-grid { grid-auto-rows: 150px; gap: 8px; }
  .related .lcards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .related { padding-top: 40px; }

  .bodymap { grid-template-columns: minmax(0, 1fr) minmax(200px, 250px) minmax(0, 1fr); padding: 28px; gap: 28px; }
  .bm-col { gap: 12px; }
  .bm-left .bm-item, .bm-right .bm-item { grid-template-columns: 54px minmax(0, 1fr); justify-items: start; align-items: center; text-align: start; gap: 12px; padding: 6px 10px; }
  .bm-left .bm-item { grid-template-columns: minmax(0, 1fr) 54px; justify-items: end; text-align: end; }
  .bm-left .bm-ico { order: 2; }
  .bm-ico { width: 54px; height: 54px; }
  .bm-ico img { width: 38px; height: 38px; }
  .bm-name { font-size: 14px; }

  .offers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; max-width: 980px; }
  .sheet { width: min(440px, calc(100% - 32px)); margin: auto; border-radius: 24px; padding: 22px; }
  .player { width: min(460px, calc(100% - 32px)); height: auto; max-height: calc(100dvh - 48px); margin: auto; border-radius: 24px; overflow: hidden; }
  .player video { aspect-ratio: 9 / 16; height: auto; max-height: calc(100dvh - 48px); }
  .player-title { bottom: 76px; }
  .lb-slide { padding: 64px 90px; }
  .lb-prev { inset-inline-start: 24px; }
  .lb-next { inset-inline-end: 24px; }
  .toast { bottom: 28px; }
  .foot-grid { grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 40px; padding-block: 48px 32px; }
}

/* Small laptops and iPad landscape: the full top bar does not fit, so search becomes an icon as on phones */
@media (min-width: 900px) and (max-width: 1099px) {
  .topbar-in { gap: 12px; }
  .topnav a { padding-inline: 10px; }
  .topnav a[aria-current="page"]::after { inset-inline: 10px; }
  .topsearch { display: none; }
  .city-chip { margin-inline-start: auto; }
  .search-link { display: inline-grid; }
}

@media (min-width: 1200px) {
  .vgrid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
