:root{
  --bg:#0b0f14;
  --panel:#0f1620;
  --text:rgba(255,255,255,.92);
  --muted:rgba(255,255,255,.62);
  --border:rgba(255,255,255,.10);
  --soft:rgba(255,255,255,.06);
  --radius:14px;
  --content-max:520px;
  --pad:14px;
  --gap:10px;
  --btn-h:44px;
}

html[data-view="desktop"]{
  --content-max:1100px;
  --pad:18px;
  --gap:14px;
}

*{ box-sizing:border-box; }

body{
  margin:0;
  max-width:100%;
  overflow-x:hidden;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial;
  background:var(--bg);
  color:var(--text);
}

.container{
  max-width:var(--content-max);
  margin:0 auto;
  padding:var(--pad);
}

.top-nav{
  position:sticky;
  top:0;
  z-index:10;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:12px 18px;
  background:rgba(11,15,20,.82);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--border);
}

.brand{ display:flex; gap:10px; align-items:center; }
.logo{ font-weight:800; letter-spacing:.4px; }
.tagline{ font-size:12px; color:var(--muted); }

.brand-mark{ display:inline-flex; align-items:center; justify-content:center; }
.logo-img{ display:block; width:34px; height:34px; }
.brand-text{ display:flex; flex-direction:column; line-height:1.05; }

.nav-links{ display:none; gap:14px; }
html[data-view="desktop"] .nav-links{ display:flex; }
.nav-links a{ color:var(--muted); text-decoration:none; font-size:13px; }
.nav-links a:hover{ color:var(--text); }
.nav-disabled{ opacity:.45; pointer-events:none; }

.nav-save{
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
}

.hero{ padding:16px 0 10px; }
.hero h1{ margin:0 0 6px; font-size:26px; }
.hero p{ margin:0; color:var(--muted); }

.panel{
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:var(--radius);
  padding:14px;
  margin:12px 0;
}

.panel-row{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}

.panel-title{ font-weight:700; }
.panel-actions{ display:flex; gap:10px; align-items:center; }

.input, .select{
  width:100%;
  background:var(--soft);
  border:1px solid var(--border);
  color:var(--text);
  border-radius:12px;
  padding:8px 10px;
  outline:none;
}

/* Calm resolving state for link inputs */
.is-resolving{ opacity:0.7; }

/* makes number input usable inside small area */
.input-sm{ width:90px; }

.select{
  width:220px;
  max-width:100%;
}

.select-sm{
  width:170px;
  padding:6px 10px;
  border-radius:12px;
}

/* ✅ Fix: dropdown options were “invisible” on some browsers */
select option{
  background:#0f1620;   /* dark menu */
  color:rgba(255,255,255,.92);
}

/* Also helps placeholder option look muted */
select option[value=""]{
  color:rgba(255,255,255,.55);
}

.btn{
  background:rgba(255,255,255,.12);
  border:1px solid var(--border);
  color:var(--text);
  border-radius:12px;
  padding:8px 10px;
  cursor:pointer;
}
.btn:hover{ background:rgba(255,255,255,.16); }
.btn:disabled{ opacity:.45; cursor:not-allowed; }
.btn-ghost{ background:transparent; }

.muted{ color:var(--muted); }
.small{ font-size:12px; }

.city-hero{
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  height: 160px;
  margin-top: 12px;
  background: var(--soft);
  border:1px solid var(--border);
}
.city-hero img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}
.city-hero-overlay{
  position:absolute;
  inset:0;
  display:flex;
  align-items:flex-end;
  padding:12px 14px;
  background:linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,0));
}
#city-hero-title{
  font-size:16px;
  font-weight:700;
}

.days-root{
  margin-top:12px;
  display:flex;
  flex-direction:column;
  gap:12px;
}

.day-card{
  border:1px solid var(--border);
  background:rgba(255,255,255,.03);
  border-radius:var(--radius);
  padding:12px;
}

.day-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:10px;
  margin-bottom:10px;
  flex-wrap:wrap;
}

.day-title-row{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:space-between;
  flex:1;
  min-width:260px;
}

.day-title-main{
  font-weight:700;
  min-width:120px;
}

.day-title-input{
  max-width: 360px;
  width: 60%;
  font-size: 13px;
  padding: 7px 10px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--soft);
  color: inherit;
  outline: none;
}
.day-title-input::placeholder{ opacity:.55; }

.day-actions{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
}

.slot-list{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.slot-row{
  display:grid;
  grid-template-columns: 110px 1fr auto;
  gap:10px;
  align-items:center;
}

.slot-row .select,
.slot-row .input{
  width:100%;
  min-width:0;
}

.slot-pin-btn{
  justify-self:end;
  padding:8px 10px;
  border-radius:12px;
  border:1px solid var(--border);
  background:transparent;
  color:var(--text);
  cursor:pointer;
  white-space:nowrap;
}
.slot-pin-btn:hover{ background:rgba(255,255,255,.08); }
.slot-pin-btn.pinned{ background:rgba(255,255,255,.10); }

.slot-actions{
  display:flex;
  gap:10px;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
}

.items{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-top:10px;
}

.item-row{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:10px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.02);
  border-radius:12px;
  padding:10px;
}

.item-link-row{
  display:flex;
  gap:10px;
  align-items:center;
}

.item-link-row .input{
  flex:1;
  min-width:0;
}

/* Stop suggestions dropdown (planner row) */
.item-field{ position:relative; flex:1; min-width:0; }
.item-field .results{ position:absolute; left:0; right:0; top:calc(100% + 6px); z-index:50; margin-top:0; }
.results .result{ padding:10px 10px; border-bottom:1px solid var(--border); cursor:pointer; }
.results .result:last-child{ border-bottom:none; }
.results .result:hover{ background:rgba(255,255,255,.06); }
.results .result-main{ font-size:13px; }
.results .result-sub{ font-size:12px; color:var(--muted); margin-top:2px; }

.day-route{
  margin-top:12px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.02);
  border-radius:12px;
  padding:10px;
}

.day-route-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}

.item-main{ flex:1; min-width:0; }
.item-text{ font-size:13px; }

.item-actions{
  display:flex;
  gap:8px;
  align-items:center;
  flex-wrap:wrap;
}

.icon-btn{
  padding:8px 10px;
  border-radius:12px;
  border:1px solid var(--border);
  background:transparent;
  color:var(--text);
  cursor:pointer;
}
.icon-btn:hover{ background:rgba(255,255,255,.08); }

.map-canvas{
  height:min(420px, 60vh);
  border-radius:var(--radius);
  overflow:hidden;
  border:1px solid var(--border);
  margin-top:12px;
}

.modal-backdrop{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.55);
  z-index:50;
}

.modal{
  position:fixed;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  width:min(560px, calc(100vw - 22px));
  background:var(--panel);
  border:1px solid var(--border);
  border-radius:18px;
  z-index:60;
  overflow:hidden;
}

.modal-header, .modal-footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:12px 14px;
  border-bottom:1px solid var(--border);
}
.modal-footer{
  border-bottom:none;
  border-top:1px solid var(--border);
}

.modal-title{ font-weight:800; }

.modal-body{
  padding:12px 14px;
}

.label{
  display:block;
  font-size:12px;
  color:var(--muted);
  margin-bottom:6px;
}

.results{
  margin-top:8px;
  border:1px solid var(--border);
  border-radius:12px;
  background:rgba(255,255,255,.03);
  overflow:hidden;
}
.result-item{
  padding:10px 10px;
  border-bottom:1px solid var(--border);
  cursor:pointer;
}
.result-item:last-child{ border-bottom:none; }
.result-item:hover{ background:rgba(255,255,255,.06); }
.result-title{ font-size:13px; }
.result-sub{ font-size:12px; color:var(--muted); margin-top:2px; }

.row-gap{ height:10px; }

.grid-2{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:10px;
}

@media (max-width:720px){
  .slot-row{ grid-template-columns: 1fr; }
  .slot-pin-btn{ justify-self:start; width:fit-content; }
  .day-title-row{ flex-direction:column; align-items:flex-start; }
  .day-title-input{ width:100%; max-width:100%; }
  .select{ width:100%; }
}

/* =========================
   Disclaimer modal + footer
   ========================= */
.modal-overlay{
  position:fixed;
  inset:0;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:24px;
  background:rgba(0,0,0,0.65);
  z-index:9999;
}

.modal-card{
  width:min(720px, 100%);
  background:var(--panel, #0f1620);
  border:1px solid rgba(255,255,255,0.12);
  border-radius:14px;
  padding:18px 18px 14px;
  box-shadow:0 20px 60px rgba(0,0,0,0.55);
}

.disclaimer-body{
  max-height:min(60vh, 520px);
  overflow:auto;
  padding-right:6px;
}

.disclaimer-body p{
  line-height:1.45;
  opacity:0.92;
}

.app-footer{
  position:sticky;
  bottom:0;
  width:100%;
  padding:10px 16px 14px;
  margin-top:18px;
  opacity:0.75;
  font-size:12px;
  text-align:center;
}

.footer-links{
  margin-bottom:8px;
  display:flex;
  gap:14px;
  justify-content:center;
  flex-wrap:wrap;
}
.footer-links a,
.footer-links .footer-pill{
  color: inherit;
  text-decoration:none;
  opacity:0.9;
  padding:6px 10px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.03);
  white-space: nowrap;
}
.footer-links a:hover{opacity:1; border-color: rgba(255,255,255,0.24);}

.footer-links .footer-pill--disabled{
  cursor: default;
  opacity: 0.7;
}

/* Hiking toggle pressed state */
#hiking-toggle-btn[aria-pressed="true"] {
  border-color: rgba(255,255,255,0.35);
  opacity: 0.95;
}

/* =============================
   Cloud / Templates Modals (v7)
   ============================= */
.modal-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:10px;
}
.modal-title{
  font-size:16px;
  font-weight:600;
}
.btn-sm{
  padding:6px 10px;
  font-size:12px;
}
.code-row{
  display:flex;
  gap:10px;
  align-items:center;
}
.code-row .input{
  flex:1;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}
.cloud-actions{
  display:flex;
  gap:10px;
}
.template-controls{
  display:flex;
  gap:10px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:8px;
}
.template-controls .input{
  min-width:180px;
}
.template-preview{
  margin-top:14px;
  padding:12px;
  border:1px solid rgba(255,255,255,0.10);
  border-radius:12px;
  max-height:280px;
  overflow:auto;
}
.template-day{
  padding:10px 0;
  border-bottom:1px solid rgba(255,255,255,0.08);
}
.template-day:last-child{border-bottom:none;}
.template-day-title{
  font-weight:600;
  margin-bottom:6px;
}
.template-item{
  opacity:0.85;
  font-size:13px;
  margin:2px 0;
}

/* v8 additions: share banner + backup list */
.share-banner{position:sticky;top:0;z-index:20;padding:10px 14px;font-size:13px;opacity:.9;border-bottom:1px solid rgba(255,255,255,.08);background:rgba(8,10,14,.92);backdrop-filter: blur(6px);}
.cloud-list{display:flex;flex-direction:column;gap:8px;}
.cloud-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:10px 12px;border:1px solid rgba(255,255,255,.10);border-radius:12px;}
.cloud-item .meta{display:flex;flex-direction:column;gap:2px;min-width:0;}
.cloud-item .meta .title{font-size:13px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
.cloud-item .meta .sub{font-size:12px;opacity:.7;}
.cloud-item .actions{display:flex;gap:8px;}
.readonly .ro-hide{display:none !important;}
.readonly input, .readonly select, .readonly textarea{pointer-events:none;opacity:.85;}

/* ===== Tabiflow v9 additions ===== */
.cloud-account { margin: 14px 0 10px; padding: 10px; border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; }
.cloud-account .row { display:flex; gap:8px; align-items:center; margin-top:6px; flex-wrap:wrap; }
.cloud-account input { flex:1; min-width: 180px; }
.cloud-account .hint { font-size: 12px; opacity: 0.75; margin-top: 6px; }

.progress-wrap { margin: 12px 0; padding: 10px; border: 1px solid rgba(0,0,0,0.08); border-radius: 12px; }
.progress-row { display:flex; justify-content: space-between; align-items:center; gap:10px; margin-bottom: 8px; }
.progress-text { font-size: 13px; opacity: 0.9; }
.progress-bar { width: 100%; height: 10px; background: rgba(0,0,0,0.08); border-radius: 999px; overflow:hidden; }
.progress-fill { height: 100%; background: rgba(0,0,0,0.35); border-radius: 999px; transition: width 140ms linear; }

.btn-sm { padding: 6px 10px; font-size: 12px; }

/* ===== Tabiflow v12 additions: time validation + directions buttons ===== */
.input-error { outline: 1px solid rgba(255, 80, 80, 0.85); }

/* Slightly tighter buttons for Transit/Walk/Drive so they don't overwhelm the row */
.dir-btn { padding: 6px 8px; font-size: 12px; }

.dir-hint { margin: 6px 0 0 0; opacity: 0.65; }

/* ===== Landing (Marketing) ===== */
.landing{
  position: relative;
  padding: 0;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
}

/* Seasonal background: image always, video desktop-only */
.landing-bg{ position:absolute; inset:0; z-index:0; }
.landing-bg::after{
  content:"";
  position:absolute;
  inset:0;
  background: linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.48));
}
.landing-bg-video, .landing-bg-img{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit: cover;
}
.landing-bg-video{ display:none; }
.landing-bg-img{ display:block; }

.landing-inner{
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  text-align: center;
  padding: 64px 10px 26px;
}

.landing-hero{
  max-width: 720px;
  margin: 0 auto 22px;
  opacity: 0;
  transform: translateY(18px);
  animation: landingFadeUp 1.2s ease forwards;
}

@keyframes landingFadeUp{
  to{ opacity:1; transform: translateY(0); }
}

.landing-title{
  margin: 0;
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  font-weight: 500;
  letter-spacing: 0.6px;
  line-height: 1.15;
  text-shadow: 0 2px 20px rgba(0,0,0,0.25);
}

.landing-subtitle{
  margin: 28px 0 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  font-size: clamp(1rem, 2vw, 1.15rem);
  line-height: 1.9;
  letter-spacing: 0.3px;
  opacity: 0.86;
}

.landing-cta{
  display:flex;
  justify-content:center;
  gap:12px;
  flex-wrap:wrap;
  margin: 42px 0 0;
}

/* Hero CTA: premium translucent */
.landing .btn-primary{
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.20);
  backdrop-filter: blur(8px);
}
.landing .btn-primary:hover{
  background: rgba(255,255,255,0.22);
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.20);
}

.landing-map{ margin: 26px 0 0; }
.landing-map-frame{
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 18px;
  background: rgba(0,0,0,0.18);
  padding: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.22);
}
.landing-map-frame img{
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

/* Desktop-only background video (keeps mobile fast) */
@media (min-width: 901px){
  .landing-bg-video{ display:block; }
  .landing-bg-img{ display:block; } /* stays as fallback */
}

@media (max-width: 900px){
  .landing-inner{ padding: 54px 6px 22px; }
  .landing-title{ font-size: 2.3rem; }
  .landing-subtitle{ margin-top: 22px; }
  .landing-cta{ margin-top: 32px; }
}

/* ===== Landing feature cards ===== */
.landing-features{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap:14px;
  margin: 18px auto 0;
  width:100%;
  max-width: 980px;
}

.feature-card{
  border:1px solid rgba(255,255,255,0.10);
  background: rgba(8,12,18,0.55);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 16px 16px;
  text-align:center;
}

.feature-icon{
  font-size: 26px;
  line-height: 1;
  margin-bottom: 10px;
  opacity: 0.95;
}

.feature-title{
  font-weight: 600;
  font-size: 0.98rem;
  letter-spacing: 0.2px;
  margin-bottom: 6px;
}

.feature-text{
  font-size: 0.9rem;
  line-height: 1.55;
  opacity: 0.78;
}

@media (max-width: 900px){
  .landing-features{ grid-template-columns: 1fr; }
  .feature-card{ text-align:left; }
}

/* ===== View modes: collapse action buttons into More dropdown ===== */
.more-actions { display: none; }

html[data-view="mobile"] #export-btn,
html[data-view="mobile"] #import-btn,
html[data-view="mobile"] #backup-btn,
html[data-view="mobile"] #restore-btn,
html[data-view="mobile"] #templates-btn { display: none !important; }

html[data-view="mobile"] .more-actions { display: inline-flex; }

html[data-view="desktop"] .more-actions { display: none !important; }

/* Fallback for small screens if JS didn't run */
@media (max-width: 680px) {
  #export-btn, #import-btn, #backup-btn, #restore-btn, #templates-btn { display:none !important; }
  .more-actions { display: inline-flex; }
}

/* ===================== Mobile hardening ===================== */
html, body { max-width: 100%; overflow-x: hidden; }

@media (max-width: 720px) {
  .panel-actions{
    flex-wrap: wrap;
    justify-content: flex-start;
    width: 100%;
  }

  /* Collapse actions into More… dropdown on mobile */
  #export-btn, #import-btn, #backup-btn, #restore-btn, #templates-btn{
    display:none !important;
  }
  .more-actions{ display:block !important; }

  /* Stop rows stack */
  .item-row{
    flex-direction: column;
    align-items: stretch;
  }
  .item-actions{
    justify-content: flex-start;
  }

  /* Make time dropdown comfortable on phones */
  select[data-k="item-time"]{
    width: 120px;
  }
}

/* Prevent long URLs/strings from causing horizontal scroll */
a, p, div, span{ overflow-wrap:anywhere; word-break:break-word; }
img, svg, canvas{ max-width:100%; height:auto; }

.view-toggle{
  padding:6px 10px;
  font-size:12px;
  border-radius:999px;
  border:1px solid var(--border);
  background:rgba(255,255,255,.06);
  color:var(--text);
  cursor:pointer;
  white-space:nowrap;
}
.view-toggle:hover{ background:rgba(255,255,255,.10); }
.nav-right{ display:flex; align-items:center; gap:10px; }

/* Header tools cluster (group header icons in one place) */
.tf-header-tools{
  display:flex;
  align-items:center;
  gap:10px;
  justify-content:flex-end;
}
.tf-header-tools [data-tf-ai-toggle]{
  width:32px;
  height:32px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  opacity:.9;
}
.tf-header-tools [data-tf-ai-toggle]:hover{ opacity:1; }

@media (max-width: 768px){
  .tf-header-tools{ gap:8px; }
  .tf-header-tools [data-tf-ai-toggle]{ width:28px; height:28px; }
}

/* AI toggle (header icon) */
#aiToggle.is-active{ box-shadow:0 0 0 1px rgba(255,255,255,0.22) inset; opacity:1; }

/* Small inline panels (AI + Help) */
.ai-card,.help-panel{ border:1px solid rgba(255,255,255,0.10); background:rgba(255,255,255,0.04); border-radius:14px; padding:12px; }

/* ==============================
   SUPPORT (COMING SOON)
   Minimal floating heart button
   ============================== */
.support-float{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
}

.support-btn{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(18,18,20,0.62);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: inherit;
  font-size: 18px;
  line-height: 1;
}

.support-disabled .support-btn{
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

@media (min-width: 900px){
  .support-float{ right: 22px; bottom: 22px; }
}

/* ===== Planner "More" (premium dropdown) ===== */
.is-hidden{ display:none !important; }

.planner-more{ position: relative; display:inline-flex; align-items:center; }

.planner-more-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  white-space: nowrap;
}

.moreDots{ font-size:18px; line-height:1; opacity:0.9; }

.planner-more-menu{
  position:absolute;
  right:0;
  top: calc(100% + 10px);
  min-width: 200px;
  max-width: 82vw;
  display:none;
  padding:8px;
  border-radius: 14px;
  backdrop-filter: blur(10px);
  box-shadow: 0 12px 30px rgba(0,0,0,0.18);
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(20, 20, 22, 0.85);
  z-index: 80;
}

.planner-more-menu.isOpen{ display:block; }

.menuItem{
  width:100%;
  text-align:left;
  border:0;
  background:transparent;
  color:inherit;
  padding:10px 10px;
  border-radius:10px;
  cursor:pointer;
  font-size:14px;
}

.menuItem:hover{ background: rgba(255,255,255,0.08); }

.menuDivider{
  height:1px;
  margin:6px 8px;
  background: rgba(255,255,255,0.10);
}

/* Pin popup (Google link lives on pin) */
.pinPopup{min-width:200px;}
.pinPopupTitle{font-size:14px;font-weight:700;margin-bottom:4px;}
.pinPopupTime{font-size:12px;opacity:.8;margin-bottom:10px;}
.pinPopupBtn{display:inline-block;padding:8px 10px;border-radius:10px;text-decoration:none;font-size:12px;font-weight:600;border:1px solid rgba(0,0,0,0.12);background:rgba(255,255,255,0.95);color:#111;}
.pinPopupMuted{font-size:12px;opacity:.7;}

/* =========================================
   v25 Density Pass (Desktop + Mobile)
   Goal: tighter, premium, tool-first
   No layout rebuild — CSS only
   ========================================= */

/* --- HERO: reduce vertical weight + auto type --- */
.landing {
  padding-top: clamp(18px, 3vw, 28px);
  padding-bottom: clamp(16px, 3vw, 24px);
}

.landing-hero {
  margin-top: clamp(10px, 2vw, 16px);
  gap: clamp(10px, 2vw, 16px);
}

.landing-title {
  font-size: clamp(32px, 4.2vw, 56px);
  line-height: 1.05;
  margin-bottom: 6px;
}

.landing-subtitle {
  font-size: clamp(13px, 1.6vw, 16px);
  line-height: 1.35;
  margin-top: 6px;
}

/* tighten CTA spacing */
.landing-cta{
  margin-top: 10px;
  gap: 10px;
}

/* --- FEATURE CARDS: 3-column on desktop, stack on mobile --- */
.landing-features {
  margin-top: 14px;
  gap: 10px;
}

@media (min-width: 900px) {
  .landing-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
  }
}

.feature-card {
  padding: clamp(14px, 1.6vw, 18px);
  border-radius: 14px;
}

.feature-card .feature-title {
  margin-top: 6px;
  margin-bottom: 4px;
}

.feature-card .feature-text {
  line-height: 1.35;
}

/* --- OVERVIEW MAP CARD: reduce height so planner rises up --- */
/* Try common ids/classes safely; whichever exists will apply */
#heroMap,
#overviewMap,
.landing-map,
.landing-map .map,
.landing-map .map-container,
#map-hero,
.hero-map {
  height: clamp(180px, 26vw, 260px);
}

/* --- SECTION SPACING: reduce big gaps between hero/map/trip/planner --- */
section,
.section {
  margin-top: clamp(14px, 2.2vw, 22px);
}

/* Trip/Planner cards: reduce padding slightly on mobile */
@media (max-width: 768px) {
  .landing {
    padding-left: 14px;
    padding-right: 14px;
  }

  .landing-title {
    font-size: clamp(26px, 7vw, 36px);
  }

  .feature-card {
    padding: 12px 14px;
    border-radius: 12px;
  }

  /* Make the overview map shorter on phones */
  #heroMap,
  #overviewMap,
  .landing-map,
  .landing-map .map,
  .landing-map .map-container,
  #map-hero,
  .hero-map {
    height: 180px;
  }
}

/* ===================== Link Paste Bar (per-stop) ===================== */
.item-block{
  display:flex;
  flex-direction:column;
  gap:8px;
}

.item-rowA{
  display:flex;
  align-items:center;
  gap:10px;
}

.item-linkrow{
  display:flex;
  align-items:center;
  gap:10px;
  width:100%;
}

.item-linkrow.is-expanded .item-link-input{
  flex:1;
  min-width:0;
}

.item-linkrow.is-expanded .link-status{
  flex:0 0 auto;
  font-size:12px;
  color:var(--muted);
  white-space:nowrap;
}

.item-linkrow.is-collapsed .link-saved{
  flex:1;
  min-width:0;
}

.link-saved-title{
  font-size:12px;
  line-height:1.1;
}

.link-saved-sub{
  margin-top:2px;
  font-size:11px;
  color:var(--muted);
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
  max-width:100%;
}

.link-btn{
  flex:0 0 auto;
}

.item-link-input.is-resolving{
  opacity:.8;
}

@media (max-width: 420px){
  .item-rowA{ gap:8px; }
  .item-linkrow{ gap:8px; }
}
