/*
 * Jordan Stadiums - public site.
 * Colors come ONLY from tokens.css (navy / blue / lime / white / light grey). Logical properties are used throughout,
 * so one stylesheet serves RTL (Arabic) and LTR (English).
 */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink); line-height: 1.7; font-size: 1.0625rem;
  font-family: var(--font-ar); -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: var(--font-en); line-height: 1.6; font-size: 1rem; }
img, video, iframe, svg { max-width: 100%; }
img { height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; color: var(--navy); font-weight: 800; }
h1 { font-size: clamp(2rem, 4.8vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--blue); text-underline-offset: .2em; }
a:hover { color: var(--blue-700); }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.site-header :focus-visible, .site-footer :focus-visible, .hero :focus-visible, .cta-band :focus-visible, .tour :focus-visible, .page-head :focus-visible { outline-color: var(--focus-on-dark); }
.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; }
.container { width: min(100% - 2rem, 1200px); margin-inline: auto; }
.narrow { width: min(100% - 2rem, 820px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.lead { font-size: 1.15rem; color: var(--muted); }

.icon { width: 1.25em; height: 1.25em; flex: none; vertical-align: -.22em; }
.icon-xl { width: 3rem; height: 3rem; color: var(--blue); margin-bottom: .5rem; }
[dir="rtl"] .link-more .icon, [dir="rtl"] .tile-cta .icon { transform: scaleX(-1); }

.skip-link { position: absolute; inset-inline-start: 1rem; top: -4rem; background: var(--lime); color: var(--navy); font-weight: 800; padding: .6rem 1rem; border-radius: 0 0 10px 10px; z-index: 100; }
.skip-link:focus { top: 0; }
.preview-bar { background: var(--warn-bg); color: var(--warn); text-align: center; padding: .5rem 1rem; font-weight: 700; font-size: .9rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px;
  padding: .6rem 1.4rem; border-radius: 999px; border: 2px solid transparent; font: inherit; font-weight: 800;
  text-decoration: none; cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .18s, box-shadow .18s;
  line-height: 1.2; text-align: center;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: var(--white); }
.btn-primary:hover { background: var(--blue-700); color: var(--white); box-shadow: 0 8px 20px rgba(5, 83, 210, .35); }
.btn-accent { background: var(--lime); color: var(--navy); }
.btn-accent:hover { background: var(--white); color: var(--navy); box-shadow: 0 8px 22px rgba(183, 244, 22, .35); }
.btn-whatsapp { background: #0b7a6f; color: var(--white); }
.btn-whatsapp:hover { background: #085e55; color: var(--white); }
.btn-outline { background: transparent; color: var(--blue); border-color: var(--blue); }
.btn-outline:hover { background: var(--blue-50); color: var(--blue-700); }
.btn-outline-light { background: transparent; color: var(--white); border-color: rgba(255, 255, 255, .55); }
.btn-outline-light:hover { background: var(--white); color: var(--navy); border-color: var(--white); }
.btn-light { background: var(--white); color: var(--navy); }
.btn-light:hover { background: var(--lime); color: var(--navy); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-lg { min-height: 56px; padding: .75rem 1.9rem; font-size: 1.1rem; }
.btn-sm { min-height: 40px; padding: .35rem 1rem; font-size: .95rem; }
.btn-block { display: flex; width: 100%; margin-top: .75rem; }

/* ---------- Header (navy) ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--navy); color: var(--white); border-bottom: 3px solid var(--lime); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: .75rem; text-decoration: none; color: var(--white); }
.brand:hover { color: var(--white); }
/* The logo is a JPEG on its own white background (not transparent): it always sits on a white tile. */
.logo-tile { display: inline-flex; background: #fff; border-radius: 14px; padding: 2px; box-shadow: 0 2px 10px rgba(0, 0, 0, .35); flex: none; }
.brand-logo { width: 58px; height: 58px; border-radius: 12px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 1.25rem; font-weight: 800; font-family: var(--font-ar); }
.brand-text small { font-size: .68rem; letter-spacing: .24em; color: var(--lime); font-weight: 800; font-family: var(--font-en); }
.brand-mark { color: var(--lime); display: inline-flex; }
.nav-toggle { display: none; width: 48px; height: 48px; border: 1.5px solid rgba(255, 255, 255, .4); border-radius: 12px; background: transparent; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle .bars, .nav-toggle .bars::before, .nav-toggle .bars::after { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; content: ""; position: relative; }
.nav-toggle .bars::before { position: absolute; top: -7px; }
.nav-toggle .bars::after { position: absolute; top: 7px; }
.site-nav { display: flex; align-items: center; gap: 1.25rem; }
.site-nav ul { display: flex; gap: .2rem; }
.site-nav ul a { display: block; padding: .5rem .95rem; border-radius: 999px; text-decoration: none; color: var(--white); font-weight: 700; }
.site-nav ul a:hover { background: rgba(255, 255, 255, .12); color: var(--white); }
.site-nav ul a[aria-current="page"] { background: var(--lime); color: var(--navy); }
.nav-actions { display: flex; align-items: center; gap: .6rem; }
.lang-switch { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem 1rem; border-radius: 999px; border: 1.5px solid rgba(255, 255, 255, .55); color: var(--white); text-decoration: none; font-weight: 800; min-height: 40px; }
.lang-switch:hover { background: var(--white); color: var(--navy); }
.site-header .btn-outline { color: var(--white); border-color: var(--blue); background: var(--blue); }
.site-header .btn-outline:hover { background: var(--blue-700); color: var(--white); }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; position: absolute; inset-inline: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--navy); padding: 1rem; border-bottom: 3px solid var(--lime); box-shadow: var(--shadow-lg); gap: 1rem; }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .nav-actions { flex-wrap: wrap; }
  .brand-text small { display: none; }
}
@media (max-width: 380px) { .brand-text { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; color: var(--white); background: var(--navy); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2; background:
  radial-gradient(900px 520px at 85% 15%, rgba(5, 83, 210, .55), transparent 62%),
  radial-gradient(700px 420px at 10% 100%, rgba(183, 244, 22, .12), transparent 60%),
  linear-gradient(165deg, var(--navy) 0%, var(--navy-950) 100%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: url("/assets/img/pitch-lines.svg") center / cover no-repeat; opacity: .16; }
.hero-media { position: absolute; inset: 0; z-index: -2; }
.hero-media img, .hero-video { width: 100%; height: 100%; object-fit: cover; }
.hero-video { position: absolute; inset: 0; opacity: 0; transition: opacity .5s; }
.hero-video.is-playing { opacity: 1; }
.hero.has-image::before { background: linear-gradient(90deg, rgba(6, 21, 43, .94), rgba(6, 21, 43, .55) 60%, rgba(6, 21, 43, .3)); }
[dir="rtl"] .hero.has-image::before { background: linear-gradient(270deg, rgba(6, 21, 43, .94), rgba(6, 21, 43, .55) 60%, rgba(6, 21, 43, .3)); }
.hero-inner { display: grid; gap: 2.5rem; align-items: center; padding-block: clamp(2.5rem, 7vw, 5.5rem); }
@media (min-width: 960px) { .hero-inner.has-mosaic { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }
.hero-kicker { display: inline-flex; align-items: center; gap: .5rem; background: rgba(183, 244, 22, .14); color: var(--lime); border: 1px solid rgba(183, 244, 22, .45); border-radius: 999px; padding: .2rem .9rem; font-weight: 800; font-size: .9rem; margin-bottom: 1rem; }
.hero h1 { color: var(--white); font-size: clamp(2.3rem, 6.2vw, 4.4rem); font-weight: 900; max-width: 14ch; text-shadow: 0 2px 24px rgba(0, 0, 0, .35); }
html[lang="en"] .hero h1 { max-width: 16ch; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.02; }
.hero h1 .accent { color: var(--lime); }
.hero-sub { font-size: clamp(1.05rem, 2.2vw, 1.35rem); max-width: 42ch; color: var(--muted-on-dark); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.6rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 2rem; }
.hero-facts li { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; padding: .45rem .9rem; font-weight: 700; display: flex; gap: .45rem; align-items: baseline; }
.hero-facts strong { color: var(--lime); font-size: 1.35rem; font-weight: 900; line-height: 1; }
.hero-inner > div { animation: rise .7s both; }
.hero-inner > div:nth-child(2) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

.hero-mosaic { display: none; gap: 14px; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr; aspect-ratio: 1 / 1.02; }
@media (min-width: 960px) { .hero-mosaic { display: grid; } }
.hero-mosaic.mosaic-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; aspect-ratio: 4 / 3; }
.hero-mosaic.mosaic-2 { grid-template-columns: 1fr 1fr; grid-template-rows: 1fr; aspect-ratio: 5 / 4; }
.hero-mosaic a { position: relative; display: block; border-radius: 22px; overflow: hidden; border: 3px solid rgba(255, 255, 255, .14); box-shadow: var(--shadow-lg); transition: transform .25s, border-color .25s; background: var(--navy-800); }
.hero-mosaic a:hover { transform: translateY(-4px) rotate(-.4deg); border-color: var(--lime); }
.hero-mosaic.mosaic-3 a:first-child { grid-row: 1 / 3; }
.hero-mosaic img { width: 100%; height: 100%; object-fit: cover; }
.hero-mosaic span { position: absolute; inset-inline: .6rem; bottom: .6rem; background: rgba(6, 21, 43, .82); color: var(--white); border-inline-start: 4px solid var(--lime); border-radius: 10px; padding: .3rem .7rem; font-size: .85rem; font-weight: 700; line-height: 1.3; }

.hero-toggle { position: absolute; inset-block-end: 1rem; inset-inline-end: 1rem; z-index: 3; display: inline-flex; align-items: center; gap: .45rem; background: rgba(6, 21, 43, .75); color: var(--white); border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; padding: .45rem .9rem; cursor: pointer; font: inherit; font-size: .9rem; }
.hero-toggle:hover { background: var(--navy); }
.hero-toggle[hidden] { display: none; }
.hero-toggle .i-play { display: none; }
.hero-toggle.is-paused .i-play { display: inline-block; }
.hero-toggle.is-paused .i-pause { display: none; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(2.75rem, 6vw, 4.75rem); }
.section-alt { background: var(--white); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 2rem; max-width: 60ch; }
.section-head-row { display: flex; align-items: end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; max-width: none; }
.section-head h2 { margin-bottom: .25rem; }
.eyebrow { display: inline-flex; align-items: center; gap: .5rem; font-weight: 800; font-size: .9rem; color: var(--blue); margin-bottom: .5rem; }
.eyebrow::before { content: ""; width: 28px; height: 4px; border-radius: 4px; background: var(--lime); }
.link-more { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; text-decoration: none; }

/* Inner-page title band */
.page-head { background: linear-gradient(165deg, var(--navy), var(--navy-950)); color: var(--white); padding-block: 1.75rem 2.25rem; position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; inset-inline-end: -40px; inset-block-start: 0; width: 280px; height: 100%; background: linear-gradient(115deg, transparent 30%, rgba(183, 244, 22, .16) 30% 36%, transparent 36% 44%, rgba(5, 83, 210, .35) 44% 70%, transparent 70%); pointer-events: none; }
.page-head h1 { color: var(--white); margin-bottom: .35rem; position: relative; }
.page-head .lead { margin: 0; color: var(--muted-on-dark); position: relative; }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; font-size: .92rem; color: var(--muted-on-dark); margin-bottom: 1rem; position: relative; }
.breadcrumb a { color: var(--muted-on-dark); }
.breadcrumb a:hover { color: var(--lime); }

.grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Site tiles: big photos with the name on top ---------- */
.branch-tile { position: relative; border-radius: var(--radius); overflow: hidden; background: var(--navy-800); box-shadow: var(--shadow); aspect-ratio: 16 / 11; isolation: isolate; transition: transform .25s, box-shadow .25s; }
.branch-tile:hover, .branch-tile:focus-within { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.branch-tile .tile-img, .branch-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; z-index: -2; }
.branch-tile:hover img { transform: scale(1.05); }
.branch-tile::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(3, 11, 24, .92) 0%, rgba(3, 11, 24, .45) 42%, rgba(3, 11, 24, 0) 70%); }
.tile-body { position: absolute; inset-inline: 0; bottom: 0; padding: 1.25rem 1.4rem; color: var(--white); }
.tile-title { color: var(--white); margin: 0 0 .35rem; font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 800; }
.tile-title a { color: var(--white); text-decoration: none; }
.tile-title a.stretched::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.tile-meta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: var(--muted-on-dark); font-size: .95rem; }
.tile-count { display: inline-flex; gap: .4rem; align-items: center; background: rgba(255, 255, 255, .12); border-radius: 999px; padding: .1rem .75rem; }
.tile-cta { display: inline-flex; gap: .35rem; align-items: center; color: var(--lime); font-weight: 800; }
.branch-tile .ph-badge { z-index: 3; inset-block-start: .8rem; inset-block-end: auto; }

/* ---------- Cards (courts) ---------- */
.card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform .22s, box-shadow .22s, border-color .22s; display: flex; flex-direction: column; }
.card:hover, .card:focus-within { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--blue); }
.card-media { position: relative; aspect-ratio: 16 / 10; background: var(--navy-800); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.card:hover .card-media img { transform: scale(1.04); }
.card-body { padding: 1rem 1.15rem 1.25rem; }
.card-title { margin: 0 0 .35rem; font-size: 1.15rem; }
.card-title a { color: var(--navy); text-decoration: none; }
.card-title a.stretched::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.card-sub, .card-meta { margin: 0; color: var(--muted); font-size: .95rem; }
.card-price { margin: .5rem 0 0; color: var(--blue); }
.chip { display: inline-flex; align-items: center; gap: .35rem; background: var(--blue-100); color: var(--navy); border-radius: 999px; padding: .15rem .8rem; font-size: .88rem; font-weight: 800; text-decoration: none; }
.chip-type { position: absolute; inset-block-start: .75rem; inset-inline-start: .75rem; background: var(--lime); color: var(--navy); box-shadow: 0 2px 8px rgba(0, 0, 0, .25); z-index: 2; }
.page-head .chip { background: rgba(255, 255, 255, .12); color: var(--white); border: 1px solid rgba(255, 255, 255, .25); position: relative; }
.page-head .chip-type { position: static; background: var(--lime); color: var(--navy); border: 0; }
.chip-link:hover { background: var(--lime); color: var(--navy); }
.ph-badge { position: absolute; inset-block-end: .6rem; inset-inline-end: .6rem; background: rgba(6, 21, 43, .82); color: var(--white); font-size: .75rem; padding: .15rem .65rem; border-radius: 999px; z-index: 2; }
.ph-badge.ph-site { background: rgba(5, 83, 210, .9); }
.draft-badge { position: absolute; inset-block-start: .75rem; inset-inline-end: .75rem; background: #ffd24d; color: #4a3600; font-size: .78rem; font-weight: 800; padding: .15rem .65rem; border-radius: 999px; z-index: 3; }
.draft-badge.static { position: static; margin-inline-start: .5rem; }

/* ---------- Court types ---------- */
.type-card { display: flex; gap: 1rem; align-items: center; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem 1.4rem; text-decoration: none; color: var(--navy); box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.type-card:hover { transform: translateY(-3px); border-color: var(--blue); color: var(--navy); }
.type-icon { width: 64px; height: 64px; border-radius: 16px; background: var(--navy); color: var(--lime); display: grid; place-items: center; flex: none; }
.type-icon .icon { width: 36px; height: 36px; }
.type-card h3 { margin: 0; }
.type-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.type-card strong { color: var(--blue); }

/* ---------- Tour video (navy) ---------- */
.tour { background: linear-gradient(165deg, var(--navy), var(--navy-950)); color: var(--white); padding-block: clamp(2.75rem, 6vw, 5rem); position: relative; overflow: hidden; }
.tour::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 400px at 90% 10%, rgba(5, 83, 210, .45), transparent 65%); pointer-events: none; }
.tour-grid { position: relative; display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 860px) { .tour-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 420px); } }
.tour h2 { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; }
html[lang="en"] .tour h2 { text-transform: uppercase; }
.tour p { color: var(--muted-on-dark); max-width: 46ch; font-size: 1.1rem; }
.tour .eyebrow { color: var(--lime); }
.tour-player { position: relative; justify-self: center; width: 100%; max-width: min(520px, calc(78vh * var(--arn, 1.7778))); border-radius: 24px; overflow: hidden; background: #000; border: 3px solid rgba(255, 255, 255, .14); box-shadow: var(--shadow-lg); }
.tour-player video { display: block; width: 100%; height: auto; aspect-ratio: var(--ar, 16 / 9); background: #000; object-fit: contain; }
.tour-play { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(0deg, rgba(3, 11, 24, .45), rgba(3, 11, 24, .1)); border: 0; cursor: pointer; color: var(--navy); }
.tour-play span { width: 84px; height: 84px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); transition: transform .2s; }
.tour-play:hover span { transform: scale(1.08); }
.tour-play .icon { width: 36px; height: 36px; }
.tour-player.is-started .tour-play { display: none; }

/* ---------- Steps / CTA ---------- */
.steps { display: grid; gap: 1.25rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; position: relative; box-shadow: var(--shadow); }
.step-num { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--lime); color: var(--navy); font-weight: 900; font-size: 1.3rem; margin-bottom: .75rem; }
.step h3 { margin-bottom: .35rem; }
.step p { margin: 0; color: var(--muted); }
.cta-band { background: linear-gradient(110deg, var(--blue-700), var(--blue) 55%, var(--navy-800)); color: var(--white); padding-block: 3.25rem; position: relative; overflow: hidden; }
.cta-band::after { content: ""; position: absolute; inset-inline-start: -60px; inset-block: 0; width: 220px; background: linear-gradient(115deg, transparent 40%, rgba(183, 244, 22, .9) 40% 44%, transparent 44% 52%, rgba(183, 244, 22, .35) 52% 55%, transparent 55%); opacity: .55; pointer-events: none; }
.cta-band h2 { color: var(--white); margin-bottom: .25rem; }
.cta-band p { margin: 0; color: #dbe6ff; }
.cta-inner { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.contact-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cta-band .btn-primary { background: var(--lime); color: var(--navy); }
.cta-band .btn-primary:hover { background: var(--white); color: var(--navy); box-shadow: none; }
.cta-box { margin-top: 2.5rem; background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius); padding: 1.5rem; }

/* ---------- Filters ---------- */
.filters { display: grid; gap: .9rem; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.15rem; margin-bottom: 1rem; align-items: end; box-shadow: var(--shadow); }
.field label { display: block; font-weight: 800; font-size: .9rem; margin-bottom: .25rem; color: var(--navy); }
.field input, .field select { width: 100%; min-height: 48px; padding: .5rem .85rem; border: 1.5px solid #b4bfd2; border-radius: 12px; font: inherit; background: var(--white); color: var(--ink); }
.field input:focus, .field select:focus { border-color: var(--blue); outline: 3px solid rgba(5, 83, 210, .25); }
.filter-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.results-count { color: var(--muted); font-weight: 700; margin: 0 0 1rem; }
.empty-state { text-align: center; padding: 3rem 1rem; background: var(--white); border: 2px dashed #b4bfd2; border-radius: var(--radius); }
.empty { color: var(--muted); }

/* ---------- Detail pages ---------- */
.detail-layout { display: grid; gap: 2rem; padding-block: 2rem 3rem; align-items: start; }
@media (min-width: 1000px) { .detail-layout { grid-template-columns: minmax(0, 1fr) 370px; } .detail-side { position: sticky; top: 100px; } }
.detail-main > * + * { margin-top: 1.9rem; }
.detail-side > * + * { margin-top: 1.25rem; }
.block h2, .panel h2 { font-size: 1.25rem; }
.panel { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.contact-panel { border: 2px solid var(--blue); border-top-width: 6px; }
.prose { max-width: 70ch; }
.prose p { margin-bottom: 1em; }
.two-col { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; margin: 0; }
.specs div { background: var(--white); border: 1px solid var(--line); border-inline-start: 4px solid var(--lime); border-radius: var(--radius-sm); padding: .75rem 1rem; }
.specs dt { color: var(--muted); font-size: .88rem; }
.specs dd { margin: 0; font-weight: 800; color: var(--navy); }
.feature-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .6rem; }
.feature-list li { display: flex; align-items: center; gap: .55rem; }
.feature-list .icon { color: var(--blue); }
.price { font-size: 1.1rem; margin-bottom: .75rem; }
.price strong { font-size: 2rem; color: var(--blue); }
.price-label { display: block; color: var(--muted); font-size: .88rem; }
.note { color: var(--muted); font-size: .92rem; }
.photo-note { display: flex; gap: .4rem; align-items: center; margin-top: .6rem; }
.address { margin-bottom: .75rem; }
.map-box { aspect-ratio: 4 / 3; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--line); background: var(--blue-50); }
.map-box iframe { width: 100%; height: 100%; border: 0; }
.map-credit { font-size: .8rem; margin: .3rem 0 .75rem; color: var(--muted); }
.map-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.hours-table { width: 100%; border-collapse: collapse; }
.hours-table th, .hours-table td { padding: .55rem .25rem; border-bottom: 1px solid var(--line); text-align: start; vertical-align: top; }
.hours-table th { font-weight: 800; width: 38%; }
.hours-table tr:last-child th, .hours-table tr:last-child td { border-bottom: 0; }
.hours-table .is-today th, .hours-table .is-today td { background: var(--blue-50); }
.range { display: block; }
.tag { display: inline-block; padding: .05rem .7rem; border-radius: 999px; font-weight: 800; font-size: .9rem; }
.tag-open { background: var(--ok-bg); color: var(--ok); }
.tag-closed { background: #e8ebf2; color: #3c4658; }

/* gallery */
.gallery { display: grid; gap: .6rem; }
.g-main { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--navy-800); }
.g-main img { width: 100%; height: 100%; object-fit: cover; }
.g-zoom { position: absolute; inset-block-end: .7rem; inset-inline-end: .7rem; background: rgba(6, 21, 43, .8); color: var(--white); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; }
.g-count { position: absolute; inset-block-end: .7rem; inset-inline-start: .7rem; background: rgba(6, 21, 43, .8); color: var(--white); border-radius: 999px; padding: .1rem .75rem; font-size: .85rem; font-weight: 700; }
.g-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .6rem; }
.g-thumbs a { display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3; border: 2px solid transparent; background: var(--navy-800); }
.g-thumbs a:hover { border-color: var(--lime); }
.g-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.gallery-ph { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: var(--navy-800); }
.gallery-ph img { width: 100%; height: 100%; object-fit: cover; }
.video-box { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; }
.video-box video, .video-box iframe { width: 100%; height: 100%; border: 0; }

/* lightbox */
.lb { position: fixed; inset: 0; z-index: 200; background: rgba(3, 11, 24, .95); display: grid; place-items: center; padding: 1rem; touch-action: pan-y pinch-zoom; }
.lb img { max-width: min(96vw, 1400px); max-height: 84vh; object-fit: contain; border-radius: 8px; user-select: none; }
.lb button { position: absolute; background: rgba(255, 255, 255, .14); color: var(--white); border: 0; width: 52px; height: 52px; border-radius: 50%; font-size: 1.7rem; cursor: pointer; display: grid; place-items: center; }
.lb button:hover { background: var(--lime); color: var(--navy); }
.lb .lb-close { top: 1rem; inset-inline-end: 1rem; }
.lb .lb-prev { inset-inline-start: 1rem; top: 50%; transform: translateY(-50%); }
.lb .lb-next { inset-inline-end: 1rem; top: 50%; transform: translateY(-50%); }
.lb .lb-cap { position: absolute; inset-block-end: 1rem; color: var(--white); text-align: center; width: 100%; font-size: .95rem; padding-inline: 4.5rem; }
.lb .lb-count { position: absolute; inset-block-start: 1.2rem; inset-inline-start: 1.2rem; color: var(--lime); font-weight: 800; }
@media (max-width: 640px) { .lb .lb-prev, .lb .lb-next { top: auto; bottom: 4.2rem; transform: none; width: 46px; height: 46px; } }

/* contact page */
.contact-grid { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.contact-list { display: grid; gap: .6rem; margin-bottom: 1rem; }
.contact-list li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.contact-list .icon { color: var(--blue); }
.social-list { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: 1rem; }

.error-page { padding-block: 5rem; }
.error-code { font-size: clamp(4rem, 16vw, 8rem); font-weight: 900; line-height: 1; margin: 0; color: var(--blue); opacity: .22; }
.debug { text-align: start; background: var(--navy-950); color: #d6e6ff; padding: 1rem; border-radius: 10px; overflow: auto; font-size: .8rem; }

/* ---------- Footer (navy) ---------- */
.site-footer { background: var(--navy-950); color: #e6edf9; border-top: 4px solid var(--lime); }
.site-footer a { color: #d6e6ff; }
.site-footer a:hover { color: var(--lime); }
.footer-grid { display: grid; gap: 2rem; padding-block: 3rem 2rem; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.footer-col h2 { font-size: 1rem; color: var(--white); letter-spacing: .02em; margin-bottom: .75rem; position: relative; padding-bottom: .5rem; }
.footer-col h2::after { content: ""; position: absolute; inset-inline-start: 0; bottom: 0; width: 30px; height: 3px; background: var(--lime); border-radius: 3px; }
.footer-col li + li { margin-top: .4rem; }
.footer-brand .logo-tile { margin-bottom: 1rem; border-radius: 20px; padding: 3px; }
.footer-brand .brand-logo { width: 132px; height: 132px; border-radius: 17px; }
.footer-name { font-size: 1.35rem; font-weight: 800; color: var(--white); margin-bottom: .35rem; }
.muted-on-dark { color: var(--muted-on-dark); }
.footer-contact li { display: flex; align-items: center; gap: .5rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1rem; font-size: .9rem; color: var(--muted-on-dark); }
.footer-bottom .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; }
.footer-bottom p { margin: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .card:hover, .btn:hover, .branch-tile:hover, .type-card:hover { transform: none; }
  .branch-tile:hover img, .card:hover .card-media img { transform: none; }
}
@media print {
  .site-header, .site-footer, .nav-toggle, .hero-toggle, .tour { display: none; }
}

/* ---------- Phone numbers: always left-to-right, even inside Arabic (RTL) text ---------- */
.num { direction: ltr; unicode-bidi: isolate; display: inline-block; white-space: nowrap; }
.header-phone { display: inline-flex; align-items: center; gap: .45rem; color: var(--white); text-decoration: none; font-weight: 800; padding: .35rem .85rem; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .22); min-height: 40px; }
.header-phone:hover { background: var(--lime); color: var(--navy); }
.header-phone .icon { color: var(--lime); }
.header-phone:hover .icon { color: var(--navy); }
@media (max-width: 1180px) and (min-width: 961px) { .header-phone .num { display: none; } .header-phone { padding: .35rem .7rem; } }

/* ---------- Floating WhatsApp button ---------- */
.wa-float { position: fixed; inset-inline-end: 1.1rem; bottom: 1.1rem; z-index: 60; width: 60px; height: 60px; border-radius: 50%; background: #0b7a6f; color: var(--white); display: grid; place-items: center; box-shadow: 0 8px 24px rgba(3, 11, 24, .4); border: 3px solid var(--white); transition: transform .2s, background .2s; }
.wa-float:hover { background: #085e55; color: var(--white); transform: scale(1.07); }
.wa-float .icon { width: 30px; height: 30px; }
@media (max-width: 640px) { .wa-float { width: 56px; height: 56px; inset-inline-end: .8rem; bottom: .8rem; } }
@media print { .wa-float { display: none; } }
@media (prefers-reduced-motion: reduce) { .wa-float:hover { transform: none; } }
