:root {
  --blue: #0033a0;
  --blue-dark: #001b57;
  --blue-ink: #00153f;
  --blue-bright: #1f63ff;
  --gold: #e8bd4b;
  --gold-light: #ffe598;
  --cream: #f6f1e4;
  --paper: #fffdf7;
  --ink: #12182a;
  --muted: #687184;
  --line: rgba(0, 27, 87, 0.13);
  --shadow: 0 28px 80px rgba(0, 22, 67, 0.16);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
textarea {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  color: white;
  background: var(--blue-dark);
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.topbar {
  position: relative;
  z-index: 20;
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 16px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 241, 228, 0.92);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: max-content;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 950;
  letter-spacing: 0.13em;
  text-decoration: none;
}

.brand-crown {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  color: var(--gold-light);
  background: var(--blue);
  border-radius: 50%;
  font-size: 21px;
  letter-spacing: 0;
}

.brand small {
  padding: 3px 6px;
  color: white;
  background: var(--blue);
  border-radius: 4px;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.topbar nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 42px);
}

.topbar nav a,
.header-action {
  color: var(--blue-ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.topbar nav a:hover,
.topbar nav a:focus-visible {
  color: var(--blue-bright);
}

.header-action {
  justify-self: end;
  padding: 12px 17px;
  color: white;
  background: var(--blue);
  border-radius: 999px;
}

.hero {
  position: relative;
  min-height: 680px;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, 0.92fr);
  align-items: center;
  gap: 48px;
  max-width: 1500px;
  margin: 0 auto;
  padding: clamp(64px, 9vw, 132px) clamp(24px, 6vw, 96px) 88px;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.36;
  background-image: radial-gradient(circle at 1px 1px, rgba(0, 51, 160, 0.15) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: linear-gradient(90deg, black, transparent 74%);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.eyebrow span {
  width: 34px;
  height: 2px;
  background: currentColor;
}

.eyebrow-light {
  color: var(--gold-light);
}

h1,
h2,
blockquote {
  font-family: Georgia, "Times New Roman", serif;
}

h1 {
  max-width: 800px;
  margin: 0;
  color: var(--blue-dark);
  font-size: clamp(62px, 8.1vw, 124px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 0.84;
}

h1 em {
  position: relative;
  color: var(--blue);
  font-weight: 400;
}

h1 em::after {
  content: "";
  position: absolute;
  left: 3%;
  right: -2%;
  bottom: -7px;
  height: 9px;
  border-bottom: 4px solid var(--gold);
  border-radius: 50%;
  transform: rotate(-2deg);
}

.hero-intro {
  max-width: 670px;
  margin: 34px 0 0;
  color: #3f4a60;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.66;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 23px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  color: white;
  background: var(--blue);
  box-shadow: 0 12px 30px rgba(0, 51, 160, 0.25);
}

.button-primary:hover {
  background: var(--blue-dark);
}

.button-secondary {
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.62);
  border-color: rgba(0, 51, 160, 0.22);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #35ad68;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(53, 173, 104, 0.14);
}

.hero-stats {
  display: flex;
  gap: clamp(24px, 4vw, 56px);
  margin: 46px 0 0;
}

.hero-stats div {
  display: grid;
  gap: 2px;
}

.hero-stats dt {
  color: var(--blue-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 30px;
  font-weight: 800;
}

.hero-stats dd {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.hero-art {
  position: relative;
  min-height: 510px;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.hero-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(38vw, 510px);
  aspect-ratio: 1;
  background: var(--blue);
  border-radius: 48% 52% 42% 58% / 56% 36% 64% 44%;
  box-shadow: inset 0 0 0 12px rgba(255, 255, 255, 0.08), var(--shadow);
  transform: rotate(-5deg);
}

.hero-art::after {
  content: "";
  position: absolute;
  z-index: -2;
  width: min(34vw, 460px);
  aspect-ratio: 1;
  border: 2px solid rgba(0, 51, 160, 0.2);
  border-radius: 50%;
  transform: translate(44px, -22px);
}

.hero-art img {
  width: min(80%, 390px);
  transform: rotate(2deg);
  filter: drop-shadow(0 30px 30px rgba(0, 15, 55, 0.25));
}

.hero-stamp {
  position: absolute;
  top: 14%;
  left: 0;
  z-index: 2;
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  margin: 0;
  padding: 15px;
  color: var(--blue-dark);
  background: var(--gold-light);
  border: 2px solid var(--blue-dark);
  border-radius: 50%;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.13em;
  line-height: 0.95;
  text-align: center;
  transform: rotate(-10deg);
}

.hero-stamp strong {
  font-size: 19px;
}

.royal-caption {
  position: absolute;
  right: 0;
  bottom: 12%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 11px 16px;
  color: var(--blue-dark);
  background: var(--paper);
  border: 1px solid rgba(0, 27, 87, 0.12);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(0, 22, 67, 0.16);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  transform: rotate(4deg);
}

.royal-caption span {
  color: var(--gold);
  font-size: 20px;
}

.orb {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
}

.orb-one {
  top: 4%;
  right: 8%;
  width: 18px;
  height: 18px;
  background: var(--gold);
}

.orb-two {
  right: 4%;
  bottom: 18%;
  width: 11px;
  height: 11px;
  background: white;
}

.explorer-section {
  padding: 86px clamp(18px, 4vw, 64px) 100px;
  color: white;
  background:
    radial-gradient(circle at 15% 10%, rgba(31, 99, 255, 0.34), transparent 28%),
    linear-gradient(150deg, #001846, #00102e 66%, #001b57);
}

.section-heading {
  max-width: 1370px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin: 0 auto 34px;
}

.section-heading h2,
.classics-intro h2,
.about-card h2 {
  margin: 0;
  font-size: clamp(48px, 6vw, 84px);
  letter-spacing: -0.055em;
  line-height: 0.92;
}

.section-heading > p {
  max-width: 500px;
  margin: 0 0 6px;
  color: #b9c8eb;
  font-size: 15px;
  line-height: 1.6;
}

.explorer-shell {
  position: relative;
  max-width: 1370px;
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.65fr);
  min-height: 700px;
  margin: 0 auto;
  overflow: hidden;
  background: #f9f7f0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 30px;
  box-shadow: 0 36px 100px rgba(0, 0, 0, 0.38);
}

.map-column {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.map-toolbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 15px;
  color: var(--blue-ink);
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.filter-row {
  min-width: 0;
  display: flex;
  flex: 1;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-row::-webkit-scrollbar {
  display: none;
}

.filter-chip,
.locate-button {
  flex: 0 0 auto;
  min-height: 39px;
  padding: 0 14px;
  color: var(--blue-ink);
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.filter-chip.active {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.locate-button {
  color: var(--blue);
  background: #edf2ff;
  border-color: #cedbff;
}

.map-wrap {
  position: relative;
  flex: 1;
  min-height: 630px;
}

#map {
  position: absolute;
  inset: 0;
  background: #dce6ea;
}

#map .leaflet-tile-pane {
  filter: saturate(0.55) contrast(0.94) brightness(1.04);
}

#map .leaflet-control-zoom a {
  color: var(--blue-dark);
  border: 0;
}

#map .leaflet-control-attribution {
  color: #48536b;
  background: rgba(255, 255, 255, 0.84);
  font-size: 9px;
}

.throne-pin {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: white;
  background: var(--blue);
  border: 3px solid white;
  border-radius: 50% 50% 50% 13%;
  box-shadow: 0 8px 22px rgba(0, 18, 61, 0.28);
  font-size: 15px;
  font-weight: 900;
  transform: rotate(-45deg);
  transition: transform 160ms ease;
}

.throne-pin span {
  transform: rotate(45deg);
}

.throne-pin--verified {
  color: var(--blue-dark);
  background: var(--gold-light);
}

.throne-pin--verified .door-glyph {
  transform: rotate(45deg);
}

.door-glyph {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.pin-count {
  position: absolute;
  top: -7px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  color: white;
  background: var(--blue);
  border: 2px solid white;
  border-radius: 999px;
  font-size: 9px;
  line-height: 1;
  transform: rotate(45deg);
}

.throne-cluster-shell {
  background: transparent;
}

.throne-cluster {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: var(--blue-dark);
  background: var(--gold-light);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 5px rgba(232, 189, 75, 0.3), 0 8px 22px rgba(0, 18, 61, 0.3);
}

.throne-cluster .door-glyph {
  width: 22px;
  height: 22px;
  transform: translateX(-5px);
}

.throne-cluster b {
  position: absolute;
  right: -3px;
  bottom: -3px;
  min-width: 23px;
  height: 23px;
  display: grid;
  place-items: center;
  padding: 0 5px;
  color: white;
  background: var(--blue);
  border: 2px solid white;
  border-radius: 999px;
  font-size: 9px;
}

.throne-pin--selected {
  transform: rotate(-45deg) scale(1.22);
  box-shadow: 0 0 0 7px rgba(31, 99, 255, 0.2), 0 8px 22px rgba(0, 18, 61, 0.34);
}

.user-pin {
  width: 20px;
  height: 20px;
  background: #2ab56f;
  border: 4px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 8px rgba(42, 181, 111, 0.22), 0 4px 16px rgba(0, 0, 0, 0.25);
}

.map-legend {
  position: absolute;
  z-index: 500;
  right: 15px;
  bottom: 28px;
  display: flex;
  gap: 13px;
  padding: 9px 12px;
  color: var(--blue-ink);
  background: rgba(255, 253, 247, 0.9);
  border: 1px solid rgba(0, 27, 87, 0.1);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(0, 22, 67, 0.13);
  backdrop-filter: blur(10px);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.map-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-marker {
  display: grid;
  width: 15px;
  height: 15px;
  place-items: center;
  background: var(--blue);
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(0, 27, 87, 0.15);
  font-size: 8px;
  font-style: normal;
}

.legend-marker-verified {
  background: var(--gold-light);
}

.map-home {
  position: absolute;
  z-index: 500;
  top: 15px;
  right: 15px;
  width: 42px;
  height: 42px;
  color: white;
  background: var(--blue);
  border: 3px solid white;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0, 22, 67, 0.22);
  cursor: pointer;
  font-size: 10px;
  font-weight: 950;
}

.results-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--paper);
  border-left: 1px solid var(--line);
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 16px 8px;
  padding: 0 13px;
  color: var(--muted);
  background: #f1eee6;
  border: 1px solid transparent;
  border-radius: 13px;
}

.search-box:focus-within {
  background: white;
  border-color: rgba(0, 51, 160, 0.35);
  box-shadow: 0 0 0 4px rgba(0, 51, 160, 0.08);
}

.search-box input {
  min-width: 0;
  flex: 1;
  height: 48px;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
}

.search-box kbd {
  padding: 2px 6px;
  color: #7d8491;
  background: white;
  border: 1px solid #dfe1e4;
  border-radius: 5px;
  font-size: 10px;
}

.results-meta {
  min-height: 35px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 18px 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.results-meta > span {
  min-width: 0;
}

#location-status {
  overflow: hidden;
  color: #238252;
  text-align: right;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.results-list {
  min-height: 0;
  flex: 1;
  overflow-y: auto;
  scrollbar-color: rgba(0, 51, 160, 0.24) transparent;
}

.location-card {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 17px 18px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
}

.location-card:hover,
.location-card:focus-visible,
.location-card.active {
  background: #f2f5fc;
  outline: 0;
}

.card-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--blue-dark);
  background: var(--gold-light);
  border-radius: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 17px;
  font-weight: 900;
}

.card-icon-classic {
  color: white;
  background: var(--blue);
}

.card-icon-verified .door-glyph {
  width: 23px;
  height: 23px;
}

.card-copy {
  min-width: 0;
}

.card-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--blue);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.card-copy strong {
  display: block;
  overflow: hidden;
  color: var(--blue-ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-copy small {
  display: block;
  overflow: hidden;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-distance {
  align-self: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.empty-results {
  padding: 60px 28px;
  color: var(--muted);
  text-align: center;
}

.empty-results strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
}

.detail-sheet {
  position: absolute;
  z-index: 700;
  top: 84px;
  right: calc(min(390px, 29%) + 18px);
  width: min(390px, calc(100% - 54px));
  max-height: calc(100% - 106px);
  overflow-y: auto;
  color: var(--ink);
  background: rgba(255, 253, 247, 0.98);
  border: 1px solid rgba(0, 27, 87, 0.14);
  border-radius: 22px;
  box-shadow: 0 24px 70px rgba(0, 20, 60, 0.28);
  backdrop-filter: blur(16px);
}

.detail-sheet[hidden] {
  display: none;
}

.detail-inner {
  padding: 22px;
}

.detail-close {
  position: absolute;
  top: 13px;
  right: 13px;
  width: 34px;
  height: 34px;
  color: var(--blue-dark);
  background: #ece9e0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  font-size: 20px;
}

.detail-badge {
  display: inline-flex;
  margin: 0 0 13px;
  padding: 6px 9px;
  color: var(--blue);
  background: #e9efff;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.detail-badge-classic {
  color: #714d00;
  background: var(--gold-light);
}

.detail-sheet h3 {
  margin: 0 36px 8px 0;
  color: var(--blue-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  letter-spacing: -0.035em;
  line-height: 1.02;
}

.detail-address,
.detail-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.detail-note {
  margin: 14px 0;
  color: #354158;
}

.room-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 15px 0;
  padding: 0;
  list-style: none;
}

.room-list li {
  padding: 7px 9px;
  color: var(--blue-dark);
  background: #eef1f6;
  border-radius: 8px;
  font-size: 10px;
  font-weight: 800;
}

.detail-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 18px;
}

.detail-actions a,
.detail-actions button {
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  color: var(--blue-dark);
  background: white;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
}

.detail-actions .action-primary {
  color: white;
  background: var(--blue);
  border-color: var(--blue);
}

.note-field {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.note-field label {
  color: var(--blue-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.note-field textarea {
  width: 100%;
  min-height: 72px;
  padding: 10px;
  resize: vertical;
  color: var(--ink);
  background: #f3f1e9;
  border: 1px solid transparent;
  border-radius: 10px;
  outline: 0;
  font-size: 12px;
}

.note-field textarea:focus {
  background: white;
  border-color: rgba(0, 51, 160, 0.4);
}

.note-save {
  justify-self: start;
  padding: 7px 12px;
  color: var(--blue);
  background: transparent;
  border: 1px solid rgba(0, 51, 160, 0.25);
  border-radius: 999px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.classics-section {
  max-width: 1500px;
  display: grid;
  grid-template-columns: minmax(270px, 0.52fr) minmax(0, 1.48fr);
  gap: clamp(50px, 7vw, 110px);
  margin: 0 auto;
  padding: 120px clamp(24px, 6vw, 90px);
}

.classics-intro {
  position: sticky;
  top: 40px;
  align-self: start;
}

.classics-intro h2 {
  color: var(--blue-dark);
}

.classics-intro > p:last-child {
  max-width: 420px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.classic-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: throne;
}

.classic-card {
  position: relative;
  min-height: 270px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 25px;
  overflow: hidden;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: 0 12px 40px rgba(0, 22, 67, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.classic-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(0, 22, 67, 0.13);
}

.classic-card:first-child {
  grid-column: span 2;
  min-height: 230px;
  color: white;
  background: var(--blue);
}

.classic-rank {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--blue);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.classic-card:first-child .classic-rank {
  color: var(--gold-light);
}

.classic-number {
  position: absolute;
  top: 10px;
  right: 18px;
  color: rgba(0, 51, 160, 0.07);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 100px;
  font-weight: 900;
  line-height: 1;
}

.classic-card:first-child .classic-number {
  color: rgba(255, 255, 255, 0.09);
}

.classic-card h3 {
  position: relative;
  z-index: 1;
  max-width: 430px;
  margin: 34px 0 8px;
  color: var(--blue-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 27px;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

.classic-card:first-child h3 {
  color: white;
  font-size: clamp(29px, 4vw, 43px);
}

.classic-card p {
  position: relative;
  z-index: 1;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.classic-card:first-child p {
  max-width: 600px;
  color: #c8d4f3;
}

.classic-card button,
.classic-card .retired-label {
  align-self: start;
  margin-top: 24px;
  padding: 7px 11px;
  color: var(--blue);
  background: #edf2ff;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.classic-card:first-child .retired-label {
  color: var(--blue-dark);
  background: var(--gold-light);
}

.about-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--gold-light);
}

.about-card {
  min-height: 520px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(56px, 8vw, 120px);
}

.about-card-quote {
  position: relative;
  color: white;
  background: var(--blue);
  overflow: hidden;
}

.about-card-quote::after {
  content: "♛";
  position: absolute;
  right: -45px;
  bottom: -105px;
  color: rgba(255, 255, 255, 0.07);
  font-size: 330px;
}

.quote-mark {
  height: 38px;
  margin: 0;
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 84px;
  line-height: 1;
}

.about-card blockquote {
  position: relative;
  z-index: 1;
  max-width: 650px;
  margin: 24px 0;
  font-size: clamp(38px, 4.5vw, 64px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.about-card-quote > p:last-child {
  color: #c1d0f2;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-card-copy {
  color: var(--blue-dark);
}

.about-card-copy .eyebrow {
  color: var(--blue);
}

.about-card-copy > p:not(.eyebrow, .data-date) {
  max-width: 590px;
  color: #46536d;
  font-size: 15px;
  line-height: 1.72;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.source-links a {
  padding: 9px 12px;
  color: var(--blue-dark);
  background: rgba(255, 255, 255, 0.46);
  border: 1px solid rgba(0, 27, 87, 0.14);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 850;
  text-decoration: none;
}

.data-date {
  margin-top: 14px;
  color: rgba(0, 27, 87, 0.6);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

footer {
  min-height: 120px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 28px clamp(24px, 5vw, 72px);
  color: #aab8d8;
  background: #000d2b;
  font-size: 11px;
}

.brand-footer {
  color: white;
}

footer p {
  margin: 0;
  text-align: center;
}

footer > a:last-child {
  justify-self: end;
  color: white;
  font-weight: 800;
  text-decoration: none;
}

:focus-visible {
  outline: 3px solid #5f8dff;
  outline-offset: 3px;
}

@media (max-width: 1050px) {
  .topbar {
    grid-template-columns: 1fr auto;
  }

  .topbar nav {
    display: none;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr 0.7fr;
  }

  .hero-art {
    min-height: 420px;
  }

  .explorer-shell {
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.7fr);
  }

  .detail-sheet {
    right: 350px;
  }

  .classic-grid {
    grid-template-columns: 1fr;
  }

  .classic-card:first-child {
    grid-column: auto;
  }
}

@media (max-width: 780px) {
  .topbar {
    min-height: 66px;
    padding: 12px 16px;
  }

  .header-action {
    padding: 10px 13px;
    font-size: 10px;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
    padding: 58px 22px 58px;
  }

  h1 {
    font-size: clamp(58px, 18vw, 84px);
  }

  .hero-intro {
    font-size: 16px;
  }

  .hero-actions .button {
    flex: 1;
    padding: 0 16px;
    font-size: 11px;
  }

  .hero-stats {
    justify-content: space-between;
    gap: 14px;
  }

  .hero-stats dd {
    max-width: 80px;
  }

  .hero-art {
    min-height: 390px;
    margin-top: 8px;
  }

  .hero-art::before {
    width: min(86vw, 430px);
  }

  .hero-art::after {
    width: min(75vw, 380px);
  }

  .hero-art img {
    width: min(72vw, 330px);
  }

  .hero-stamp {
    left: 4%;
  }

  .explorer-section {
    padding: 68px 12px 76px;
  }

  .section-heading {
    display: block;
    padding: 0 10px;
  }

  .section-heading > p {
    margin-top: 18px;
  }

  .explorer-shell {
    display: flex;
    min-height: auto;
    flex-direction: column;
    border-radius: 24px;
  }

  .map-toolbar {
    min-height: 62px;
    padding: 10px;
  }

  .locate-button {
    width: 42px;
    padding: 0;
    font-size: 0;
  }

  .locate-button span {
    font-size: 16px;
  }

  .filter-chip {
    padding: 0 9px;
    font-size: 9px;
  }

  .map-wrap {
    min-height: 53vh;
  }

  .map-legend {
    right: 9px;
    bottom: 22px;
  }

  .results-panel {
    height: 480px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .detail-sheet {
    position: fixed;
    z-index: 1100;
    top: auto;
    right: 10px;
    bottom: calc(10px + env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
    max-height: 72vh;
    border-radius: 24px;
  }

  .classics-section {
    display: block;
    padding: 88px 20px;
  }

  .classics-intro {
    position: static;
    margin-bottom: 36px;
  }

  .classic-grid {
    grid-template-columns: 1fr;
  }

  .classic-card,
  .classic-card:first-child {
    min-height: 245px;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .about-card {
    min-height: 480px;
    padding: 58px 24px;
  }

  footer {
    grid-template-columns: 1fr;
    padding: 38px 24px;
    text-align: center;
  }

  footer .brand,
  footer > a:last-child {
    justify-self: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
