:root{
  --ivory:#F6F1E7;
  --ivory-2:#FBF8F1;
  --paper:#F6F1E7;
  --paper-card:#FFFCF6;
  --navy:#16213A;
  --navy-2:#0F182B;
  --navy-soft:#32415F;
  --gold:#C3A25D;
  --gold-1:#DCC783;
  --gold-2:#A88743;
  --gold-text:#806A36;
  --gold-soft:#EEE3C9;
  --ink:#16213A;
  --ink-soft:#48536A;
  --muted:#666B76;
  --line:rgba(22,33,58,.13);
  --line-strong:rgba(22,33,58,.22);
  --green:#2E6954;
  --green-soft:#E1EEE8;
  --purple:#71507C;
  --danger:#9A4347;
  --danger-soft:#F4E2E1;
  --shadow:0 18px 44px rgba(22,33,58,.08);
  --shadow-small:0 8px 24px rgba(22,33,58,.065);
  --radius:18px;
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,Baskerville,Georgia,"Noto Serif TC",serif;
  --sans:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans TC",sans-serif;
  --mono:"SFMono-Regular",Consolas,"Liberation Mono",monospace;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;background-color:var(--ivory);background:var(--ivory)}
body{
  margin:0;
  min-height:100%;
  color:var(--ink);
  background:
    linear-gradient(rgba(255,255,255,.12),rgba(255,255,255,.12)),
    radial-gradient(circle at 15% 0%,rgba(195,162,93,.09),transparent 23rem),
    var(--ivory);
  font-family:var(--sans);
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
}
button,input,select,textarea{font:inherit}
button,input,select,textarea,a{outline:none}
button{touch-action:manipulation}
button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,a:focus-visible{
  box-shadow:0 0 0 3px var(--ivory),0 0 0 6px rgba(195,162,93,.62)
}
.skip-link{position:fixed;left:12px;top:12px;z-index:999;transform:translateY(-160%);background:var(--navy);color:white;padding:9px 13px;border-radius:9px;text-decoration:none}
.skip-link:focus{transform:none}

.site-shell{width:min(1180px,100%);margin:0 auto;padding:0 28px 30px;min-height:100vh}
.site-header{padding:22px 0 0}
.brand-lockup{display:inline-flex;align-items:center;text-decoration:none;width:max-content;line-height:0}
.brand-logo{display:block;width:112px;height:112px;object-fit:contain;border-radius:2px;mix-blend-mode:multiply;filter:drop-shadow(0 8px 15px rgba(22,33,58,.07))}

.hero{
  position:relative;
  display:flex;
  align-items:center;
  min-height:280px;
  margin-top:16px;
  padding:36px 0 38px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
  overflow:hidden;
}
.hero-copy{position:relative;z-index:2;width:min(660px,60%)}
.hero-kicker{margin:0 0 14px!important;color:var(--gold-text)!important;font-size:11px!important;font-weight:760!important;letter-spacing:.13em}
.hero h1{margin:0;font-family:var(--serif);font-size:clamp(36px,2.45vw,44px);line-height:1.1;letter-spacing:-.03em;font-weight:650;text-wrap:balance}
.hero h1 span{color:var(--gold-2)}
.hero-summary{margin:18px 0 0!important;max-width:650px!important;color:var(--ink-soft)!important;font-size:15.5px!important;line-height:1.82!important}
.hero-primary{display:inline-flex;align-items:center;gap:9px;margin-top:24px;min-height:42px;padding:10px 15px;border-radius:10px;background:var(--navy);color:#fff;text-decoration:none;font-size:13px;font-weight:750;box-shadow:0 8px 20px rgba(22,33,58,.13);transition:.16s ease}
.hero-primary:hover{transform:translateY(-1px);background:var(--navy-2)}
.hero-map{position:absolute;right:-.5%;top:50%;transform:translateY(-50%);width:min(56%,650px);height:auto;max-height:92%;pointer-events:none;overflow:visible;opacity:.92}
.atlas-grid path{fill:none;stroke:rgba(22,33,58,.035);stroke-width:.8}
.atlas-coastlines path{fill:none;stroke:rgba(22,33,58,.16);stroke-width:1.25;stroke-linecap:round;stroke-linejoin:round}
.atlas-borders path{fill:none;stroke:rgba(22,33,58,.07);stroke-width:.75;stroke-dasharray:3 5}
.atlas-labels text{fill:rgba(22,33,58,.25);font:600 8px/1 var(--serif);letter-spacing:.12em;text-anchor:middle}
.atlas-route{fill:none;stroke:rgba(195,162,93,.68);stroke-width:1.4;stroke-dasharray:4 7;stroke-linecap:round}
.atlas-stops circle{fill:var(--gold);stroke:var(--ivory);stroke-width:1.5}
.atlas-compass circle,.atlas-compass path{fill:none;stroke:rgba(22,33,58,.15);stroke-width:1}
.atlas-compass path{fill:rgba(195,162,93,.18);stroke:rgba(195,162,93,.48)}
.atlas-compass text{fill:rgba(22,33,58,.24);font:600 9px/1 var(--serif);text-anchor:middle}
.atlas-postmark circle,.atlas-postmark path{fill:none;stroke:rgba(22,33,58,.13);stroke-width:1}
.atlas-postmark text{fill:rgba(22,33,58,.20);font:600 8px/1 var(--mono);letter-spacing:.09em;text-anchor:middle}
.atlas-caption{fill:rgba(22,33,58,.18);font:600 8px/1 var(--mono);letter-spacing:.18em}

.tabs{position:sticky;top:10px;z-index:50;display:flex;gap:6px;width:max-content;max-width:100%;margin:18px auto 26px;padding:6px;border:1px solid rgba(22,33,58,.10);border-radius:999px;background:rgba(251,248,241,.88);backdrop-filter:blur(14px);box-shadow:0 8px 22px rgba(22,33,58,.07);overflow:auto;scrollbar-width:none}
.tabs::-webkit-scrollbar{display:none}
.tab-btn{min-height:40px;border:0;border-radius:999px;background:transparent;color:var(--ink-soft);padding:8px 14px;display:inline-flex;align-items:center;gap:7px;white-space:nowrap;cursor:pointer;font-size:13px;font-weight:700}
.tab-btn:hover{background:rgba(22,33,58,.05);color:var(--navy)}
.tab-btn.active{background:var(--navy);color:white;box-shadow:0 6px 15px rgba(22,33,58,.14)}
.tab-btn .icn{width:16px;height:16px}.tab-btn .n{display:inline-grid;place-items:center;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:var(--danger);color:#fff;font-size:10px}

main{width:100%;margin:0;min-height:320px;padding-bottom:28px}
.view{outline:none}
.loading-card,.empty{border:1px dashed var(--line-strong);border-radius:16px;padding:38px 20px;text-align:center;color:var(--muted);background:rgba(255,252,246,.55)}
.loading-card{display:flex;align-items:center;justify-content:center;gap:10px}.loading-dot{width:9px;height:9px;border-radius:50%;background:var(--gold-2);animation:pulse 1s infinite alternate}
@keyframes pulse{to{opacity:.3;transform:scale(.8)}}

.filter-panel,.form-sheet,.login-card,.view-admin>.notice:first-child{background:rgba(255,252,246,.74);border:1px solid var(--line);box-shadow:var(--shadow-small)}
.filter-panel,.form-sheet{border-radius:18px;padding:22px;margin-bottom:22px}
.filter-panel{display:grid;grid-template-columns:minmax(250px,1.35fr) minmax(180px,1fr) minmax(180px,1fr) minmax(245px,1.2fr);gap:16px 18px;align-items:start}
.filter-panel .section-heading{grid-column:1/-1}
.filter-group{margin:0;align-self:start}.filter-search{grid-column:1/2}.filter-panel .filter-group:nth-of-type(3),.filter-panel .filter-group:nth-of-type(4),.filter-panel .filter-group:nth-of-type(5){min-width:0}
.filter-label{display:block;margin:0 0 7px;color:var(--muted);font-size:10.5px;font-weight:760;letter-spacing:.04em;text-transform:none}
.filter-search input{background:var(--paper-card)}
.chipbar{display:flex;gap:7px;flex-wrap:wrap;align-content:flex-start;min-height:36px}.chip{min-height:36px;padding:7px 11px;border-radius:999px;border:1px solid var(--line);background:rgba(255,252,246,.9);color:var(--ink-soft);cursor:pointer;font-size:11.5px;font-weight:700}.chip:hover{border-color:rgba(22,33,58,.25)}.chip.active{background:var(--navy);border-color:var(--navy);color:white}
.section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;margin-bottom:2px}.section-heading h2{margin:3px 0 0;font-family:var(--serif);font-size:24px;line-height:1.15;letter-spacing:-.025em}.section-kicker{font-size:10px;line-height:1.3;color:var(--gold-text);font-weight:760;letter-spacing:.08em}.text-button{border:0;background:transparent;color:var(--navy-soft);font-size:12px;font-weight:700;padding:4px 0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.result-summary{margin:2px 2px 11px;color:var(--muted);font:650 11px/1.3 var(--mono);letter-spacing:.04em}

#nearby-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:1fr;gap:14px;margin-top:0}
#nearby-list>.toast,#nearby-list>.empty{grid-column:1/-1}
.stub{position:relative;overflow:hidden;margin:0;padding:17px 17px 15px;height:100%;display:flex;flex-direction:column;background:rgba(255,252,246,.88);border:1px solid var(--line);border-radius:16px;box-shadow:0 6px 18px rgba(22,33,58,.045);transition:.16s ease}
.stub:hover{transform:translateY(-2px);box-shadow:0 10px 25px rgba(22,33,58,.07)}
.stub:before{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:currentColor;opacity:.78}.stub .watermark{position:absolute;top:14px;right:15px;width:36px;height:36px;border-radius:50%;border:1px solid currentColor;opacity:.24;display:grid;place-items:center;font-family:var(--serif);font-weight:700;font-size:15px}.stub .top{display:flex;justify-content:space-between;align-items:flex-start;padding-right:42px}.stub .icn{width:19px;height:19px;flex:0 0 auto;margin-top:2px}.stub .name{font-size:15.5px;font-weight:760;letter-spacing:-.01em}.stub .meta{font-size:12px;color:var(--muted);margin-top:3px;line-height:1.5}.stub .price{font:700 15px/1.2 var(--mono)}.stub .row2{display:flex;justify-content:space-between;align-items:center;margin-top:12px;gap:12px}.perf{height:1px;margin:auto 0 0;padding-top:14px;border-bottom:1px dashed var(--line)}.badges{display:flex;gap:6px;flex-wrap:wrap;margin-top:10px}.badge{font-size:10.5px;padding:4px 8px;border-radius:999px;background:var(--ivory-2);border:1px solid var(--line);display:inline-flex;align-items:center;gap:4px;color:var(--ink-soft)}a.badge{text-decoration:none}a.badge:hover{border-color:var(--gold-2);color:var(--navy)}
.heart{background:none;border:0;cursor:pointer;padding:5px;width:31px;height:31px;border-radius:9px;color:var(--muted);display:grid;place-items:center}.heart:hover{background:rgba(22,33,58,.05);color:var(--navy)}.heart.on{color:var(--danger);background:var(--danger-soft)}

label{font-size:12.5px;color:var(--ink-soft);display:flex;flex-direction:column;gap:7px;margin-bottom:14px;font-weight:700}
input,select,textarea{width:100%;min-height:46px;padding:10px 12px;border-radius:10px;border:1px solid var(--line-strong);background:var(--paper-card);color:var(--ink);transition:.15s ease}
textarea{min-height:100px;resize:vertical}
input:hover,select:hover,textarea:hover{border-color:rgba(22,33,58,.36)}input::placeholder,textarea::placeholder{color:#9B9DA4;font-weight:400}

.form-sheet{padding:24px}.form-heading{margin-bottom:15px}.report-status{font-size:10px;line-height:1.3;font-weight:760;letter-spacing:.04em;color:var(--green);background:var(--green-soft);border:1px solid rgba(46,105,84,.16);padding:7px 9px;border-radius:999px;white-space:nowrap}.form-grid{display:grid;gap:12px}.form-grid.two{grid-template-columns:1fr 1fr}.form-grid.three{grid-template-columns:repeat(3,1fr)}.form-grid.price-row{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;align-items:start}.form-grid.price-row>label{grid-column:1/2;align-self:start}.form-grid.price-row>.pay-field{grid-column:2/4;align-self:start}.form-grid label{margin-bottom:0}.form-sheet>label{margin-top:14px}.form-sheet b,.form-footnote b,.pay-field .required{color:var(--danger)}
.pay-field{min-width:0}.pay-field-label{display:block;margin:0 0 7px;color:var(--ink-soft);font-size:12.5px;font-weight:700}.pay-options{display:flex;align-items:center;gap:16px;min-height:46px;padding:8px 12px;border:1px solid var(--line-strong);border-radius:10px;background:var(--paper-card);flex-wrap:wrap}.pay-check{display:inline-flex!important;flex-direction:row!important;align-items:center!important;gap:7px!important;margin:0!important;color:var(--ink-soft);font-size:12.5px!important;font-weight:650!important;cursor:pointer}.pay-check input{width:18px!important;min-height:18px!important;height:18px!important;margin:0!important;padding:0!important;accent-color:var(--navy)}
.hidden-field{display:none!important}.honeypot{position:absolute!important;left:-9999px!important;width:1px!important;height:1px!important;overflow:hidden!important}.form-footnote{font-size:11.5px;color:var(--muted);margin:16px 0 10px}.turnstile-slot{display:flex;justify-content:center;margin:14px 0 8px;min-height:66px}.submit-row{display:flex;justify-content:flex-end;margin-top:10px}.submit-row .btn{min-width:148px}

.btn{min-height:43px;padding:10px 17px;border-radius:10px;border:1px solid var(--navy);background:var(--navy);color:white;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px;font-size:13px;font-weight:760;box-shadow:0 6px 15px rgba(22,33,58,.12);transition:.15s ease}.btn:hover{transform:translateY(-1px);background:var(--navy-2)}.btn:disabled{opacity:.55;cursor:not-allowed;transform:none}.btn.ghost{background:transparent;color:var(--navy)}.btn.approve{background:var(--green);border-color:var(--green)}.btn.reject{background:transparent;color:var(--danger);border-color:var(--danger);box-shadow:none}
.err{font-size:12px;color:var(--danger);min-height:18px}.toast{background:var(--green-soft);color:var(--green);font-size:12.5px;padding:11px 13px;border-radius:10px;border:1px solid rgba(46,105,84,.16)}.notice{font-size:12.5px;color:var(--ink-soft);background:rgba(238,227,201,.48);border:1px solid rgba(195,162,93,.19);border-radius:10px;padding:11px 13px;margin-bottom:14px;line-height:1.6}
.empty{display:grid;gap:5px}.empty strong{font-family:var(--serif);font-size:19px;color:var(--ink)}.empty span{font-size:12.5px}

.view-login{max-width:520px;margin:0 auto}.login-card{border-radius:18px;padding:24px}.login-card h2{font-family:var(--serif);font-size:30px;line-height:1.1;margin:6px 0 18px}.mfa-qr{display:block;width:176px;height:176px;margin:4px auto 12px;border-radius:12px;background:white;padding:8px;border:1px solid var(--line)}.mfa-secret{font:500 10.5px/1.5 var(--mono);color:var(--muted);text-align:center;margin:0 0 16px;word-break:break-all}.view-admin .stub{border-left:4px solid var(--gold-2)}

.site-footer{width:100%;margin:38px 0 0;padding:18px 0 6px;border-top:1px solid var(--line);display:grid;grid-template-columns:1fr auto;gap:12px 20px;align-items:center;color:var(--muted)}
.footer-brand{display:flex;align-items:center;gap:12px;min-width:0}.footer-logo{display:block;width:64px;height:64px;object-fit:contain;mix-blend-mode:multiply}.footer-brand small{font-size:10.5px;color:var(--muted);margin:0;line-height:1.45}
#admin-auth{display:inline-flex;align-items:center;gap:4px;font-size:10.5px;color:var(--muted)}


@media (max-width:1120px){
  .filter-panel{grid-template-columns:1fr 1fr}
  .filter-search{grid-column:1/2}
  #nearby-list{grid-template-columns:1fr}
}
@media (max-width:980px){
  .site-shell{padding-inline:22px}
  .hero-copy{width:min(650px,66%)}
  .hero-map{width:54%;right:0;opacity:1}
  .filter-panel{grid-template-columns:1fr 1fr}.filter-search{grid-column:1/-1}
}

@media (max-width:720px){
  .site-shell{padding:0 16px 24px}.site-header{padding-top:16px}
  .brand-logo{width:92px;height:92px}
  .hero{min-height:0;margin-top:14px;padding:30px 0 30px;align-items:flex-start}.hero-copy{width:100%;padding-right:0}.hero-map{width:78%;height:auto;right:-9%;top:47%;transform:translateY(-50%);opacity:.58}.hero h1{font-size:clamp(34px,9.8vw,46px);line-height:1.09}.hero-summary{font-size:14px!important;line-height:1.72!important;max-width:92%!important}.hero-kicker{font-size:10px!important}.hero-primary{margin-top:20px}
  .tabs{top:7px;margin:14px auto 20px;justify-content:flex-start;width:100%;border-radius:14px}.tab-btn{flex:1;min-width:max-content;padding:8px 10px;font-size:12px}
  .filter-panel{display:block;padding:17px;border-radius:15px}.filter-panel .section-heading{margin-bottom:16px}.filter-group{margin-bottom:14px}.filter-panel .filter-group:last-child{margin-bottom:0}.section-heading h2{font-size:22px}
  #nearby-list{grid-template-columns:1fr;gap:12px}.stub{padding:16px}.stub .watermark{right:13px}
  .form-sheet{padding:18px;border-radius:15px}.form-grid.two,.form-grid.three,.form-grid.price-row{grid-template-columns:1fr}.form-grid.price-row>label,.form-grid.price-row>.pay-field{grid-column:1/-1}.form-grid{gap:0}.form-grid label{margin-bottom:14px}.pay-field{margin-bottom:3px}.pay-options{gap:14px}.submit-row{justify-content:stretch}.submit-row .btn{width:100%}
  .site-footer{grid-template-columns:1fr;margin-top:28px}.footer-actions{justify-content:flex-start}.footer-note{flex-direction:column;gap:4px}
}

@media (max-width:430px){
  .brand-logo{width:84px;height:84px}
  .hero{padding-top:28px}.hero h1{font-size:clamp(34px,11.5vw,44px)}.hero-summary{max-width:100%!important}.hero-primary{width:100%;justify-content:center}
  .section-heading{align-items:center}.section-heading h2{font-size:21px}.report-status{font-size:9px}.stub .row2{align-items:flex-start}.badges{gap:5px}
}

@media (prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}.stub:hover,.btn:hover,.hero-primary:hover{transform:none}}

@media (max-width:720px){
  .hero-map{width:92%;right:-24%;opacity:.52;max-height:82%}
  .hero-map .atlas-labels,.hero-map .atlas-postmark,.hero-map .atlas-caption{display:none}
  .hero-map .atlas-coastlines path{stroke:rgba(22,33,58,.09)}
  .hero-map .atlas-borders path{stroke:rgba(22,33,58,.035)}
  .hero-map .atlas-route{stroke:rgba(195,162,93,.34)}
  .hero-map .atlas-compass{opacity:.45}
}

/* v7 — refined brand, map art and footer */
.brand-lockup{display:inline-flex;align-items:center;line-height:0}
.brand-logo{
  width:126px;
  height:auto;
  object-fit:contain;
  border-radius:0;
  mix-blend-mode:normal;
  filter:drop-shadow(0 8px 16px rgba(22,33,58,.08));
}

.hero{isolation:isolate}
.hero-map-art{
  position:absolute;
  z-index:0;
  right:-2px;
  top:0;
  width:57%;
  height:100%;
  background:
    linear-gradient(90deg,rgba(246,241,231,1) 0%,rgba(246,241,231,.62) 13%,rgba(246,241,231,.08) 38%,rgba(246,241,231,0) 62%),
    url('./europe-map.webp') center center/cover no-repeat;
  opacity:.78;
  pointer-events:none;
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.46) 18%,#000 36%,#000 100%);
  mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.46) 18%,#000 36%,#000 100%);
}
.hero-copy{position:relative;z-index:2}

/* Footer becomes a quiet branded ending rather than a browser-default row */
.site-footer{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  width:100%;
  margin:44px 0 0;
  padding:18px 0 24px;
  border-top:0;
  display:block;
  color:var(--ink-soft);
}
.footer-map{
  position:absolute;
  inset:0;
  z-index:-2;
  background:url('./europe-map.webp') 62% 54%/cover no-repeat;
  opacity:.18;
  filter:saturate(.7) contrast(.92);
}
.site-footer:after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,rgba(246,241,231,.96) 0%,rgba(246,241,231,.88) 48%,rgba(246,241,231,.8) 100%);
}
.footer-rule{
  display:flex;
  align-items:center;
  gap:12px;
  margin-bottom:16px;
  color:var(--gold-2);
}
.footer-rule:before,.footer-rule:after{content:"";height:1px;background:rgba(168,135,67,.42);flex:1}
.footer-rule span{font-size:13px;line-height:1}
.footer-main{
  display:grid;
  grid-template-columns:auto minmax(220px,1fr) auto;
  gap:22px;
  align-items:center;
}
.footer-brand{display:block;min-width:0}
.footer-logo{
  display:block;
  width:88px;
  height:auto;
  object-fit:contain;
  mix-blend-mode:normal;
  filter:drop-shadow(0 7px 13px rgba(22,33,58,.07));
}
.footer-copy{display:flex;flex-direction:column;gap:3px;min-width:0}
.footer-copy strong{font-family:var(--serif);font-size:15px;line-height:1.3;color:var(--navy);font-weight:650}
.footer-copy span{font-size:11.5px;color:var(--muted)}
.footer-copy small{font-size:10.5px;color:rgba(72,83,106,.78)}
.footer-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}
#reset-btn,
#admin-auth button{
  appearance:none;
  min-height:40px;
  border-radius:999px;
  padding:9px 14px;
  border:1px solid rgba(168,135,67,.7);
  background:rgba(255,252,246,.7);
  color:var(--navy);
  box-shadow:0 6px 16px rgba(22,33,58,.055);
  font-size:11.5px;
  font-weight:740;
  letter-spacing:.01em;
  cursor:pointer;
  transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
}
#reset-btn{display:inline-flex;align-items:center;gap:8px}
#reset-btn:hover,
#admin-auth button:hover{background:var(--navy);border-color:var(--navy);color:#fff;transform:translateY(-1px)}
#admin-auth{display:inline-flex;align-items:center;gap:8px;font-size:10.5px;color:var(--muted)}

@media (max-width:980px){
  .brand-logo{width:116px}
  .hero-map-art{width:62%;right:-4%;opacity:.7;background-position:55% center}
  .footer-main{grid-template-columns:auto 1fr}.footer-actions{grid-column:1/-1;justify-content:flex-start;padding-left:110px}
}

@media (max-width:720px){
  .brand-logo{width:104px}
  .hero-map-art{
    width:86%;
    right:-28%;
    opacity:.48;
    background-position:36% center;
    -webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.32) 20%,#000 52%);
    mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.32) 20%,#000 52%);
  }
  .site-footer{margin-top:32px;padding:16px 0 20px}
  .footer-map{background-position:48% 50%;opacity:.14}
  .footer-main{grid-template-columns:auto 1fr;gap:14px}
  .footer-logo{width:72px}
  .footer-copy strong{font-size:14px}.footer-copy span{font-size:11px}
  .footer-actions{grid-column:1/-1;padding-left:0;justify-content:flex-start}
  #reset-btn,#admin-auth button{min-height:39px;padding:9px 13px}
}

@media (max-width:430px){
  .brand-logo{width:96px}
  .hero-map-art{width:94%;right:-39%;opacity:.4;background-position:31% center}
  .footer-main{grid-template-columns:1fr}.footer-brand{display:flex}.footer-logo{width:76px}.footer-copy{margin-top:-2px}
  .footer-actions{width:100%;display:grid;grid-template-columns:1fr;gap:8px}
  #reset-btn,#admin-auth button{width:100%;justify-content:center}
  #admin-auth{display:block;width:100%}
}

/* v8 — horizontal transparent brand lockup */
.brand-lockup{
  display:inline-flex;
  align-items:center;
  gap:12px;
  width:max-content;
  line-height:1;
  text-decoration:none;
}
.brand-mark{
  display:block;
  width:58px;
  height:58px;
  object-fit:contain;
  flex:0 0 auto;
  filter:drop-shadow(0 6px 12px rgba(22,33,58,.10));
}
.brand-wordmark,
.footer-wordmark{
  display:inline-flex;
  align-items:baseline;
  white-space:nowrap;
  font-family:var(--serif);
  font-weight:700;
  letter-spacing:-.045em;
  color:var(--navy);
}
.brand-wordmark{font-size:38px}
.brand-wordmark b,
.footer-wordmark b{color:var(--gold-2);font-weight:700}
.hero{margin-top:18px}

.footer-brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-width:0;
}
.footer-mark{
  display:block;
  width:52px;
  height:52px;
  object-fit:contain;
  flex:0 0 auto;
  filter:drop-shadow(0 5px 10px rgba(22,33,58,.08));
}
.footer-wordmark{font-size:28px}
.footer-copy{gap:4px}

@media (max-width:720px){
  .brand-lockup{gap:9px}
  .brand-mark{width:48px;height:48px}
  .brand-wordmark{font-size:32px}
  .footer-mark{width:44px;height:44px}
  .footer-wordmark{font-size:25px}
}
@media (max-width:430px){
  .brand-mark{width:44px;height:44px}
  .brand-wordmark{font-size:29px}
  .footer-brand{display:inline-flex}
  .footer-mark{width:42px;height:42px}
  .footer-wordmark{font-size:24px}
}


/* v9 — mobile typography, map visibility, balanced footer, form rhythm */
.brand-wordmark b,
.footer-wordmark b{color:var(--gold)}

/* The address and map-link rows follow the same vertical rhythm as grid fields. */
.form-sheet>label{margin-top:0;margin-bottom:14px}

/* Footer primary action is now "回報新地點"; destructive clear-all lives in My Favorites. */
#footer-report-btn,
#admin-auth button,
.saved-clear-btn{
  appearance:none;
  min-height:40px;
  border-radius:999px;
  padding:9px 14px;
  border:1px solid rgba(168,135,67,.7);
  background:rgba(255,252,246,.76);
  color:var(--navy);
  box-shadow:0 6px 16px rgba(22,33,58,.055);
  font-size:11.5px;
  font-weight:740;
  letter-spacing:.01em;
  cursor:pointer;
  transition:background .16s ease,color .16s ease,border-color .16s ease,transform .16s ease;
}
#footer-report-btn{display:inline-flex;align-items:center;gap:8px}
#footer-report-btn:hover,
#admin-auth button:hover{background:var(--navy);border-color:var(--navy);color:#fff;transform:translateY(-1px)}
.saved-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 2px 12px}
.saved-stat{font-size:12px;color:var(--muted)}
.saved-clear-btn{min-height:34px;padding:6px 10px;background:transparent;border-color:var(--line-strong);color:var(--muted);box-shadow:none;font-size:10.5px}
.saved-clear-btn:hover{border-color:rgba(154,67,71,.5);color:var(--danger);background:var(--danger-soft)}

@media (max-width:720px){
  /* Mobile hero should read like a polished utility site, not a poster. */
  .hero{padding:24px 0 25px}
  .hero h1{font-size:clamp(29px,8.1vw,34px);line-height:1.13;letter-spacing:-.035em;max-width:92%}
  .hero-summary{font-size:13.5px!important;line-height:1.68!important;max-width:94%!important;margin-top:15px!important}
  .hero-primary{margin-top:17px;min-height:40px}

  /* Keep the antique Europe map visibly present on phones without fighting the copy. */
  .hero-map-art{
    width:118%;
    height:100%;
    right:-44%;
    top:0;
    opacity:.68;
    background-position:44% center;
    background-size:cover;
    -webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.16) 15%,rgba(0,0,0,.78) 47%,#000 100%);
    mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.16) 15%,rgba(0,0,0,.78) 47%,#000 100%);
  }

  .form-sheet>label{margin-top:0;margin-bottom:14px}
  .form-grid label{margin-bottom:14px}

  .site-footer{padding:14px 0 18px}
  .footer-main{grid-template-columns:auto 1fr;gap:12px 14px;align-items:center}
  .footer-actions{grid-column:1/-1;padding-left:0;justify-content:flex-start;margin-top:2px}
  #footer-report-btn,#admin-auth button{min-height:38px;padding:8px 12px}
}

@media (max-width:430px){
  .hero h1{font-size:clamp(28px,8.4vw,32px);line-height:1.14;max-width:94%}
  .hero-summary{font-size:13px!important;line-height:1.65!important}
  .hero-map-art{
    width:132%;
    right:-57%;
    opacity:.72;
    background-position:43% center;
  }
  .footer-main{grid-template-columns:1fr;gap:10px}
  .footer-brand{display:inline-flex}
  .footer-copy{margin-top:0}
  .footer-actions{display:flex;width:100%;flex-wrap:wrap;gap:8px}
  #footer-report-btn{width:auto;flex:1;justify-content:center}
  #admin-auth{width:auto;flex:0 0 auto}
  #admin-auth button{width:auto;justify-content:center}
  .saved-toolbar{align-items:flex-start;flex-direction:column;gap:7px}
}

/* v10 — brighter brand gold + calmer mobile scale + truly centered mobile tabs */
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}

/* Brighter champagne-gold treatment for EU. The flat fallback remains readable. */
.brand-wordmark b,
.footer-wordmark b{
  color:#CFAE61;
  background:linear-gradient(180deg,#DCC783 0%,#CFAE61 52%,#B98D3D 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:0 .35px 0 rgba(255,255,255,.22);
}

@media (max-width:720px){
  /* A fluid range keeps phones proportional without turning the hero into a poster. */
  .hero{padding:22px 0 23px}
  .hero h1{
    font-size:clamp(25px,7vw,29px);
    line-height:1.16;
    letter-spacing:-.025em;
    max-width:92%;
  }
  .hero-summary{
    font-size:13px!important;
    line-height:1.64!important;
    max-width:92%!important;
    margin-top:14px!important;
  }

  /* Three equal touch targets; icon + label are centered as one unit. */
  .tabs{gap:4px;padding:5px}
  .tab-btn{
    flex:1 1 0;
    min-width:0;
    justify-content:center;
    text-align:center;
    gap:7px;
    padding:9px 7px;
  }
  .tab-btn .icn{flex:0 0 16px}
  .tab-btn>span:not(.n){min-width:0}
}

@media (max-width:430px){
  .hero h1{font-size:clamp(24px,7.25vw,28px);line-height:1.17;max-width:94%}
  .hero-summary{font-size:12.75px!important;line-height:1.62!important;max-width:94%!important}
  .tab-btn{font-size:11.5px;padding-inline:5px;gap:5px}
  .tab-btn .icn{width:15px;height:15px;flex-basis:15px}
}

@media (max-width:360px){
  .hero h1{font-size:24px;line-height:1.18}
  .hero-summary{font-size:12.5px!important}
  .tab-btn{font-size:11px;gap:4px;padding-inline:4px}
}


/* v11 — matching gold, responsive footer balance, visible country dropdown, navigation actions */
.hero h1 span{
  color:#CFAE61;
  background:linear-gradient(180deg,#DCC783 0%,#CFAE61 52%,#B98D3D 100%);
  -webkit-background-clip:text;
  background-clip:text;
  -webkit-text-fill-color:transparent;
  text-shadow:0 .35px 0 rgba(255,255,255,.22);
}

.hero-primary{
  border:0;
  cursor:pointer;
  font-family:inherit;
}

/* A real select is used instead of datalist so phones always show a clear dropdown control. */
.filter-search select{
  appearance:auto;
  background-color:var(--paper-card);
  cursor:pointer;
}

#footer-report-btn .icn{
  width:17px;
  height:17px;
  flex:0 0 17px;
}

/* Compact widths: keep brand + trust copy together, then give the action its own balanced row. */
@media (max-width:860px){
  .site-footer{padding:16px 0 20px}
  .footer-main{
    grid-template-columns:auto minmax(0,1fr);
    gap:12px 18px;
    align-items:center;
  }
  .footer-brand{align-self:center}
  .footer-copy{align-self:center;min-width:0}
  .footer-actions{
    grid-column:1/-1;
    width:100%;
    padding-left:0;
    margin-top:2px;
    justify-content:flex-end;
  }
  #footer-report-btn{min-width:210px;justify-content:center}
}

@media (max-width:560px){
  .site-footer{margin-top:28px;padding:14px 0 18px}
  .footer-main{
    grid-template-columns:auto minmax(0,1fr);
    gap:10px 12px;
  }
  .footer-mark{width:42px;height:42px}
  .footer-wordmark{font-size:24px}
  .footer-copy span{font-size:11px;line-height:1.45}
  .footer-copy small{font-size:10px;line-height:1.4}
  .footer-actions{
    grid-column:1/-1;
    display:grid;
    grid-template-columns:1fr;
    gap:8px;
    justify-content:stretch;
    margin-top:4px;
  }
  #footer-report-btn{
    width:100%;
    min-width:0;
    min-height:42px;
    justify-content:center;
  }
  #admin-auth{width:100%}
  #admin-auth button{width:100%;justify-content:center}
}


/* v13 — polished searchable country combobox */
.country-combobox{
  position:relative;
  width:100%;
}
.country-combobox input{
  width:100%;
  min-height:46px;
  padding:10px 46px 10px 13px;
  border:1px solid var(--line-strong);
  border-radius:12px;
  background:rgba(255,252,246,.96);
  color:var(--ink);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
  transition:border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.country-combobox input::placeholder{color:#9A9EAA}
.country-combobox input:hover{border-color:rgba(22,33,58,.3)}
.country-combobox input:focus{
  border-color:rgba(195,162,93,.9);
  background:#FFFCF6;
  box-shadow:0 0 0 3px rgba(195,162,93,.14);
}
.country-toggle{
  position:absolute;
  right:8px;
  top:7px;
  width:32px;
  height:32px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:var(--navy-soft);
  cursor:pointer;
  display:grid;
  place-items:center;
  transition:background .16s ease,color .16s ease;
}
.country-toggle::before{
  content:"";
  width:7px;
  height:7px;
  border-right:1.8px solid currentColor;
  border-bottom:1.8px solid currentColor;
  transform:translateY(-2px) rotate(45deg);
}
.country-toggle:hover{background:rgba(22,33,58,.055);color:var(--navy)}
.country-combobox:focus-within .country-toggle{color:var(--gold-2)}
.country-suggestions{
  position:absolute;
  z-index:80;
  left:0;
  right:0;
  top:calc(100% + 7px);
  max-height:248px;
  overflow:auto;
  padding:6px;
  border:1px solid rgba(22,33,58,.14);
  border-radius:14px;
  background:rgba(255,252,246,.99);
  box-shadow:0 18px 44px rgba(22,33,58,.14),0 2px 8px rgba(22,33,58,.06);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  scrollbar-width:thin;
  scrollbar-color:rgba(22,33,58,.18) transparent;
}
.country-suggestions[hidden]{display:none!important}
.country-option{
  width:100%;
  min-height:42px;
  padding:9px 11px;
  border:0;
  border-radius:9px;
  background:transparent;
  color:var(--ink);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  text-align:left;
  cursor:pointer;
  font-size:12px;
  font-weight:720;
  line-height:1.35;
}
.country-option small{
  color:var(--muted);
  font-size:9.5px;
  font-weight:600;
}
.country-option:hover,
.country-option.active{
  background:rgba(195,162,93,.12);
  color:var(--navy);
}
.country-option.active{box-shadow:inset 0 0 0 1px rgba(195,162,93,.22)}
.country-empty{
  padding:12px 11px;
  color:var(--muted);
  font-size:11px;
  text-align:left;
}
.footer-admin:empty{display:none}
.footer-admin{justify-self:end;display:flex;align-items:center;gap:8px}
.footer-admin button{min-height:38px;padding:8px 12px}

@media (max-width:860px){
  .footer-main{grid-template-columns:auto minmax(0,1fr)}
  .footer-admin{grid-column:1/-1;justify-self:start}
}
@media (max-width:560px){
  .country-combobox input{min-height:48px;font-size:14px;padding-left:14px}
  .country-toggle{top:8px}
  .country-suggestions{max-height:min(46vh,280px);border-radius:13px}
  .country-option{min-height:44px;font-size:13px}
  .footer-admin{width:100%}
  .footer-admin button{width:100%;justify-content:center}
}

/* v14 — centered footer */
.site-footer .footer-main{
  grid-template-columns:1fr !important;
  justify-items:center;
  align-items:center;
  gap:10px;
  max-width:760px;
  margin:0 auto;
  text-align:center;
}
.site-footer .footer-brand{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:0 auto;
}
.site-footer .footer-copy{
  align-items:center;
  justify-content:center;
  text-align:center;
  margin:0 auto;
}
.site-footer .footer-admin{
  grid-column:auto !important;
  justify-self:center !important;
  justify-content:center;
  width:auto;
  margin:0 auto;
}
@media (max-width:860px){
  .site-footer .footer-main{
    grid-template-columns:1fr !important;
    justify-items:center;
    gap:9px;
  }
  .site-footer .footer-admin{
    grid-column:auto !important;
    justify-self:center !important;
  }
}
@media (max-width:560px){
  .site-footer .footer-main{gap:8px}
  .site-footer .footer-brand{justify-content:center}
  .site-footer .footer-copy{align-items:center;text-align:center}
  .site-footer .footer-admin{width:100%;justify-content:center}
  .site-footer .footer-admin button{width:auto;min-width:0}
}

/* v16 — single-axis footer alignment */
.site-footer .footer-main{
  display:block !important;
  width:100%;
  max-width:none;
  margin:0;
  text-align:center;
}
.site-footer .footer-center{
  width:min(100%, 560px);
  margin:0 auto;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:10px;
  text-align:center;
}
.site-footer .footer-brand{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin:0;
  width:auto;
}
.site-footer .footer-mark{
  flex:0 0 auto;
}
.site-footer .footer-wordmark{
  display:inline-flex;
  align-items:baseline;
  line-height:1;
  white-space:nowrap;
}
.site-footer .footer-copy{
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  gap:4px;
  width:100%;
  margin:0;
  text-align:center;
}
.site-footer .footer-copy span,
.site-footer .footer-copy small{
  display:block;
  width:100%;
  text-align:center;
}
.site-footer .footer-admin{
  justify-self:auto !important;
  align-self:center;
  justify-content:center;
  width:auto;
  margin:0;
}
@media (max-width:560px){
  .site-footer .footer-center{width:100%;gap:8px;padding:0 12px}
  .site-footer .footer-brand{gap:9px}
  .site-footer .footer-admin{width:auto}
}


/* v17 — visually balanced centered footer */
.site-footer{
  margin-top:40px;
  padding:16px 0 16px;
}
.site-footer .footer-rule{
  margin-bottom:16px;
}
.site-footer .footer-main{
  display:flex !important;
  align-items:center;
  justify-content:center;
  width:100%;
  max-width:none;
  margin:0 auto;
  text-align:left;
}
.site-footer .footer-center{
  width:auto;
  max-width:100%;
  margin:0 auto;
  padding:0 20px;
  display:grid;
  grid-template-columns:auto auto;
  grid-template-areas:
    "brand copy"
    "admin admin";
  align-items:center;
  justify-content:center;
  column-gap:28px;
  row-gap:9px;
  text-align:left;
}
.site-footer .footer-brand{
  grid-area:brand;
  display:inline-flex !important;
  align-items:center;
  justify-content:flex-start;
  gap:10px;
  margin:0;
}
.site-footer .footer-copy{
  grid-area:copy;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:center;
  gap:4px;
  width:auto;
  margin:0;
  text-align:left;
}
.site-footer .footer-copy span,
.site-footer .footer-copy small{
  width:auto;
  text-align:left;
  white-space:nowrap;
}
.site-footer .footer-admin{
  grid-area:admin;
  justify-self:center !important;
  align-self:center;
  justify-content:center;
  width:auto;
  margin:0;
}
@media (max-width:720px){
  .site-footer{
    margin-top:30px;
    padding:14px 0 16px;
  }
  .site-footer .footer-rule{margin-bottom:14px}
  .site-footer .footer-center{
    width:100%;
    padding:0 16px;
    grid-template-columns:1fr;
    grid-template-areas:
      "brand"
      "copy"
      "admin";
    justify-items:center;
    row-gap:9px;
    text-align:center;
  }
  .site-footer .footer-brand{justify-content:center}
  .site-footer .footer-copy{
    align-items:center;
    text-align:center;
  }
  .site-footer .footer-copy span,
  .site-footer .footer-copy small{
    text-align:center;
    white-space:normal;
  }
  .site-footer .footer-admin{justify-self:center !important}
}

/* v19 admin analytics preview */
.analytics-dashboard{margin-bottom:18px}
.analytics-head,.admin-section-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin:0 2px 12px}
.analytics-head h2,.admin-section-head h2{margin:3px 0 0;font-family:var(--serif);font-size:26px;line-height:1.1;letter-spacing:-.025em}
.analytics-privacy,.admin-section-note{font-size:11px;color:var(--muted);text-align:right}
.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:12px}
.kpi-card,.analytics-card,.report-analytics{background:rgba(255,252,246,.9);border:1px solid var(--line);box-shadow:var(--shadow-small);border-radius:16px}
.kpi-card{padding:16px 17px;min-height:120px;display:flex;flex-direction:column;justify-content:flex-end}
.kpi-card>span{font-size:11px;color:var(--muted);font-weight:760;letter-spacing:.02em}
.kpi-card>strong{font-family:var(--serif);font-size:34px;line-height:1;margin:9px 0 8px;letter-spacing:-.03em;color:var(--navy)}
.kpi-card small{font-size:10.5px;color:var(--muted);line-height:1.45}.trend-up{color:var(--green)}
.analytics-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.analytics-card{padding:17px 18px;min-height:196px}
.analytics-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:17px}
.analytics-card-head>div{display:grid;gap:3px}.analytics-card-head span{font-size:10.5px;color:var(--gold-text);font-weight:800;letter-spacing:.06em}.analytics-card-head strong{font-family:var(--serif);font-size:17px;color:var(--navy);font-weight:650}
.analytics-card-head>small{font-size:10px;color:var(--muted);white-space:nowrap}
.device-bar{height:12px;border-radius:999px;background:rgba(22,33,58,.13);overflow:hidden;margin:30px 0 13px}.device-bar span{display:block;height:100%;background:linear-gradient(90deg,var(--navy),#31466D);border-radius:999px}
.device-legend{display:flex;justify-content:space-between;gap:12px;font-size:11.5px;color:var(--ink-soft)}.device-legend span{display:flex;align-items:center;gap:6px}.device-legend b{color:var(--navy)}
.dot{width:8px;height:8px;border-radius:50%;display:inline-block}.dot.mobile{background:var(--navy)}.dot.desktop{background:rgba(22,33,58,.22)}
.rank-list{list-style:none;padding:0;margin:0;display:grid;gap:9px}.rank-list li{display:flex;justify-content:space-between;align-items:center;gap:18px;padding-bottom:8px;border-bottom:1px solid rgba(22,33,58,.07);font-size:12px;color:var(--ink-soft)}.rank-list li:last-child{border-bottom:0;padding-bottom:0}.rank-list b{font:700 11px/1 var(--mono);color:var(--navy)}
.opportunity-card{background:linear-gradient(180deg,rgba(255,252,246,.94),rgba(238,227,201,.28))}.places li span{max-width:80%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.report-analytics{padding:18px;margin-top:12px}.report-analytics .analytics-card-head{margin-bottom:14px}
.report-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));border:1px solid var(--line);border-radius:13px;overflow:hidden}.report-metrics>div{min-height:86px;padding:13px 10px;display:grid;align-content:center;text-align:center;border-right:1px solid var(--line)}.report-metrics>div:last-child{border-right:0}.report-metrics strong{font-family:var(--serif);font-size:24px;color:var(--navy);line-height:1}.report-metrics span{font-size:10px;color:var(--muted);margin-top:6px}
.report-types{display:flex;gap:8px;flex-wrap:wrap;margin-top:12px}.report-types span{padding:6px 9px;border-radius:999px;background:var(--ivory-2);border:1px solid var(--line);font-size:10.5px;color:var(--ink-soft)}.report-types b{color:var(--navy)}
.admin-mfa-card{height:auto;margin:14px 0 24px!important}.admin-section-head{margin-top:4px}.legacy-stats{height:auto!important;display:grid;grid-template-columns:1fr 1fr;text-align:center;margin-bottom:14px}.legacy-stats>div{display:grid;gap:4px}.legacy-stats strong{font-size:22px}.legacy-stats span{font-size:11px;color:var(--muted)}
@media (max-width:900px){.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.report-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.report-metrics>div:nth-child(3){border-right:0}.report-metrics>div:nth-child(-n+3){border-bottom:1px solid var(--line)}}
@media (max-width:650px){.analytics-head,.admin-section-head{align-items:flex-start;flex-direction:column;gap:7px}.analytics-privacy,.admin-section-note{text-align:left}.analytics-grid{grid-template-columns:1fr}.kpi-grid{grid-template-columns:1fr 1fr;gap:9px}.kpi-card{min-height:105px;padding:14px}.kpi-card>strong{font-size:29px}.report-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.report-metrics>div,.report-metrics>div:nth-child(3){border-right:1px solid var(--line);border-bottom:1px solid var(--line)}.report-metrics>div:nth-child(even){border-right:0}.report-metrics>div:nth-last-child(-n+2){border-bottom:0}}
@media (max-width:390px){.kpi-grid{grid-template-columns:1fr}.kpi-card{min-height:92px}.report-types{display:grid;grid-template-columns:1fr 1fr}.report-types span:last-child{grid-column:1/-1}}


/* v20 analytics time-range preview */
.analytics-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:0 2px 12px}
.period-switch{display:flex;align-items:center;gap:4px;padding:4px;border:1px solid var(--line);border-radius:12px;background:rgba(255,252,246,.72);overflow-x:auto}
.period-btn{appearance:none;border:0;background:transparent;color:var(--muted);font:700 11px/1 var(--sans);padding:8px 11px;border-radius:8px;white-space:nowrap;cursor:pointer}
.period-btn:hover{color:var(--navy);background:rgba(195,162,93,.1)}
.period-btn.active{color:#fff;background:var(--navy);box-shadow:0 2px 8px rgba(22,33,58,.14)}
.period-caption{font:600 10.5px/1.2 var(--sans);color:var(--muted);white-space:nowrap}
.kpi-grid-five{grid-template-columns:repeat(5,minmax(0,1fr))}
.trend-card{background:rgba(255,252,246,.9);border:1px solid var(--line);box-shadow:var(--shadow-small);border-radius:16px;padding:17px 18px;margin-bottom:12px}
.trend-preview{height:150px;display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:9px;align-items:end;padding:8px 4px 0;border-top:1px solid rgba(22,33,58,.06)}
.trend-preview>div{height:100%;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:7px;min-width:0}
.trend-preview i{display:block;width:min(28px,70%);min-height:12px;border-radius:7px 7px 3px 3px;background:linear-gradient(180deg,#DCC783 0%,#CFAE61 58%,#B98D3D 100%);box-shadow:0 5px 14px rgba(185,141,61,.12)}
.trend-preview span{font:600 9.5px/1 var(--mono);color:var(--muted)}
@media (max-width:1100px){.kpi-grid-five{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:700px){.analytics-toolbar{align-items:stretch;flex-direction:column}.period-caption{padding-left:3px}.kpi-grid-five{grid-template-columns:1fr 1fr}.period-switch{width:100%}.trend-preview{height:128px;gap:5px}.trend-preview span{font-size:8.5px}}
@media (max-width:390px){.kpi-grid-five{grid-template-columns:1fr}.trend-card{padding:14px}.trend-preview i{width:min(22px,72%)}}


/* v21 more visual admin analytics */
.analytics-layout{display:grid;grid-template-columns:1.6fr 1fr 1fr;gap:12px;margin-bottom:12px}
.kpi-card-accent{background:linear-gradient(180deg,rgba(255,252,246,.98),rgba(238,227,201,.34))}
.kpi-bottom{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:12px;font-size:10px;color:var(--muted)}
.kpi-bottom em{font-style:normal;color:var(--muted)}
.pill{display:inline-flex;align-items:center;justify-content:center;padding:5px 8px;border-radius:999px;font:700 10px/1 var(--sans);letter-spacing:.01em}
.pill.positive{background:rgba(38,122,73,.12);color:var(--green)}
.pill.neutral{background:rgba(22,33,58,.08);color:var(--navy)}
.trend-card-wide{margin-bottom:0}
.trend-preview-dual>div{position:relative;padding-top:10px}
.trend-preview-dual s{display:block;position:absolute;bottom:16px;left:50%;transform:translateX(-50%);width:min(38px,78%);min-height:12px;border-radius:8px 8px 4px 4px;background:linear-gradient(180deg,rgba(22,33,58,.95),rgba(49,70,109,.9));box-shadow:0 8px 16px rgba(22,33,58,.09);text-decoration:none;opacity:.16}
.trend-preview-dual i{position:relative;z-index:2}
.trend-legend{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:14px;padding-top:12px;border-top:1px solid rgba(22,33,58,.06);font-size:10.5px;color:var(--muted);flex-wrap:wrap}
.trend-legend span{display:inline-flex;align-items:center;gap:6px}
.trend-legend b{font-weight:700;color:var(--ink-soft)}
.legend{width:11px;height:11px;border-radius:999px;display:inline-block}
.legend.visitors{background:rgba(22,33,58,.18);border:1px solid rgba(22,33,58,.28)}
.legend.pageviews{background:linear-gradient(180deg,#DCC783 0%,#CFAE61 58%,#B98D3D 100%)}
.audience-wrap{display:grid;grid-template-columns:130px 1fr;gap:14px;align-items:center;min-height:140px}
.device-donut{width:124px;height:124px;border-radius:50%;background:conic-gradient(var(--navy) 0 72%, rgba(22,33,58,.12) 72% 100%);display:grid;place-items:center;margin:0 auto;box-shadow:inset 0 0 0 1px rgba(22,33,58,.05)}
.device-donut-inner{width:82px;height:82px;border-radius:50%;background:rgba(255,252,246,.98);border:1px solid var(--line);display:grid;place-content:center;text-align:center;box-shadow:var(--shadow-small)}
.device-donut-inner b{font-family:var(--serif);font-size:26px;color:var(--navy);line-height:1}
.device-donut-inner span{font-size:10.5px;color:var(--muted);margin-top:4px}
.device-split{display:grid;gap:10px}
.device-stat{padding:11px 12px;border-radius:12px;background:rgba(255,255,255,.55);border:1px solid rgba(22,33,58,.08)}
.device-stat span{display:flex;align-items:center;gap:6px;font-size:10.5px;color:var(--muted);font-weight:700}
.device-stat strong{display:block;font-family:var(--serif);font-size:26px;line-height:1;color:var(--navy);margin:6px 0 4px}
.device-stat small{color:var(--muted);font-size:10px;line-height:1.4}
.pulse-card{background:linear-gradient(180deg,rgba(255,252,246,.94),rgba(245,239,227,.82))}
.pulse-list{display:grid;gap:10px}
.pulse-list>div{padding:12px 13px;border-radius:13px;background:rgba(255,255,255,.54);border:1px solid rgba(22,33,58,.08)}
.pulse-list b{display:block;font-size:12px;color:var(--navy);margin-bottom:5px}
.pulse-list span{display:block;font-size:11px;color:var(--ink-soft);line-height:1.55}
.analytics-grid-rich{grid-template-columns:repeat(2,minmax(0,1fr))}
.chart-list li{grid-template-columns:minmax(64px,auto) 1fr auto;display:grid;align-items:center;gap:12px}
.chart-list .bar{height:9px;border-radius:999px;background:rgba(22,33,58,.08);overflow:hidden}
.chart-list .bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,var(--gold-1),var(--gold-2))}
.chart-list .bar.soft i{background:linear-gradient(90deg,rgba(195,162,93,.45),rgba(185,141,61,.92))}
.ranked-places li{grid-template-columns:1fr auto}
.ranked-places li::before{content:counter(item);counter-increment:item;display:none}
.ranked-places{counter-reset:item}
.insight-stack{display:grid;gap:10px}
.insight-stack>div{padding:12px 13px;border-left:3px solid var(--gold-2);background:rgba(255,255,255,.55);border-radius:0 12px 12px 0}
.insight-stack strong{display:block;font-size:12px;color:var(--navy);margin-bottom:5px}
.insight-stack span{display:block;font-size:11px;color:var(--ink-soft);line-height:1.55}
.report-analytics-visual{margin-top:12px}
.report-progress{display:flex;height:10px;border-radius:999px;overflow:hidden;background:rgba(22,33,58,.08);margin:14px 0 10px}
.report-progress .approved{background:#2E7D5A}.report-progress .pending{background:#C3A25D}.report-progress .rejected{background:#C1554A}
.report-legend{display:flex;gap:16px;flex-wrap:wrap;font-size:10.5px;color:var(--muted);margin-bottom:12px}
.report-legend span{display:inline-flex;align-items:center;gap:6px}
.report-legend .lg{width:10px;height:10px;border-radius:999px;display:inline-block}
.report-legend .approved{background:#2E7D5A}.report-legend .pending{background:#C3A25D}.report-legend .rejected{background:#C1554A}
@media (max-width:1100px){.analytics-layout{grid-template-columns:1fr 1fr}.analytics-layout .trend-card{grid-column:1/-1}.analytics-grid-rich{grid-template-columns:1fr 1fr}}
@media (max-width:780px){.analytics-layout,.analytics-grid-rich{grid-template-columns:1fr}.audience-wrap{grid-template-columns:1fr;justify-items:center;text-align:center}.device-split{width:100%}.trend-legend{justify-content:flex-start}}

/* v22 — orderly dashboard pane system
   Goal: stable rows, equal visual rhythm, easier future maintenance. */
:root{
  --admin-gap:14px;
  --admin-card-radius:18px;
  --admin-card-pad:18px;
}

/* Keep all analytics cards visually consistent */
.analytics-dashboard .kpi-card,
.analytics-dashboard .analytics-card,
.analytics-dashboard .trend-card,
.analytics-dashboard .report-analytics{
  border-radius:var(--admin-card-radius);
}
.analytics-dashboard .analytics-card,
.analytics-dashboard .trend-card{
  height:100%;
}

/* Row 1: traffic trend + device split */
.analytics-layout{
  display:grid;
  grid-template-columns:minmax(0,2fr) minmax(300px,1fr);
  gap:var(--admin-gap);
  align-items:stretch;
  margin-bottom:var(--admin-gap);
}
.analytics-layout .trend-card{grid-column:1;grid-row:1;min-height:330px}
.analytics-layout .audience-card{grid-column:2;grid-row:1;min-height:330px}

/* Row 2: one full-width insight band */
.analytics-layout .pulse-card{
  grid-column:1 / -1;
  grid-row:2;
  min-height:auto;
}
.analytics-layout .pulse-card .analytics-card-head{margin-bottom:12px}
.analytics-layout .pulse-list{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
}
.analytics-layout .pulse-list>div{height:100%}

/* Rows 3–4: strict two-column cards */
.analytics-grid-rich{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:var(--admin-gap);
  align-items:stretch;
}
.analytics-grid-rich>.analytics-card{
  min-height:238px;
  display:flex;
  flex-direction:column;
}
.analytics-grid-rich .rank-list,
.analytics-grid-rich .insight-stack{flex:1}

/* KPI cards: same vertical rhythm */
.kpi-grid-five{gap:var(--admin-gap)}
.kpi-grid-five .kpi-card{min-height:138px}
.kpi-grid-five .kpi-bottom{margin-top:auto;padding-top:10px}

/* Trend area: slightly calmer and more readable */
.trend-preview{min-height:188px;height:188px}
.trend-card-wide{padding:var(--admin-card-pad)}
.audience-card,.pulse-card,.analytics-grid-rich>.analytics-card{padding:var(--admin-card-pad)}

/* Community report stays as a clear full-width closing section */
.report-analytics-visual{margin-top:var(--admin-gap);padding:var(--admin-card-pad)}

/* Tablet: one strong column, no awkward half cards */
@media (max-width:980px){
  .analytics-layout{grid-template-columns:1fr}
  .analytics-layout .trend-card,
  .analytics-layout .audience-card,
  .analytics-layout .pulse-card{grid-column:1;grid-row:auto;min-height:auto}
  .analytics-layout .pulse-list{grid-template-columns:1fr}
  .analytics-grid-rich{grid-template-columns:1fr}
  .analytics-grid-rich>.analytics-card{min-height:auto}
}

/* Mobile: compact but not cramped */
@media (max-width:650px){
  :root{--admin-gap:10px;--admin-card-radius:15px;--admin-card-pad:14px}
  .kpi-grid-five{grid-template-columns:1fr 1fr}
  .kpi-grid-five .kpi-card{min-height:116px}
  .trend-preview{min-height:142px;height:142px}
  .analytics-layout .audience-card{padding-bottom:16px}
}
@media (max-width:390px){
  .kpi-grid-five{grid-template-columns:1fr}
}


/* v23 interactive analytics + compact review queue */
.analytics-detail{position:relative;display:grid;grid-template-columns:auto 1fr;gap:4px 14px;align-items:center;padding:13px 44px 13px 15px;margin:0 2px 12px;border:1px solid rgba(195,162,93,.38);border-radius:14px;background:linear-gradient(180deg,rgba(255,252,246,.98),rgba(238,227,201,.28));box-shadow:var(--shadow-small)}
.analytics-detail[hidden]{display:none}
.analytics-detail>span{grid-column:1;font:800 10px/1 var(--sans);letter-spacing:.07em;color:var(--gold-text);text-transform:uppercase}
.analytics-detail>strong{grid-column:2;font-family:var(--serif);font-size:16px;color:var(--navy)}
.analytics-detail>p{grid-column:1/-1;margin:4px 0 0;font-size:11px;line-height:1.55;color:var(--ink-soft)}
.analytics-detail-close{position:absolute;right:11px;top:9px;width:30px;height:30px;border:0;border-radius:999px;background:transparent;color:var(--muted);font-size:20px;cursor:pointer}
.analytics-detail-close:hover{background:rgba(22,33,58,.06);color:var(--navy)}
.chart-list li,.ranked-places li,.interactive-bar{cursor:pointer;border-radius:8px;transition:background .15s ease,transform .15s ease}
.chart-list li:hover,.ranked-places li:hover,.interactive-bar:hover{background:rgba(195,162,93,.08)}
.chart-list li:focus-visible,.ranked-places li:focus-visible,.interactive-bar:focus-visible{outline:2px solid rgba(195,162,93,.75);outline-offset:2px}
.review-item{margin:0 0 9px;border:1px solid var(--line);border-radius:14px;background:rgba(255,252,246,.92);box-shadow:var(--shadow-small);overflow:hidden}
.review-summary{list-style:none;display:grid;grid-template-columns:auto minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:12px 14px;cursor:pointer;min-height:62px}
.review-summary::-webkit-details-marker{display:none}
.review-summary:hover{background:rgba(195,162,93,.06)}
.review-type{display:inline-flex;align-items:center;justify-content:center;min-width:66px;padding:6px 8px;border-radius:999px;font:800 10px/1 var(--sans)}
.review-type.new{color:#2E6A56;background:rgba(46,106,86,.1)}
.review-type.edit{color:#6B5B9A;background:rgba(107,91,154,.11)}
.review-type.danger{color:var(--danger);background:var(--danger-soft)}
.review-place{min-width:0;display:grid;gap:3px}
.review-place strong{font-size:12.5px;color:var(--navy);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.review-place small{font-size:10.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.review-time{font-size:10.5px;color:var(--muted);white-space:nowrap}
.review-chevron{font-size:15px;color:var(--gold-2);transition:transform .18s ease}
.review-item[open] .review-chevron{transform:rotate(180deg)}
.review-body{display:grid;gap:9px;padding:0 14px 14px;border-top:1px solid rgba(22,33,58,.06)}
.review-meta{padding-top:10px;font-size:10.5px;color:var(--muted)}
.review-fields{background:var(--paper);border-radius:10px;padding:9px 11px}
.review-actions{display:flex;gap:8px;justify-content:flex-end;padding-top:2px}
.review-danger{color:var(--danger)!important;background:var(--danger-soft)!important}
@media (max-width:650px){.review-summary{grid-template-columns:auto minmax(0,1fr) auto;gap:9px}.review-time{grid-column:2;font-size:9.5px}.review-chevron{grid-column:3;grid-row:1/3}.review-type{grid-row:1/3;min-width:58px}.analytics-detail{grid-template-columns:1fr;padding-right:42px}.analytics-detail>span,.analytics-detail>strong{grid-column:1}}

.analytics-date-range{display:flex;gap:10px;align-items:end;flex-wrap:wrap;margin-top:10px}.analytics-date-range label{display:grid;gap:5px;font-size:11px;color:var(--muted)}.analytics-date-range input{min-height:40px;border:1px solid var(--line-strong);border-radius:10px;background:var(--paper-card);color:var(--ink);padding:8px 10px}.analytics-empty{color:var(--muted);font-size:11px;padding:12px 0!important;border:0!important}


/* v24.7 — mobile report combobox + iOS safe-area polish */
.report-country-field{position:relative;min-width:0}
.report-country-combobox{width:100%}
.report-country-combobox .country-suggestions{z-index:120}
@supports (padding: max(0px)) {
  @media (max-width:720px){
    .site-shell{
      padding-left:max(16px, env(safe-area-inset-left));
      padding-right:max(16px, env(safe-area-inset-right));
    }
  }
}
@media (max-width:560px){
  .report-country-combobox input{font-size:16px;min-height:48px}
  .report-country-combobox .country-toggle{width:36px;height:36px;top:6px;right:6px}
  .report-country-combobox .country-suggestions{max-height:min(42vh,260px)}
}


/* v25 — review editor, freshness and mobile alignment audit */
.vendor-updated{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-wrap:wrap;margin-top:11px;padding-top:9px;border-top:1px solid rgba(22,33,58,.08);font-size:10.5px;color:var(--muted)}
.vendor-updated-date{display:inline-flex;align-items:center;gap:5px}.vendor-updated-date .icn{width:13px;height:13px;margin:0}
.vendor-freshness{display:inline-flex;align-items:center;padding:4px 8px;border-radius:999px;font-size:9.5px;font-weight:760;line-height:1}
.vendor-freshness.fresh{color:var(--green);background:var(--green-soft)}
.vendor-freshness.stale{color:var(--danger);background:var(--danger-soft)}
.review-editor{display:grid;gap:12px;padding:13px;border-radius:12px;background:rgba(255,252,246,.72);border:1px solid var(--line)}
.review-editor-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px}.review-editor-head>div{display:grid;gap:3px}.review-editor-head strong{font-size:13px;color:var(--navy)}.review-editor-head span{font-size:10.5px;color:var(--muted)}
.review-edit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:11px 12px}.review-edit-grid label{margin:0}.review-edit-grid input,.review-edit-grid select{min-height:42px;background:var(--paper-card)}.review-wide{grid-column:1/-1}
.review-pay{grid-column:1/-1;margin:0;padding:10px 12px;border:1px solid var(--line-strong);border-radius:10px;background:var(--paper-card);display:flex;align-items:center;gap:16px;flex-wrap:wrap}.review-pay legend{padding:0 5px;color:var(--ink-soft);font-size:11px;font-weight:700}.review-pay label{display:inline-flex;flex-direction:row;align-items:center;gap:6px;font-size:11.5px}.review-pay input{width:17px;height:17px;min-height:17px;padding:0;margin:0;accent-color:var(--navy)}
.review-original{border-top:1px solid var(--line);padding-top:10px}.review-original summary{cursor:pointer;font-size:11px;font-weight:700;color:var(--navy-soft)}.review-original .review-fields{margin-top:9px}
@media (max-width:720px){
  .view-nearby,.filter-panel,#nearby-list,.result-summary{width:100%;margin-left:0;margin-right:0}
  .filter-panel{padding-left:16px;padding-right:16px}
  .stub{padding-left:20px;padding-right:16px} /* 4px accent + 16px content gutter = visually balanced */
  .review-editor{padding:12px}.review-edit-grid{grid-template-columns:1fr}.review-wide{grid-column:1}.review-editor-head{align-items:stretch;flex-direction:column;gap:7px}.review-editor-head .text-button{align-self:flex-start}
}

/* v25.1 — compact vendor cards + stable price/action alignment */
#nearby-list{
  grid-auto-rows:auto;
  align-items:stretch;
}
.stub{
  height:100%;
}
.stub .row2{
  align-items:center;
  flex-wrap:nowrap;
}
.stub .row2>div:first-child{
  padding-left:29px; /* 19px product icon + 10px gap: align price with vendor text */
  min-width:0;
}
.stub .row2>div:last-child{
  flex:0 0 auto;
  align-items:center!important;
}
.stub .price{
  display:inline-block;
  white-space:nowrap;
}
.perf{
  margin:14px 0 0;
  padding-top:0;
}
@media (max-width:430px){
  .stub .row2{align-items:center}
}

/* v25.2 — bilingual country navigation and country-page context */
.bilingual-country-option{justify-content:flex-start}
.country-option-name{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:baseline;gap:14px;width:100%;min-width:0}
.country-option-name b{font-size:12px;font-weight:760;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.country-option-name small{font-size:10px;color:var(--muted);font-weight:620;white-space:nowrap;text-align:right}
.country-seo-context{margin:14px 0 12px;padding:14px 16px;border:1px solid var(--line);border-left:3px solid var(--gold);border-radius:14px;background:rgba(255,253,248,.76);display:block}
.country-seo-heading{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:start;column-gap:8px}
.country-seo-flag{display:block;font-size:17px;line-height:1.35;transform:translateY(1px)}
.country-seo-copy{display:grid;gap:4px;min-width:0}
.country-seo-copy strong{margin:0;padding:0;font-family:var(--serif);font-size:17px;line-height:1.35;color:var(--ink)}
.country-seo-copy small{margin:0;padding:0;color:var(--muted);font-size:12px;line-height:1.5}
.country-seo-description{margin:2px 0 0;color:var(--muted);font-size:14px;line-height:1.65;max-width:760px}
.country-zero-empty{gap:8px}
.country-report-cta{margin-top:10px;justify-self:center;align-self:center;min-width:156px;min-height:44px;border-radius:999px;padding-left:22px;padding-right:22px}
@media(max-width:560px){
  .country-seo-context{padding:13px 14px}
  .country-seo-heading{column-gap:7px}
  .country-option-name{gap:10px}
  .country-option-name b{font-size:12px}
  .country-option-name small{font-size:9.5px}
  .country-report-cta{min-width:148px}
}


/* Align update footers when badges wrap within a row. */
#nearby-list .stub .vendor-updated{margin-top:auto}
#nearby-list .stub .badges{margin-bottom:11px}
