/* Watan website: place pages ("/places" and "/place/<slug>"). Uses the tokens of styles.css. */
body.ex { background: var(--cream); }
.ex .nav { background: rgba(254,254,250,.92); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 rgba(3,74,61,.08); }
.ex .nav-links a.on::after { transform: scaleX(1); }
.ex-wrap { max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
[hidden] { display: none !important; }

/* ---------- list page: head ---------- */
.ex-head { position: relative; overflow: hidden; padding: 116px 0 30px; background: radial-gradient(120% 90% at 80% 0%, var(--cream) 0%, var(--beige) 60%, var(--beige-2) 100%); }
.ex-head .pattern { opacity: .28; -webkit-mask-image: radial-gradient(60% 90% at 15% 30%, #000, transparent 75%); mask-image: radial-gradient(60% 90% at 15% 30%, #000, transparent 75%); }
[dir="ltr"] .ex-head .pattern { -webkit-mask-image: radial-gradient(60% 90% at 85% 30%, #000, transparent 75%); mask-image: radial-gradient(60% 90% at 85% 30%, #000, transparent 75%); }
.ex-head .ex-wrap { position: relative; z-index: 2; }
.ex-title { font-size: clamp(34px, 4.6vw, 60px); font-weight: 800; color: var(--green); line-height: 1.1; }
.ex-sub { color: var(--muted); font-size: 18px; margin-top: 10px; max-width: 640px; }
.ex-search { margin-top: 24px; display: flex; align-items: center; gap: 12px; max-width: 760px; min-height: 60px; padding: 0 22px; background: #fff; border-radius: 999px; border: 1px solid var(--line); box-shadow: 0 18px 40px -24px rgba(3,74,61,.45); }
.ex-search svg { width: 22px; height: 22px; stroke: var(--green); fill: none; stroke-width: 2; flex: none; }
.ex-search input { flex: 1; border: 0; outline: 0; font: 500 18px 'Tajawal', sans-serif; color: var(--ink); background: none; min-width: 0; }
.ex-search button { border: 0; background: none; color: var(--muted); font-size: 22px; min-width: 44px; min-height: 44px; cursor: pointer; }
.chips { display: flex; gap: 10px; overflow-x: auto; padding: 20px 0 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 1.5px solid rgba(3,74,61,.22); background: rgba(254,254,250,.75); color: var(--green); font: 700 15px 'Tajawal', sans-serif; min-height: 44px; padding: 0 18px; border-radius: 999px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; transition: background .2s, color .2s; }
.chip:hover { background: #fff; }
.chip small { font-weight: 500; opacity: .65; font-size: 13px; }
.chip[aria-pressed="true"] { background: var(--green); color: #fff; border-color: var(--green); }

/* filter bar */
.ex-bar { position: sticky; top: 72px; z-index: 20; background: rgba(254,254,250,.95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.ex-bar .ex-wrap { display: flex; align-items: center; gap: 14px; }
.ex-bar .chips { padding: 10px 0; flex: 1; }
.ex-bar .chip { min-height: 40px; font-size: 14px; background: #fff; }
.ex-bar .chip[aria-pressed="true"] { background: var(--green); color: #fff; }
.ex-count { color: var(--muted); font-weight: 500; white-space: nowrap; }

/* list + map */
.ex-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 40%); gap: 28px; padding-top: 28px; padding-bottom: 60px; }
.ex-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 22px; align-content: start; }
.ex-card { text-decoration: none; color: inherit; display: flex; flex-direction: column; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); overflow: hidden; transition: transform .3s, box-shadow .3s; }
.ex-card:hover, .ex-card:focus-visible { transform: translateY(-4px); box-shadow: 0 24px 48px -28px rgba(3,74,61,.55); }
.ex-card-img { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--beige); }
.ex-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.ex-card:hover .ex-card-img img { transform: scale(1.05); }
.ex-tag { position: absolute; inset-inline-start: 12px; top: 12px; background: rgba(254,254,250,.92); color: var(--green); font-weight: 700; font-size: 13px; padding: 5px 12px; border-radius: 999px; }
.ex-card-body { padding: 15px 18px 18px; display: flex; flex-direction: column; gap: 6px; }
.ex-card-name { font-size: 19px; font-weight: 800; color: var(--green); line-height: 1.3; }
.ex-where { display: flex; align-items: center; gap: 6px; color: var(--sand-dark); font-weight: 500; font-size: 14px; }
.ex-where svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; flex: none; }
.ex-short { color: var(--muted); font-size: 15px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ex-more { grid-column: 1 / -1; justify-self: center; margin-top: 10px; border: 1.5px solid rgba(3,74,61,.35); background: #fff; color: var(--green); font: 700 16px 'Tajawal', sans-serif; min-height: 50px; padding: 0 30px; border-radius: 999px; cursor: pointer; }
.ex-more:hover { background: var(--beige); }

.ex-state { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 14px; font-size: 17px; }
.ex-state b { color: var(--green); font-size: 21px; }
.ex-state button { border: 0; background: var(--green); color: #fff; font: 700 15px 'Tajawal', sans-serif; min-height: 46px; padding: 0 24px; border-radius: 999px; cursor: pointer; }
.ex-skel { border-radius: var(--radius); background: linear-gradient(100deg, var(--beige) 30%, #F8EFE0 50%, var(--beige) 70%); background-size: 300% 100%; animation: exsk 1.4s infinite; aspect-ratio: 4/4.4; }
@keyframes exsk { to { background-position: -150% 0; } }

/* map */
.ex-map { position: sticky; top: 150px; height: calc(100vh - 174px); min-height: 420px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: #F3E7D3; }
.ex-map > div, .ex-map > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ex-pin { cursor: pointer; }
.ex-pin circle { fill: var(--green); stroke: #FEFEFA; stroke-width: 3; }
.ex-pin.on circle { fill: var(--sand-dark); }
.ex-pop { position: absolute; z-index: 3; inset-inline: 12px; bottom: 12px; display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 18px; padding: 10px; box-shadow: 0 18px 40px -20px rgba(3,74,61,.6); text-decoration: none; color: inherit; }
.ex-pop img { width: 76px; height: 64px; border-radius: 12px; object-fit: cover; background: var(--beige); flex: none; }
.ex-pop b { display: block; color: var(--green); font-size: 17px; }
.ex-pop span { color: var(--muted); font-size: 14px; }
.ex-pop .x { margin-inline-start: auto; border: 0; background: none; font-size: 24px; color: var(--muted); min-width: 44px; min-height: 44px; cursor: pointer; }
.ex-toggle { display: none; }

/* app strip + footer */
.ex-app { background: var(--green-deep); color: #E9E2D2; }
.ex-app .ex-wrap { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding-block: 34px; }
.ex-app img { height: 60px; width: auto; }
.ex-app h2, .ex-app h3 { color: #fff; font-size: 24px; font-weight: 800; letter-spacing: 0; }
.ex-app p { opacity: .85; }
.ex-app .grow { flex: 1; min-width: 240px; }
.ex-app .btn-gold[aria-disabled="true"] { opacity: .7; pointer-events: none; }
.ex .footer { border-top: 1px solid rgba(255,255,255,.08); }

/* ---------- place page ---------- */
.pl-hero { position: relative; height: min(76vh, 700px); min-height: 440px; overflow: hidden; background: var(--green-deep); }
.pl-hero > img { width: 100%; height: 100%; object-fit: cover; }
.pl-hero > img.pl-cover { object-position: 50% 30%; }
.pl-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(2,46,38,.35) 0%, transparent 30%, rgba(2,46,38,.88) 100%); pointer-events: none; }
.pl-hero .ex-wrap { position: absolute; inset-inline: 0; bottom: 40px; z-index: 2; color: #fff; pointer-events: none; }
.pl-hero .ex-wrap a, .pl-hero .ex-wrap button { pointer-events: auto; }
.pl-crumb { font-weight: 500; opacity: .9; margin-bottom: 10px; }
.pl-crumb a { color: #fff; }
.pl-hero h1 { font-size: clamp(38px, 6vw, 82px); font-weight: 800; line-height: 1.05; }
.pl-meta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.pl-pill { background: rgba(254,254,250,.16); border: 1px solid rgba(254,254,250,.35); backdrop-filter: blur(8px); padding: 7px 16px; border-radius: 999px; font-weight: 700; }
.pl-thumbs { display: flex; gap: 10px; margin-top: 18px; overflow-x: auto; scrollbar-width: none; }
.pl-thumbs button { flex: none; padding: 0; border: 2px solid rgba(254,254,250,.6); border-radius: 12px; overflow: hidden; cursor: pointer; background: none; width: 92px; height: 64px; }
.pl-thumbs button[aria-current="true"] { border-color: var(--sand); }
.pl-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pl-credit { position: absolute; z-index: 3; top: 84px; inset-inline-end: var(--gutter); font-size: 12px; color: #fff; opacity: .85; background: rgba(2,46,38,.45); padding: 4px 10px; border-radius: 999px; max-width: 60vw; }
.pl-credit a { color: #fff; }

.pl-body { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 48px; padding-block: 54px 64px; }
.pl-body h2, .pl-sec h2 { font-size: 27px; font-weight: 800; color: var(--green); margin-bottom: 14px; }
.pl-text p { font-size: 19px; line-height: 1.9; color: var(--ink); margin-bottom: 14px; white-space: pre-line; }
.pl-facts { position: sticky; top: 100px; align-self: start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.pl-fact b { display: block; color: var(--green); font-size: 15px; margin-bottom: 3px; }
.pl-fact span, .pl-fact a { color: var(--muted); overflow-wrap: anywhere; }
.pl-fact a { color: var(--green-2); }
.pl-facts .btn { justify-content: center; }
.pl-mini { position: relative; height: 210px; border-radius: 18px; background: var(--beige); overflow: hidden; }
.pl-mini > div, .pl-mini > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.pl-apponly { display: flex; gap: 10px; align-items: flex-start; background: var(--olive-soft); border-radius: 18px; padding: 14px 16px; color: var(--olive); font-weight: 700; font-size: 15px; line-height: 1.5; }
.pl-apponly svg { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; margin-top: 1px; }

.pl-sec { padding-bottom: 64px; }
.pl-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.pl-video { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; }
.pl-video i { width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-style: normal; flex: none; }
.pl-video b { color: var(--green); display: block; }
.pl-video span { color: var(--muted); font-size: 14px; }

.pl-box { position: fixed; inset: 0; z-index: 100; background: rgba(2,20,16,.94); display: flex; align-items: center; justify-content: center; }
.pl-box img { max-width: 92vw; max-height: 84vh; object-fit: contain; border-radius: 10px; }
.pl-box button { position: absolute; border: 0; background: rgba(254,254,250,.14); color: #fff; width: 52px; height: 52px; border-radius: 50%; font-size: 26px; cursor: pointer; }
.pl-box .close { top: 18px; inset-inline-end: 18px; }
.pl-box .prev { inset-inline-start: 18px; top: 50%; transform: translateY(-50%); }
.pl-box .next { inset-inline-end: 18px; top: 50%; transform: translateY(-50%); }
.pl-box p { position: absolute; bottom: 16px; inset-inline: 0; text-align: center; color: #D9D6C7; font-size: 13px; }

@media (max-width: 1000px) {
  .ex-body { grid-template-columns: 1fr; }
  .ex-map { display: none; position: relative; top: 0; height: calc(100vh - 210px); }
  .ex-body.show-map .ex-map { display: block; }
  .ex-body.show-map .ex-grid { display: none; }
  .ex-toggle { display: inline-flex; position: fixed; z-index: 30; bottom: 20px; left: 50%; transform: translateX(-50%); align-items: center; gap: 8px; border: 0; background: var(--green-deep); color: #fff; font: 700 15px 'Tajawal', sans-serif; min-height: 50px; padding: 0 24px; border-radius: 999px; box-shadow: 0 14px 30px -12px rgba(2,46,38,.7); cursor: pointer; }
  .pl-body { grid-template-columns: 1fr; gap: 30px; }
  .pl-facts { position: static; }
}
@media (max-width: 520px) {
  .ex-head { padding-top: 96px; }
  .ex-bar { top: 60px; }
  .ex-sub { font-size: 16px; }
  .ex-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .ex-card-body { padding: 11px 12px 13px; }
  .ex-card-name { font-size: 16px; }
  .ex-short { display: none; }
  .ex-where { font-size: 12.5px; }
  .ex-tag { font-size: 11.5px; padding: 4px 9px; top: 8px; inset-inline-start: 8px; }
  .pl-text p { font-size: 17px; }
  .pl-credit { top: 70px; }
}

/* computers (mouse): chips wrap onto more lines instead of a hidden side scroll; phones keep swiping */
@media (hover: hover) and (pointer: fine) {
  .chips { flex-wrap: wrap; overflow: visible; }
  .ex-bar .chips { padding: 10px 0; }
}

/* ---------- ornaments ---------- */
.ex-head { isolation: isolate; }
.ex-orbs .ring.r1 { inset-inline-end: -180px; top: -200px; }
.ex-orbs .ring.r3 { inset-inline-start: auto; inset-inline-end: 24%; top: 30%; width: 90px; height: 90px; }
.ex-orbs .star.s1 { inset-inline-start: auto; inset-inline-end: 9%; top: 34%; width: 96px; color: var(--sand); opacity: .75; }
.ex-orbs .star.s2 { inset-inline-end: 30%; bottom: 16%; width: 40px; }
.ex-orbs .star.s3 { inset-inline-start: auto; inset-inline-end: -36px; bottom: -40px; width: 130px; opacity: .45; }
.ex-bg { position: relative; height: 0; z-index: 0; }
.ex-bg .pattern { position: absolute; inset: 0 0 auto; height: 900px; opacity: .14; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.ex-body { position: relative; z-index: 1; }
.ex-app { position: relative; overflow: hidden; isolation: isolate; }
.ex-app-pattern { opacity: .1; filter: brightness(1.6); -webkit-mask-image: radial-gradient(60% 120% at 50% 50%, #000, transparent); mask-image: radial-gradient(60% 120% at 50% 50%, #000, transparent); z-index: -1; }
.ex-app-star { position: absolute; z-index: -1; width: 220px; inset-inline-end: -60px; top: 50%; margin-top: -110px; color: var(--sand); opacity: .18; animation: spin 80s linear infinite; }
.pl-hero .pl-star { position: absolute; z-index: 2; width: 120px; inset-inline-end: 5%; bottom: 46px; color: var(--sand); opacity: .55; animation: spin 50s linear infinite; pointer-events: none; }
.pl-body { position: relative; }
.pl-body::before { content: ''; position: absolute; inset: 0 0 auto; height: 520px; z-index: -1; pointer-events: none; opacity: .12;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Cg fill='none' stroke='%23C9A56E' stroke-width='1.1'%3E%3Ccircle cx='0' cy='0' r='24'/%3E%3Ccircle cx='48' cy='0' r='24'/%3E%3Ccircle cx='0' cy='48' r='24'/%3E%3Ccircle cx='48' cy='48' r='24'/%3E%3Ccircle cx='24' cy='24' r='24'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(50% 80% at 85% 0%, #000, transparent); mask-image: radial-gradient(50% 80% at 85% 0%, #000, transparent); }
[dir="ltr"] .pl-body::before { -webkit-mask-image: radial-gradient(50% 80% at 15% 0%, #000, transparent); mask-image: radial-gradient(50% 80% at 15% 0%, #000, transparent); }
.pl-text h2::after, .pl-sec h2::after { content: ''; display: block; width: 46px; height: 3px; border-radius: 3px; background: var(--sand); margin-top: 8px; }

/* ---------- motion ---------- */
@keyframes exRise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes exKen { from { transform: scale(1.12); } to { transform: scale(1); } }
.ex-head .eyebrow, .ex-title, .ex-sub, .ex-search, .ex-head .chips { animation: exRise .9s cubic-bezier(.16,1,.3,1) both; }
.ex-title { animation-delay: .08s; }
.ex-sub { animation-delay: .16s; }
.ex-search { animation-delay: .24s; }
.ex-head .chips { animation-delay: .32s; }
.pl-hero > img { animation: exKen 2.4s cubic-bezier(.16,1,.3,1) both; }
.pl-hero > img.swap { animation: exKen 1.2s cubic-bezier(.16,1,.3,1) both; }
.pl-crumb, .pl-hero h1, .pl-meta, .pl-thumbs { animation: exRise .9s cubic-bezier(.16,1,.3,1) both; }
.pl-hero h1 { animation-delay: .1s; }
.pl-meta { animation-delay: .2s; }
.pl-thumbs { animation-delay: .3s; }
.rv { opacity: 0; transform: translateY(30px); transition: opacity .8s cubic-bezier(.16,1,.3,1) var(--d, 0ms), transform .8s cubic-bezier(.16,1,.3,1) var(--d, 0ms), box-shadow .3s; }
.rv.in { opacity: 1; transform: none; }
.ex-card.rv.in:hover { transform: translateY(-4px); transition: transform .3s, box-shadow .3s; }
.ex-skel { animation: exsk 1.4s infinite; }
@media (prefers-reduced-motion: reduce) {
  .ex-head *, .pl-hero *, .pl-hero > img { animation: none !important; }
  .rv { opacity: 1; transform: none; transition: none; }
  .ex-app-star, .pl-hero .pl-star { animation: none; }
}

/* place page: information source, as in the app */
.pl-source { margin-top: 18px; font-size: 13px; color: #6B7280; line-height: 1.6; overflow-wrap: anywhere; }
