/* Chale by Yazan Rentals — website styles */

:root {
  --brand-950: #1c0032;
  --brand-900: #2a0149;
  --brand-700: #51028d;
  --brand-500: #a802ba;
  --brand-300: #e99cfd;
  --brand-50:  #faf3fd;
  --gradient: linear-gradient(120deg, #51028d 0%, #a802ba 55%, #e99cfd 100%);

  --ink: #17121d;
  --ink-2: #3b3445;
  --muted: #6e6679;
  --line: #ebe6f0;
  --surface: #f8f6fa;
  --bg: #ffffff;
  --star: #f5b301;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow-sm: 0 1px 2px rgba(23, 18, 29, .06), 0 1px 1px rgba(23, 18, 29, .04);
  --shadow: 0 10px 30px -12px rgba(42, 1, 73, .25);
  --shadow-lg: 0 30px 60px -20px rgba(42, 1, 73, .45);

  --container: 1200px;
  --gutter: 20px;
  --header-h: 72px;

  --font: "Poppins", "Tajawal", system-ui, -apple-system, "Segoe UI", sans-serif;
}

html[lang="ar"] { --font: "Tajawal", "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif; }

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
/* Default icon size; component rules below override it. */
svg[aria-hidden="true"] { width: 1em; height: 1em; flex: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--brand-300); outline-offset: 2px; border-radius: 6px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .8em 1.4em; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: .95rem; line-height: 1.1; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--gradient); color: #fff; box-shadow: 0 8px 20px -8px rgba(168, 2, 186, .7); }
.btn-primary:hover { box-shadow: 0 12px 28px -8px rgba(168, 2, 186, .85); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .28); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.btn-outline { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink-2); }
.btn svg { width: 1.2em; height: 1.2em; flex: none; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  display: flex; align-items: center;
  transition: background .25s ease, box-shadow .25s ease, color .25s ease;
  color: #fff;
}
.site-header.is-solid, .site-header.always-solid {
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(14px);
  box-shadow: 0 1px 0 var(--line); color: var(--ink);
}
.site-header .container { display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.brand-mark { width: 38px; height: 38px; }
.brand-word { height: 18px; width: auto; }
.brand .on-dark { display: block; }
.brand .on-light { display: none; }
.site-header.is-solid .brand .on-dark, .site-header.always-solid .brand .on-dark { display: none; }
.site-header.is-solid .brand .on-light, .site-header.always-solid .brand .on-light { display: block; }
.nav { display: flex; gap: 26px; margin-inline-start: auto; font-weight: 500; font-size: .95rem; }
.nav a { opacity: .85; transition: opacity .15s; }
.nav a:hover { opacity: 1; }
.header-actions { display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  border: 1px solid currentColor; border-color: rgba(127, 127, 127, .35); background: transparent;
  border-radius: 999px; padding: .45em .95em; font-weight: 600; font-size: .85rem;
}
.site-header .btn { padding: .65em 1.15em; font-size: .88rem; }
@media (max-width: 860px) {
  .nav { display: none; }
  .header-actions { margin-inline-start: auto; }
  .header-actions .btn { display: none; }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: radial-gradient(1200px 600px at 85% 110%, rgba(168, 2, 186, .55), transparent 60%),
              radial-gradient(900px 500px at 10% -10%, rgba(233, 156, 253, .18), transparent 60%),
              linear-gradient(160deg, var(--brand-950) 0%, var(--brand-900) 45%, var(--brand-700) 100%);
  padding: calc(var(--header-h) + 64px) 0 120px;
}
.hero-bg {
  position: absolute; inset: 0; background-size: cover; background-position: center;
  opacity: 0; transition: opacity 1.2s ease; transform: scale(1.04);
}
.hero-bg.is-loaded { opacity: .28; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(28, 0, 50, .2) 0%, rgba(28, 0, 50, .55) 100%);
}
.hero .container { position: relative; z-index: 1; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: .4em .9em; border-radius: 999px;
  background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2);
  font-size: .82rem; font-weight: 500; letter-spacing: .02em;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--brand-300); box-shadow: 0 0 0 4px rgba(233, 156, 253, .25); }
.hero h1 {
  font-size: clamp(2.2rem, 5.4vw, 4.1rem); line-height: 1.08; letter-spacing: -.02em;
  margin: 22px 0 18px; max-width: 14ch; font-weight: 700;
}
.hero h1 > span { display: block; }
html[lang="ar"] .hero h1 { letter-spacing: 0; line-height: 1.25; max-width: none; }
.hero h1 .accent {
  background: linear-gradient(90deg, #f6d6ff, var(--brand-300)); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: clamp(1rem, 1.6vw, 1.18rem); max-width: 46ch; opacity: .85; margin: 0 0 34px; }
.hero-stats { display: flex; gap: 32px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats div { display: flex; flex-direction: column; }
.hero-stats strong { font-size: 1.6rem; font-weight: 700; line-height: 1.1; }
.hero-stats span { font-size: .85rem; opacity: .75; }

/* ── Search panel ────────────────────────────────────────── */
.search-panel {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr auto; gap: 6px;
  background: #fff; color: var(--ink); border-radius: 22px; padding: 8px;
  box-shadow: var(--shadow-lg); max-width: 920px;
}
.field { display: flex; flex-direction: column; padding: 10px 16px; border-radius: 16px; min-width: 0; transition: background .15s; }
.field:hover, .field:focus-within { background: var(--surface); }
.field label { font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
html[lang="ar"] .field label { text-transform: none; letter-spacing: 0; font-size: .82rem; }
.field select, .field input {
  border: 0; background: transparent; padding: 2px 0 0; font-weight: 500; font-size: .98rem; width: 100%;
  appearance: none; -webkit-appearance: none; outline: none; min-width: 0;
}
.search-panel .btn { border-radius: 16px; padding: 0 28px; font-size: 1rem; }
@media (max-width: 900px) {
  .search-panel { grid-template-columns: 1fr 1fr; }
  .search-panel .field:first-child { grid-column: 1 / -1; }
  .search-panel .btn { grid-column: 1 / -1; padding: 16px; }
}

/* ── Sections ────────────────────────────────────────────── */
.section { padding: 84px 0; }
.section-alt { background: var(--surface); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); line-height: 1.15; margin: 6px 0 0; letter-spacing: -.01em; }
.kicker { color: var(--brand-500); font-weight: 600; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; }
html[lang="ar"] .kicker { letter-spacing: 0; }
.section-head p { color: var(--muted); margin: 8px 0 0; max-width: 52ch; }

/* ── City chips / filter chips ───────────────────────────── */
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: .55em 1em; border-radius: 999px;
  border: 1px solid var(--line); background: #fff; font-size: .9rem; font-weight: 500; color: var(--ink-2);
  transition: border-color .15s, background .15s, color .15s;
}
.chip:hover { border-color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip .count { font-size: .78rem; opacity: .6; }
.chip svg { width: 16px; height: 16px; }

.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.toolbar .result-count { color: var(--muted); font-weight: 500; }
.sort { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: .92rem; }
.sort select { border: 1px solid var(--line); border-radius: 999px; padding: .5em 2.2em .5em 1em; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236e6679' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .9em center; appearance: none; -webkit-appearance: none; color: var(--ink); font-weight: 500; }
html[dir="rtl"] .sort select { background-position: left .9em center; padding: .5em 1em .5em 2.2em; }

/* ── Chalet cards ────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 28px 22px; }
.card { display: flex; flex-direction: column; gap: 12px; color: inherit; }
.card-media {
  position: relative; aspect-ratio: 4 / 3.4; border-radius: var(--radius); overflow: hidden; background: var(--surface);
}
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2, .7, .2, 1), opacity .3s; }
.card:hover .card-media img { transform: scale(1.05); }
.card-badge {
  position: absolute; top: 12px; inset-inline-start: 12px; display: inline-flex; align-items: center; gap: 6px;
  background: var(--gradient); color: #fff; font-size: .78rem; font-weight: 600; padding: .4em .8em; border-radius: 999px;
  box-shadow: 0 4px 14px -4px rgba(81, 2, 141, .6);
}
.card-badge svg { width: 14px; height: 14px; }
.card-photos {
  position: absolute; bottom: 12px; inset-inline-end: 12px; background: rgba(23, 18, 29, .65); color: #fff;
  font-size: .75rem; font-weight: 500; padding: .3em .65em; border-radius: 999px; display: inline-flex; gap: 5px; align-items: center;
}
.card-photos svg { width: 13px; height: 13px; }
.card-body { display: flex; flex-direction: column; gap: 3px; padding-inline: 2px; }
.card-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.card-title { font-weight: 600; font-size: 1.02rem; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.rating { display: inline-flex; align-items: center; gap: 4px; font-size: .9rem; font-weight: 500; flex: none; }
.rating svg { width: 14px; height: 14px; color: var(--ink); }
.rating.is-new { color: var(--brand-500); font-weight: 600; font-size: .82rem; }
.card-meta { color: var(--muted); font-size: .92rem; }
.card-price { margin-top: 4px; font-size: .95rem; }
.card-price strong { font-weight: 700; font-size: 1.05rem; }
.card-price s { color: var(--muted); margin-inline-end: 4px; font-size: .88rem; }

/* Featured rail */
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: min(78%, 420px); gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: none; }
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; }
.rail .card-media { aspect-ratio: 16 / 11; }

/* Skeletons */
.skeleton .card-media, .skeleton .sk-line { background: linear-gradient(90deg, #f2eef5 0%, #faf8fc 50%, #f2eef5 100%); background-size: 200% 100%; animation: sk 1.3s infinite linear; }
.sk-line { height: 12px; border-radius: 6px; }
@keyframes sk { to { background-position: -200% 0; } }

.empty { text-align: center; padding: 60px 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-lg); }
.empty strong { display: block; color: var(--ink); font-size: 1.1rem; margin-bottom: 6px; }

/* ── Features ────────────────────────────────────────────── */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 24px; }
.feature .icon { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand-500); margin-bottom: 18px; }
.feature .icon svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 6px; font-size: 1.08rem; }
.feature p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 960px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; padding: 26px 24px 24px; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 700; margin-bottom: 14px; }
.step h3 { margin: 0 0 6px; font-size: 1.05rem; }
.step p { margin: 0; color: var(--muted); font-size: .95rem; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ── App CTA ─────────────────────────────────────────────── */
.app-cta {
  position: relative; overflow: hidden; border-radius: 32px; color: #fff; padding: 64px 56px;
  background: radial-gradient(700px 400px at 100% 100%, rgba(233, 156, 253, .45), transparent 60%),
              linear-gradient(135deg, var(--brand-900), var(--brand-700) 60%, var(--brand-500));
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.app-cta h2 { font-size: clamp(1.7rem, 3.2vw, 2.6rem); line-height: 1.15; margin: 0 0 14px; }
.app-cta p { opacity: .85; margin: 0 0 28px; max-width: 44ch; }
.app-cta .store-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.app-cta .cta-mark { justify-self: center; width: min(280px, 70%); opacity: .95; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, .35)); }
@media (max-width: 820px) { .app-cta { grid-template-columns: 1fr; padding: 44px 26px; text-align: center; } .app-cta p { margin-inline: auto; } .app-cta .store-buttons { justify-content: center; } .app-cta .cta-mark { width: 140px; grid-row: 1; } }

.store-btn {
  display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 14px; border-radius: 14px;
  background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, .2); min-width: 180px; transition: transform .15s, background .2s;
}
.store-btn:hover { transform: translateY(-2px); background: #111; }
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.15; text-align: start; }
.store-btn small { font-size: .68rem; opacity: .8; }
.store-btn strong { font-size: 1.02rem; font-weight: 600; }

/* ── Footer ──────────────────────────────────────────────── */
.site-footer { background: var(--brand-950); color: rgba(255, 255, 255, .75); padding: 56px 0 34px; margin-top: 84px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; margin: 0 0 14px; font-size: .95rem; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: .93rem; }
.footer-grid a:hover { color: #fff; }
.footer-brand p { max-width: 36ch; font-size: .93rem; margin: 16px 0 0; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 40px; padding-top: 22px; font-size: .85rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Chalet page ─────────────────────────────────────────── */
.page-top { padding-top: calc(var(--header-h) + 24px); }
.crumbs { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .9rem; margin-bottom: 14px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs svg { width: 14px; height: 14px; }
html[dir="rtl"] .crumbs svg, html[dir="rtl"] .flip-rtl { transform: scaleX(-1); }
.chalet-title { font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.2; margin: 0 0 8px; letter-spacing: -.01em; }
.chalet-sub { display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; color: var(--ink-2); font-weight: 500; }
.chalet-sub .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); opacity: .6; }
.chalet-sub svg { width: 16px; height: 16px; vertical-align: -3px; }

.gallery { margin-top: 22px; display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 220px 220px; gap: 8px; border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.gallery button { padding: 0; border: 0; background: var(--surface); overflow: hidden; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, filter .2s; }
.gallery button:hover img { filter: brightness(.92); }
.gallery button:first-child { grid-row: 1 / -1; }
.gallery .show-all { position: absolute; bottom: 16px; inset-inline-end: 16px; }
@media (max-width: 760px) {
  .gallery { grid-template-columns: 1fr; grid-template-rows: 280px; border-radius: var(--radius); }
  .gallery button:not(:first-child) { display: none; }
}

.chalet-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 56px; margin-top: 36px; }
@media (max-width: 980px) { .chalet-layout { grid-template-columns: 1fr; gap: 0; } }
.block { padding: 30px 0; border-bottom: 1px solid var(--line); }
.block:first-child { padding-top: 0; }
.block h2 { font-size: 1.3rem; margin: 0 0 18px; display: flex; align-items: center; gap: 6px; }
.block h2 svg { width: .85em; height: .85em; }
.facts { display: flex; flex-wrap: wrap; gap: 12px; }
.fact { display: inline-flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: var(--radius); background: var(--surface); font-weight: 500; }
.fact svg { width: 20px; height: 20px; color: var(--brand-500); }
.description { white-space: pre-line; color: var(--ink-2); unicode-bidi: plaintext; }
.description.is-clamped { max-height: 11.5em; overflow: hidden; -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent); mask-image: linear-gradient(180deg, #000 70%, transparent); }
.link-btn { background: none; border: 0; padding: 0; margin-top: 12px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

.amenities { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 24px; }
.amenity { display: flex; align-items: center; gap: 12px; color: var(--ink-2); }
.amenity svg { width: 22px; height: 22px; color: var(--ink); flex: none; }
@media (max-width: 520px) { .amenities { grid-template-columns: 1fr; } }

.price-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.price-option { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.price-option h3 { margin: 0; font-size: 1rem; }
.price-option .hours { color: var(--muted); font-size: .85rem; }
.price-option .amount { margin-top: 12px; font-size: 1.35rem; font-weight: 700; }
.price-option .amount s { font-size: .95rem; color: var(--muted); font-weight: 500; margin-inline-end: 6px; }
.price-option .weekend { font-size: .85rem; color: var(--muted); margin-top: 2px; }

.rules { display: grid; gap: 12px; }
.rule { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-2); }
.rule svg { width: 20px; height: 20px; flex: none; margin-top: 2px; }
.rule.ok svg { color: #16a34a; }
.rule.no svg { color: #dc2626; }
.rule .note { unicode-bidi: plaintext; }

.reviews { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.review { padding: 4px 0; }
.review-head { display: flex; gap: 12px; align-items: center; margin-bottom: 8px; }
.avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient); color: #fff; font-weight: 700; }
.review-head .who { font-weight: 600; }
.review-head .when { color: var(--muted); font-size: .85rem; }
.review p { margin: 0; color: var(--ink-2); unicode-bidi: plaintext; }
.stars { display: inline-flex; gap: 2px; color: var(--star); }
.stars svg { width: 14px; height: 14px; }
@media (max-width: 640px) { .reviews { grid-template-columns: 1fr; } }

.map-frame { width: 100%; height: 340px; border: 0; border-radius: var(--radius); background: var(--surface); }
.map-note { color: var(--muted); font-size: .88rem; margin-top: 10px; }

.book-card {
  position: sticky; top: calc(var(--header-h) + 20px); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow); background: #fff;
}
.book-card .from { color: var(--muted); font-size: .9rem; }
.book-card .big-price { font-size: 1.8rem; font-weight: 700; line-height: 1.1; }
.book-card .big-price small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.book-card ul { list-style: none; padding: 0; margin: 18px 0; display: grid; gap: 10px; font-size: .93rem; }
.book-card li { display: flex; justify-content: space-between; gap: 12px; }
.book-card li span:first-child { color: var(--muted); }
.book-card .btn { width: 100%; padding: 1em; font-size: 1rem; }
.book-card .hint { text-align: center; font-size: .82rem; color: var(--muted); margin: 12px 0 0; }
.book-card .alt-stores { display: flex; justify-content: center; gap: 14px; margin-top: 10px; font-size: .85rem; font-weight: 600; }
.book-card .alt-stores a { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 980px) { .book-aside { display: none; } }

.mobile-book {
  display: none; position: fixed; inset: auto 0 0 0; z-index: 40; background: #fff; border-top: 1px solid var(--line);
  padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 14px;
}
.mobile-book .from { font-size: .8rem; color: var(--muted); }
.mobile-book strong { font-size: 1.15rem; }
@media (max-width: 980px) { .mobile-book { display: flex; } body.has-mobile-book .site-footer { padding-bottom: 110px; } }

/* Lightbox */
.lightbox { border: 0; padding: 0; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; background: rgba(10, 4, 16, .96); color: #fff; }
.lightbox::backdrop { background: rgba(10, 4, 16, .96); }
.lightbox-inner { position: relative; width: 100%; height: 100%; display: grid; place-items: center; padding: 60px 70px; }
.lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; display: grid; place-items: center; }
.lb-btn:hover { background: rgba(255, 255, 255, .22); }
.lb-btn svg { width: 22px; height: 22px; }
.lb-close { top: 16px; inset-inline-end: 16px; }
.lb-prev { inset-inline-start: 16px; top: 50%; translate: 0 -50%; }
.lb-next { inset-inline-end: 16px; top: 50%; translate: 0 -50%; }
.lb-count { position: absolute; top: 26px; inset-inline-start: 24px; font-size: .9rem; opacity: .8; }
@media (max-width: 640px) { .lightbox-inner { padding: 70px 10px; } .lb-prev, .lb-next { top: auto; bottom: 16px; translate: none; } }

.notice { padding: 120px 0 40px; text-align: center; }
.notice h1 { margin: 0 0 10px; }
.notice p { color: var(--muted); margin: 0 0 24px; }

/* Content pages (privacy, support) */
.prose { max-width: 820px; padding-bottom: 20px; color: var(--ink-2); }
.prose h1 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--ink); margin: 8px 0 6px; }
.prose h2 { font-size: 1.25rem; color: var(--ink); margin: 34px 0 10px; }
.prose h3 { font-size: 1.02rem; color: var(--ink); margin: 22px 0 6px; }
.prose p, .prose li { line-height: 1.75; }
.prose ul { padding-inline-start: 1.2em; }
.prose a { color: var(--brand-500); text-decoration: underline; text-underline-offset: 3px; }
.prose .meta { color: var(--muted); font-size: .9rem; margin: 0 0 24px; }
.prose .lead-text { font-size: 1.1rem; margin: 0 0 24px; }
.contact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin-bottom: 18px; }
.prose .contact-card { display: flex; flex-direction: column; gap: 4px; padding: 20px 22px; border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.prose .contact-card:hover { border-color: var(--brand-300); box-shadow: var(--shadow); }
.contact-card span { color: var(--brand-500); font-weight: 600; overflow-wrap: anywhere; }
.contact-card small { color: var(--muted); }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
