/* Snow Genius palette + Apple-inspired glass styling */
:root{
  --bg-1:#eef7ff;
  --bg-2:#f9fcff;
  --card:rgba(255,255,255,.78);
  --card-strong:rgba(255,255,255,.92);
  --ink:#0d1b2a;
  --muted:#5d7084;
  --line:rgba(23,52,89,.12);
  --line-strong:rgba(23,52,89,.2);
  --brand-blue:#0a84ff;
  --brand-blue-deep:#1464d2;
  --brand-cyan:#4cc9f0;
  --brand-orange:#ff8a34;
  --green:#17a34a;
  --danger:#b91c1c;
  --danger-bg:#fef2f2;
  --shadow-lg:0 24px 60px rgba(15, 23, 42, .12);
  --shadow-md:0 10px 28px rgba(15, 23, 42, .08);
}

*{box-sizing:border-box}

html,body{min-height:100%}

body{
  margin:0;
  font:16px/1.5 "SF Pro Text","Segoe UI",Roboto,Helvetica,Arial,sans-serif;
  color:var(--ink);
  background:
    radial-gradient(1200px 600px at 8% -10%, rgba(76,201,240,.18), transparent 60%),
    radial-gradient(900px 520px at 92% 0%, rgba(255,138,52,.16), transparent 58%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 58%, #f7fafc 100%);
}

.hero{
  padding:24px 16px 8px;
  position:relative;
}

.hero-compact{
  text-align:center;
  justify-items:center;
}

.hero::before{
  content:"";
  position:absolute;
  inset:4px 16px auto;
  height:220px;
  border-radius:28px;
  background:
    radial-gradient(70% 120% at 10% 10%, rgba(76,201,240,.14), transparent 60%),
    radial-gradient(60% 100% at 90% 10%, rgba(255,138,52,.14), transparent 64%),
    linear-gradient(135deg, rgba(10,132,255,.08), rgba(76,201,240,.05) 52%, rgba(255,138,52,.08));
  filter:blur(1px);
  z-index:-1;
}

.hero-shell{
  max-width:1040px;
  margin:0 auto;
  padding:20px;
  display:grid;
  grid-template-columns:minmax(0, 1.2fr) minmax(320px, .8fr);
  gap:18px;
  align-items:stretch;
}

.hero-copy{
  border-radius:24px;
  border:1px solid rgba(255,255,255,.72);
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(10,132,255,.08), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.9), rgba(255,255,255,.78));
  box-shadow:var(--shadow-lg);
  padding:22px 22px 18px;
}

.hero-kicker{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-bottom:14px;
}

.pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:6px 11px;
  border-radius:999px;
  border:1px solid rgba(23,52,89,.1);
  background:rgba(255,255,255,.72);
  color:#365169;
  font-size:12px;
  font-weight:600;
  letter-spacing:.02em;
}

.pill-release{
  color:#0f4ea8;
  background:linear-gradient(135deg, rgba(10,132,255,.1), rgba(76,201,240,.12));
  border-color:rgba(10,132,255,.16);
}

.logo{
  width:min(260px, 72vw);
  height:auto;
  margin:0;
  filter:drop-shadow(0 8px 18px rgba(15,23,42,.08));
}

.hero h1{
  margin:0;
  font-size:clamp(31px, 3.9vw, 47px);
  line-height:1.02;
  letter-spacing:-0.03em;
  text-wrap:balance;
}

.tagline{
  margin:14px 0 0;
  color:var(--muted);
  max-width:62ch;
  font-size:15px;
}

.hero-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:16px;
}

.hero-link{
  color:#143f73;
}

.hero-points{
  margin:18px 0 0;
  padding:0;
  list-style:none;
  display:grid;
  gap:8px;
}

.hero-points li{
  position:relative;
  padding-left:18px;
  color:#395166;
  font-size:14px;
}

.hero-points li::before{
  content:"";
  position:absolute;
  left:0;
  top:.55em;
  width:8px;
  height:8px;
  border-radius:999px;
  background:linear-gradient(135deg, var(--brand-blue), var(--brand-cyan));
  box-shadow:0 0 0 4px rgba(10,132,255,.08);
}

.hero-panel{
  border-radius:24px;
  border:1px solid rgba(255,255,255,.72);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(255,138,52,.12), transparent 55%),
    radial-gradient(120% 120% at 0% 0%, rgba(10,132,255,.1), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.93), rgba(255,255,255,.82));
  box-shadow:var(--shadow-lg);
  padding:18px;
  display:grid;
  grid-template-rows:auto auto auto;
  gap:14px;
}

.hero-panel-header{
  display:grid;
  gap:8px;
}

.hero-panel-label{
  margin:0;
  color:#476178;
  font-size:11px;
  font-weight:700;
  letter-spacing:.12em;
  text-transform:uppercase;
}

.hero-panel h2{
  margin:0;
  font-size:23px;
  line-height:1.08;
  letter-spacing:-0.02em;
}

.hero-panel-copy{
  margin:0;
  color:var(--muted);
  font-size:14px;
}

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

.hero-stat{
  padding:12px;
  border-radius:16px;
  border:1px solid rgba(23,52,89,.08);
  background:rgba(255,255,255,.68);
}

.hero-stat-label{
  display:block;
  color:#587086;
  font-size:11px;
  font-weight:700;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.hero-stat strong{
  display:block;
  margin-top:3px;
  font-size:15px;
  line-height:1.15;
  letter-spacing:-0.02em;
}

.hero-stat-note{
  display:block;
  margin-top:4px;
  color:var(--muted);
  font-size:12px;
  line-height:1.35;
}

.hero-brand-row{
  display:grid;
  grid-template-columns:repeat(4, minmax(0, 1fr));
  gap:8px;
  align-items:center;
}

.hero-brand-row img{
  width:100%;
  height:28px;
  object-fit:contain;
  border-radius:12px;
  padding:6px 8px;
  background:rgba(255,255,255,.7);
  border:1px solid rgba(23,52,89,.06);
}

.card{
  max-width:1040px;
  margin:24px auto;
  padding:20px;
  border-radius:22px;
  border:1px solid rgba(255,255,255,.75);
  background:
    linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.78));
  box-shadow:var(--shadow-lg);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
}

.section{
  margin-bottom:18px;
  padding:14px;
  border-radius:18px;
  background:linear-gradient(180deg, rgba(255,255,255,.85), rgba(255,255,255,.68));
  border:1px solid rgba(255,255,255,.65);
}

.section:last-child{margin-bottom:0}

.section h2{
  margin:0;
  font-size:18px;
  letter-spacing:-0.01em;
}

.section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:nowrap;
  gap:12px;
  margin-bottom:10px;
}

.section-head h2{
  min-width:0;
}

.section-actions{
  display:flex;
  align-items:center;
  gap:8px;
  margin-left:auto;
  justify-content:flex-end;
}

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

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

.input,
.select{
  width:100%;
  flex:1;
  min-width:0;
  padding:11px 13px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.92);
  color:var(--ink);
  outline:none;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.75);
  transition:border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.input::placeholder{color:#8b9aad}

.input:hover,
.select:hover{
  border-color:var(--line-strong);
}

.input:focus,
.select:focus{
  border-color:rgba(10,132,255,.38);
  box-shadow:0 0 0 4px rgba(10,132,255,.12), inset 0 1px 0 rgba(255,255,255,.75);
}

.input:focus-visible,
.select:focus-visible,
.btn:focus-visible{
  outline:2px solid rgba(10,132,255,.5);
  outline-offset:2px;
}

.chk{
  display:flex;
  align-items:center;
  gap:7px;
  color:var(--muted);
  font-size:13px;
  white-space:nowrap;
  padding:8px 10px;
  border-radius:999px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(255,255,255,.7);
}

.chk input{accent-color:var(--brand-blue)}

.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:9px 14px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.7);
  background:linear-gradient(180deg, rgba(255,255,255,.97), rgba(245,248,252,.93));
  color:var(--ink);
  font-weight:600;
  letter-spacing:-0.01em;
  box-shadow:0 2px 8px rgba(15,23,42,.04);
  cursor:pointer;
  text-decoration:none;
  transition:transform .1s ease, box-shadow .15s ease, border-color .15s ease;
}

.btn:hover{
  border-color:rgba(23,52,89,.18);
  box-shadow:0 8px 20px rgba(15,23,42,.08);
}

.btn:active{transform:translateY(1px)}

.btn.subtle{
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,253,.92));
}

.btn.primary{
  color:#fff;
  border-color:transparent;
  background:
    linear-gradient(180deg, rgba(255,255,255,.15), rgba(255,255,255,0)) padding-box,
    linear-gradient(135deg, var(--brand-blue) 0%, var(--brand-blue-deep) 48%, var(--brand-cyan) 100%) border-box;
  box-shadow:0 10px 24px rgba(10,132,255,.24);
}

.btn.primary:hover{
  box-shadow:0 14px 28px rgba(10,132,255,.28);
}

.btn:disabled{
  opacity:.65;
  cursor:not-allowed;
  transform:none;
}

.resort-submit-row{
  display:flex;
  justify-content:flex-end;
  gap:10px;
  margin-top:12px;
  padding-top:10px;
  border-top:1px solid rgba(23,52,89,.06);
}

.footer{
  max-width:1040px;
  margin:8px auto 34px;
  color:var(--muted);
  text-align:center;
  font-size:13px;
}

/* Typeahead */
.typeahead{
  position:relative;
  flex:2;
  min-width:0;
}

.suggestions{
  position:absolute;
  top:calc(100% + 4px);
  left:0;
  right:0;
  z-index:20;
  margin:0;
  padding:6px;
  list-style:none;
  max-height:240px;
  overflow:auto;
  border-radius:16px;
  border:1px solid rgba(255,255,255,.72);
  background:rgba(255,255,255,.94);
  backdrop-filter:blur(12px);
  -webkit-backdrop-filter:blur(12px);
  box-shadow:var(--shadow-md);
}

.suggestions[hidden]{
  display:none;
}

.suggestions li{
  padding:9px 10px;
  border-radius:10px;
  cursor:pointer;
}

.suggestions li:hover,
.suggestions li.active{
  background:linear-gradient(135deg, rgba(10,132,255,.09), rgba(76,201,240,.08));
}

#results{padding:2px}

.error-banner{
  margin:10px 0;
  padding:10px 12px;
  border:1px solid #fecaca;
  border-radius:14px;
  background:var(--danger-bg);
  color:var(--danger);
}

.visually-hidden{
  position:absolute!important;
  height:1px;
  width:1px;
  overflow:hidden;
  clip:rect(1px,1px,1px,1px);
  white-space:nowrap;
}

.result-card{
  margin-bottom:12px;
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.74);
  background:
    radial-gradient(120% 110% at 100% 0%, rgba(255,138,52,.08), transparent 55%),
    radial-gradient(120% 110% at 0% 0%, rgba(10,132,255,.07), transparent 50%),
    linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,255,255,.85));
  box-shadow:0 8px 18px rgba(15,23,42,.05);
}

.result-card:last-child{margin-bottom:0}

.result-head{
  display:flex;
  align-items:baseline;
  justify-content:space-between;
  gap:10px;
}

.result-title{
  margin:0;
  font-size:18px;
  letter-spacing:-0.015em;
}

.result-price{
  font-weight:700;
  color:#0f3e7a;
  margin-left:auto;
}

.result-summary{
  margin-top:4px;
  color:var(--muted);
  font-size:13px;
}

.pass-list{
  display:grid;
  gap:8px;
  margin-top:12px;
}

.pass-group{
  border-top:1px solid rgba(23,52,89,.06);
  padding-top:8px;
}

.pass-group:first-child{
  border-top:none;
  padding-top:0;
}

.pass-group-title{
  margin-bottom:4px;
  font-size:12px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.06em;
}

.pass-family-section{
  border-top:1px solid rgba(23,52,89,.08);
  padding-top:10px;
}

.pass-family-section:first-child{
  border-top:none;
  padding-top:0;
}

.pass-family-title{
  margin-bottom:8px;
  color:#4f647a;
}

.pass-rider-subgroup{
  border-top:1px solid rgba(23,52,89,.05);
  padding-top:8px;
  margin-top:8px;
}

.pass-rider-subgroup:first-of-type{
  border-top:none;
  padding-top:0;
  margin-top:0;
}

.pass-rider-title{
  margin-bottom:4px;
  font-size:12px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.06em;
}

.pass-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding:6px 0;
}

.pass-name{
  display:inline-flex;
  align-items:center;
  gap:8px;
  min-width:0;
}

.pass-name > span:last-child{
  min-width:0;
  overflow-wrap:anywhere;
}

.pass-name-link{
  color:inherit;
}

.pass-name-link:hover,
.pass-name-link:focus-visible{
  text-decoration:underline;
}

.pass-brand-logo{
  width:auto;
  height:1em;
  object-fit:contain;
  padding:0;
  border:none;
  background:none;
  box-shadow:none;
  flex:0 0 auto;
}

.unmet{
  margin-top:10px;
  padding-top:10px;
  border-top:1px solid rgba(23,52,89,.06);
}

.unmet-list{
  margin:6px 0 0 18px;
  padding:0;
}

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

/* Dev mode shell */
.dev-shell{
  max-width:1100px;
  margin:22px auto 34px;
  padding:0 12px;
}

.dev-shell-card{
  border-radius:22px;
  border:1px solid rgba(255,255,255,.75);
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,255,255,.8));
  box-shadow:var(--shadow-lg);
  backdrop-filter:blur(18px);
  -webkit-backdrop-filter:blur(18px);
  padding:18px;
}

.dev-shell-head{
  margin-bottom:12px;
}

.dev-shell-head h2{
  margin:0;
  font-size:22px;
  letter-spacing:-0.02em;
}

.dev-shell-head p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:14px;
}

.dev-shell-head code{
  padding:2px 6px;
  border-radius:999px;
  background:rgba(10,132,255,.08);
  color:#0f4ea8;
}

.dev-debug{
  margin:12px 0 0;
  border-radius:16px;
  border:1px solid rgba(23,52,89,.08);
  background:rgba(255,255,255,.78);
  overflow:hidden;
}

.dev-debug summary{
  cursor:pointer;
  padding:10px 12px;
  font-weight:600;
  border-bottom:1px solid rgba(23,52,89,.06);
  list-style:none;
}

.dev-debug summary::-webkit-details-marker{display:none}

.dev-debug summary::after{
  content:"";
  float:right;
  width:8px;
  height:8px;
  margin-top:5px;
  border-right:2px solid rgba(13,27,42,.5);
  border-bottom:2px solid rgba(13,27,42,.5);
  transform:rotate(45deg);
}

.dev-debug[open] summary::after{transform:rotate(225deg)}

.dev-debug pre{
  margin:0;
  padding:12px;
  max-height:46vh;
  overflow:auto;
  font:12px/1.45 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;
  background:linear-gradient(180deg, rgba(248,251,255,.95), rgba(245,249,255,.92));
}

/* Utility for hidden elements toggled by JS */
#app-main[hidden],
#dev-shell[hidden],
.hero[hidden],
.footer[hidden]{display:none !important}

@media (max-width: 980px){
  .hero-shell{
    padding:12px 0 0;
    grid-template-columns:1fr;
    gap:12px;
  }
  .hero-copy,
  .hero-panel{
    padding:16px;
  }
  .hero-panel h2{
    font-size:20px;
  }
  .card{margin:12px; padding:14px}
  .section{padding:12px}
  .section-head{
    align-items:center;
    flex-direction:row;
  }
  .section-actions{
    width:auto;
    margin-left:auto;
  }
  .section-actions .btn{
    white-space:nowrap;
  }
  .row{flex-wrap:wrap}
  .typeahead{flex:1 1 100%}
  .input, .select{flex:1 1 100%}
  .chk{white-space:normal}
  .resort-submit-row{
    justify-content:stretch;
  }
  .resort-submit-row .btn{
    flex:1 1 auto;
    text-align:center;
  }
  .btn.subtle.remove-rider,
  .btn.subtle.remove-resort{
    margin-left:auto;
  }
  .result-head{
    align-items:flex-start;
    flex-direction:column;
  }
}

@media (max-width: 560px){
  .hero{
    padding-top:16px;
  }
  .hero-stat-grid{
    grid-template-columns:1fr;
  }
  .hero-brand-row{
    grid-template-columns:1fr 1fr;
  }
  .logo{
    width:min(220px, 74vw);
  }
}
