* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f6f4ef;
  color: #1f1f1f;
  line-height: 1.6;
}

body.drawer-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

.hero {
  position: relative;
  min-height: 72vh;
  display: flex;
  align-items: center;
  color: white;
  overflow: hidden;
}

.hero-home {
  background-image: url("assets/images/IMG_6288.jpeg");
  background-size: cover;
  background-position: center;
  padding: 120px 0 72px;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(16, 24, 40, 0.56);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  opacity: 0.9;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.3rem);
  line-height: 1.06;
  margin: 0 0 18px;
}

.subtitle {
  font-size: 1.08rem;
  max-width: 680px;
  margin-bottom: 28px;
}

.hero .subtitle,
.hero .status-label,
.hero .status-text {
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.primary-button,
.secondary-button,
.path-button,
.card-button {
  border: none;
  border-radius: 14px;
  padding: 12px 18px;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
}

.primary-button {
  background-color: #f59e0b;
  color: #111827;
}

.secondary-button {
  background-color: rgba(255, 255, 255, 0.14);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.status-label {
  margin: 0 0 4px;
  opacity: 0.82;
  font-size: 0.95rem;
}

.status-text {
  margin: 0;
  font-weight: 600;
  font-size: 1rem;
}

.page-main {
  padding-bottom: 80px;
}

.section {
  padding: 64px 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading h2 {
  font-size: 2rem;
  margin: 0 0 10px;
}

.section-heading p {
  margin: 0;
  color: #4b5563;
}

.path-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.path-button {
  background-color: white;
  color: #111827;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.path-button.active {
  background-color: #111827;
  color: white;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background-color: white;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.card-body {
  padding: 22px;
}

.card-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #b45309;
  margin-bottom: 14px;
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.35rem;
}

.card-text {
  margin: 0 0 18px;
  color: #4b5563;
}

.card-button {
  background-color: #1d4ed8;
  color: white;
}

.info-panel {
  margin-top: 28px;
  background-color: white;
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.info-panel-label {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  color: #6b7280;
}

.info-panel h3 {
  margin: 0 0 12px;
  font-size: 1.5rem;
}

.info-panel p {
  margin: 0 0 8px;
}

.compare-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.compare-mode-text {
  margin: 0;
  font-weight: 600;
  color: #374151;
}

.compare-mode-buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.compare-mode-button {
  border: none;
  border-radius: 12px;
  padding: 10px 14px;
  background-color: white;
  color: #111827;
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.compare-mode-button.active {
  background-color: #111827;
  color: white;
}

.compare-table-wrapper {
  overflow-x: auto;
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
}

.compare-table th,
.compare-table td {
  text-align: left;
  padding: 18px 20px;
  border-bottom: 1px solid #e5e7eb;
}

.compare-table th {
  background-color: #f9fafb;
  font-size: 0.92rem;
}

.menu-trigger {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 1200;
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(10px);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 12px;
}

.menu-trigger span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: white;
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 1190;
  background: rgba(15, 23, 42, 0.28);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.drawer-overlay.show {
  opacity: 1;
  pointer-events: auto;
}

.drawer {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1201;
  width: min(320px, 86vw);
  height: 100vh;
  background: #171717;
  color: white;
  transform: translateX(-100%);
  transition: transform 0.28s ease;
  box-shadow: 18px 0 40px rgba(0, 0, 0, 0.24);
  padding: 22px 20px 32px;
}

.drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.drawer-close {
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}

.drawer-title {
  font-size: 1.4rem;
  font-weight: 800;
}

.drawer-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.drawer-link {
  padding: 12px 14px;
  border-radius: 12px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  font-weight: 700;
}

.drawer-link:hover {
  background: rgba(255, 255, 255, 0.08);
}

.drawer-link.active {
  background: rgba(245, 158, 11, 0.16);
  color: #f59e0b;
}

.subpage-main {
  min-height: 100vh;
  background: #f6f4ef;
}

.subpage-hero {
  padding: 120px 0 32px;
  background: linear-gradient(135deg, #1f2937, #3f4d63);
  color: white;
}

.placeholder-grid {
  display: grid;
  grid-template-columns: 1fr;
}

.placeholder-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
}

.placeholder-image {
  width: 100%;
  height: 360px;
  object-fit: cover;
}

.placeholder-card h2 {
  margin: 0;
  padding: 24px 24px 10px;
  font-size: 1.8rem;
}

.placeholder-card p {
  margin: 0;
  padding: 0 24px 24px;
  color: #4b5563;
}

@media (max-width: 900px) {
  .card-grid {
    grid-template-columns: 1fr;
  }

  .compare-toolbar {
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .hero-home {
    min-height: 68vh;
    padding: 108px 0 56px;
  }

  h1 {
    font-size: 2.5rem;
  }

  .menu-trigger {
    top: 14px;
    left: 14px;
  }

  .placeholder-image {
    height: 260px;
  }
}

/* ===== UI polish patch: subtle glass + cleaner depth ===== */

.menu-trigger {
  background: rgba(15, 23, 42, 0.26);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.menu-trigger:hover {
  transform: translateY(-1px);
  background: rgba(15, 23, 42, 0.34);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
}

.drawer {
  background: rgba(23, 23, 23, 0.78);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(135%);
  -webkit-backdrop-filter: blur(18px) saturate(135%);
}

.drawer-header {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.drawer-link {
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.drawer-link:hover {
  transform: translateX(4px);
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(16, 24, 40, 0.30), rgba(16, 24, 40, 0.62)),
    linear-gradient(90deg, rgba(16, 24, 40, 0.18), rgba(16, 24, 40, 0.12));
}

.card {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.12);
}

.card-image {
  transition: transform 0.28s ease, filter 0.28s ease;
  filter: saturate(1.02);
}

.card:hover .card-image {
  transform: scale(1.02);
  filter: saturate(1.08);
}

.info-panel {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.compare-toolbar {
  background: rgba(255, 255, 255, 0.44);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 18px;
  padding: 14px 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.compare-mode-button {
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.compare-mode-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.10);
}

.placeholder-card {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.explore-map-section {
  padding-top: 24px;
}

.explore-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
  gap: 20px;
  align-items: stretch;
}

.cesium-map {
  min-height: 72vh;
  border-radius: 24px;
  overflow: hidden;
  background: #0f172a;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14);
}

.map-side-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.map-side-panel h2 {
  margin: 0 0 12px;
  font-size: 1.8rem;
}

.map-side-panel p {
  margin: 0 0 14px;
  color: #4b5563;
}

.map-note {
  color: #6b7280;
}

.map-status {
  margin-top: 18px;
  font-weight: 700;
  color: #1d4ed8;
}

@media (max-width: 980px) {
  .explore-layout {
    grid-template-columns: 1fr;
  }

  .cesium-map {
    min-height: 58vh;
  }
}

.explore-map-section {
  padding-top: 24px;
}

.explore-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(320px, 0.85fr);
  gap: 20px;
  align-items: stretch;
}

.map3d-canvas {
  min-height: 72vh;
  border-radius: 24px;
  overflow: hidden;
  background: #ecebe6;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.14);
}

.map-side-panel {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.map-side-panel h2 {
  margin: 0 0 12px;
  font-size: 1.8rem;
}

.map-side-panel p {
  margin: 0 0 14px;
  color: #4b5563;
}

.map-note {
  color: #6b7280;
}

.map-status {
  margin-top: 18px;
  font-weight: 700;
  color: #1d4ed8;
}

@media (max-width: 980px) {
  .explore-layout {
    grid-template-columns: 1fr;
  }

  .map3d-canvas {
    min-height: 58vh;
  }
}

.map3d-shell {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #ecebe6;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.map3d-canvas {
  position: relative;
  min-height: 640px;
}

.map3d-canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
  transition:
    transform 0.38s ease,
    opacity 0.38s ease,
    filter 0.38s ease;
}

.map-toolbar {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 10px;
}

.mode-switch {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.mode-switch-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  width: calc(50% - 4px);
  height: calc(100% - 8px);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffffff 0%, #eef2f7 100%);
  box-shadow:
    0 6px 14px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
  transition: transform 0.32s ease;
}

.mode-switch[data-mode="2d"] .mode-switch-indicator {
  transform: translateX(100%);
}

.mode-switch-button {
  position: relative;
  z-index: 2;
  min-width: 68px;
  padding: 10px 18px;
  border: none;
  background: transparent;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 700;
  color: #5b6473;
  cursor: pointer;
  transition:
    color 0.22s ease,
    transform 0.18s ease;
}

.mode-switch-button:hover {
  transform: translateY(-1px);
}

.mode-switch-button.is-active {
  color: #111827;
}

.map-reset-button {
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #111827;
  font-size: 0.98rem;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transition:
    transform 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.map-reset-button:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.96);
}

.scene-veil {
  position: absolute;
  inset: 0;
  z-index: 20;
  pointer-events: none;
  opacity: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.10), rgba(243,244,241,0.22));
  transition: opacity 0.34s ease;
}

.scene-veil.active {
  opacity: 1;
}

.map3d-shell.is-switching .map3d-canvas canvas {
  transform: scale(1.015);
  opacity: 0.92;
  filter: blur(1.2px);
}

@media (max-width: 980px) {
  .map-toolbar {
    top: 14px;
    left: 14px;
    gap: 8px;
  }

  .mode-switch-button,
  .map-reset-button {
    padding: 9px 14px;
    font-size: 0.92rem;
  }

  .mode-switch-button {
    min-width: 58px;
  }

  .map3d-canvas {
    min-height: 520px;
  }
}
/* ===== Explore map layout ===== */

.explore-map-section .container {
  width: min(1180px, 94%);
}

.explore-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.68fr) 360px;
  gap: 22px;
  align-items: stretch;
}

.map-column {
  min-width: 0;
}

.map3d-shell {
  position: relative;
  min-height: 540px;
  border-radius: 32px;
  overflow: hidden;
  background: #f3f4f1;
  box-shadow: 0 22px 40px rgba(15, 23, 42, 0.08);
}

.map3d-canvas {
  width: 100%;
  height: 540px;
}

.map3d-toolbar {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 14px;
}

.scene-mode-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.scene-mode-toggle::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 76px;
  height: 46px;
  border-radius: 999px;
  background: #eef2f7;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.04);
  transition: transform 0.28s ease;
}

.scene-mode-toggle[data-mode="2d"]::after {
  transform: translateX(76px);
}

.map-mode-button {
  position: relative;
  z-index: 1;
  border: none;
  background: transparent;
  min-width: 76px;
  height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  color: #667085;
  cursor: pointer;
  transition: color 0.24s ease, transform 0.24s ease;
}

.map-mode-button.is-active {
  color: #111827;
}

.map-reset-button {
  border: none;
  background: rgba(255, 255, 255, 0.96);
  color: #111827;
  height: 46px;
  padding: 0 24px;
  border-radius: 999px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  transition: opacity 0.24s ease, transform 0.24s ease;
}

.map-reset-button.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.scene-veil {
  position: absolute;
  inset: 0;
  z-index: 18;
  pointer-events: none;
  background: radial-gradient(circle at 22% 18%, rgba(255,255,255,0.55), rgba(255,255,255,0) 36%),
              linear-gradient(90deg, rgba(255,255,255,0.42), rgba(255,255,255,0));
  opacity: 0;
  transition: opacity 0.26s ease;
}

.scene-veil.active {
  opacity: 1;
}

.map-label-layer {
  position: absolute;
  inset: 0;
  z-index: 22;
  pointer-events: none;
  overflow: hidden;
}

.building-label {
  position: absolute;
  transform: translate(-50%, -100%);
  border: none;
  background: transparent;
  padding: 0;
  pointer-events: auto;
}

.building-label.is-static {
  pointer-events: none;
}

.building-label__face {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid rgba(15, 23, 42, 0.11);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.10);
  color: #111827;
}

.building-label__text {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  color: inherit;
}

.building-label.is-dorm {
  cursor: pointer;
}

.building-label.is-dorm .building-label__face {
  width: 48px;
  height: 48px;
  border-radius: 50% 50% 50% 8px;
  background: #dff1d7;
  border: 1px solid #a9c998;
  transform: rotate(-45deg);
  color: #1f2937;
}

.building-label.is-dorm .building-label__text {
  transform: rotate(45deg);
}

.building-label.is-dorm:hover .building-label__face {
  transform: rotate(-45deg) scale(1.06);
  background: #d5ebca;
}

.building-label.is-selected .building-label__face {
  box-shadow: 0 0 0 4px rgba(145, 194, 119, 0.20), 0 12px 24px rgba(15, 23, 42, 0.14);
}

.map-side-panel {
  background: rgba(255, 255, 255, 0.96);
  border-radius: 32px;
  padding: 28px 26px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.map-side-panel h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 34px);
  line-height: 1.15;
}

.map-side-panel p {
  margin: 0;
  color: #475467;
  line-height: 1.6;
}

.map-note {
  color: #344054;
}

.map-status {
  font-size: 15px;
  font-weight: 700;
  color: #344054;
}

.dorm-detail-card {
  margin-top: 6px;
  border-radius: 24px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
}

.dorm-detail-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.dorm-detail-label {
  margin: 0 0 6px 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #98a2b3;
  font-weight: 700;
}

.dorm-detail-card h3 {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  color: #111827;
}

.dorm-detail-code {
  margin: 6px 0 0 0;
  color: #667085;
  font-size: 14px;
  font-weight: 700;
}

.dorm-detail-body {
  flex: 1;
  border-radius: 20px;
  background: #ffffff;
  border: 1px dashed rgba(15, 23, 42, 0.12);
  min-height: 180px;
}

@media (max-width: 1024px) {
  .explore-layout {
    grid-template-columns: 1fr;
  }

  .map3d-shell,
  .map3d-canvas {
    min-height: 500px;
    height: 500px;
  }
}

@media (max-width: 640px) {
  .map3d-toolbar {
    gap: 10px;
    top: 14px;
    left: 14px;
  }

  .scene-mode-toggle::after {
    width: 68px;
    height: 42px;
  }

  .scene-mode-toggle[data-mode="2d"]::after {
    transform: translateX(68px);
  }

  .map-mode-button {
    min-width: 68px;
    height: 42px;
    font-size: 16px;
  }

  .map-reset-button {
    height: 42px;
    padding: 0 18px;
    font-size: 16px;
  }

  .map3d-shell,
  .map3d-canvas {
    min-height: 440px;
    height: 440px;
  }
}

/* ===== Explore scene v3 ===== */

.explore-map-section .container {
  width: min(1200px, 94%);
}

#exploreSceneLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: stretch;
  transition: grid-template-columns 0.34s ease, gap 0.34s ease;
}

#exploreSceneLayout.is-detail-open {
  grid-template-columns: minmax(0, 0.72fr) 440px;
  gap: 18px;
}

#exploreMapWrap {
  min-width: 0;
}

.explore-map-shell {
  position: relative;
  height: 520px;
  border-radius: 30px;
  overflow: hidden;
  background: #f3f4f1;
  box-shadow: 0 20px 38px rgba(15, 23, 42, 0.07);
}

.explore-map-canvas {
  width: 100%;
  height: 100%;
}

.explore-map-toolbar {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 26;
  display: flex;
  align-items: center;
  gap: 10px;
}

.explore-map-toolbar .explore-mode-toggle {
  display: none;
}

body.is-home-path-explore #btnNumbers {
  display: none;
}

.explore-mode-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.explore-mode-toggle::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 74px;
  height: 42px;
  border-radius: 999px;
  background: #edf2f7;
  transition: transform 0.28s ease;
}

.explore-mode-toggle[data-mode="2d"]::after {
  transform: translateX(74px);
}

.explore-mode-button {
  position: relative;
  z-index: 1;
  min-width: 74px;
  height: 42px;
  padding: 0 16px;
  border: none;
  background: transparent;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 700;
  color: #667085;
  cursor: pointer;
}

.explore-mode-button.is-active {
  color: #111827;
}

.explore-toolbar-button {
  height: 42px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  transition: opacity 0.22s ease, transform 0.22s ease, background 0.22s ease;
}

.explore-toolbar-button:hover {
  transform: translateY(-1px);
}

.explore-toolbar-button.is-active {
  background: #eef4fb;
}

.explore-toolbar-button.is-hidden {
  opacity: 0;
  pointer-events: none;
  transform: translateY(-8px);
}

.explore-scene-veil {
  position: absolute;
  inset: 0;
  z-index: 16;
  pointer-events: none;
  background: radial-gradient(circle at 18% 18%, rgba(255,255,255,0.55), rgba(255,255,255,0) 36%);
  opacity: 0;
  transition: opacity 0.24s ease;
}

.explore-scene-veil.active {
  opacity: 1;
}

#exploreMapWrap.is-switching canvas {
  transform: scale(1.01);
  opacity: 0.94;
  filter: blur(0.8px);
}

.explore-label-layer {
  position: absolute;
  inset: 0;
  z-index: 22;
  pointer-events: none;
  overflow: hidden;
}

.explore-map-legend {
  position: absolute;
  left: 50%;
  bottom: clamp(14px, 2.4vw, 26px);
  z-index: 35;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 10px 18px;
  width: min(860px, calc(100% - 32px));
  padding: 10px 18px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  backdrop-filter: blur(10px) saturate(1.06);
  -webkit-backdrop-filter: blur(10px) saturate(1.06);
  color: rgba(15, 23, 42, 0.86);
  font-size: 0.82rem;
  font-weight: 800;
  pointer-events: none;
}

.explore-map-legend div {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  text-shadow:
    0 1px 10px rgba(255, 255, 255, 0.82),
    0 0 20px rgba(255, 255, 255, 0.52);
}

.explore-map-legend span {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--legend-color);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.34),
    0 1px 8px rgba(255, 255, 255, 0.44);
}

.scene-label {
  position: absolute;
  transform: translate(-50%, -100%);
  border: none;
  background: transparent;
  padding: 0;
  pointer-events: auto;
}

.scene-label.is-normal {
  pointer-events: none;
}

.scene-label__face {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #111827;
}

.scene-label__text {
  font-weight: 800;
  line-height: 1;
}

.scene-label.is-normal .scene-label__face {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.12);
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.07);
}

.scene-label.is-normal .scene-label__text {
  font-size: 11px;
}

.scene-label.is-dorm {
  cursor: pointer;
}

.scene-label.is-dorm .scene-label__face {
  width: 34px;
  height: 34px;
  border-radius: 50% 50% 50% 8px;
  background: #dcedd2;
  border: 1px solid #a8c492;
  box-shadow: 0 10px 20px rgba(121, 156, 104, 0.18);
  transform: rotate(-45deg);
}

.scene-label.is-dorm .scene-label__text {
  font-size: 12px;
  transform: rotate(45deg);
}

.scene-label.is-dorm:hover .scene-label__face {
  transform: rotate(-45deg) scale(1.05);
}

.scene-label.is-selected .scene-label__face {
  box-shadow: 0 0 0 4px rgba(145, 194, 119, 0.20), 0 10px 22px rgba(15, 23, 42, 0.11);
}

#exploreSideWrap {
  min-width: 0;
}

.scene-panel {
  display: none;
  height: 520px;
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.05);
  padding: 26px 24px;
  flex-direction: column;
}

.scene-panel.is-active {
  display: flex;
}

.scene-panel h2 {
  margin: 0 0 8px 0;
  font-size: clamp(26px, 3vw, 34px);
  line-height: 1.15;
}

.scene-panel p {
  margin: 0;
  color: #475467;
  line-height: 1.65;
}

.scene-panel-note {
  margin-top: 16px;
}

.scene-panel-status {
  margin-top: 18px;
  font-weight: 700;
  color: #344054;
}

.scene-detail-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.scene-panel-detail--guided .scene-detail-head {
  display: none;
}

.scene-detail-kicker {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #98a2b3;
  font-weight: 700;
}

.scene-detail-head h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  color: #111827;
}

.scene-detail-code {
  font-size: 14px;
  font-weight: 700;
  color: #667085;
}

.scene-detail-scroll {
  flex: 1;
  overflow: auto;
  border-radius: 20px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.06);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scene-detail-scroll p {
  margin: 0;
}

.scene-detail-back {
  margin-top: 16px;
  width: 100%;
  height: 52px;
  border: none;
  border-radius: 16px;
  background: #f59e0b;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.scene-detail-back:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
}

@media (max-width: 1024px) {
  #exploreSceneLayout,
  #exploreSceneLayout.is-detail-open {
    grid-template-columns: 1fr;
  }

  .explore-map-shell,
  .scene-panel {
    height: 480px;
  }
}
/* =========================================================
   DETAIL SQUARE MAP LAYOUT
   用途：
   1) 保持 Explore 页面原始左右外边距不变
   2) detail 状态下：
      - 左边地图改成方形
      - 右边详情栏拉长并吃满高度
      - 地图只做合理缩小，不被压烂
   3) 后续要调这部分，直接搜索：
      DETAIL SQUARE MAP LAYOUT
   ========================================================= */

.explore-map-section .container {
  /* 保持统一外边距，不因 detail 打开而改变页面左右留白 */
  width: min(1260px, 95%);
}

#exploreSceneLayout {
  /* 默认态：地图主导，右栏较窄 */
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
  transition:
    grid-template-columns 0.34s ease,
    gap 0.34s ease;
}

#exploreSceneLayout.is-detail-open {
  /* detail 态：
     左边仍保留足够空间
     右边扩宽，但不挤烂地图
  */
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 24px;
  align-items: start;
}

#exploreMapWrap {
  min-width: 0;
}

#exploreMapWrap .explore-map-shell {
  width: 100%;
  height: 520px;
  transition:
    height 0.34s ease,
    aspect-ratio 0.34s ease;
}

#exploreSceneLayout.is-detail-open #exploreMapWrap .explore-map-shell {
  /* detail 态强制地图变方形 */
  aspect-ratio: 1 / 1;
  height: auto;
}

#exploreMapWrap .explore-map-canvas {
  width: 100%;
  height: 100%;
}

#exploreSceneLayout.is-detail-open #exploreMapWrap .explore-map-canvas {
  /* 方形地图时 canvas 跟着方形容器走 */
  aspect-ratio: 1 / 1;
  height: 100%;
  min-height: 0;
}

#exploreSideWrap {
  min-width: 0;
  width: 100%;
}

.scene-panel {
  width: 100%;
  height: 520px;
  box-sizing: border-box;
}

#exploreSceneLayout.is-detail-open .scene-panel {
  /* detail 状态下右栏跟着地图方块的高度一起拉长 */
  height: 100%;
  min-height: 100%;
}

@media (max-width: 1180px) {
  #exploreSceneLayout,
  #exploreSceneLayout.is-detail-open {
    grid-template-columns: 1fr;
  }

  #exploreMapWrap .explore-map-shell,
  #exploreSceneLayout.is-detail-open #exploreMapWrap .explore-map-shell,
  .scene-panel,
  #exploreSceneLayout.is-detail-open .scene-panel {
    height: 520px;
    aspect-ratio: auto;
  }
}
/* =========================================================
   DETAIL SQUARE STATE
   目标：
   1) 默认态：地图宽矩形 + 右侧较窄介绍栏
   2) detail 态：左边地图变成固定正方形，不撑高页面
   3) 右边详情栏在同一高度下横向变宽
   4) 页面整体左右外边距保持不变
   5) 只有右侧详情内容区内部滚动
   后续定位直接搜索：
   DETAIL SQUARE STATE
   ========================================================= */

.explore-map-section .container {
  width: min(1260px, 95%);
}

#exploreSceneLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
  transition:
    grid-template-columns 0.34s ease,
    gap 0.34s ease;
}

#exploreSceneLayout.is-detail-open {
  /* 左边固定成一块小正方形地图，右边吃剩余横向空间 */
  grid-template-columns: 520px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

#exploreMapWrap {
  min-width: 0;
}

#exploreMapWrap .explore-map-shell {
  width: 100%;
  height: 520px;
}

#exploreSceneLayout.is-detail-open #exploreMapWrap {
  width: 520px;
}

#exploreSceneLayout.is-detail-open #exploreMapWrap .explore-map-shell {
  width: 520px;
  height: 520px;
}

#exploreMapWrap .explore-map-canvas {
  width: 100%;
  height: 100%;
}

#exploreSideWrap {
  min-width: 0;
  width: 100%;
}

.scene-panel {
  width: 100%;
  height: 520px;
  box-sizing: border-box;
}

.scene-panel.is-active {
  display: flex;
}

.scene-detail-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

@media (max-width: 1180px) {
  #exploreSceneLayout,
  #exploreSceneLayout.is-detail-open {
    grid-template-columns: 1fr;
  }

  #exploreMapWrap,
  #exploreSceneLayout.is-detail-open #exploreMapWrap {
    width: 100%;
  }

  #exploreMapWrap .explore-map-shell,
  #exploreSceneLayout.is-detail-open #exploreMapWrap .explore-map-shell,
  .scene-panel {
    width: 100%;
    height: 520px;
  }
}
/* =========================================================
   DETAIL SQUARE STATE — STABLE OVERRIDE
   目标：
   1) 默认态：地图宽矩形 + 右侧较窄介绍栏
   2) detail 态：左边地图变固定正方形，不撑高整页
   3) 右边详情栏在同一高度下横向变宽
   4) 页面整体外边距保持不变
   5) 只有右侧详情内容区内部滚动
   后续直接搜索：
   DETAIL SQUARE STATE — STABLE OVERRIDE
   ========================================================= */

.explore-map-section .container {
  width: min(1260px, 95%);
}

#exploreSceneLayout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 24px;
  align-items: start;
  transition:
    grid-template-columns 0.34s ease,
    gap 0.34s ease;
}

#exploreSceneLayout.is-detail-open {
  grid-template-columns: 520px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

#exploreMapWrap {
  min-width: 0;
}

#exploreMapWrap .explore-map-shell {
  width: 100%;
  height: 520px;
}

#exploreSceneLayout.is-detail-open #exploreMapWrap {
  width: 520px;
}

#exploreSceneLayout.is-detail-open #exploreMapWrap .explore-map-shell {
  width: 520px;
  height: 520px;
}

#exploreMapWrap .explore-map-canvas {
  width: 100%;
  height: 100%;
}

#exploreSideWrap {
  min-width: 0;
  width: 100%;
}

.scene-panel {
  width: 100%;
  height: 520px;
  box-sizing: border-box;
}

.scene-panel.is-active {
  display: flex;
}

.scene-detail-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

@media (max-width: 1180px) {
  #exploreSceneLayout,
  #exploreSceneLayout.is-detail-open {
    grid-template-columns: 1fr;
  }

  #exploreMapWrap,
  #exploreSceneLayout.is-detail-open #exploreMapWrap {
    width: 100%;
  }

  #exploreMapWrap .explore-map-shell,
  #exploreSceneLayout.is-detail-open #exploreMapWrap .explore-map-shell,
  .scene-panel {
    width: 100%;
    height: 520px;
  }
}
/* =========================================================
   FIX DETAIL PANEL HEIGHT
   作用：
   1) 点击绿色水滴后，左边地图固定成 520×520 正方形
   2) 右边详情面板横向变宽，但高度也固定为 520
   3) 只有右侧内容区内部滚动，不允许详情卡本体被内容撑高
   4) 保持左右外边距不变
   ========================================================= */

/* detail 打开时：左边固定正方形，右边占剩余宽度 */
#exploreSceneLayout.is-detail-open {
  grid-template-columns: 520px minmax(0, 1fr) !important;
  gap: 24px !important;
  align-items: start !important;
}

/* 左边地图：固定正方形 */
#exploreSceneLayout.is-detail-open #exploreMapWrap {
  width: 520px !important;
  min-width: 520px !important;
  max-width: 520px !important;
}

#exploreSceneLayout.is-detail-open #exploreMapWrap .explore-map-shell {
  width: 520px !important;
  height: 520px !important;
  min-height: 520px !important;
  max-height: 520px !important;
}

/* 右侧容器不要被内容拉大 */
#exploreSideWrap {
  min-width: 0 !important;
  align-self: start !important;
}

/* overview / detail 两种白卡都锁死高度 */
#overviewPanel.scene-panel,
#detailPanel.scene-panel {
  box-sizing: border-box !important;
}

/* 重点：详情卡固定高度，禁止被内容撑高 */
#detailPanel.scene-panel.is-active {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 520px !important;
  min-height: 520px !important;
  max-height: 520px !important;
  overflow: hidden !important;
  align-self: start !important;
}

/* 如果 overview 也需要稳定高度，一并锁死 */
#overviewPanel.scene-panel.is-active {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  height: 520px !important;
  min-height: 520px !important;
  max-height: 520px !important;
  overflow: hidden !important;
  align-self: start !important;
}

/* 详情正文区域：只允许它自己滚动 */
#detailPanel .scene-detail-scroll {
  flex: 1 1 auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
}

#detailPanel .information-drawer-panel {
  min-height: 0;
}

#detailPanel .information-drawer__title {
  font-size: clamp(1.8rem, 3vw, 2.35rem);
  letter-spacing: -0.04em;
}

#detailPanel .information-drawer__summary,
#detailPanel .information-drawer__section p,
#detailPanel .information-drawer__two-col li {
  font-size: 0.95rem;
}

#detailPanel .information-drawer__actions {
  margin-top: 18px;
}

/* 返回按钮区域固定在底部，不参与撑高 */
#detailPanel .scene-panel__footer,
#detailPanel .scene-panel__actions,
#detailPanel .scene-panel__bottom {
  flex: 0 0 auto !important;
}

/* 如果你的按钮本身没有外层 footer，也保证最后按钮不压缩 */
#btnBackOverview {
  flex: 0 0 auto !important;
}

/* 小屏回退：窄屏时再恢复竖排 */
@media (max-width: 1180px) {
  #exploreSceneLayout.is-detail-open {
    grid-template-columns: 1fr !important;
  }

  #exploreSceneLayout.is-detail-open #exploreMapWrap,
  #exploreSceneLayout.is-detail-open #exploreMapWrap .explore-map-shell {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    height: 520px !important;
  }

  #detailPanel.scene-panel.is-active,
  #overviewPanel.scene-panel.is-active {
    height: 520px !important;
    min-height: 520px !important;
    max-height: 520px !important;
  }
}

/* GUIDED EXPLORE FULL MAP OVERLAY */

html:has(body.is-guided-preview),
body.is-guided-preview {
  height: 100%;
  overflow: hidden;
}

body.is-guided-preview .subpage-hero {
  display: none;
}

body.is-guided-preview .subpage-main,
body.is-guided-preview .explore-map-section {
  min-height: 100vh;
}

body.is-guided-preview .explore-map-section {
  padding: 0;
}

body.is-guided-preview .explore-map-section .container {
  width: 100%;
  max-width: none;
}

body.is-guided-preview #exploreSceneLayout.is-detail-open {
  display: block;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

body.is-guided-preview #exploreSceneLayout.is-detail-open #exploreMapWrap {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

body.is-guided-preview #exploreSceneLayout.is-detail-open #exploreMapWrap .explore-map-shell {
  position: fixed;
  inset: 0;
  width: 100% !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: none !important;
  border-radius: 0;
  box-shadow: none;
}

body.is-guided-preview .explore-map-toolbar {
  top: 30px;
  left: 88px;
}

body.is-guided-preview #exploreSideWrap {
  position: fixed;
  top: clamp(24px, 4vh, 44px);
  right: clamp(18px, 4vw, 48px);
  bottom: auto;
  z-index: 34;
  height: calc(100vh - 96px);
  width: min(460px, calc(100% - 36px)) !important;
  pointer-events: none;
}

body.is-guided-preview #detailPanel.scene-panel.is-active {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: transparent;
  box-shadow: none;
  pointer-events: auto;
  gap: 18px;
}

body.is-guided-preview #detailPanel .scene-detail-scroll {
  flex: 0 0 calc(100% - 74px) !important;
  height: calc(100% - 74px) !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

body.is-guided-preview #detailPanel .information-drawer-panel {
  padding: clamp(16px, 2vw, 22px);
  border-radius: 26px;
  background: transparent;
}

body.is-guided-preview #detailPanel .information-drawer__summary,
body.is-guided-preview #detailPanel .information-drawer__section p,
body.is-guided-preview #detailPanel .information-drawer__two-col li {
  color: rgba(15, 23, 42, 0.86);
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.72);
}

body.is-guided-preview #detailPanel .information-drawer__facts div {
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.is-guided-preview #detailPanel .information-drawer__section,
body.is-guided-preview #detailPanel .information-drawer__two-col section {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.is-guided-preview #detailPanel .information-drawer__two-col {
  margin-top: 18px;
}

body.is-guided-preview #btnBackOverview {
  flex: 0 0 auto !important;
  margin-top: 0;
  margin-bottom: 4px;
  background: rgba(255, 255, 255, 0.48);
  color: #111827;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.is-guided-preview .guided-detail-actions,
body.is-free-map-explore .guided-detail-actions {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  gap: 12px;
  flex: 0 0 auto;
  margin-bottom: 4px;
  pointer-events: auto;
}

body.is-guided-preview .guided-detail-actions #btnBackOverview,
body.is-guided-preview .guided-detail-actions .scene-detail-back--details,
body.is-free-map-explore .guided-detail-actions #btnBackOverview,
body.is-free-map-explore .guided-detail-actions .scene-detail-back--details {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 52px;
  margin: 0;
  padding: 0 14px;
  line-height: 1.1;
  text-align: center;
  white-space: normal;
}

body.is-guided-preview .guided-detail-actions .scene-detail-back--details,
body.is-free-map-explore .guided-detail-actions .scene-detail-back--details {
  background: rgba(15, 23, 42, 0.76);
  color: #ffffff;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.16);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

@media (max-width: 760px) {
  body.is-guided-preview .explore-map-toolbar {
    top: 78px;
    left: 14px;
  }

  body.is-guided-preview #exploreSideWrap {
    top: auto;
    left: 14px;
    right: 14px;
    bottom: 24px;
    height: 62vh;
    width: auto !important;
    max-height: 62vh;
  }
}

/* EXPLORE CITY OVERVIEW */

html:has(body.is-city-overview),
body.is-city-overview {
  height: 100%;
  overflow: hidden;
}

body.is-city-overview {
  --city-info-opacity: 1;
}

body.is-city-overview .subpage-hero {
  display: none;
}

body.is-city-overview .subpage-main,
body.is-city-overview .explore-map-section {
  min-height: 100vh;
}

body.is-city-overview .explore-map-section {
  padding: 0 !important;
}

body.is-city-overview .explore-map-section .container {
  width: 100%;
  max-width: none;
}

body.is-city-overview #exploreSceneLayout {
  display: block;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

body.is-city-overview #exploreMapWrap {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

body.is-city-overview #exploreMapWrap .explore-map-shell {
  position: fixed;
  inset: 0;
  width: 100% !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: none !important;
  border-radius: 0;
  box-shadow: none;
}

body.is-city-overview .explore-map-toolbar {
  top: 30px;
  left: 88px;
}

body.is-city-overview #exploreSideWrap {
  position: fixed;
  top: clamp(26px, 5vh, 54px);
  right: clamp(22px, 4vw, 58px);
  z-index: 34;
  width: min(380px, calc(100% - 44px)) !important;
  min-width: 0 !important;
  pointer-events: none;
}

body.is-city-overview #overviewPanel.scene-panel.is-active {
  display: flex !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  color: #101827;
  opacity: var(--city-info-opacity);
  transition: opacity 180ms ease;
}

body.is-city-overview.is-city-info-hidden #overviewPanel.scene-panel.is-active {
  pointer-events: none;
}

body.is-city-overview #overviewPanel .eyebrow {
  margin-bottom: 10px;
  color: rgba(15, 23, 42, 0.64);
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.68);
}

body.is-city-overview #overviewPanel h2 {
  margin-bottom: 14px;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 0.95;
  letter-spacing: 0;
  color: #0f172a;
  text-shadow: 0 2px 18px rgba(255, 255, 255, 0.74);
}

body.is-city-overview #overviewPanel p {
  max-width: 36ch;
  color: rgba(15, 23, 42, 0.82);
  font-size: 1rem;
  line-height: 1.58;
  text-shadow: 0 1px 14px rgba(255, 255, 255, 0.76);
}

body.is-city-overview #overviewPanel .scene-panel-note {
  margin-top: 14px;
}

body.is-city-overview #mapStatus {
  display: none;
}

body.is-city-overview #detailPanel,
body.is-city-overview #btnBackOverview {
  display: none !important;
}

body.is-city-overview:not(.is-city-overview-dismissed) .scene-label.is-functional {
  pointer-events: none;
}

body.is-city-overview .explore-map-legend {
  bottom: clamp(14px, 2.4vw, 26px);
}

body.is-home-path-entry {
  pointer-events: none;
}

body.is-home-path-entry::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 80;
  background:
    radial-gradient(circle at 48% 42%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.18) 36%, rgba(210, 226, 238, 0.86) 72%),
    linear-gradient(135deg, rgba(179, 215, 231, 0.92), rgba(224, 233, 216, 0.92));
  animation: exploreHomeEntryReveal 680ms ease forwards;
}

@keyframes exploreHomeEntryReveal {
  from {
    opacity: 1;
    filter: blur(0);
  }

  to {
    opacity: 0;
    filter: blur(16px);
  }
}

@media (max-width: 760px) {
  body.is-city-overview .explore-map-toolbar {
    top: 78px;
    left: 14px;
  }

  body.is-city-overview #exploreSideWrap {
    top: 138px;
    left: 18px;
    right: 18px;
    width: auto !important;
  }

  body.is-city-overview #overviewPanel p {
    max-width: none;
  }

  body.is-city-overview .explore-map-legend,
  .explore-map-legend {
    bottom: 14px;
    width: min(720px, calc(100% - 28px));
    border-radius: 22px;
  }
}

/* FREE EXPLORE DETAIL OVERLAY */

body.is-free-map-explore #overviewPanel.scene-panel,
body.is-free-map-explore #overviewPanel.scene-panel.is-active {
  display: none !important;
}

body.is-free-map-explore #exploreSceneLayout.is-detail-open {
  display: block;
  position: relative;
  min-height: 100vh;
  overflow: hidden;
}

body.is-free-map-explore #exploreSceneLayout.is-detail-open #exploreMapWrap {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
}

body.is-free-map-explore #exploreSceneLayout.is-detail-open #exploreMapWrap .explore-map-shell {
  position: fixed;
  inset: 0;
  width: 100% !important;
  height: 100vh !important;
  min-height: 100vh !important;
  max-height: none !important;
  border-radius: 0;
  box-shadow: none;
}

body.is-free-map-explore #exploreSideWrap {
  position: fixed;
  top: clamp(24px, 4vh, 44px);
  right: clamp(18px, 4vw, 48px);
  bottom: auto;
  z-index: 34;
  height: calc(100vh - 96px);
  width: min(460px, calc(100% - 36px)) !important;
  pointer-events: none;
}

body.is-free-map-explore #detailPanel.scene-panel.is-active {
  display: flex !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: transparent;
  box-shadow: none;
  pointer-events: auto;
  gap: 18px;
}

body.is-free-map-explore #detailPanel .scene-detail-scroll {
  flex: 0 0 calc(100% - 74px) !important;
  height: calc(100% - 74px) !important;
  min-height: 0 !important;
  padding: 0 !important;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow-y: auto !important;
  overscroll-behavior: contain;
}

body.is-free-map-explore #detailPanel .information-drawer-panel {
  padding: clamp(16px, 2vw, 22px);
  border-radius: 26px;
  background: transparent;
}

body.is-free-map-explore #detailPanel .information-drawer__summary,
body.is-free-map-explore #detailPanel .information-drawer__section p,
body.is-free-map-explore #detailPanel .information-drawer__two-col li {
  color: rgba(15, 23, 42, 0.86);
  text-shadow: 0 1px 12px rgba(255, 255, 255, 0.72);
}

body.is-free-map-explore #detailPanel .information-drawer__facts div {
  border: 1px solid rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.46);
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

body.is-free-map-explore #detailPanel .information-drawer__section,
body.is-free-map-explore #detailPanel .information-drawer__two-col section {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body.is-free-map-explore #detailPanel .information-drawer__two-col {
  margin-top: 18px;
}

body.is-free-map-explore #btnBackOverview {
  display: inline-flex !important;
  flex: 0 0 auto !important;
  margin-top: 0;
  margin-bottom: 4px;
  background: rgba(255, 255, 255, 0.48);
  color: #111827;
  box-shadow: 0 18px 34px rgba(15, 23, 42, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

@media (max-width: 760px) {
  body.is-free-map-explore #exploreSideWrap {
    top: auto;
    left: 14px;
    right: 14px;
    bottom: 24px;
    height: 62vh;
    width: auto !important;
    max-height: 62vh;
  }
}
/* =========================================================
   EXPLORE HERO HEIGHT TUNING
   作用：
   1) 只压缩 Explore 页顶部标题背景区高度
   2) 减少整页轻微整体滚动
   3) 不影响其他页面
   后续定位直接搜索：
   EXPLORE HERO HEIGHT TUNING
   ========================================================= */

body[data-page="explore"] .subpage-hero {
  min-height: auto !important;
  padding-top: 44px !important;
  padding-bottom: 26px !important;
}

body[data-page="explore"] .subpage-hero .container {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

body[data-page="explore"] .subpage-hero h1 {
  margin-bottom: 10px !important;
}

body[data-page="explore"] .subpage-hero .subtitle {
  margin-bottom: 0 !important;
}

body[data-page="explore"] .explore-map-section {
  padding-top: 14px !important;
}

/* =========================================================
   HOME TAG-DRIVEN ENTRY
   作用：
   1) hero 下方改成 Explore by path 标签系统
   2) 三个一级面板横向并排，可拖动排序
   3) lifestyle / requirement 内部支持二级标签排序
   4) Continue 后展示 1 / 2 / 3 宿舍结果卡
   后续定位直接搜索：
   HOME TAG-DRIVEN ENTRY
   ========================================================= */

body[data-page="home"] .home-path,
body:not([data-page]) .home-path {
  padding-top: 24px;
}

.home-path__head,
.home-results__head {
  margin-bottom: 24px;
}

.home-path__head h2,
.home-results__head h2 {
  margin: 0 0 10px 0;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.08;
  color: #111827;
}

.home-path__intro,
.home-results__intro {
  margin: 0;
  max-width: 860px;
  font-size: 18px;
  line-height: 1.7;
  color: #475467;
}

.path-panel-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.path-panel {
  min-height: 100%;
  padding: 24px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 18px;
  cursor: grab;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.path-panel:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.07);
}

.path-panel.is-dragging {
  opacity: 0.58;
  transform: scale(0.985);
}

.path-panel__head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

.path-panel__kicker {
  margin: 0 0 6px 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #98a2b3;
  font-weight: 700;
}

.path-panel h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  color: #111827;
}

.path-rank-badge {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 800;
}

.path-panel__desc {
  margin: 0;
  color: #475467;
  font-size: 15px;
  line-height: 1.7;
}

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

.path-subsection__label {
  margin: 0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #98a2b3;
  font-weight: 700;
}

.chip-grid,
.selected-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-grid--single {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.filter-chip {
  min-height: 46px;
  padding: 0 16px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  border-radius: 999px;
  background: #f8fafc;
  color: #111827;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.filter-chip:hover {
  transform: translateY(-1px);
}

.filter-chip.is-active {
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  border-color: transparent;
  color: #ffffff;
}

.sort-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.09);
  background: #eef4fb;
  color: #111827;
  font-size: 14px;
  font-weight: 700;
  cursor: grab;
}

.sort-chip__order {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ffffff;
  color: #1d4ed8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 800;
}

.sort-chip.is-dragging {
  opacity: 0.6;
}

.sort-chip.is-empty {
  cursor: default;
  background: #f8fafc;
  color: #98a2b3;
}

.path-actions {
  margin-top: 26px;
  display: flex;
  justify-content: flex-start;
}

.path-continue-button {
  min-width: 180px;
  height: 54px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f172a, #1d4ed8);
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(29, 78, 216, 0.18);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.path-continue-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(29, 78, 216, 0.22);
}

/* Results */

.home-results {
  padding-top: 22px;
}

.ranked-dorm-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.ranked-dorm-carousel {
  overflow: hidden;
}

.ranked-dorm-carousel__track::-webkit-scrollbar {
  display: none;
}

.ranked-dorm-carousel__track {
  display: flex;
  gap: 22px;
  align-items: stretch;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  cursor: grab;
  user-select: none;
}

.ranked-dorm-carousel__track.is-dragging {
  cursor: grabbing;
}

.ranked-dorm-carousel__item {
  flex: 0 0 calc((100% - 44px) / 3);
  scroll-snap-align: start;
  display: flex;
}

.ranked-dorm-carousel__item .rank-card,
.ranked-dorm-carousel__item .ranked-dorm-card {
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 100%;
}

.ranked-dorm-carousel__item .rank-card__rank {
  font-size: 16px;
  min-width: 64px;
}

.ranked-dorm-carousel__controls {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 10px;
}

.ranked-dorm-carousel__control {
  border: 1px solid #cfd9eb;
  background: #ffffff;
  color: #0f172a;
  border-radius: 999px;
  padding: 8px 14px;
  font-weight: 700;
  cursor: pointer;
}

.ranked-dorm-carousel__control:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.featured-dorm-carousel {
  position: relative;
  overflow: hidden;
  padding: 0 58px;
}

.featured-dorm-carousel::before {
  content: "";
  position: absolute;
  inset: 42px 28px;
  z-index: 0;
  border: 1px solid rgba(47, 79, 159, 0.14);
  border-radius: 999px;
  pointer-events: none;
}

.featured-dorm-carousel__cue {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(47, 79, 159, 0.16);
  color: rgba(15, 23, 42, 0.62);
  font-size: 34px;
  line-height: 1;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.08);
  transform: translateY(-50%);
  cursor: pointer;
  animation: carouselCuePulse 1.8s ease-in-out infinite;
}

.featured-dorm-carousel__cue:hover {
  color: rgba(15, 23, 42, 0.9);
  background: rgba(255, 255, 255, 0.92);
}

.featured-dorm-carousel__cue--left {
  left: 4px;
}

.featured-dorm-carousel__cue--right {
  right: 4px;
  animation-delay: 0.24s;
}

.featured-dorm-carousel__track {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 22px;
  align-items: stretch;
  cursor: grab;
  touch-action: pan-y;
  user-select: none;
  will-change: transform;
}

@keyframes carouselCuePulse {
  0%,
  100% {
    opacity: 0.42;
    transform: translateY(-50%) scale(0.96);
  }

  50% {
    opacity: 0.9;
    transform: translateY(-50%) scale(1.06);
  }
}

.featured-dorm-carousel__track.is-animating {
  transition: transform 0.32s ease;
}

.featured-dorm-carousel__track.is-dragging {
  cursor: grabbing;
  transition: none;
}

.featured-dorm-carousel__item {
  flex: 0 0 calc((100% - 44px) / 3);
  display: flex;
}

.featured-dorm-carousel__item .rank-card,
.featured-dorm-carousel__item .ranked-dorm-card {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
}

.ranked-dorm-card {
  overflow: hidden;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
}

.ranked-dorm-card__image {
  position: relative;
  aspect-ratio: 16 / 10;
  height: auto;
  background: linear-gradient(135deg, #dbe4f0, #f3f4f6);
  overflow: hidden;
}

.ranked-dorm-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ranked-dorm-card__rank {
  position: absolute;
  top: 18px;
  left: 18px;
  min-width: 56px;
  height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #111827;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.08);
}

.ranked-dorm-card__body {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.ranked-dorm-card__eyebrow {
  margin: 0 0 10px;
  color: #b45309;
  font-size: 13px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 800;
}

.ranked-dorm-card__title {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.15;
  color: #111827;
}

.ranked-dorm-card__text {
  margin: 0 0 20px;
  color: #475467;
  font-size: 16px;
  line-height: 1.7;
  min-height: 110px;
}

.ranked-dorm-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: auto;
}

.ranked-dorm-card__button-placeholder {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  visibility: hidden;
}

.ranked-dorm-card--placeholder {
  opacity: 0.86;
  border-style: dashed;
}

.card-button {
  height: 48px;
  padding: 0 20px;
  border-radius: 16px;
  border: none;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.16s ease, filter 0.16s ease;
}

.card-button:hover {
  transform: translateY(-1px);
}

.card-button--primary {
  background: #1d4ed8;
  color: #ffffff;
}

.card-button--secondary {
  background: #eef2f7;
  color: #111827;
}

.selected-summary-card {
  margin-top: 24px;
  border-radius: 28px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.05);
  padding: 28px 30px;
  overflow: hidden;
}

.selected-summary-card__viewport {
  position: relative;
  overflow: hidden;
  transition: height 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.selected-summary-card__panel {
  width: 100%;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  transition:
    opacity 300ms ease,
    transform 300ms cubic-bezier(0.22, 1, 0.36, 1);
}

.selected-summary-card__panel:not(.is-active) {
  position: absolute;
  inset: 0 auto auto 0;
}

.selected-summary-card__panel.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.selected-summary-card__panel--from-right {
  transform: translate3d(104%, 0, 0);
}

.selected-summary-card__panel--from-left {
  transform: translate3d(-104%, 0, 0);
}

.selected-summary-card__panel--to-left {
  opacity: 0;
  transform: translate3d(-104%, 0, 0);
}

.selected-summary-card__panel--to-right {
  opacity: 0;
  transform: translate3d(104%, 0, 0);
}

.selected-summary-card__kicker {
  margin: 0 0 14px 0;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #98a2b3;
  font-weight: 700;
}

.selected-summary-card h3 {
  margin: 0 0 18px 0;
  font-size: 28px;
  line-height: 1.15;
  color: #111827;
}

.selected-summary-card p {
  margin: 10px 0 0 0;
  color: #344054;
  font-size: 16px;
  line-height: 1.7;
}

.selected-summary-card__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.selected-summary-card__button--detail {
  max-width: 180px;
}

@media (prefers-reduced-motion: reduce) {
  .selected-summary-card__viewport,
  .selected-summary-card__panel {
    transition: none;
  }
}

@media (max-width: 1100px) {
  .path-panel-rail,
  .ranked-dorm-grid {
    grid-template-columns: 1fr;
  }

  .featured-dorm-carousel__item {
    flex-basis: calc((100% - 22px) / 2);
  }

  .ranked-dorm-carousel__item {
    flex-basis: 320px;
  }

  .chip-grid--single {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .chip-grid--single {
    grid-template-columns: 1fr;
  }

  .featured-dorm-carousel__item {
    flex-basis: 100%;
  }

  .ranked-dorm-carousel__item {
    flex-basis: 100%;
  }

  .ranked-dorm-card__image {
    aspect-ratio: 16 / 10;
    height: auto;
  }
}

/* =========================
   Explore by Path redesign
   ========================= */

.section-path-designer {
  padding-top: 32px;
}

.path-designer {
  padding: 6px 0 10px;
}

.path-designer__intro {
  max-width: 980px;
  margin-bottom: 34px;
}

.path-designer__eyebrow {
  margin: 0 0 14px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #2f4f9f;
}

.path-designer__title {
  margin: 0;
  font-size: clamp(40px, 5.6vw, 62px);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 700;
  color: #0f172a;
}

.path-designer__text {
  max-width: 920px;
  margin: 18px 0 0;
  font-size: 19px;
  line-height: 1.65;
  color: #50627f;
}

.priority-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
}

.priority-card {
  position: relative;
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.92));
  border: 1px solid #e4e9f3;
  border-radius: 30px;
  padding: 26px 28px 30px;
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.05),
    0 2px 8px rgba(15, 23, 42, 0.03);
  min-height: 470px;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease;
}

.priority-card:hover {
  transform: translateY(-2px);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.07),
    0 6px 14px rgba(15, 23, 42, 0.04);
}

.priority-card.is-dragging {
  opacity: 0.74;
  transform: scale(0.985);
}

.priority-card.drag-over {
  border-color: #9db4ef;
  box-shadow:
    0 0 0 3px rgba(52, 95, 211, 0.08),
    0 18px 40px rgba(15, 23, 42, 0.07);
}

.priority-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.priority-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #3154b0;
  background: linear-gradient(180deg, #f6f8fc 0%, #edf1f8 100%);
  border: 1px solid #e2e7f1;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

.priority-card__icon svg {
  width: 28px;
  height: 28px;
  display: block;
}

.priority-card__badge {
  min-width: 46px;
  height: 46px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #08215f 0%, #2d5be9 100%);
  box-shadow: 0 10px 24px rgba(27, 66, 173, 0.24);
}

.priority-card__label {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #4c66aa;
}

.priority-card__title {
  margin: 0;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #10182f;
}

.priority-card__desc {
  margin: 20px 0 0;
  font-size: 17px;
  line-height: 1.7;
  color: #566a86;
}

.priority-subsection {
  margin-top: 26px;
}

.priority-subsection__label {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5974bb;
}

.major-grid,
.available-grid,
.requirement-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.major-grid .choice-pill,
.requirement-grid .choice-pill,
.available-grid .choice-pill {
  justify-content: center;
  text-align: center;
}

.choice-pill {
  appearance: none;
  border: 1px solid #d7deea;
  background: #fff;
  color: #152238;
  border-radius: 999px;
  padding: 15px 22px;
  font-size: 17px;
  line-height: 1;
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    transform 0.22s ease;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.8),
    0 2px 6px rgba(15, 23, 42, 0.03);
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: normal;
}

.choice-pill:hover {
  transform: translateY(-1px);
  border-color: #bcc9e5;
}

.choice-pill.is-selected {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #08215f 0%, #2d5be9 100%);
  box-shadow:
    0 12px 26px rgba(39, 81, 194, 0.22),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

.choice-pill.is-selected::after {
  content: "✓";
  margin-left: 12px;
  font-weight: 700;
}

.selected-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.selected-order-pill {
  display: grid;
  grid-template-columns: 28px 28px 1fr 20px;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid #dde5f1;
  background: linear-gradient(180deg, #ffffff 0%, #f9fbff 100%);
  border-radius: 18px;
  padding: 14px 16px;
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.03);
  cursor: grab;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.selected-order-pill:hover {
  border-color: #c6d3ef;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.selected-order-pill.is-dragging {
  opacity: 0.7;
}

.selected-order-pill.drag-over {
  border-color: #87a4eb;
  box-shadow: 0 0 0 3px rgba(52, 95, 211, 0.08);
}

.selected-order-pill__drag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8c98b4;
  font-size: 18px;
  line-height: 1;
}

.selected-order-pill__index {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 700;
  color: #2b56d8;
  background: #eef3ff;
}

.selected-order-pill__text {
  font-size: 17px;
  font-weight: 600;
  color: #122035;
}

.selected-order-pill__remove {
  appearance: none;
  border: 0;
  background: transparent;
  color: #9aa7c0;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  padding: 0;
}

.selected-order-pill__remove:hover {
  color: #566a86;
}

.path-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid #dbe3ef;
}

.path-action-button {
  appearance: none;
  border: 1px solid transparent;
  border-radius: 999px;
  min-width: 192px;
  height: 64px;
  padding: 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    border-color 0.22s ease,
    opacity 0.22s ease;
}

.path-action-button:hover:not(:disabled) {
  transform: translateY(-1px);
}

.path-action-button--primary {
  color: #fff;
  background: linear-gradient(135deg, #08215f 0%, #2d5be9 100%);
  box-shadow: 0 16px 30px rgba(33, 70, 181, 0.22);
}

.path-action-button--secondary {
  color: #18325f;
  background: #ffffff;
  border-color: #d7deea;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.path-action-button--ghost {
  color: #95a2bc;
  background: #f5f7fb;
  border-color: #e0e6f1;
  box-shadow: none;
}

.path-action-button:disabled {
  cursor: not-allowed;
  opacity: 1;
  transform: none;
}

.path-action-button__arrow,
.path-action-button__reset-icon {
  font-size: 24px;
  line-height: 1;
}

@media (max-width: 1200px) {
  .priority-panels {
    grid-template-columns: 1fr;
  }

  .priority-card {
    min-height: auto;
  }
}

@media (max-width: 700px) {
  .path-designer__title {
    font-size: 34px;
  }

  .path-designer__text,
  .priority-card__desc {
    font-size: 16px;
  }

  .major-grid .choice-pill,
  .requirement-grid .choice-pill,
  .available-grid .choice-pill,
  .choice-pill {
    min-width: 0;
    width: 100%;
    justify-content: center;
  }

  .path-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .path-action-button {
    width: 100%;
  }
}

/* ===== home path reset button state ===== */

.path-action-button--reset-active {
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(135deg, #0c255f 0%, #214fce 100%);
  box-shadow: 0 12px 24px rgba(26, 70, 188, 0.16);
}

.path-action-button--reset-active:hover:not(:disabled) {
  transform: translateY(-1px);
}

/* HOME PAGED FLOW */

body[data-page="home"].home-paged {
  min-height: 100vh;
  overflow: hidden;
  background: #eef3f8;
}

body[data-page="home"].home-stage-results {
  overflow-y: auto;
}

body[data-page="home"].home-paged .hero-home {
  position: fixed;
  inset: 0;
  z-index: 30;
  min-height: 100vh;
  padding: 0;
  transform: translate3d(0, calc(var(--home-curtain-progress, 0) * -100vh), 0);
  will-change: transform;
}

body[data-page="home"].home-paged .hero-home::after {
  content: "⌄\A⌄";
  white-space: pre;
  position: absolute;
  left: 50%;
  bottom: clamp(24px, 5vh, 48px);
  z-index: 2;
  width: 42px;
  height: 48px;
  transform: translateX(-50%);
  color: rgba(255, 255, 255, 0.72);
  font-size: 32px;
  line-height: 0.58;
  text-align: center;
  pointer-events: none;
  animation: heroScrollCuePulse 1.35s ease-in-out infinite;
}

body[data-page="home"].home-stage-path .hero-home::after,
body[data-page="home"].home-stage-results .hero-home::after {
  display: none;
}

@keyframes heroScrollCuePulse {
  0%,
  100% {
    opacity: 0.24;
    transform: translate(-50%, -2px);
  }

  50% {
    opacity: 0.86;
    transform: translate(-50%, 8px);
  }
}

body[data-page="home"].home-paged .hero-home .hero-inner {
  padding-top: 0;
}

body[data-page="home"].home-stage-path .hero-home,
body[data-page="home"].home-stage-results .hero-home {
  pointer-events: none;
}

body[data-page="home"].home-stage-results .hero-home {
  display: none;
}

body[data-page="home"].home-paged .page-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body[data-page="home"].home-paged #homePath {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  padding: clamp(18px, 3vh, 34px) clamp(18px, 4vw, 52px);
  overflow: hidden;
}

body[data-page="home"].home-stage-results #homePath {
  display: none;
}

body[data-page="home"].home-paged .path-designer {
  width: min(1240px, 100%);
  height: min(720px, calc(100vh - 44px));
  margin: 0 auto;
  padding: 0;
  display: flex;
  flex-direction: column;
}

body[data-page="home"].home-paged .path-designer__intro {
  margin-bottom: clamp(12px, 2vh, 22px);
}

body[data-page="home"].home-paged .path-designer__eyebrow {
  margin-bottom: 8px;
  font-size: 12px;
}

body[data-page="home"].home-paged .path-designer__title {
  font-size: clamp(30px, 4.1vw, 46px);
  letter-spacing: 0;
}

body[data-page="home"].home-paged .path-designer__text {
  max-width: 860px;
  margin-top: 10px;
  font-size: 15px;
  line-height: 1.45;
}

body[data-page="home"].home-paged .priority-panels {
  flex: 1 1 auto;
  min-height: 0;
  gap: clamp(12px, 1.8vw, 18px);
}

body[data-page="home"].home-paged .priority-card {
  min-height: 0;
  padding: clamp(14px, 1.8vw, 20px);
  border-radius: 24px;
  overflow: hidden;
}

body[data-page="home"].home-paged .priority-card__top {
  justify-content: flex-end;
  margin-bottom: 6px;
}

body[data-page="home"].home-paged .priority-card__icon {
  display: none;
}

body[data-page="home"].home-paged .priority-card__badge {
  min-width: 38px;
  height: 38px;
  font-size: 22px;
}

body[data-page="home"].home-paged .priority-card__label {
  display: none;
}

body[data-page="home"].home-paged .priority-card__title {
  margin-top: -30px;
  padding-right: 46px;
  font-size: 25px;
}

body[data-page="home"].home-paged .priority-card__desc {
  margin-top: 6px;
  font-size: 13px;
  line-height: 1.38;
}

body[data-page="home"].home-paged .priority-subsection {
  margin-top: 10px;
}

body[data-page="home"].home-paged .priority-subsection__label {
  margin-bottom: 8px;
  font-size: 11px;
}

body[data-page="home"].home-paged .major-grid,
body[data-page="home"].home-paged .available-grid,
body[data-page="home"].home-paged .requirement-grid {
  gap: 8px;
}

body[data-page="home"].home-paged .choice-pill {
  min-height: 38px;
  padding: 9px 13px;
  font-size: 13px;
}

body[data-page="home"].home-paged .selected-stack {
  gap: 8px;
}

body[data-page="home"].home-paged .selected-order-pill {
  grid-template-columns: 22px 24px 1fr 18px;
  gap: 8px;
  padding: 9px 11px;
  border-radius: 14px;
}

body[data-page="home"].home-paged .selected-order-pill__index {
  width: 24px;
  height: 24px;
  font-size: 12px;
}

body[data-page="home"].home-paged .selected-order-pill__text {
  font-size: 13px;
}

body[data-page="home"].home-paged .path-actions {
  margin-top: clamp(12px, 2vh, 20px);
  padding-top: clamp(12px, 2vh, 18px);
}

body[data-page="home"].home-paged .path-action-button {
  min-width: 160px;
  height: 50px;
  font-size: 15px;
}

body[data-page="home"].home-paged #homeResults,
body[data-page="home"].home-paged #compare {
  display: none;
}

body[data-page="home"].home-stage-results .page-main {
  width: min(1120px, 92%);
  margin: 0 auto;
  padding: 36px 0 80px;
}

body[data-page="home"].home-stage-results #homeResults,
body[data-page="home"].home-stage-results #compare {
  display: block;
}

body[data-page="home"].home-transition-to-explore {
  pointer-events: none;
}

body[data-page="home"].home-transition-to-explore #homePath {
  opacity: 0;
  filter: blur(18px);
  transform: scale(0.985);
  transition:
    opacity 520ms ease,
    filter 520ms ease,
    transform 520ms ease;
}

body[data-page="home"].home-transition-to-explore::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 60;
  background:
    radial-gradient(circle at 48% 42%, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.18) 34%, rgba(210, 226, 238, 0.88) 70%),
    linear-gradient(135deg, rgba(179, 215, 231, 0.9), rgba(224, 233, 216, 0.9));
  animation: homeExploreReveal 560ms ease forwards;
}

@keyframes homeExploreReveal {
  from {
    opacity: 0;
    filter: blur(20px);
  }

  to {
    opacity: 1;
    filter: blur(0);
  }
}

@media (max-width: 1200px), (max-height: 760px) {
  body[data-page="home"].home-paged .path-designer {
    height: calc(100vh - 32px);
  }

  body[data-page="home"].home-paged .path-designer__text,
  body[data-page="home"].home-paged .priority-card__desc {
    display: none;
  }

  body[data-page="home"].home-paged .priority-card {
    padding: 15px;
  }

  body[data-page="home"].home-paged .choice-pill {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 12px;
  }
}

@media (max-width: 760px) {
  body[data-page="home"].home-paged {
    overflow-y: auto;
  }

  body[data-page="home"].home-paged .hero-home,
  body[data-page="home"].home-paged #homePath {
    position: relative;
    inset: auto;
    min-height: 100vh;
  }

  body[data-page="home"].home-paged #homePath {
    overflow: visible;
  }

  body[data-page="home"].home-paged .path-designer {
    height: auto;
  }

  body[data-page="home"].home-paged .priority-panels {
    grid-template-columns: 1fr;
  }
}

.rank-card {
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(255,255,255,0.92));
  border: 1px solid #e4e9f3;
  border-radius: 28px;
  padding: 22px 22px 24px;
  box-shadow:
    0 10px 30px rgba(15, 23, 42, 0.05),
    0 2px 8px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
}

.rank-card__rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #08215f 0%, #2d5be9 100%);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  margin-bottom: 14px;
}

.rank-card__tag {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #5b74b8;
}

.rank-card h3 {
  margin: 0 0 12px;
  font-size: 26px;
  line-height: 1.15;
  color: #10182f;
}

.rank-card__summary {
  margin: 0 0 20px;
  font-size: 16px;
  line-height: 1.7;
  color: #556985;
  min-height: 110px;
}

.rank-card__actions {
  display: flex;
  gap: 12px;
  flex-wrap: nowrap;
  margin-top: auto;
}

.rank-card__button {
  appearance: none;
  border: 1px solid #d7deea;
  background: #fff;
  color: #152238;
  border-radius: 999px;
  padding: 12px 18px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}

.rank-card__button--icon {
  flex: 0 0 48px;
  width: 48px;
  height: 48px;
  padding: 0;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
}

.rank-card__button--primary {
  flex: 1 1 auto;
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #08215f 0%, #2d5be9 100%);
  box-shadow: 0 10px 22px rgba(33, 70, 181, 0.16);
}

.rank-card {
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
}

.rank-card__image {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #eef2f7;
}

.rank-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.rank-card__content {
  padding: 22px 22px 24px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.rank-card__rank {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #08215f 0%, #2d5be9 100%);
  color: #fff;
  font-weight: 700;
  font-size: 18px;
  box-shadow: 0 10px 22px rgba(33, 70, 181, 0.18);
}

/* INFORMATION PAGE POLISH */

.information-card {
  width: min(100%, 1120px);
  overflow: hidden;
}

.information-card__image {
  display: block;
  width: 100%;
  height: clamp(220px, 30vw, 360px);
  object-fit: cover;
}

.information-card > h2,
.information-card > p,
.information-card > #informationDormDetails {
  margin-left: clamp(24px, 4vw, 48px);
  margin-right: clamp(24px, 4vw, 48px);
}

.information-card > h2 {
  margin-top: clamp(26px, 4vw, 40px);
  margin-bottom: 12px;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  letter-spacing: -0.04em;
}

.information-card > p {
  max-width: 900px;
  color: rgba(35, 44, 58, 0.78);
  line-height: 1.65;
}

.information-card > #informationDormDetails {
  margin-top: 28px;
  padding-bottom: clamp(28px, 4vw, 48px);
}

.information-overview-grid {
  display: grid;
  gap: 14px;
}

.information-overview-card {
  display: grid;
  gap: 6px;
  padding: 18px 20px;
  border: 1px solid rgba(31, 42, 59, 0.1);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  color: inherit;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.information-overview-card:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 42, 59, 0.22);
  box-shadow: 0 16px 34px rgba(31, 42, 59, 0.12);
}

.information-overview-card__name {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.information-overview-card__meta {
  width: fit-content;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(31, 42, 59, 0.08);
  color: rgba(31, 42, 59, 0.72);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.information-overview-card__summary {
  color: rgba(35, 44, 58, 0.72);
  line-height: 1.55;
}

.information-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}

.information-detail-item {
  padding: 18px 20px;
  border: 1px solid rgba(31, 42, 59, 0.1);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.88);
}

.information-detail-item span {
  display: block;
  margin-bottom: 8px;
  color: rgba(31, 42, 59, 0.58);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.information-detail-item p {
  margin: 0;
  color: rgba(24, 32, 45, 0.86);
  line-height: 1.55;
}

.information-pro-con-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.information-list-panel {
  padding: 20px 22px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(31, 42, 59, 0.1);
}

.information-list-panel h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
}

.information-list-panel ul {
  margin: 0;
  padding-left: 1.1rem;
}

.information-list-panel li {
  margin-bottom: 8px;
  line-height: 1.55;
  color: rgba(35, 44, 58, 0.78);
}

.information-back-link {
  display: inline-flex;
  margin-top: 24px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(31, 42, 59, 0.08);
  color: rgba(24, 32, 45, 0.86);
  text-decoration: none;
  font-weight: 800;
  transition: background 160ms ease, transform 160ms ease;
}

.information-back-link:hover {
  transform: translateY(-1px);
  background: rgba(31, 42, 59, 0.14);
}

@media (max-width: 760px) {
  .information-detail-grid,
  .information-pro-con-grid {
    grid-template-columns: 1fr;
  }

  .information-card > h2,
  .information-card > p,
  .information-card > #informationDormDetails {
    margin-left: 22px;
    margin-right: 22px;
  }
}


/* INFORMATION COMPACT HEADER AND NO IMAGE */

body[data-page="information"] .subpage-hero {
  padding: 54px 0 30px;
}

body[data-page="information"] .subpage-hero h1 {
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 4.2rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

body[data-page="information"] .subpage-hero .subtitle {
  max-width: 760px;
  margin-top: 14px;
  font-size: 1.02rem;
  line-height: 1.55;
}

body[data-page="information"] .section {
  padding-top: clamp(36px, 5vw, 64px);
}

body[data-page="information"] .information-card {
  padding-top: 0;
}

body[data-page="information"] .information-card__image {
  display: none;
}

body[data-page="information"] .information-card > h2,
body[data-page="information"] .information-card > p {
  display: none;
}

body[data-page="information"] .information-card > h2 {
  margin-top: 0;
}

body[data-page="information"] .information-card > p {
  margin-bottom: 0;
}

body[data-page="information"] .information-card > #informationDormDetails {
  margin-top: 0;
  padding-top: clamp(28px, 4vw, 44px);
}


/* INFORMATION RIGHT DRAWER */

body[data-page="information"] .subpage-hero {
  padding: 34px 0 22px;
}

body[data-page="information"] .subpage-hero h1 {
  font-size: clamp(2rem, 4vw, 3.15rem);
  line-height: 0.95;
}

body[data-page="information"] .subpage-hero .subtitle {
  display: none;
}

body[data-page="information"] .section {
  padding-top: clamp(28px, 4vw, 48px);
}

body[data-page="information"] .information-card {
  max-width: 980px;
}

body[data-page="information"] .information-card__image {
  display: none;
}

.information-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(9, 17, 30, 0.28);
  opacity: 0;
  transition: opacity 180ms ease;
}

.information-drawer-backdrop.is-open {
  opacity: 1;
}

.information-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: 60vw;
  min-width: 720px;
  max-width: 100vw;
  height: 100vh;
  overflow-y: auto;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: -24px 0 60px rgba(15, 23, 42, 0.18);
  transform: translateX(102%);
  transition: transform 220ms ease;
}

.information-drawer.is-open {
  transform: translateX(0);
}

.information-drawer.is-split {
  width: 50vw;
  min-width: 0;
}

.information-drawer--compare {
  left: 0;
  right: auto;
  z-index: 91;
  width: 50vw;
  min-width: 0;
  transform: translateX(-102%);
  box-shadow: 24px 0 60px rgba(15, 23, 42, 0.18);
}

.information-drawer__close {
  position: sticky;
  top: 16px;
  float: right;
  z-index: 2;
  margin: 16px 16px 0 0;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: rgba(15, 23, 42, 0.82);
  font-size: 1.7rem;
  line-height: 1;
  cursor: pointer;
}

.information-drawer__content {
  padding: 64px clamp(24px, 5vw, 40px) 42px;
  min-height: 100%;
}

.information-drawer-panel {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 106px);
}

.information-drawer__eyebrow {
  margin: 0 0 10px;
  color: rgba(15, 23, 42, 0.52);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.information-drawer__title {
  margin: 0 0 14px;
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 0.95;
  letter-spacing: -0.06em;
}

.information-drawer__summary {
  color: rgba(35, 44, 58, 0.72);
  line-height: 1.65;
}

.information-drawer__facts {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}

.information-drawer__facts div,
.information-drawer__section,
.information-drawer__two-col section {
  padding: 16px 18px;
  border: 1px solid rgba(31, 42, 59, 0.1);
  border-radius: 18px;
  background: rgba(248, 250, 252, 0.82);
}

.information-drawer__facts span {
  display: block;
  margin-bottom: 6px;
  color: rgba(31, 42, 59, 0.55);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.information-drawer__facts strong {
  color: rgba(15, 23, 42, 0.88);
}

.information-drawer__section {
  margin-bottom: 12px;
}

.information-drawer__section h3,
.information-drawer__two-col h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.information-drawer__section p,
.information-drawer__two-col li {
  color: rgba(35, 44, 58, 0.76);
  line-height: 1.55;
}

.information-drawer__section p {
  margin: 0;
}

.information-drawer__two-col {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.information-drawer__two-col ul {
  margin: 0;
  padding-left: 1.1rem;
}

.information-drawer__full-link {
  display: inline-flex;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(31, 42, 59, 0.08);
  color: rgba(15, 23, 42, 0.86);
  text-decoration: none;
  font-weight: 800;
}

.information-drawer__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

.information-drawer__compare-picker {
  position: relative;
}

.information-drawer__compare-button {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  font-size: 0.95rem;
  color: rgba(15, 23, 42, 0.9);
  background: rgba(31, 42, 59, 0.14);
  cursor: pointer;
}

.information-drawer__compare-list {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  z-index: 2;
  display: none;
  gap: 8px;
  min-width: 210px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(31, 42, 59, 0.12);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 14px 26px rgba(15, 23, 42, 0.14);
}

.information-drawer__compare-list.is-open {
  display: grid;
}

.information-drawer__compare-option {
  border: 1px solid rgba(31, 42, 59, 0.14);
  border-radius: 12px;
  padding: 9px 11px;
  text-align: left;
  font-weight: 700;
  color: rgba(15, 23, 42, 0.86);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.information-drawer__compare-empty {
  margin: 0;
  color: rgba(35, 44, 58, 0.72);
}

/* INFORMATION FULL DETAIL ENTRY */

body.information-full-mode {
  --full-detail-surface-x: 50vw;
  overflow: hidden;
  background: #edf2f7;
}

body.information-full-mode .subpage-hero {
  display: none;
}

body.information-full-mode .subpage-main,
body.information-full-mode .section {
  min-height: 100vh;
  padding: 0;
}

body.information-full-mode .placeholder-grid,
body.information-full-mode .information-card {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

body.information-full-mode .information-card {
  min-height: 100vh;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.information-full-mode .information-card > h2,
body.information-full-mode .information-card > p {
  display: none;
}

body.information-full-mode .information-card > #informationDormDetails {
  padding: 0;
}

.information-full-screen {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100vh;
  color: #0f172a;
  overflow: hidden;
  background: #edf2f7;
}

.information-full-screen__close {
  position: fixed;
  top: 22px;
  left: 22px;
  z-index: 5;
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.82);
  color: #ffffff;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.18);
}

.information-full-screen__media {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  min-width: 0;
  width: 50vw;
  height: 100vh;
  min-height: 100vh;
  background:
    radial-gradient(circle at 32% 20%, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0) 36%),
    linear-gradient(135deg, #c9d9e8, #eef4f1);
  overflow: hidden;
}

.information-full-screen__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.information-full-screen__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.08), rgba(237, 242, 247, 0.36));
}

.information-full-screen__media-title {
  position: absolute;
  top: clamp(84px, 13vh, 128px);
  left: clamp(34px, 5vw, 66px);
  right: clamp(24px, 3vw, 44px);
  z-index: 2;
  color: #ffffff;
  pointer-events: none;
  text-shadow:
    0 2px 16px rgba(15, 23, 42, 0.42),
    0 20px 42px rgba(15, 23, 42, 0.28);
}

.information-full-screen__media-title p {
  margin: 0 0 14px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.information-full-screen__media-title h1 {
  max-width: 11ch;
  margin: 0;
  font-size: clamp(3rem, 5.8vw, 6.1rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.information-full-screen__reveal {
  position: absolute;
  top: 50%;
  right: clamp(18px, 2.6vw, 36px);
  z-index: 3;
  width: 74px;
  height: 74px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.68);
  cursor: grab;
  transform: translateY(-50%);
  text-shadow:
    0 2px 12px rgba(15, 23, 42, 0.46),
    0 12px 28px rgba(15, 23, 42, 0.28);
  touch-action: none;
  transition:
    color 160ms ease,
    transform 160ms ease;
}

.information-full-screen__reveal:hover {
  color: rgba(255, 255, 255, 0.92);
  transform: translate(-4px, -50%);
}

.information-full-screen__reveal:active {
  cursor: grabbing;
  transform: translate(-8px, -50%);
}

.information-full-screen__reveal span {
  display: inline-block;
  font-size: clamp(3.4rem, 5vw, 5.2rem);
  font-weight: 900;
  line-height: 0.8;
  transform: translateX(-1px);
}

.information-full-screen__surface {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 50vw) minmax(0, 50vw);
  background: #edf2f7;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  transform: translate3d(var(--full-detail-surface-x), 0, 0);
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  scrollbar-width: none;
}

body.is-full-detail-dragging .information-full-screen__surface {
  transition: none;
}

.information-full-screen__surface::-webkit-scrollbar {
  display: none;
}

.information-full-screen__content {
  min-width: 0;
  min-height: 100vh;
  overflow: visible;
  padding: clamp(56px, 7vh, 82px) clamp(28px, 5vw, 76px) 38px;
  background: #edf2f7;
}

.information-full-screen__overflow-detail {
  min-width: 0;
  min-height: 100vh;
  overflow: hidden;
  background: #edf2f7;
  color: rgba(15, 23, 42, 0.74);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: clamp(0.86rem, 1.4vw, 1.08rem);
  line-height: 1.5;
  letter-spacing: 0;
  word-break: break-all;
  padding: clamp(72px, 9vh, 106px) clamp(18px, 3vw, 42px) 38px;
}

.information-full-screen__content > h1 {
  margin: 0 0 18px;
  max-width: 820px;
  font-size: clamp(3rem, 7vw, 6.2rem);
  line-height: 0.88;
  letter-spacing: 0;
}

.information-full-screen__lead {
  max-width: 760px;
  margin: 0 0 28px;
  color: rgba(35, 44, 58, 0.74);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.65;
}

.information-full-screen__temporary {
  margin: 22px 0 12px;
  padding: 18px 20px;
  border: 1px solid rgba(31, 42, 59, 0.1);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
}

.information-full-screen__temporary h2 {
  margin: 0 0 8px;
  font-size: 1.1rem;
}

.information-full-screen__temporary p {
  margin: 0;
  color: rgba(35, 44, 58, 0.74);
  line-height: 1.62;
}

body.information-full-mode .information-drawer__actions {
  position: sticky;
  bottom: 0;
  margin-top: 26px;
  padding: 18px 0 0;
  background: linear-gradient(180deg, rgba(237, 242, 247, 0), rgba(237, 242, 247, 0.96) 34%);
}

body.information-full-mode .information-drawer--compare {
  width: 50vw;
  min-width: 0;
  max-width: 50vw;
}

body.information-full-mode .information-drawer.is-split {
  width: 50vw;
  min-width: 0;
  max-width: 50vw;
}

@media (max-width: 760px) {
  .information-drawer {
    width: 100vw;
    min-width: 0;
  }

  .information-drawer--compare {
    width: 100vw;
  }

  .information-full-screen {
    position: relative;
    height: auto;
    min-height: 100vh;
    overflow: visible;
  }

  .information-full-screen__media {
    position: relative;
    width: 100%;
    height: 34vh;
    min-height: 34vh;
  }

  .information-full-screen__surface {
    position: relative;
    width: 100%;
    height: auto;
    display: block;
    overflow: visible;
    transform: none;
  }

  .information-full-screen__content {
    height: auto;
    min-height: 66vh;
  }

  .information-full-screen__overflow-detail {
    display: none;
  }
}
