/* RATTANA HELP v2.0 — design system
   Sky · White · Indigo (คราม) with gold trim · iOS-style glass, depth & motion
   admin.css extends this file. */
:root {
  /* Brand palette */
  --indigo-950: #0B1446;
  --indigo-900: #132063;
  --indigo-800: #1C2E86;
  --indigo-700: #2940A8;
  --indigo-600: #3552C4;
  --sky-50: #F3F9FF;
  --sky-100: #E4F2FF;
  --sky-200: #C9E5FF;
  --sky-300: #9DD0FF;
  --sky-400: #5DB3F7;
  --sky-500: #2C96EE;
  --sky-600: #1679D1;
  --gold: #F5AE0A;
  --gold-2: #FFCF4D;
  --gold-3: #FFE9A8;
  --gold-ink: #9A6700;
  --gold-soft: #FFF5D6;
  --gold-grad: linear-gradient(135deg, #FFE38F 0%, #F9B92A 45%, #E39400 100%);
  --indigo-grad: linear-gradient(135deg, #2C96EE 0%, #2940A8 55%, #132063 100%);
  --sky-grad: linear-gradient(160deg, #FFFFFF 0%, #E4F2FF 100%);

  /* Aliases kept for JS / admin */
  --navy: var(--indigo-900);
  --navy-2: var(--indigo-800);
  --navy-3: var(--indigo-700);

  /* Surfaces */
  --bg: #F3F8FF;
  --surface: #FFFFFF;
  --glass: rgba(255, 255, 255, .62);
  --glass-strong: rgba(255, 255, 255, .80);
  --glass-border: rgba(255, 255, 255, .78);
  --line: rgba(19, 32, 99, .10);
  --line-2: rgba(19, 32, 99, .06);
  --text: #0E1745;
  --muted: #55608A;
  --muted-2: #8790B4;

  /* Shape & depth */
  --r-sm: 12px;
  --r: 22px;
  --r-lg: 28px;
  --r-xl: 36px;
  --shadow-sm: 0 1px 2px rgba(19, 32, 99, .06), 0 2px 10px rgba(19, 32, 99, .04);
  --shadow: 0 2px 6px rgba(19, 32, 99, .05), 0 14px 34px -10px rgba(19, 32, 99, .20);
  --shadow-lg: 0 10px 24px rgba(19, 32, 99, .10), 0 34px 70px -18px rgba(19, 32, 99, .38);
  --hi: inset 0 1px 0 rgba(255, 255, 255, .95), inset 0 0 0 1px rgba(255, 255, 255, .35);
  --blur: saturate(180%) blur(22px);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);

  --font: 'Inter', 'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --topbar-h: 64px;
  --tabbar-h: 66px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
  font-family: var(--font);
  font-size: 15.5px; line-height: 1.65; color: var(--text); background: var(--bg);
  min-height: 100dvh; overflow-x: hidden;
  display: flex; flex-direction: column; /* footer stays at the bottom even while a page loads */
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv11', 'ss01';
  padding-bottom: calc(var(--tabbar-h) + 22px + var(--safe-b));
}
/* soft sky mesh behind everything */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70vw 55vh at 0% -10%, rgba(93, 179, 247, .30), transparent 62%),
    radial-gradient(60vw 50vh at 105% 8%, rgba(41, 64, 168, .14), transparent 60%),
    radial-gradient(50vw 45vh at 85% 105%, rgba(255, 207, 77, .18), transparent 62%),
    var(--bg);
}
body.no-scroll { overflow: hidden; }
h1, h2, h3, h4, .display { font-family: var(--font); font-weight: 750; line-height: 1.28; letter-spacing: -.012em; color: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
input, select, textarea { font: inherit; font-size: 16px; color: inherit; }
:focus-visible { outline: 2.5px solid var(--sky-500); outline-offset: 2px; border-radius: 8px; }
.ic { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -0.18em; }
.num, .stat-v, .big-num b { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
.txt-muted { color: var(--muted); }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 640px) { .container { padding: 0 24px; } }

.glass {
  background: var(--glass); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-border); box-shadow: var(--hi), var(--shadow);
}
.gold-text { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Top bar (frosted) ── */
.topbar {
  position: sticky; top: 0; z-index: 1000; color: var(--indigo-900);
  background: rgba(247, 251, 255, .72); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-bottom: 1px solid rgba(19, 32, 99, .06); padding-top: env(safe-area-inset-top);
}
.topbar::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, transparent, #F9B92A 20%, #FFE38F 50%, #F9B92A 80%, transparent); opacity: .9; }
.topbar-inner { max-width: 1200px; margin: 0 auto; height: var(--topbar-h); padding: 0 16px; display: flex; align-items: center; gap: 16px; }
@media (min-width: 640px) { .topbar-inner { padding: 0 24px; } }
.brand { display: flex; align-items: center; gap: 11px; min-width: 0; }
.brand img { width: 42px; height: 42px; border-radius: 50%; background: #fff; flex-shrink: 0; box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px rgba(245, 174, 10, .55), 0 6px 14px -4px rgba(19, 32, 99, .35); }
.brand-name { font-weight: 800; font-size: 17px; letter-spacing: .16em; line-height: 1.1; white-space: nowrap; color: var(--indigo-900); }
.brand-name span { background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand-sub { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }

/* Desktop segmented nav with sliding pill */
.topnav { margin-left: auto; display: none; position: relative; gap: 2px; padding: 4px; border-radius: 999px; background: rgba(19, 32, 99, .05); box-shadow: inset 0 1px 2px rgba(19, 32, 99, .06); }
.topnav a { position: relative; z-index: 1; padding: 8px 16px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--muted); transition: color .25s; white-space: nowrap; }
.topnav a:hover { color: var(--indigo-900); }
.topnav a.active { color: #fff; }
.nav-ind { position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0; border-radius: 999px; background: var(--indigo-grad); box-shadow: 0 8px 18px -8px rgba(41, 64, 168, .8), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .5s var(--ease-spring), width .5s var(--ease-spring), opacity .2s; pointer-events: none; }
.nav-ind::after { content: ''; position: absolute; left: 30%; right: 30%; bottom: -1px; height: 2px; border-radius: 2px; background: var(--gold-grad); }

/* ── Floating tab bar (mobile) ── */
.bottomnav {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + var(--safe-b)); z-index: 1000;
  height: var(--tabbar-h); border-radius: 33px; display: grid; grid-template-columns: repeat(var(--bn-n, 6), 1fr);
  background: rgba(255, 255, 255, .74); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--hi), 0 18px 40px -12px rgba(19, 32, 99, .35);
}
.bottomnav a { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10.5px; font-weight: 600; color: var(--muted-2); line-height: 1.2; text-align: center; transition: color .25s, transform .3s var(--ease-spring); }
.bottomnav a:active { transform: scale(.9); }
.bottomnav .ic { width: 23px; height: 23px; }
.bottomnav a.active { color: var(--indigo-800); }
.bottomnav .nav-ind { top: 6px; bottom: 6px; background: linear-gradient(160deg, rgba(201, 229, 255, .9), rgba(228, 242, 255, .7)); box-shadow: inset 0 1px 0 #fff, 0 4px 12px -4px rgba(44, 150, 238, .45); }
.bottomnav .nav-ind::after { display: none; }
.bottomnav .nav-map .bn-ic { width: 54px; height: 54px; margin-top: -30px; border-radius: 50%; background: var(--gold-grad); color: var(--indigo-950); display: grid; place-items: center; border: 4px solid #fff; box-shadow: 0 10px 22px -6px rgba(227, 148, 0, .65), inset 0 2px 0 rgba(255, 255, 255, .6); transition: transform .4s var(--ease-spring); }
.bottomnav .nav-map.active .bn-ic { background: var(--indigo-grad); color: var(--gold-2); box-shadow: 0 10px 22px -6px rgba(41, 64, 168, .7), inset 0 2px 0 rgba(255, 255, 255, .25); transform: translateY(-2px) scale(1.04); }
.bottomnav .nav-map .ic { color: inherit !important; width: 24px; height: 24px; }

@media (min-width: 900px) {
  .topnav { display: flex; }
  .bottomnav { display: none; }
  body { padding-bottom: 0; }
}

/* ── Buttons ── */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; font-weight: 650; font-size: 15px; line-height: 1.2; white-space: nowrap; border: 1px solid transparent;
  transition: transform .35s var(--ease-spring), box-shadow .3s, background-color .2s, border-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.96); transition-duration: .1s; }
.btn::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); transition: transform .8s var(--ease-out); }
.btn:hover::after { transform: translateX(120%); }
.btn-gold { background: var(--gold-grad); color: var(--indigo-950); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 10px 24px -10px rgba(227, 148, 0, .8); }
.btn-gold:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 16px 30px -10px rgba(227, 148, 0, .9); }
.btn-navy { background: var(--indigo-grad); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 10px 24px -10px rgba(41, 64, 168, .85); }
.btn-glass { background: rgba(255, 255, 255, .6); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); color: var(--indigo-900); border-color: rgba(255, 255, 255, .9); box-shadow: var(--hi), 0 8px 20px -10px rgba(19, 32, 99, .4); }
.btn-ghost { border-color: rgba(255, 255, 255, .5); color: #fff; background: rgba(255, 255, 255, .12); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-outline { border-color: var(--line); background: #fff; color: var(--indigo-900); box-shadow: var(--shadow-sm); }
.btn-outline:hover { border-color: var(--sky-400); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; color: var(--sky-600); font-size: 14.5px; white-space: nowrap; transition: gap .3s var(--ease-spring); }
.link-more:hover { gap: 10px; color: var(--indigo-700); }

/* ── Chips ── */
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 11px 3px 9px; border-radius: 999px; font-size: 12.5px; font-weight: 650; line-height: 1.5; white-space: nowrap; }
.chip-ic { font-size: 12px; line-height: 1; }
.chip-preparing { background: var(--sky-100); color: var(--sky-600); box-shadow: inset 0 0 0 1px rgba(44, 150, 238, .18); }
.chip-in_transit { background: var(--gold-soft); color: var(--gold-ink); box-shadow: inset 0 0 0 1px rgba(245, 174, 10, .3); }
.chip-delivered { background: var(--indigo-grad); color: #fff; box-shadow: 0 4px 10px -4px rgba(41, 64, 168, .7); }
.chip-delivered .chip-ic { color: var(--gold-2); font-weight: 800; }
.chip-stage { background: rgba(245, 174, 10, .16); color: var(--gold-ink); padding: 3px 11px; }
.chip-round { background: var(--gold-grad); color: var(--indigo-950); padding: 3px 12px; font-weight: 750; letter-spacing: .02em; }

/* ── Sections ── */
.section { padding: 44px 0; }
@media (min-width: 900px) { .section { padding: 72px 0; } }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 750; letter-spacing: .16em; color: var(--gold-ink); text-transform: uppercase; margin-bottom: 6px; }
.eyebrow::before { content: ''; width: 18px; height: 3px; border-radius: 3px; background: var(--gold-grad); }
.section-title { font-size: clamp(23px, 4.8vw, 34px); color: var(--indigo-900); font-weight: 800; }
.section-desc { color: var(--muted); margin-top: 6px; max-width: 640px; }

/* ── Hero ── */
.hero { position: relative; overflow: hidden; isolation: isolate; min-height: min(90svh, 780px); display: flex; align-items: flex-start; border-radius: 0 0 var(--r-xl) var(--r-xl); background: var(--sky-200); }
.hero-media { position: absolute; inset: -6% 0 0; z-index: -2; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 100%; animation: kenburns 26s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1.04); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
/* Parallax: the photo drifts slower than the page. Where the browser supports scroll-driven animations it runs
   on the compositor (no JS, stays smooth on phones); app.js falls back to a rAF transform elsewhere. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: scroll()) {
    .hero-media { animation: heroParallax linear both; animation-timeline: scroll(root block); animation-range: 0px 900px; will-change: transform; }
    @keyframes heroParallax { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(0, 288px, 0); } }
  }
}
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(243, 249, 255, .55) 0%, rgba(243, 249, 255, .10) 42%, rgba(11, 20, 70, 0) 62%, rgba(11, 20, 70, .35) 100%); }
.hero-inner { width: 100%; padding-top: 18px; padding-bottom: 120px; display: grid; gap: 28px; align-items: center; }
.hero-card { border-radius: var(--r-lg); padding: 22px 20px; max-width: 600px; }
.hero-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px; background: rgba(255, 255, 255, .75); color: var(--indigo-800); font-size: 12.5px; font-weight: 650; box-shadow: inset 0 0 0 1px rgba(245, 174, 10, .45); }
.hero-tag .ic { color: var(--gold); }
.hero h1 { font-size: clamp(32px, 8.4vw, 64px); line-height: 1.12; margin-top: 16px; font-weight: 850; letter-spacing: -.02em; color: var(--indigo-900); }
.hero h1 .gold { display: block; background: linear-gradient(120deg, #2C96EE 0%, #2940A8 45%, #132063 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .04em; }
.hero h1 .rest { display: block; font-weight: 650; font-size: .5em; line-height: 1.45; margin-top: 10px; letter-spacing: -.005em; color: var(--indigo-900); }
.hero-lead { margin-top: 18px; font-size: clamp(16px, 2.4vw, 19px); font-weight: 700; display: flex; align-items: center; gap: 10px; color: var(--indigo-900); }
.hero-lead::before { content: ''; width: 30px; height: 4px; background: var(--gold-grad); border-radius: 3px; flex-shrink: 0; }
.hero-sub { margin-top: 8px; color: var(--muted); max-width: 540px; font-size: 15px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 440px) { .hero-actions .btn { flex: 1 1 100%; } }
.hero-photo { display: none; }
@media (min-width: 900px) {
  .hero { min-height: 700px; align-items: center; }
  .hero-media img { object-position: 50% 8%; filter: saturate(1.05); }
  .hero-shade { background: linear-gradient(90deg, rgba(243, 249, 255, .82) 0%, rgba(243, 249, 255, .45) 45%, rgba(243, 249, 255, .05) 75%), linear-gradient(0deg, rgba(243, 249, 255, .9), transparent 30%); }
  .hero-inner { grid-template-columns: 1.1fr .9fr; padding-top: 40px; padding-bottom: 150px; }
  .hero-card { padding: 34px 32px; background: rgba(255, 255, 255, .42); }
  .hero-photo { display: block; position: relative; justify-self: end; width: min(440px, 100%); aspect-ratio: 1040 / 1240; perspective: 1200px; }
}
.tilt { transform-style: preserve-3d; transition: transform .6s var(--ease-out); transform: perspective(1100px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); will-change: transform; }
.tilt.is-tilting { transition: transform .12s linear; }
.hero-photo .frame { position: absolute; inset: 0; border-radius: var(--r-xl); overflow: hidden; box-shadow: 0 2px 0 rgba(255, 255, 255, .8) inset, 0 40px 80px -24px rgba(11, 20, 70, .55), 0 0 0 6px rgba(255, 255, 255, .55); }
.hero-photo .frame img { width: 100%; height: 100%; object-fit: cover; }
.shine { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(500px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .38), transparent 45%); mix-blend-mode: soft-light; opacity: 0; transition: opacity .4s; }
.tilt:hover .shine, .tilt.is-tilting .shine { opacity: 1; }
.hero-badge { position: absolute; z-index: 2; display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px; border-radius: 20px; transform: translateZ(60px); animation: float 6s ease-in-out infinite; }
.hero-badge b { display: block; font-size: 18px; font-weight: 800; color: var(--indigo-900); line-height: 1.1; }
.hero-badge small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; }
.hero-badge .bi { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--indigo-grad); color: var(--gold-2); box-shadow: 0 6px 14px -6px rgba(41, 64, 168, .8); font-weight: 800; }
.hero-badge.b1 { left: -40px; top: 18%; }
.hero-badge.b2 { right: -28px; bottom: 16%; animation-delay: -3s; }
.hero-badge.b2 .bi { background: var(--gold-grad); color: var(--indigo-950); box-shadow: 0 6px 14px -6px rgba(227, 148, 0, .8); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* ── Stats ── */
.stats-float { margin-top: -84px; position: relative; z-index: 2; }
@media (min-width: 900px) { .stats-float { margin-top: -96px; } }
.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 760px) { .stat-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.stat { position: relative; overflow: hidden; border-radius: var(--r); padding: 16px; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid rgba(255, 255, 255, .9); box-shadow: var(--hi), var(--shadow); }
@media (min-width: 900px) { .stat { padding: 22px; } }
.stat::before { content: ''; position: absolute; left: 16px; right: 16px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--gold-grad); }
.stat-ic { width: 40px; height: 40px; border-radius: 13px; background: var(--indigo-grad); color: #fff; display: grid; place-items: center; margin-bottom: 12px; box-shadow: 0 8px 16px -8px rgba(41, 64, 168, .9), inset 0 1px 0 rgba(255, 255, 255, .3); transform: translateZ(30px); }
.stat:nth-child(2) .stat-ic { background: linear-gradient(135deg, #5DB3F7, #2C96EE); box-shadow: 0 8px 16px -8px rgba(44, 150, 238, .9); }
.stat:nth-child(3) .stat-ic { background: var(--gold-grad); color: var(--indigo-950); box-shadow: 0 8px 16px -8px rgba(227, 148, 0, .9); }
.stat-ic .ic { width: 20px; height: 20px; }
.stat-v { font-size: clamp(26px, 7vw, 40px); font-weight: 850; color: var(--indigo-900); line-height: 1.1; letter-spacing: -.02em; }
.stat-v small { font-size: .42em; font-weight: 600; color: var(--muted); margin-left: 5px; letter-spacing: 0; }
.stat-l { font-size: 13.5px; font-weight: 650; color: var(--text); margin-top: 6px; line-height: 1.4; }
.stat-s { font-size: 12px; color: var(--muted-2); margin-top: 2px; }

/* ── Cards ── */
.card { position: relative; background: var(--surface); border-radius: var(--r); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.card-pad { padding: 20px; }
@media (min-width: 640px) { .card-pad { padding: 24px; } }
.card-title { font-size: 17.5px; color: var(--indigo-900); margin-bottom: 14px; display: flex; align-items: center; gap: 10px; font-weight: 750; }
.card-title .ic { width: 30px; height: 30px; padding: 6px; border-radius: 10px; color: var(--sky-600); background: var(--sky-100); }

.grid-cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 600px) { .grid-cards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-cards { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

.loc-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--r); border: 1px solid var(--line-2); overflow: hidden; box-shadow: var(--shadow); }
.loc-card:hover { box-shadow: var(--shadow-lg); }
.loc-card .ph { aspect-ratio: 16 / 10; background: var(--sky-200); position: relative; overflow: hidden; }
.loc-card .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.loc-card:hover .ph img { transform: scale(1.07); }
.loc-card .ph::after { content: ''; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(transparent, rgba(11, 20, 70, .35)); }
.loc-card .ph .chip { position: absolute; z-index: 1; left: 12px; top: 12px; }
.loc-card .ph .chip-preparing, .loc-card .ph .chip-in_transit { background: rgba(255, 255, 255, .82); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.loc-card .bd { padding: 15px 18px 18px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.loc-code { font-size: 12.5px; font-weight: 750; color: var(--gold-ink); letter-spacing: .02em; }
.loc-name { font-weight: 700; font-size: 16.5px; color: var(--indigo-900); line-height: 1.45; }
.meta-row { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 13.5px; margin-top: 2px; }
.meta-row span { display: inline-flex; align-items: center; gap: 5px; }
.meta-row .ic { color: var(--sky-500); }

.ph-empty { width: 100%; height: 100%; display: grid; place-items: center; color: rgba(255, 255, 255, .7); background: var(--indigo-grad); }
.ph-empty .ic { width: 40px; height: 40px; }

/* Project cards */
.proj-list { display: grid; gap: 16px; }
@media (min-width: 900px) { .proj-list { grid-template-columns: repeat(2, 1fr); gap: 22px; } }
.proj-card { position: relative; display: grid; grid-template-columns: 116px 1fr; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.proj-card:hover { box-shadow: var(--shadow-lg); }
@media (min-width: 520px) { .proj-card { grid-template-columns: 190px 1fr; } }
.proj-card .ph { background: var(--sky-200); min-height: 100%; position: relative; overflow: hidden; }
.proj-card .ph img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .8s var(--ease-out); }
.proj-card:hover .ph img { transform: scale(1.07); }
.proj-card .bd { padding: 15px 18px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.proj-round { font-size: 13px; font-weight: 800; color: var(--gold-ink); letter-spacing: .04em; }
.proj-name { font-weight: 700; font-size: 16.5px; color: var(--indigo-900); line-height: 1.45; }
.proj-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 8px; flex-wrap: wrap; }
.progress { height: 8px; border-radius: 99px; background: var(--sky-100); overflow: hidden; box-shadow: inset 0 1px 2px rgba(19, 32, 99, .08); }
.progress > i, .bar > i, .seg > i { display: block; height: 100%; border-radius: 99px; width: 0; transition: width 1.4s var(--ease-out); }
.progress > i { background: var(--gold-grad); }
.progress > i.go, .bar > i.go, .seg > i.go { width: var(--w); }
.progress-label { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }

/* 3D tilt for cards (desktop pointers) */
.tilt-card { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); transition: transform .6s var(--ease-out), box-shadow .4s; will-change: transform; }
.tilt-card.is-tilting { --ty: -4px; transition: transform .12s linear, box-shadow .4s; }
.tilt-card .shine { z-index: 3; }
@media (hover: none) { .tilt-card:active { transform: scale(.98); transition-duration: .15s; } }

/* ── Home: map preview ── */
.map-preview { position: relative; border-radius: var(--r-xl); overflow: hidden; border: 6px solid rgba(255, 255, 255, .85); box-shadow: var(--shadow-lg); background: var(--sky-100); }
.map-preview .map { height: 380px; }
@media (min-width: 900px) { .map-preview .map { height: 500px; } }
.map-preview .map-cta { position: absolute; right: 14px; bottom: 26px; z-index: 500; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.legend > span { display: inline-flex; align-items: center; gap: 8px; }

/* ── How it works ── */
.steps { display: grid; gap: 12px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(5, 1fr); gap: 16px; } }
.step { position: relative; background: rgba(255, 255, 255, .8); border: 1px solid rgba(255, 255, 255, .95); border-radius: var(--r); padding: 18px; display: flex; gap: 14px; align-items: flex-start; box-shadow: var(--hi), var(--shadow-sm); }
@media (min-width: 900px) { .step { flex-direction: column; } .step:not(:last-child)::after { content: ''; position: absolute; top: 37px; right: -14px; width: 12px; height: 2px; background: var(--gold-grad); } }
.step-n { flex-shrink: 0; width: 40px; height: 40px; border-radius: 13px; background: var(--indigo-grad); color: var(--gold-2); display: grid; place-items: center; font-weight: 850; font-size: 17px; box-shadow: 0 8px 16px -8px rgba(41, 64, 168, .9); }
.step h4 { font-size: 15.5px; color: var(--indigo-900); }
.step p { font-size: 13.5px; color: var(--muted); margin-top: 3px; }

.note-band { position: relative; overflow: hidden; isolation: isolate; background: var(--indigo-grad); color: #fff; border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-lg); }
.note-band::before { content: ''; position: absolute; z-index: -1; inset: 0; background: url('../img/sky.webp') center / cover; opacity: .14; mix-blend-mode: screen; }
.note-band::after { content: ''; position: absolute; right: -50px; top: -50px; width: 180px; height: 180px; border-radius: 50%; border: 22px solid rgba(255, 207, 77, .22); }
.note-band h3 { font-size: 19px; color: var(--gold-2); }
.note-band p { color: rgba(255, 255, 255, .85); font-size: 14.5px; max-width: 720px; }
@media (min-width: 900px) { .note-band { flex-direction: row; align-items: center; justify-content: space-between; padding: 30px 34px; } }

/* ── Page header (inner pages) ── */
.page-head { position: relative; overflow: hidden; isolation: isolate; color: #fff; padding: 30px 0 36px; border-radius: 0 0 var(--r-xl) var(--r-xl); background: var(--indigo-900); }
.page-head::before { content: ''; position: absolute; inset: -10% 0 0; z-index: -2; background: url('../img/sky.webp') center 30% / cover; animation: kenburns 30s ease-in-out infinite alternate; }
.page-head::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(120deg, rgba(19, 32, 99, .92) 0%, rgba(41, 64, 168, .78) 50%, rgba(44, 150, 238, .55) 100%); }
.page-head h1 { font-size: clamp(26px, 6vw, 40px); font-weight: 850; letter-spacing: -.02em; }
.page-head p { color: rgba(255, 255, 255, .82); margin-top: 6px; max-width: 680px; }
.page-head .eyebrow { color: var(--gold-2); }
.page-head .meta-row .ic { color: var(--gold-2); }
.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; color: rgba(255, 255, 255, .7); margin-bottom: 10px; font-weight: 500; }
.crumbs a:hover { color: var(--gold-2); }
.crumbs .sep { opacity: .5; }

/* ── Filter chips ── */
.chips-row { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 3px; }
.chips-row::-webkit-scrollbar { display: none; }
.fchip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .85); font-size: 14px; font-weight: 650; color: var(--muted); white-space: nowrap; transition: all .3s var(--ease-spring); box-shadow: var(--shadow-sm); }
.fchip:hover { color: var(--indigo-800); transform: translateY(-1px); }
.fchip.on { background: var(--indigo-grad); border-color: transparent; color: #fff; box-shadow: 0 8px 18px -8px rgba(41, 64, 168, .8); }
.fchip .n { font-size: 12px; opacity: .7; font-weight: 500; }

/* ── Searchable select ── */
.ss { position: relative; min-width: 0; }
.ss-trigger { width: 100%; min-height: 46px; padding: 0 12px 0 15px; border-radius: 14px; border: 1px solid var(--line); background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; text-align: left; color: var(--muted); transition: border-color .2s, box-shadow .2s; box-shadow: var(--shadow-sm); }
.ss.has-value .ss-trigger { color: var(--text); font-weight: 650; }
.ss-trigger:hover, .ss.is-open .ss-trigger { border-color: var(--sky-400); box-shadow: 0 0 0 4px rgba(44, 150, 238, .12); }
.ss-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ss-chev { color: var(--muted-2); transition: transform .35s var(--ease-spring); }
.ss.is-open .ss-chev { transform: rotate(180deg); }
.ss.is-disabled .ss-trigger { opacity: .5; cursor: not-allowed; }
.ss-panel { position: fixed; z-index: 3000; background: rgba(255, 255, 255, .9); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid rgba(255, 255, 255, .95); border-radius: 18px; box-shadow: var(--hi), var(--shadow-lg); display: flex; flex-direction: column; max-height: 320px; overflow: hidden; animation: pop .28s var(--ease-spring); transform-origin: top center; }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(-6px); } }
.ss-search-wrap { display: flex; align-items: center; gap: 8px; padding: 0 14px; border-bottom: 1px solid var(--line-2); color: var(--muted-2); }
.ss-search { flex: 1; min-width: 0; border: 0; outline: 0; padding: 12px 0; font-size: 16px; background: transparent; }
.ss-list { list-style: none; overflow-y: auto; flex: 1; padding: 6px; }
.ss-list li { padding: 10px 12px; border-radius: 11px; cursor: pointer; font-size: 15px; line-height: 1.4; transition: background .15s; }
.ss-list li small { display: block; color: var(--muted-2); font-size: 12px; }
.ss-list li.is-active, .ss-list li:hover { background: var(--sky-100); }
.ss-list li.is-sel { font-weight: 750; color: var(--indigo-800); }
.ss-list li.is-sel::after { content: ' ✓'; color: var(--gold); }
.ss-list li.ss-empty { color: var(--muted-2); cursor: default; font-style: italic; background: none; }
.ss-add { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--line-2); font-weight: 650; color: var(--sky-600); font-size: 14px; text-align: left; }
.ss-add:hover { background: var(--gold-soft); }

/* ── 3D map pins ── */
.pin-wrap { background: none; border: 0; }
.pin3d { --pin: var(--indigo-grad); position: relative; width: 40px; height: 54px; transform-origin: 50% 100%; animation: pinDrop .9s var(--ease-spring) both; animation-delay: var(--d, 0ms); }
.pin3d .body { position: absolute; left: 0; top: 0; width: 40px; height: 46px; transform-origin: 50% 100%; transition: transform .45s var(--ease-spring); }
.pin3d .head { position: absolute; left: 3px; top: 1px; width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); background: var(--pin); border: 2.5px solid #fff; box-shadow: inset -4px -5px 9px rgba(0, 0, 0, .28), inset 3px 3px 5px rgba(255, 255, 255, .45), 0 8px 14px -4px rgba(11, 20, 70, .55); }
.pin3d .head::after { content: ''; position: absolute; left: 6px; top: 5px; width: 11px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .75); filter: blur(1px); transform: rotate(45deg); }
.pin3d .glyph { position: absolute; left: 0; top: 0; width: 40px; height: 36px; display: grid; place-items: center; font-size: 15px; font-weight: 900; line-height: 1; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.pin3d .base { position: absolute; left: 50%; bottom: 2px; width: 24px; height: 8px; margin-left: -12px; border-radius: 50%; background: radial-gradient(closest-side, rgba(11, 20, 70, .5), transparent); transition: transform .45s var(--ease-spring), opacity .45s; }
.pin-delivered { --pin: radial-gradient(circle at 35% 30%, #4E6BE0, #2940A8 45%, #132063 100%); }
.pin-delivered .glyph { color: var(--gold-2); font-size: 18px; }
.pin-in_transit { --pin: radial-gradient(circle at 35% 30%, #FFE38F, #F9B92A 45%, #D88800 100%); }
.pin-in_transit .body { animation: bob 1.6s ease-in-out infinite; }
.pin-in_transit .base { animation: baseBob 1.6s ease-in-out infinite; }
.pin-preparing { --pin: radial-gradient(circle at 35% 30%, #A9DBFF, #5DB3F7 45%, #1679D1 100%); }
/* sonar ring */
.pin3d::before { content: ''; position: absolute; left: 50%; bottom: 0; width: 44px; height: 16px; margin-left: -22px; border-radius: 50%; border: 2px solid rgba(245, 174, 10, .8); opacity: 0; pointer-events: none; }
.pin-delivered::before { animation: sonar 2.8s ease-out infinite; animation-delay: calc(var(--d, 0ms) + 900ms); }
.pin-preparing::before { border-color: rgba(44, 150, 238, .8); animation: sonar 3.4s ease-out infinite; animation-delay: calc(var(--d, 0ms) + 1200ms); }
.leaflet-marker-icon:hover .pin3d .body { transform: translateY(-7px) scale(1.1); }
.leaflet-marker-icon:hover .pin3d .base { transform: scale(.75); opacity: .6; }
.pin3d.is-sel .body { transform: translateY(-10px) scale(1.3); animation: selBounce .7s var(--ease-spring); }
.pin3d.is-sel .head { border-color: var(--gold-2); box-shadow: inset -4px -5px 9px rgba(0, 0, 0, .28), inset 3px 3px 5px rgba(255, 255, 255, .45), 0 0 0 5px rgba(255, 207, 77, .45), 0 14px 22px -6px rgba(11, 20, 70, .6); }
.pin3d.is-sel .base { transform: scale(.7); opacity: .5; }
.pin3d.is-sel::before { animation: sonar 1.6s ease-out infinite; border-color: rgba(245, 174, 10, .95); }
.pin3d.mini { width: 26px; height: 34px; animation: none; }
.pin3d.mini .body { transform: scale(.62); transform-origin: 0 0; animation: none; }
.pin3d.mini .base, .pin3d.mini::before { display: none; }
@keyframes pinDrop { 0% { opacity: 0; transform: translateY(-70px) scale(.5); } 55% { opacity: 1; transform: translateY(4px) scale(1.06, .9); } 75% { transform: translateY(-5px) scale(.97, 1.04); } 100% { transform: none; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes baseBob { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(.72); opacity: .55; } }
@keyframes sonar { 0% { opacity: .9; transform: scale(.4); } 100% { opacity: 0; transform: scale(2.2); } }
@keyframes selBounce { 0% { transform: translateY(0) scale(1); } 40% { transform: translateY(-18px) scale(1.25, 1.35); } 100% { transform: translateY(-10px) scale(1.3); } }
.leaflet-container { font-family: inherit; background: var(--sky-100); z-index: 0; } /* keep map controls below sticky headers */
.leaflet-tile-pane { filter: saturate(.55) hue-rotate(-6deg) brightness(1.05) contrast(.95); }
.map-vector .leaflet-tile-pane { filter: none; } /* vector style is already toned to the theme */
.leaflet-control-attribution { font-size: 10px; border-radius: 8px 0 0 0; }
.leaflet-bar { border: 0 !important; border-radius: 14px !important; overflow: hidden; box-shadow: var(--shadow) !important; }
.leaflet-bar a { width: 38px !important; height: 38px !important; line-height: 38px !important; color: var(--indigo-800) !important; background: rgba(255, 255, 255, .9) !important; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ── Relief map page ── */
body.is-map { padding-bottom: 0; }
body.is-map .site-footer { display: none; }
.mapview { position: relative; height: calc(100dvh - var(--topbar-h) - env(safe-area-inset-top)); }
/* the row is held to the map's height (an auto row would grow with a long point card, so the panel never scrolled) */
@media (min-width: 900px) { .mapview { display: grid; grid-template-columns: 410px 1fr; grid-template-rows: minmax(0, 1fr); gap: 0; } }
.mapview .map { position: absolute; inset: 0; z-index: 0; }
@media (max-width: 899px) { .mapview .leaflet-control-zoom { display: none; } }
@media (min-width: 900px) { .mapview .map { position: relative; inset: auto; height: 100%; grid-column: 2; grid-row: 1; } }
.map-legend { position: absolute; z-index: 500; top: 12px; left: 12px; right: 12px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 3px; }
.map-legend::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .map-legend { left: 426px; right: auto; } }
.lchip { display: inline-flex; align-items: center; gap: 7px; min-height: 42px; padding: 0 14px 0 6px; border-radius: 999px; background: rgba(255, 255, 255, .78); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid rgba(255, 255, 255, .95); box-shadow: var(--hi), 0 8px 20px -8px rgba(19, 32, 99, .35); font-size: 13.5px; font-weight: 650; color: var(--indigo-900); white-space: nowrap; transition: opacity .25s, transform .35s var(--ease-spring), filter .25s; }
.lchip:active { transform: scale(.94); }
.lchip .n { color: var(--muted); font-weight: 600; font-size: 12.5px; min-width: 22px; height: 22px; display: grid; place-items: center; border-radius: 99px; background: rgba(19, 32, 99, .06); }
.lchip.off { opacity: .5; filter: grayscale(.9); }
.lchip .pin3d.mini { margin: -4px -4px -6px 0; }

/* Side panel (desktop) / bottom sheet (mobile) */
.sheet {
  position: absolute; left: 8px; right: 8px; bottom: calc(var(--tabbar-h) + 18px + var(--safe-b)); z-index: 800;
  background: rgba(255, 255, 255, .84); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, .95); border-radius: 28px; box-shadow: var(--hi), 0 -6px 40px -10px rgba(19, 32, 99, .35);
  display: flex; flex-direction: column; height: 96px; transition: height .55s var(--ease-spring);
}
.sheet.is-open { height: 70%; }
.sheet.is-detail { height: 62%; }
.sheet.is-detail .sheet-body { padding-bottom: 0; }
.sheet-handle { flex-shrink: 0; padding: 8px 18px 10px; display: flex; flex-direction: column; align-items: stretch; gap: 6px; text-align: left; }
.sheet-handle::before { content: ''; width: 40px; height: 5px; border-radius: 3px; background: rgba(19, 32, 99, .18); align-self: center; }
.sheet-sum { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sheet-sum b { font-weight: 800; color: var(--indigo-900); font-size: 16.5px; }
.sheet-sum small { color: var(--muted); font-size: 13px; display: block; }
.sheet-sum .toggle { display: inline-flex; align-items: center; gap: 6px; color: var(--indigo-800); font-weight: 650; font-size: 13.5px; padding: 7px 13px; border-radius: 999px; background: var(--sky-100); white-space: nowrap; }
.sheet-body { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: 0 16px 16px; }
@media (max-width: 899px) { .sheet:not(.is-open) .sheet-body { visibility: hidden; } }
@media (min-width: 900px) {
  .sheet { position: relative; left: auto; right: auto; bottom: auto; grid-column: 1; grid-row: 1; height: auto !important; min-height: 0; border-radius: 0; border: 0; border-right: 1px solid var(--line-2); box-shadow: 8px 0 30px -18px rgba(19, 32, 99, .3); background: rgba(255, 255, 255, .7); }
  .sheet-handle::before { display: none; }
  .sheet-handle { padding: 20px 22px 8px; cursor: default; }
  .sheet-sum .toggle { display: none; }
  .sheet-body { padding: 0 22px 22px; }
}
.map-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 4px 0 12px; }
.loc-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.loc-row { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 8px; border-radius: 18px; border: 1px solid var(--line-2); background: #fff; text-align: left; width: 100%; box-shadow: var(--shadow-sm); transition: border-color .2s, background .2s, transform .35s var(--ease-spring), box-shadow .3s; }
.loc-row:hover { transform: translateX(3px); box-shadow: var(--shadow); }
.loc-row.is-sel { border-color: var(--gold); background: linear-gradient(120deg, #FFF8E3, #fff); }
.loc-row .th { width: 64px; height: 64px; border-radius: 13px; overflow: hidden; background: var(--sky-200); }
.loc-row .th img { width: 100%; height: 100%; object-fit: cover; }
.loc-row .tx { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.loc-row .nm { font-weight: 700; color: var(--indigo-900); font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-row .ar { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loc-row .ft { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted-2); margin-top: 2px; }
.loc-row .chip { font-size: 11.5px; padding: 1px 9px 1px 7px; }

/* Detail card (map) */
.dcard { animation: cardIn .55s var(--ease-out) both; }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.98); filter: blur(4px); } }
.dcard-back { display: inline-flex; align-items: center; gap: 6px; color: var(--sky-600); font-weight: 650; font-size: 14px; padding: 4px 0 10px; }
.dcard-title { font-size: 20px; color: var(--indigo-900); line-height: 1.35; font-weight: 800; }
.dcard-name { color: var(--muted); font-size: 14.5px; margin-top: 2px; }
.dcard-photos { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; height: 190px; margin: 14px 0 4px; border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); }
.dcard-photos button { position: relative; overflow: hidden; background: var(--sky-200); }
.dcard-photos button:first-child { grid-row: span 2; }
.dcard-photos img { width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--ease-out); }
.dcard-photos button:hover img { transform: scale(1.08); }
.dcard-photos .more { position: absolute; inset: 0; background: rgba(19, 32, 99, .55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 20px; }
.dcard-photos.n1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.dcard-photos.n2 { grid-template-rows: 1fr; grid-template-columns: 1fr 1fr; }
.dcard-photos.n2 button:first-child { grid-row: auto; }
.facts { list-style: none; display: flex; flex-direction: column; margin-top: 10px; }
.facts li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line-2); }
.facts li:last-child { border-bottom: 0; }
.facts .em { width: 32px; height: 32px; border-radius: 10px; background: var(--sky-100); display: grid; place-items: center; font-size: 16px; line-height: 1; }
.facts .k { font-size: 12.5px; color: var(--muted); font-weight: 650; }
.facts .v { font-size: 15px; color: var(--text); font-weight: 550; }
.facts .v.big { font-size: 22px; color: var(--indigo-900); font-weight: 850; }
.item-list { list-style: none; margin-top: 4px; }
.item-list li { display: flex; justify-content: space-between; gap: 12px; padding: 3px 0; font-size: 14.5px; }
.item-list li b { font-variant-numeric: tabular-nums; color: var(--indigo-800); white-space: nowrap; }
.dcard-actions { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 6px; position: sticky; bottom: 0; padding: 12px 0 16px; background: linear-gradient(transparent, rgba(255, 255, 255, .96) 18%); }
@media (min-width: 420px) { .dcard-actions { grid-template-columns: 1fr 1fr; } }

/* ── Location detail page ── */
.dhero { position: relative; overflow: hidden; isolation: isolate; color: #fff; min-height: 320px; display: flex; align-items: flex-end; border-radius: 0 0 var(--r-xl) var(--r-xl); background: var(--indigo-900); }
@media (min-width: 900px) { .dhero { min-height: 460px; } }
.dhero > img { position: absolute; inset: -5% 0 0; width: 100%; height: 105%; object-fit: cover; z-index: -2; animation: kenburns 26s ease-in-out infinite alternate; }
.dhero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(19, 32, 99, .15) 0%, rgba(19, 32, 99, .45) 45%, rgba(11, 20, 70, .94) 100%); }
.dhero .container { width: 100%; padding-top: 40px; padding-bottom: 30px; }
.dhero .crumbs { color: rgba(255, 255, 255, .8); }
.dhero h1 { font-size: clamp(25px, 6vw, 44px); font-weight: 850; letter-spacing: -.02em; }
.dhero .sub { color: rgba(255, 255, 255, .88); margin-top: 4px; font-size: 16px; }
.dhero .row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 14px; }
.dhero .chip-preparing { background: rgba(255, 255, 255, .9); }
.dhero-photos-btn { position: absolute; right: 16px; top: 16px; display: inline-flex; align-items: center; gap: 6px; padding: 9px 15px; border-radius: 999px; background: rgba(255, 255, 255, .22); color: #fff; font-size: 13.5px; font-weight: 650; -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border: 1px solid rgba(255, 255, 255, .4); transition: transform .35s var(--ease-spring), background .2s; }
.dhero-photos-btn:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .32); }

.detail-grid { display: grid; gap: 18px; padding: 22px 0 48px; }
@media (min-width: 960px) { .detail-grid { grid-template-columns: minmax(0, 1fr) 370px; gap: 26px; padding-top: 30px; align-items: start; } .detail-aside { position: sticky; top: 92px; } }
.detail-main { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.detail-aside { display: flex; flex-direction: column; gap: 18px; }
.prose { color: var(--text); white-space: pre-line; font-size: 15.5px; }
.kv { list-style: none; }
.kv li { display: flex; justify-content: space-between; gap: 16px; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 14.5px; }
.kv li:last-child { border-bottom: 0; }
.kv .k { color: var(--muted); flex-shrink: 0; }
.kv .v { text-align: right; font-weight: 650; color: var(--indigo-900); }
.kv .v a { color: var(--sky-600); }
.big-num { display: flex; align-items: baseline; gap: 8px; }
.big-num b { font-size: 40px; color: var(--indigo-900); font-weight: 850; line-height: 1.1; letter-spacing: -.02em; }
.items-table { width: 100%; border-collapse: collapse; }
.items-table td { padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.items-table tr:last-child td { border-bottom: 0; }
.items-table td.q { text-align: right; font-weight: 800; color: var(--indigo-900); white-space: nowrap; font-variant-numeric: tabular-nums; }
.items-table td.q small { font-weight: 500; color: var(--muted); margin-left: 4px; }
.items-table .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--gold-grad); margin-right: 10px; vertical-align: 2px; box-shadow: 0 0 0 3px var(--gold-soft); }
.mini-map { height: 230px; border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2); }

/* Timeline */
.timeline { list-style: none; position: relative; }
.tl-step { position: relative; display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding-bottom: 22px; }
.tl-step:last-child { padding-bottom: 0; }
.tl-step::before { content: ''; position: absolute; left: 17px; top: 36px; bottom: 0; width: 2px; background: var(--sky-100); border-radius: 2px; }
.tl-step:last-child::before { display: none; }
.tl-step.done::before { background: linear-gradient(var(--sky-500), var(--gold)); }
.tl-dot { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; background: #fff; border: 2px solid var(--sky-200); color: var(--muted-2); font-weight: 800; font-size: 14px; position: relative; z-index: 1; }
.tl-step.done .tl-dot { background: var(--indigo-grad); border-color: transparent; color: var(--gold-2); box-shadow: 0 8px 16px -8px rgba(41, 64, 168, .9); }
.tl-step.current .tl-dot { border-color: var(--gold); color: var(--gold-ink); animation: glow 2s ease-in-out infinite; }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(245, 174, 10, .45); } 50% { box-shadow: 0 0 0 8px rgba(245, 174, 10, 0); } }
.tl-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding-top: 6px; }
.tl-head h4 { font-size: 15.5px; color: var(--indigo-900); }
.tl-step:not(.done) .tl-head h4 { color: var(--muted); }
.tl-date { font-size: 13px; color: var(--sky-600); font-weight: 650; }
.tl-state { font-size: 12px; font-weight: 750; color: var(--gold-ink); background: var(--gold-soft); padding: 1px 9px; border-radius: 99px; }
.tl-note { font-size: 14px; color: var(--muted); margin-top: 2px; }
.tl-photos { display: flex; gap: 6px; margin-top: 8px; }
.tl-photos button { width: 76px; height: 56px; border-radius: 12px; overflow: hidden; background: var(--sky-200); box-shadow: var(--shadow-sm); transition: transform .35s var(--ease-spring); }
.tl-photos button:hover { transform: translateY(-3px) scale(1.04); }
.tl-photos img { width: 100%; height: 100%; object-fit: cover; }

/* Photo grid */
.stage-tabs { margin-bottom: 14px; }
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 600px) { .photo-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (min-width: 1000px) { .photo-grid.wide { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.photo-tile { position: relative; aspect-ratio: 1; border-radius: 18px; overflow: hidden; background: var(--sky-200); display: block; width: 100%; text-align: left; box-shadow: var(--shadow-sm); transition: transform .45s var(--ease-spring), box-shadow .3s; }
.photo-tile:hover { transform: translateY(-4px) scale(1.015); box-shadow: var(--shadow-lg); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease-out); }
.photo-tile:hover img { transform: scale(1.08); }
.photo-tile .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; background: linear-gradient(transparent, rgba(11, 20, 70, .85)); color: #fff; font-size: 12px; line-height: 1.4; }
.photo-tile .cap b { display: block; font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.photo-tile .cap span { opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.photo-tile .tag { position: absolute; top: 9px; left: 9px; font-size: 11px; font-weight: 750; background: rgba(255, 255, 255, .8); color: var(--indigo-800); padding: 2px 9px; border-radius: 99px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }

/* ── Gallery filters ── */
.filter-bar { position: sticky; top: calc(var(--topbar-h) + env(safe-area-inset-top)); z-index: 900; padding: 10px 0; background: rgba(243, 248, 255, .78); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); border-bottom: 1px solid var(--line-2); }
.filter-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; }
.filter-toggle .btn { flex-shrink: 0; }
.filter-count { font-size: 14px; color: var(--muted); }
.filter-count b { color: var(--indigo-900); }
.filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 10px; }
.filter-grid .full { grid-column: 1 / -1; }
.date-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.input { width: 100%; min-height: 46px; padding: 0 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-size: 16px; color: var(--text); outline: 0; transition: border-color .2s, box-shadow .2s; box-shadow: var(--shadow-sm); }
.input:focus { border-color: var(--sky-400); box-shadow: 0 0 0 4px rgba(44, 150, 238, .14); }
.field-label { font-size: 12px; font-weight: 750; color: var(--muted); margin-bottom: 5px; display: block; letter-spacing: .02em; }
@media (min-width: 900px) {
  .filter-panel[hidden] { display: block !important; }
  .filter-toggle .btn { display: none; }
  .filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)) minmax(0, 1.4fr); align-items: end; }
  .filter-grid .full { grid-column: auto; }
}
.load-more { display: flex; justify-content: center; margin-top: 26px; }

/* ── Impact ── */
.bars { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.bar-row .top { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; margin-bottom: 6px; }
.bar-row .top b { color: var(--indigo-900); font-variant-numeric: tabular-nums; white-space: nowrap; }
.bar-row .top span { color: var(--text); font-weight: 650; }
.bar-row .top small { color: var(--muted); font-weight: 500; }
.bar { height: 12px; border-radius: 99px; background: var(--sky-100); overflow: hidden; box-shadow: inset 0 1px 2px rgba(19, 32, 99, .08); }
.bar > i { background: linear-gradient(90deg, #5DB3F7, #2940A8); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35); }
.bar.gold > i { background: var(--gold-grad); }
.seg { display: flex; height: 18px; border-radius: 99px; overflow: hidden; background: var(--sky-100); gap: 3px; }
.seg .s-delivered { background: var(--indigo-grad); }
.seg .s-in_transit { background: var(--gold-grad); }
.seg .s-preparing { background: linear-gradient(90deg, #A9DBFF, #5DB3F7); }
.seg-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.seg-legend div { font-size: 13px; color: var(--muted); }
.seg-legend b { display: block; font-size: 28px; color: var(--indigo-900); font-weight: 850; line-height: 1.2; }
.seg-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 4px; margin-right: 6px; }
.two-col { display: grid; gap: 18px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 26px; } }
.updated { font-size: 13px; color: rgba(255, 255, 255, .7); margin-top: 10px; }

.round-list { list-style: none; }
.round-list li a { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line-2); border-radius: 14px; transition: background .2s; }
.round-list li a:hover { background: var(--sky-50); }
.round-list li:last-child a { border-bottom: 0; }
.round-list .rn { font-weight: 850; color: var(--gold-2); background: var(--indigo-grad); border-radius: 16px; width: 54px; height: 54px; display: grid; place-items: center; font-size: 17px; line-height: 1; text-align: center; box-shadow: 0 8px 16px -8px rgba(41, 64, 168, .9); }
.round-list .rn small { display: block; font-size: 9.5px; color: rgba(255, 255, 255, .7); font-weight: 600; margin-bottom: 2px; }
.round-list .nm { font-weight: 700; color: var(--indigo-900); font-size: 14.5px; line-height: 1.4; }
.round-list .sb { font-size: 12.5px; color: var(--muted); }

/* ── Footer ── */
#view { flex: 1 0 auto; width: 100%; }
.site-footer { flex-shrink: 0; }
.site-footer { position: relative; overflow: hidden; background: var(--indigo-grad); color: rgba(255, 255, 255, .78); padding: 36px 0 32px; margin-top: 28px; font-size: 13.5px; border-radius: var(--r-xl) var(--r-xl) 0 0; }
.site-footer::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--gold-grad); }
.site-footer .row { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 800px) { .site-footer .row { flex-direction: row; justify-content: space-between; align-items: center; } }
.site-footer .brand-name { color: #fff; }
.site-footer .ver { font-size: 12px; opacity: .65; }

/* ── States ── */
.loading { display: grid; place-items: center; min-height: 50vh; }
.spinner { width: 42px; height: 42px; border-radius: 50%; background: conic-gradient(from 0deg, transparent 0 25%, var(--sky-500) 60%, var(--gold) 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); mask: radial-gradient(farthest-side, transparent calc(100% - 5px), #000 calc(100% - 4px)); animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 48px 16px; color: var(--muted); }
.empty .ic { width: 48px; height: 48px; color: var(--sky-400); margin: 0 auto 12px; display: block; }
.empty h3 { color: var(--indigo-900); font-size: 17px; margin-bottom: 4px; }
.skeleton { background: linear-gradient(90deg, var(--sky-100), #fff, var(--sky-100)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }

/* ── Motion: page enter + scroll reveal ── */
.view-enter { animation: viewIn .6s var(--ease-out) both; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
.reveal { opacity: 0; transform: translateY(26px) scale(.985); transition: opacity .8s var(--ease-out), transform .9s var(--ease-out); transition-delay: var(--rd, 0ms); }
.reveal.in { opacity: 1; transform: none; }
.reveal.tilt-card.in { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0)); }

/* ── Toast ── */
#toasts { position: fixed; z-index: 5000; left: 50%; transform: translateX(-50%); bottom: calc(var(--tabbar-h) + var(--safe-b) + 26px); display: flex; flex-direction: column; gap: 8px; width: max-content; max-width: calc(100vw - 32px); }
@media (min-width: 900px) { #toasts { bottom: 24px; } }
.toast { padding: 12px 18px; border-radius: 18px; background: rgba(19, 32, 99, .9); -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur); color: #fff; font-weight: 600; font-size: 14px; box-shadow: var(--shadow-lg); border: 1px solid rgba(255, 255, 255, .15); animation: tin .5s var(--ease-spring); transition: opacity .3s, transform .3s; }
.toast::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); margin-right: 10px; vertical-align: 1px; }
.toast-success::before { background: #3BD48A; }
.toast-error::before { background: #FF6B5F; }
.toast.out { opacity: 0; transform: translateY(10px) scale(.96); }
@keyframes tin { from { opacity: 0; transform: translateY(16px) scale(.9); } }

/* ── Lightbox ── */
.lb { position: fixed; inset: 0; z-index: 6000; background: rgba(8, 14, 48, .9); -webkit-backdrop-filter: blur(24px) saturate(140%); backdrop-filter: blur(24px) saturate(140%); display: flex; flex-direction: column; color: #fff; animation: lbIn .35s var(--ease-out); }
@keyframes lbIn { from { opacity: 0; } }
.lb-top { display: flex; justify-content: space-between; align-items: center; padding: calc(10px + env(safe-area-inset-top)) 12px 10px 18px; }
.lb-count { font-size: 14px; color: rgba(255, 255, 255, .75); font-variant-numeric: tabular-nums; font-weight: 600; }
.lb-actions { display: flex; gap: 8px; }
.lb-btn { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .18); transition: background .2s, transform .35s var(--ease-spring); }
.lb-btn:hover { background: rgba(255, 255, 255, .22); transform: scale(1.06); }
.lb-btn .ic { width: 22px; height: 22px; }
.lb-stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 0 8px; perspective: 1400px; }
.lb-img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 14px; user-select: none; -webkit-user-drag: none; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6); animation: lbImg .55s var(--ease-spring); }
@keyframes lbImg { from { opacity: 0; transform: scale(.9) rotateX(6deg); } }
.lb-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .14); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid rgba(255, 255, 255, .22); transition: background .2s, color .2s; }
.lb-nav:hover { background: var(--gold-grad); color: var(--indigo-950); }
.lb-nav .ic { width: 24px; height: 24px; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
@media (max-width: 640px) { .lb-nav { display: none; } }
.lb-info { padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); }
.lb-info-inner { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.lb-cap { font-size: 16.5px; font-weight: 600; }
.lb-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 13.5px; color: rgba(255, 255, 255, .78); }
.lb-meta span { display: inline-flex; align-items: center; gap: 6px; }
.lb-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 650; color: var(--gold-2); margin-top: 2px; }
.lb .chip-stage { background: rgba(255, 207, 77, .18); color: var(--gold-2); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ── LINE OA (external support channel) ── */
.btn-line { background: linear-gradient(135deg, #2EDB7A 0%, #06C755 55%, #04A847 100%); color: #fff; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 24px -10px rgba(6, 199, 85, .8); }
.btn-line:hover { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 16px 30px -10px rgba(6, 199, 85, .9); }
.btn-line .line-ic { width: 26px; height: 26px; color: #fff; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .12)); }
.btn-line > span { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.15; }
.btn-line small { font-size: 11.5px; font-weight: 600; opacity: .9; letter-spacing: .02em; }
.hero-actions .hero-line { flex: 1 1 100%; min-height: 54px; font-size: 16px; }
.note-actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.line-card { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; overflow: hidden; }
.line-card::before { content: ''; position: absolute; inset: 0 0 auto; height: 70px; background: linear-gradient(180deg, rgba(6, 199, 85, .10), transparent); pointer-events: none; }
.line-card-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, #2EDB7A, #06C755); box-shadow: 0 10px 22px -10px rgba(6, 199, 85, .9); margin-bottom: 4px; }
.line-card-ic .line-ic { width: 36px; height: 36px; color: #fff; }
.line-card h3 { font-size: 17px; color: var(--indigo-900); }
.line-card p { font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.site-footer .btn-line { align-self: flex-start; }
.line-fab {
  position: fixed; z-index: 950; right: 14px; bottom: calc(var(--tabbar-h) + 22px + var(--safe-b));
  display: inline-flex; align-items: center; gap: 8px; height: 50px; padding: 0 18px 0 10px; border-radius: 999px;
  background: linear-gradient(135deg, #2EDB7A 0%, #06C755 55%, #04A847 100%); color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 14px 30px -10px rgba(6, 199, 85, .85);
  animation: fabIn .8s var(--ease-spring) 1s both; transition: transform .35s var(--ease-spring);
}
.line-fab:hover { transform: translateY(-3px) scale(1.03); }
.line-fab:active { transform: scale(.95); }
.line-fab .line-ic { width: 32px; height: 32px; color: #fff; }
.line-fab::after { content: ''; position: absolute; inset: -2px; border-radius: inherit; border: 2px solid rgba(6, 199, 85, .55); opacity: 0; animation: fabPulse 2.8s ease-out 2s infinite; pointer-events: none; }
@keyframes fabIn { from { opacity: 0; transform: translateY(30px) scale(.6); } }
@keyframes fabPulse { 0% { opacity: .9; transform: scale(1); } 70%, 100% { opacity: 0; transform: scale(1.18, 1.45); } }
@media (min-width: 900px) { .line-fab { right: 24px; bottom: 24px; height: 54px; font-size: 15px; } }
body.is-map .line-fab, body.no-scroll .line-fab { display: none; }
.dcard-line { display: flex; align-items: center; gap: 10px; margin-top: 6px; padding: 10px 12px; border-radius: 16px; background: rgba(6, 199, 85, .08); color: var(--text); font-size: 13.5px; transition: background .2s; }
.dcard-line:hover { background: rgba(6, 199, 85, .14); }
.dcard-line .line-ic { width: 30px; height: 30px; color: #06C755; flex-shrink: 0; }
.dcard-line .line-ic text { fill: #fff; }
.dcard-line b { color: #04913F; }

/* ── Project categories ── */
.chip-cat { background: rgba(255, 255, 255, .9); color: var(--indigo-800); box-shadow: inset 0 0 0 1px var(--line); }
.dhero .chip-cat, .page-head .chip-cat { background: rgba(255, 255, 255, .22); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .35); }
.cat-badge { position: absolute; z-index: 1; right: 12px; top: 12px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; background: rgba(255, 255, 255, .85); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 4px 12px -4px rgba(19, 32, 99, .4); }
.map-filters .full { grid-column: 1 / -1; }
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
@media (min-width: 760px) { .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
.cat-tile { display: flex; flex-direction: column; gap: 2px; padding: 14px; border-radius: 18px; background: var(--sky-50); border: 1px solid var(--line-2); transition: transform .35s var(--ease-spring), box-shadow .3s; }
.cat-tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-tile .cat-ic { font-size: 26px; line-height: 1.2; }
.cat-tile .cat-name { font-weight: 700; color: var(--indigo-900); }
.cat-tile b { font-size: 22px; color: var(--indigo-900); font-weight: 850; }
.cat-tile b small { font-size: 12px; color: var(--muted); font-weight: 600; }
.cat-tile .cat-sub { font-size: 12px; color: var(--muted); }

/* ── Smooth scrolling on phones/tablets ──
   A moving full-screen photo under frosted glass forces a blur re-render every frame, which stutters on
   mobile GPUs. Touch devices get a still photo and solid translucent cards instead (desktop keeps the effects). */
@media (hover: none), (max-width: 899px) {
  .hero-media img, .page-head::before, .dhero > img { animation: none; }
  .hero-card, .stat, .hero-badge, .loc-card .ph .chip, .cat-badge, .photo-tile .tag, .lchip, .dhero-photos-btn {
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .hero-card { background: rgba(255, 255, 255, .88); }
  .stat { background: rgba(255, 255, 255, .96); }
  .hero-badge.glass { background: rgba(255, 255, 255, .95); }
  .lchip { background: rgba(255, 255, 255, .95); }
}

/* Phone hero: still full-screen photo behind the text card; the two stat badges float on the card's
   right edge beside the headline (desktop shows them on the photo card instead) */
.hero-badges-m { display: none; }
@media (max-width: 899px) {
  .hero-card { position: relative; }
  .hero-badges-m { display: block; position: absolute; top: 0; right: 0; width: 0; height: 100%; pointer-events: none; }
  .hero-badges-m .hero-badge { padding: 7px 12px 7px 7px; gap: 8px; border-radius: 16px; background: rgba(255, 255, 255, .96); border: 1px solid rgba(255, 255, 255, .95); box-shadow: 0 12px 26px -10px rgba(19, 32, 99, .45); transform: none; white-space: nowrap; }
  .hero-badges-m .hero-badge b { font-size: 15px; }
  .hero-badges-m .hero-badge small { font-size: 11px; }
  .hero-badges-m .hero-badge .bi { width: 30px; height: 30px; border-radius: 10px; font-size: 14px; }
  .hero-badges-m .hero-badge .bi .ic { width: 16px; height: 16px; }
  .hero-badges-m .m1 { right: -12px; left: auto; top: 64px; bottom: auto; }
  .hero-badges-m .m2 { right: -12px; left: auto; top: 136px; bottom: auto; animation-delay: -3s; }
  .hero-badges-m .m2 .bi { background: var(--gold-grad); color: var(--indigo-950); }
}

/* ── Share card sheet (IG / Facebook story & post images) ── */
.btn-share { display: inline-flex; align-items: center; gap: 7px; padding: 9px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--indigo-900); background: linear-gradient(135deg, #FFE08A, var(--gold)); border: 1px solid rgba(255, 255, 255, .7); box-shadow: 0 10px 24px -10px rgba(245, 174, 10, .9), inset 0 1px 0 rgba(255, 255, 255, .7); transition: transform .35s var(--ease-spring), box-shadow .25s; }
.btn-share .ic { width: 17px; height: 17px; }
.btn-share:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(245, 174, 10, 1), inset 0 1px 0 rgba(255, 255, 255, .7); }
.btn-share.on-light { box-shadow: 0 8px 18px -10px rgba(245, 174, 10, .9), inset 0 1px 0 rgba(255, 255, 255, .7); }
.shr { position: fixed; inset: 0; z-index: 1300; display: flex; align-items: flex-end; justify-content: center; background: rgba(8, 14, 52, .55); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); opacity: 0; transition: opacity .22s; }
.shr.is-open { opacity: 1; }
.shr-panel { width: 100%; max-height: 94dvh; display: flex; flex-direction: column; gap: 12px; padding: 14px 16px calc(14px + env(safe-area-inset-bottom)); background: var(--surface, #fff); border-radius: 28px 28px 0 0; box-shadow: 0 -20px 60px -20px rgba(8, 14, 52, .6); transform: translateY(40px); transition: transform .35s var(--ease-spring); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
.shr.is-open .shr-panel { transform: none; }
.shr-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.shr-head b { display: block; font-size: 18px; font-weight: 800; color: var(--indigo-900); }
.shr-head small { color: var(--muted); font-size: 13px; }
.shr-x { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sky-50, #F1F8FF); color: var(--indigo-900); flex-shrink: 0; }
.shr-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.shr-tabs button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 16px; border: 1.5px solid var(--line, #E3ECF7); background: #fff; color: var(--muted); font-size: 12px; font-weight: 700; line-height: 1.25; text-align: center; transition: all .25s var(--ease-spring); }
.shr-tabs button .ic { width: 20px; height: 20px; }
.shr-tabs button small { font-size: 10.5px; font-weight: 500; opacity: .75; font-variant-numeric: tabular-nums; }
.shr-tabs button[aria-selected="true"] { color: #fff; border-color: transparent; transform: translateY(-1px); }
.shr-tabs .app-ig[aria-selected="true"] { background: linear-gradient(135deg, #7B3FE4 0%, #E1306C 55%, #FCAF45 100%); box-shadow: 0 10px 20px -10px rgba(225, 48, 108, .8); }
.shr-tabs .app-fb[aria-selected="true"] { background: linear-gradient(135deg, #2D88FF, #1565D8); box-shadow: 0 10px 20px -10px rgba(21, 101, 216, .8); }
.shr-stage { flex: 1 1 auto; min-height: 0; display: flex; justify-content: center; align-items: center; padding: 6px 0; background: radial-gradient(circle at 50% 40%, var(--sky-100, #E2F1FF), transparent 70%); border-radius: 20px; }
.shr-frame { --fh: min(52dvh, 560px); position: relative; width: min(100%, calc(var(--fh) * var(--ar, .5625))); aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; background: linear-gradient(160deg, #1C2E86, #132063); box-shadow: 0 24px 50px -20px rgba(8, 14, 52, .7); transition: aspect-ratio .3s; }
.shr-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.shr-busy { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff; font-size: 13px; font-weight: 600; background: rgba(19, 32, 99, .55); }
.shr-frame.is-busy .shr-busy { display: flex; }
.shr-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.shr-acts .shr-go { grid-column: 1 / -1; justify-content: center; min-height: 50px; font-size: 15.5px; }
.shr-acts .shr-go .ic { width: 20px; height: 20px; }
.shr-acts .btn { justify-content: center; }
.shr-acts .shr-save[hidden] + .shr-copy { grid-column: 1 / -1; }
.shr-pics[hidden] { display: none; }
.shr-pics-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.shr-pics-head b { font-size: 13.5px; font-weight: 750; color: var(--indigo-900); white-space: nowrap; }
.shr-pics-head small { font-size: 11.5px; color: var(--muted); text-align: right; }
.shr-pics-row { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 6px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.shr-pics-row button { position: relative; flex: 0 0 auto; width: 62px; height: 62px; border-radius: 14px; overflow: hidden; border: 2px solid transparent; background: var(--sky-100); opacity: .72; transition: transform .25s var(--ease-spring), opacity .2s, border-color .2s; }
.shr-pics-row button img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shr-pics-row button.on { opacity: 1; border-color: var(--gold); box-shadow: 0 6px 14px -6px rgba(245, 174, 10, .9); transform: translateY(-1px); }
.shr-pics-row button span { position: absolute; top: 4px; right: 4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; display: grid; place-items: center; font-size: 11.5px; font-weight: 800; color: var(--indigo-900); background: linear-gradient(135deg, #FFE08A, var(--gold)); box-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.shr-hint { font-size: 12.5px; color: var(--muted); text-align: center; line-height: 1.5; }
@media (min-width: 900px) {
  .shr { align-items: center; padding: 24px; }
  .shr-panel { max-width: 980px; border-radius: 30px; display: grid; grid-template-columns: minmax(0, 1fr) 320px; grid-template-rows: auto auto auto 1fr auto; column-gap: 24px; padding: 22px 24px; }
  .shr-head { grid-column: 2; grid-row: 1; }
  .shr-stage { grid-column: 1; grid-row: 1 / span 5; padding: 18px; }
  .shr-pics { grid-column: 2; grid-row: 3; min-width: 0; }
  .shr-pics-row { flex-wrap: wrap; overflow: visible; }
  .shr-frame { --fh: min(76dvh, 600px); }
  .shr-tabs { grid-column: 2; grid-row: 2; grid-template-columns: 1fr 1fr; }
  .shr-tabs button { flex-direction: row; justify-content: flex-start; gap: 8px; padding: 10px 12px; flex-wrap: wrap; text-align: left; }
  .shr-tabs button small { width: 100%; padding-left: 28px; margin-top: -2px; }
  .shr-acts { grid-column: 2; grid-row: 4; align-self: end; }
  .shr-hint { grid-column: 2; grid-row: 5; }
}
.dcard .btn-share { padding: 7px 12px; font-size: 13px; }
@media (max-width: 899px) {
  .shr-stage { flex: 0 0 auto; }
  .shr-frame { --fh: min(46vh, 46dvh, 520px); flex-shrink: 0; }
  .shr-panel:has(.shr-pics:not([hidden])) .shr-frame { --fh: min(38vh, 38dvh, 440px); }
}

/* ── Donations page ── */
.don-pending { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; padding: 10px 14px; border-radius: 14px; background: rgba(245, 174, 10, .12); color: #7A5200; font-size: 13.5px; }
.don-pending .ic { width: 17px; height: 17px; flex-shrink: 0; }
.don-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 18px; }
@media (min-width: 900px) { .don-grid { grid-template-columns: 1.6fr 1fr; align-items: start; } }
.don-list { list-style: none; display: flex; flex-direction: column; }
.don-list li { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.don-list li:first-child { border-top: 0; padding-top: 4px; }
.don-av { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 17px; color: var(--indigo-900); background: linear-gradient(135deg, #FFE08A, var(--gold)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6); }
.don-tx { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.don-tx b { font-size: 15px; color: var(--indigo-900); }
.don-tx small { font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.don-tx .don-date { font-size: 11.5px; color: var(--muted-2); }
.don-amt { font-size: 17px; font-weight: 800; color: var(--indigo-900); white-space: nowrap; font-variant-numeric: tabular-nums; }
.don-amt small { font-size: 11.5px; font-weight: 600; color: var(--muted); margin-left: 3px; }
.don-note { text-align: center; color: var(--muted-2); font-size: 12px; margin-top: 18px; }

/* ── Donations: messages of support as floating liquid-glass bubbles ──
   The layer only covers the page header (no buttons there) and ignores the pointer, so nothing underneath is blocked.
   Bubbles move with transform/opacity only (GPU), and stand still for people who prefer reduced motion. */
.page-head.has-bubbles { padding-bottom: 182px; }
@media (min-width: 900px) { .page-head.has-bubbles { padding-bottom: 36px; min-height: 300px; } }
.don-bubbles { position: absolute; left: 0; right: 0; bottom: 0; height: 172px; z-index: 1; pointer-events: none; overflow: hidden; --rise: 62px;
  -webkit-mask-image: linear-gradient(to top, #000 72%, transparent); mask-image: linear-gradient(to top, #000 72%, transparent); }
@media (min-width: 900px) { .don-bubbles { left: auto; top: 0; height: auto; width: 46%; --rise: 170px; -webkit-mask-image: linear-gradient(to top, #000 78%, transparent); mask-image: linear-gradient(to top, #000 78%, transparent); } }
.don-bubble {
  position: absolute; bottom: 8px; max-width: min(300px, 46vw); padding: 12px 16px 10px 16px; border-radius: 22px 22px 22px 6px;
  color: #fff; font-size: 14px; line-height: 1.5; font-weight: 600;
  background: linear-gradient(135deg, rgba(255, 255, 255, .30), rgba(255, 255, 255, .10) 55%, rgba(157, 208, 255, .16));
  border: 1px solid rgba(255, 255, 255, .55);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .75), inset 0 -10px 18px rgba(255, 255, 255, .06), 0 14px 32px -14px rgba(8, 14, 52, .65);
  opacity: 0; will-change: transform, opacity;
  animation: bubbleUp var(--dur, 11s) cubic-bezier(.22, 1, .36, 1) var(--delay, 0s) infinite;
}
.don-bubble .q { position: absolute; left: 10px; top: -14px; font-size: 34px; line-height: 1; color: var(--gold-2); font-family: Georgia, serif; text-shadow: 0 2px 6px rgba(0, 0, 0, .25); }
.don-bubble .t { display: block; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.don-bubble .by { display: flex; align-items: center; gap: 5px; margin-top: 4px; font-size: 11.5px; font-weight: 600; color: rgba(255, 255, 255, .78); }
.don-bubble .by .ic { width: 13px; height: 13px; color: var(--gold-2); }
.don-bubble.b0 { left: 4%; --dur: 11s; --delay: 0s; }
.don-bubble.b1 { left: 50%; --dur: 12.5s; --delay: -4.2s; }
.don-bubble.b2 { left: 24%; --dur: 10.5s; --delay: -7.4s; }
.don-bubble.b3 { left: 62%; --dur: 13s; --delay: -10s; }
@media (max-width: 899px) { .don-bubble.b2, .don-bubble.b3 { display: none; } .don-bubble { max-width: 44vw; font-size: 13px; } }
@media (min-width: 900px) {
  .don-bubble { -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%); }
}
@keyframes bubbleUp {
  0% { opacity: 0; transform: translate3d(0, 34px, 0) scale(.92); }
  10% { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(10px, calc(var(--rise) * -.5), 0) scale(1); }
  82% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(-6px, calc(var(--rise) * -1), 0) scale(.97); }
}
@media (prefers-reduced-motion: reduce) {
  .don-bubble { animation: none; opacity: 1; }
  .don-bubble.b1 { bottom: 70px; }
}
.don-msg { font-size: 13px; color: var(--indigo-800); font-style: italic; line-height: 1.5; margin: 2px 0; }
.page-head.has-bubbles .container { position: relative; z-index: 2; }
@media (min-width: 900px) { .page-head.has-bubbles .container p { max-width: 52%; } }

/* LINE in the share sheet */
.shr-tabs .app-line[aria-selected="true"] { background: linear-gradient(135deg, #1FD16A, #06C755); box-shadow: 0 10px 20px -10px rgba(6, 199, 85, .85); }
.shr-acts .shr-line { grid-column: 1 / -1; justify-content: center; min-height: 46px; color: #fff; font-weight: 700; background: linear-gradient(135deg, #1FD16A, #06C755); border: 0; box-shadow: 0 10px 22px -10px rgba(6, 199, 85, .9); }
.shr-acts .shr-line[hidden] { display: none; }
.shr-acts .shr-line .ic { width: 20px; height: 20px; }
@media (max-width: 899px) { .shr-tabs button { padding: 7px 2px; font-size: 11px; } .shr-tabs button small { font-size: 9.5px; } }
@media (min-width: 900px) { .shr-tabs .app-line { grid-column: 1 / -1; } }
