:root {
  color-scheme: light;
  --navy: #10284b;
  --ink: #142945;
  --muted: #49617d;
  --blue: #1457b8;
  --blue-hover: #104592;
  --line: #d0dfef;
  --ice: #e8f1fc;
  --paper: #f4f8fd;
  font-family: system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p { margin: 0; }
a { color: var(--blue); }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
button, .primary, .outline { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }
.wrap { width: min(1160px, calc(100% - 48px)); margin-inline: auto; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.nav, nav { display: flex; align-items: center; gap: clamp(10px, 2vw, 26px); }
.nav { justify-content: space-between; min-height: 70px; }
.nav a { text-decoration: none; font-weight: 700; }
.brand { color: var(--ink); font-size: 1.28rem; white-space: nowrap; letter-spacing: -.045em; }
.brand-icon { vertical-align: middle; margin-right: 3px; }
.text-button { background: transparent; border: 0; padding: 0; color: var(--blue); font-weight: 650; }
.primary, .outline {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; min-height: 42px; padding: 8px 13px; border-radius: 9px;
  border: 1px solid var(--line); font-weight: 700; text-decoration: none;
}
.primary { color: #fff; background: var(--blue); border-color: var(--blue); }
.outline { background: var(--ice); color: #163e73; border-color: #b9cfea; }
.primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); text-decoration: none; }
.outline:hover { background: #d8e9fd; text-decoration: none; }
.hero {
  min-height: clamp(330px, 42vw, 530px);
  display: grid;
  align-items: center;
  padding-block: 58px;
  color: #fff;
  background: linear-gradient(90deg, #082339f2 0%, #082339d9 26%, #0823394d 67%, #0823391a), url('/snowboard.jpg') center 43% / cover #153a50;
}
.hero h1 { font-size: clamp(2.5rem, 6.5vw, 5rem); letter-spacing: -.075em; line-height: .98; max-width: 10ch; }
.hero p { margin-top: 17px; max-width: 34ch; line-height: 1.55; font-size: 1.07rem; }
.results {
  min-height: 42vh;
  padding-block: 30px 52px;
  background: #ecf5fc url('/contours.svg') center top / 1000px 560px repeat;
}
.filters { background: #f8fcff; padding: 12px; border: 1px solid #d0e3f1; border-radius: 12px; }
.filters { display: grid; grid-template-columns: minmax(170px, 1fr) auto auto auto; gap: 10px; }
input, select { min-height: 44px; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--ink); padding: 9px 12px; min-width: 0; }
.filters input { width: 100%; }
#nearby-place:not([hidden]) { display: flex; flex-wrap: wrap; gap: 8px; align-items: end; margin: 8px 0 16px; }
#nearby-place label { display: grid; gap: 4px; max-width: 100%; }
.section-head { display: flex; align-items: baseline; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin: 25px 0 13px; }
.section-head h2, .detail h2 { letter-spacing: -.04em; }
.status, .muted { color: var(--muted); }
.status { padding-block: 10px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 13px; padding: 16px; display: flex; flex-direction: column; justify-content: space-between; min-height: 115px; gap: 12px; }
.card:hover { border-color: #87a8da; }
.card h3 { font-size: 1.1rem; margin-bottom: 4px; }
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { text-decoration: underline; }
.map-label { color: #174a8c; font-size: .84rem; font-weight: 700; }
.map { height: min(62vh, 540px); min-height: 330px; border: 1px solid var(--line); border-radius: 13px; background: var(--ice); overflow: hidden; margin-bottom: 14px; }
.detail { padding-block: 26px 60px; max-width: 900px; }
.detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; padding: 23px 0; }
.detail h1 { font-size: clamp(2rem, 6vw, 4rem); line-height: 1; letter-spacing: -.07em; margin-bottom: 10px; }
.detail-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 16px; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); padding: 21px; border-radius: 14px; }
.panel p { line-height: 1.5; margin: 9px 0; }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.map-preview { margin-top: 12px; max-height: 360px; width: 100%; object-fit: contain; background: var(--ice); border-radius: 8px; }
.stat-list { display: grid; grid-template-columns: repeat(2, 1fr); margin-bottom: 0; gap: 12px; }
.stat-list div { padding: 10px; border-radius: 8px; background: var(--ice); }
.stat-list dt { font-size: .83rem; color: var(--muted); }
.stat-list dd { margin: 0; font-weight: 700; }
@font-face {
  font-family: FontAwesomeSolid;
  src: url('/fonts/AlpineBuddy-Report-Icons.otf') format('opentype');
  font-display: block;
}
.report-symbol { font-family: FontAwesomeSolid; font-weight: 400; color: var(--blue); }
.mountain-report .stat-list > div { display: flex; flex-direction: column; gap: 4px; padding: 12px; }
.mountain-report .stat-list dt { font-weight: 700; }
.mountain-report .stat-list .report-symbol { font-size: 19px; vertical-align: middle; }
.mountain-report .stat-list dd { order: -1; font-size: clamp(1.3rem, 2.5vw, 1.7rem); line-height: 1.1; font-weight: 900; }
footer { border-top: 1px solid var(--line); padding: 20px 0; color: var(--muted); }
dialog { max-width: min(410px, calc(100% - 28px)); width: 100%; padding: 22px; border: 1px solid var(--line); border-radius: 14px; }
dialog::backdrop { background: #0c263c9c; }
dialog form, dialog label { display: grid; gap: 9px; }
dialog form { gap: 13px; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
@media (max-width: 790px) {
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters input { grid-column: 1 / -1; }
  .detail-grid { grid-template-columns: 1fr; }
}
@media (max-width: 510px) {
  .wrap { width: calc(100% - 28px); }
  .nav { gap: 8px; min-height: 59px; }
  nav { gap: 9px; font-size: .83rem; }
  .nav .outline { padding-inline: 7px; }
  .brand { font-size: 1.03rem; }
  .cards { grid-template-columns: 1fr; }
  .filters button, .filters select { font-size: .83rem; padding-inline: 7px; }
  .detail-header { flex-wrap: wrap; }
}

/* Destination browsing */
.site-header { background: var(--navy); border: 0; }
.site-header .brand, .site-header nav a, .site-header .text-button { color: #f3f8ff; }
.site-header .outline { background: transparent; color: white; border-color: #789bc8; }
.site-header .outline:hover { background: #214777; }
.site-header :focus-visible, .detail-header :focus-visible { outline-color: #b9d8ff; }
.hero h1, .detail h1 { font-weight: 850; letter-spacing: -.065em; }
.filters { grid-template-columns: minmax(170px, 1fr) repeat(4, auto); }
.section-head { margin-top: 32px; }
.section-head h2, .detail h2 { font-size: 1.48rem; font-weight: 800; }
.cards { gap: 17px; }
.card { display: block; padding: 0; overflow: hidden; border-radius: 10px; }
.card-link { display: block; color: var(--ink); text-decoration: none; height: 100%; }
.card-link:hover { text-decoration: none; }
.card-link:hover h3 { color: var(--blue); }
.card-link:focus-visible { outline-offset: -4px; }
.card-art { position: relative; display: flex; justify-content: space-between; gap: 6px; align-items: flex-start; min-height: 123px; padding: 13px; background: linear-gradient(130deg, #e0edfc, #b2cdec); isolation: isolate; }
.card-art img { position: absolute; height: 150%; width: 68%; right: -5%; top: -22%; object-fit: contain; mix-blend-mode: multiply; opacity: .25; z-index: -1; }
.card-art span { background: #f4f9ff; color: #194477; padding: 3px 7px; border-radius: 4px; font-size: .76rem; font-weight: 750; }
.card-art .map-label { background: #17467f; color: #f7fbff; }
.card-body { padding: 15px 16px; }
.card h3 { font-size: 1.25rem; font-weight: 800; letter-spacing: -.035em; }
.card-meta { display: flex; gap: 5px; align-items: center; margin-top: 13px; }
.pass-chip { border: 1px solid var(--line); border-radius: 4px; padding: 3px 7px; font-size: .76rem; font-weight: 700; }
.card-arrow { margin-left: auto; font-weight: 800; color: var(--blue); }
.detail-header {
  min-height: clamp(260px, 38vw, 380px);
  gap: 18px;
  color: white;
  background: linear-gradient(0deg, #082339fa 0%, #082339c9 23%, #08233965 58%, #08233914 86%), url('/winter-ridge.jpg') center 48% / cover #153a50;
  border-radius: 12px;
  padding: clamp(22px, 5vw, 48px);
  margin: 15px 0 24px;
  align-items: flex-end;
}
.destination-place { font-weight: 700; margin-bottom: 8px; }
.detail-header h1 { margin-bottom: 0; }
.resort-stats { margin-top: 16px; }
.resort-stats .stat-list { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); }
.stat-list dd { font-size: 1.3rem; font-weight: 800; }
@media (max-width: 790px) {
  .filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero { min-height: 315px; }
}
@media (max-width: 510px) {
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 320px; background-position: 59% center; }
  .detail-header { background-position: 57% center; flex-flow: column; align-items: flex-start; justify-content: flex-end; }
}

.icon { width: 1.05em; height: 1.05em; display: inline-block; flex: none; vertical-align: -.15em; }
.search-input { display: flex; align-items: center; position: relative; min-width: 0; }
.search-input .icon { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.search-input input { padding-left: 36px; }
.icon-heading { display: flex; align-items: center; gap: .45em; }
.icon-heading .icon, .stat-list .icon { color: var(--blue); }
@media (max-width: 790px) {
  .search-input { grid-column: 1 / -1; }
}

.detail-header.with-resort-photo {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin-bottom: 7px;
  background: #153a50;
}
.with-resort-photo::after {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: linear-gradient(0deg, #082339f5 0%, #082339b5 24%, #08233932 58%, #08233900 88%);
  pointer-events: none;
}
.resort-photo {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.photo-credit {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: .78rem;
  text-align: right;
}
.photo-credit a { color: inherit; }

.weather-current {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 22px;
  background: var(--ice);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 13px 0 20px;
}
.weather-current strong { display: block; font-size: 2.2rem; line-height: 1.12; }
.weather-current p { margin: 2px 0; }
.weather-summary { font-weight: 750; }
#mountain-weather h3 { margin-top: 18px; font-size: 1rem; }
.weather-hours, .weather-days {
  list-style: none;
  padding: 0;
  margin: 8px 0 12px;
  gap: 8px;
}
.weather-hours {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(93px, 1fr);
  padding-bottom: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}
.weather-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.weather-hours li, .weather-days li {
  display: grid;
  align-content: start;
  gap: 4px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: .82rem;
  color: var(--muted);
}
.weather-hours strong, .weather-days strong { color: var(--ink); font-size: .94rem; }
.weather-source { font-size: .8rem; }
@media (max-width: 620px) {
  .weather-days { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.weather-symbol { display: inline-flex; color: var(--blue); font-size: 1.3rem; }
.weather-current .weather-symbol { font-size: 2.1rem; }

.account-page { min-height: 70vh; padding: clamp(25px, 7vw, 90px) 16px; background: linear-gradient(#10284ba6, #10284b66), url('/snowboard.jpg') center / cover; }
.account-panel { width: min(100%, 450px); margin: auto; padding: clamp(20px, 5vw, 38px); }
.account-panel h1 { margin: 14px 0 8px; font-size: clamp(1.7rem, 5vw, 2.4rem); }
.account-panel form, .account-panel label { display: grid; gap: 9px; }
.account-panel form { gap: 14px; margin: 20px 0 12px; }
.account-panel [role="status"]:empty { display: none; }
.local-weather:not([hidden]), .weather-units { display: flex; align-items: center; gap: 4px; color: white; }
.local-weather { position: relative; white-space: nowrap; }
.weather-units button { color: #edf7ff; border: 1px solid transparent; background: transparent; border-radius: 6px; padding: 5px; font: inherit; cursor: pointer; }
.weather-units button[aria-pressed="true"] { background: #d4eaff; color: var(--navy); }
.weather-location-status { position: absolute; top: 100%; right: 0; background: var(--navy); border-radius: 5px; z-index: 3; }
.weather-location-status:not(:empty) { padding: 4px 8px; }
@media (max-width: 520px) {
  .nav:has(.local-weather:not([hidden])) { flex-wrap: wrap; padding-block: 8px; }
  .nav:has(.local-weather:not([hidden])) nav { flex-wrap: wrap; }
}
.password-field { display: grid; gap: 9px; }
.password-control { position: relative; }
.password-control input { width: 100%; padding-right: 50px; }
.password-control button { position: absolute; right: 3px; inset-block: 2px; width: 43px; display: grid; place-items: center; border: 0; border-radius: 6px; color: var(--navy); background: transparent; cursor: pointer; }
.password-control button:hover { background: #eaf4ff; }
.password-control input::-ms-reveal { display: none; }

@font-face {
  font-family: Inter;
  src: url('/fonts/Inter.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
:root { font-family: Inter, system-ui, sans-serif; }

.account-page {
  position: relative;
  isolation: isolate;
  min-height: 100vh;
  padding: clamp(205px, 33vw, 380px) 16px 48px;
  background: #fff;
}
.account-page::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  z-index: -1;
  height: clamp(390px, 53vw, 680px);
  background:
    linear-gradient(to bottom, #ffffff00 32%, #ffffff26 49%, #fff 98%),
    url('/snowboard.jpg') center 42% / cover no-repeat;
}
.account-panel { border-radius: 20px; }
.account-panel > a { display: block; margin-top: 18px; text-align: center; }
.social-signin { border-top: 1px solid var(--line); padding-top: 16px; text-align: center; }
.social-grid { margin-top: 10px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.social-grid .outline { color: var(--navy); background: #fff; }
.social-grid .outline:disabled { opacity: .48; cursor: default; }
.social-grid .outline:not(:disabled):hover { background: #eaf4ff; }
.social-grid span { display: inline-grid; place-items: center; min-width: 18px; }
.hero {
  padding-bottom: 88px;
  background:
    linear-gradient(to bottom, #f4f8fd00 69%, var(--paper)),
    linear-gradient(90deg, #082339e8, #08233955 70%, #08233920),
    url('/snowboard.jpg') center 43% / cover;
}
.with-resort-photo::after {
  background:
    linear-gradient(to bottom, #f4f8fd00 92%, var(--paper)),
    linear-gradient(0deg, #082339f5 0%, #082339af 27%, #08233922 75%);
}
.weather-picker {
  position: absolute;
  inset: calc(100% + 5px) 0 auto auto;
  z-index: 5;
  width: min(310px, 80vw);
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 40px #10284b31;
  white-space: normal;
}
.weather-picker > button { width: 100%; }
.weather-picker form { display: grid; gap: 7px; margin-top: 12px; }
.weather-picker form > div { display: flex; gap: 6px; }
.weather-picker input { width: 100%; min-width: 0; }
.weather-picker p:not(:empty) { margin-top: 8px; }
.weather-announcement { width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; position: absolute; }
@media (max-width: 520px) {
  .weather-picker { inset-inline: 0 auto; }
}

#main:has(.detail), .results {
  background: var(--paper) url('/contours.svg') center top / 1000px 560px repeat;
}
.account-page {
  background: #fff url('/contours.svg') center 420px / 1000px 560px repeat;
}
.account-page::before {
  background: url('/snowboard.jpg') center 42% / cover no-repeat;
  mask-image: linear-gradient(to bottom, #000 32%, #000d 49%, transparent 99%);
}
.hero {
  position: relative;
  isolation: isolate;
  background: var(--paper) url('/contours.svg') center bottom / 1000px 560px repeat;
}
.hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: '';
  background: linear-gradient(90deg, #082339e8, #08233955 70%, #08233920),
    url('/snowboard.jpg') center 43% / cover;
  mask-image: linear-gradient(to bottom, #000 62%, transparent 100%);
}
.favorites-hero { min-height: clamp(230px, 30vw, 360px); }
.favorites-hero::before {
  background-image: linear-gradient(90deg, #082339e8, #08233948 72%),
    url('/winter-ridge.jpg');
}
.detail-header.with-resort-photo { background: transparent; }
.resort-photo { mask-image: linear-gradient(to bottom, #000 83%, transparent 100%); }
.with-resort-photo::after {
  background: linear-gradient(to top, #08233900 0%, #082339c9 11%, #082339a3 31%, #08233922 76%);
}
.detail-header:not(.with-resort-photo) {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: transparent;
}
.detail-header:not(.with-resort-photo)::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(0deg, #082339f5, #082339c9 25%, #08233914 86%),
    url('/winter-ridge.jpg') center 48% / cover;
  mask-image: linear-gradient(to bottom, #000 84%, transparent 100%);
}
