:root {
  --paper: #f4f0e8;
  --paper-deep: #e8e1d5;
  --ink: #21322d;
  --muted: #6e7772;
  --sage: #9cae9f;
  --sage-deep: #52685e;
  --cream: #fbf8f2;
  --line: rgba(33, 50, 45, 0.15);
  --shadow: 0 24px 60px rgba(42, 52, 47, 0.1);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 9% 11%, rgba(255, 255, 255, 0.8), transparent 28rem),
    var(--paper);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

.site-header {
  width: min(1440px, calc(100% - 64px));
  height: 68px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.brand-title { font-family: "Fredoka", sans-serif; font-size: 17px; font-weight: 600; line-height: 1; letter-spacing: -0.025em; }
.brand-divider { width: 20px; height: 1px; align-self: center; background: var(--sage); }
.brand-location { color: var(--muted); font-size: 15px; font-weight: 600; line-height: 1; letter-spacing: .12em; text-transform: uppercase; }

.header-note { color: var(--muted); font-size: 13px; }

main { width: min(1440px, calc(100% - 64px)); margin-inline: auto; }

.eyebrow {
  margin: 0 0 18px;
  color: var(--sage-deep);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

h2 { font-family: "Fredoka", sans-serif; font-weight: 500; }

.explorer {
  height: calc(100svh - 68px);
  min-height: 610px;
  padding: 20px 0 24px;
  display: flex;
  flex-direction: column;
}

.section-heading {
  flex: 0 0 auto;
  margin-bottom: 14px;
  display: flex;
  align-items: end;
  justify-content: space-between;
}

.section-heading .eyebrow { margin-bottom: 4px; }
.section-heading h2 { margin: 0; font-size: clamp(34px, 3vw, 48px); line-height: 0.95; letter-spacing: -0.035em; }

.hint { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; }
.pulse { width: 8px; height: 8px; background: #719278; border-radius: 50%; box-shadow: 0 0 0 5px rgba(113, 146, 120, 0.12); }

.workspace {
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  box-shadow: var(--shadow);
}

.plan-card {
  min-width: 0;
  min-height: 0;
  padding: 16px 18px 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: #ded7cb;
}

.plan-stage {
  position: relative;
  overflow: hidden;
  width: auto;
  max-width: 100%;
  max-height: calc(100% - 28px);
  margin: auto;
  aspect-ratio: 1082 / 940;
  background: white;
}
.plan-stage > img { display: block; width: 100%; height: auto; filter: grayscale(1) sepia(0.08) contrast(0.87); }
.room-hotspots { position: absolute; inset: 0; }

.hotspot {
  position: absolute;
  padding: 0;
  border: 1px solid rgba(48, 79, 65, 0.28);
  background: rgba(130, 158, 139, 0.12);
  cursor: pointer;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.hotspot::after {
  content: attr(data-short-label);
  position: absolute;
  left: var(--label-left, 50%);
  top: var(--label-top, 50%);
  padding: 7px 10px;
  color: white;
  background: rgba(33, 50, 45, 0.88);
  border-radius: 999px;
  font-size: clamp(8px, 0.85vw, 11px);
  font-family: "Fredoka", sans-serif;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.hotspot:hover, .hotspot:focus-visible, .hotspot.active {
  z-index: 2;
  outline: none;
  border-color: rgba(48, 79, 65, 0.75);
  background: rgba(105, 139, 117, 0.27);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.55);
}

.hotspot:hover::after, .hotspot:focus-visible::after, .hotspot.active::after { opacity: 1; transform: translate(-50%, -50%) scale(1.02); }
.plan-caption { flex: 0 0 auto; margin: 8px 0 0; color: #69716c; font-size: 11px; text-align: center; }

.gallery-panel {
  min-width: 0;
  min-height: 0;
  padding: 24px 28px 14px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 56px;
  background: var(--cream);
}
.gallery-content {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.gallery-topline { display: flex; justify-content: space-between; margin-bottom: 20px; color: var(--muted); font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase; }
.room-number { margin: 0; color: var(--sage-deep); }
.photo-count { letter-spacing: 0; text-transform: none; }
.gallery-panel .eyebrow { margin-bottom: 8px; }
.gallery-panel h2 { margin: 0; font-size: clamp(38px, 3.4vw, 54px); line-height: 0.95; letter-spacing: -0.035em; }
.room-description { min-height: 42px; margin: 14px 0 18px; color: var(--muted); font-size: 12px; line-height: 1.5; }

.carousel {
  position: relative;
  min-height: 0;
  flex: 1 1 auto;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 42px;
}
.carousel-media { position: relative; min-height: 0; }
.carousel-viewport { position: relative; width: 100%; height: 100%; overflow: hidden; background: #ded7cb; }
.carousel-slide { position: absolute; inset: 0; opacity: 0; transform: scale(1.025); transition: opacity 400ms ease, transform 550ms ease; }
.carousel-slide.active { opacity: 1; transform: scale(1); }
.carousel-slide img { display: block; width: 100%; height: 100%; object-fit: contain; }
.slide-index { position: absolute; right: 12px; bottom: 12px; padding: 6px 8px; color: white; background: rgba(25, 37, 33, .72); font-size: 10px; }

.empty-state { height: 100%; padding: 34px; display: grid; place-content: center; text-align: center; color: var(--muted); }
.empty-icon { width: 44px; height: 44px; margin: 0 auto 18px; display: grid; place-items: center; border: 1px solid var(--sage); border-radius: 50%; color: var(--sage-deep); font-size: 22px; }
.empty-state strong { display: block; margin-bottom: 7px; color: var(--ink); font-family: "Playfair Display", serif; font-size: 20px; font-weight: 500; }
.empty-state p { max-width: 250px; margin: 0; font-size: 12px; line-height: 1.55; }

.carousel-controls { min-height: 42px; display: flex; align-items: center; justify-content: center; border-bottom: 1px solid var(--line); }
.carousel-dots { display: flex; align-items: center; gap: 7px; }
.dot { width: 6px; height: 6px; padding: 0; border: 0; border-radius: 50%; background: #cbc8c0; cursor: pointer; }
.dot.active { width: 18px; border-radius: 5px; background: var(--sage-deep); }
.arrow-group {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 12px;
  right: 12px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
  transform: translateY(-50%);
}
.arrow {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(33, 50, 45, .12);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(251, 248, 242, .9);
  box-shadow: 0 5px 16px rgba(33, 50, 45, .16);
  backdrop-filter: blur(5px);
  cursor: pointer;
  font-size: 18px;
  pointer-events: auto;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}
.arrow:hover:not(:disabled) { color: white; background: var(--sage-deep); transform: scale(1.06); }
.arrow:disabled { opacity: 0; cursor: default; pointer-events: none; }

.room-rail {
  width: 100%;
  min-width: 0;
  min-height: 0;
  flex: 0 0 56px;
  display: flex;
  flex-direction: row;
  align-items: center;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 5;
  background: var(--cream);
}
.room-rail-label {
  flex: 0 0 auto;
  margin-right: 12px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.room-tabs {
  width: auto;
  min-width: 0;
  max-height: none;
  flex: 1 1 auto;
  padding: 8px 3px;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 9px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior: contain;
  scrollbar-color: var(--sage) transparent;
  scrollbar-width: thin;
}
.room-tabs::-webkit-scrollbar { height: 3px; }
.room-tabs::-webkit-scrollbar-thumb { background: var(--sage); border-radius: 4px; }
.room-tab {
  width: auto;
  height: 34px;
  flex: 0 0 auto;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-family: "Fredoka", sans-serif;
  font-size: 9px;
  font-variant-numeric: tabular-nums;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}
.room-tab:hover, .room-tab.active { color: white; border-color: var(--ink); background: var(--ink); transform: scale(1.06); }

@media (max-width: 920px) {
  .explorer { height: auto; min-height: 0; }
  .workspace { grid-template-columns: 1fr; }
  .gallery-panel { min-height: 640px; }
  .carousel { min-height: 360px; }
  .hotspot::after { display: none; }
}

@media (max-width: 620px) {
  .site-header, main { width: min(100% - 32px, 1440px); }
  .site-header { min-height: 74px; }
  .header-note { display: none; }
  .brand-divider { width: 12px; }
  .brand-location { letter-spacing: .08em; }
  .explorer { padding: 28px 0 48px; }
  .section-heading { align-items: start; }
  .hint { display: none; }
  .plan-card { padding: 10px 10px 14px; }
  .gallery-panel { min-height: 590px; padding: 28px 22px 12px; }
  .gallery-topline { margin-bottom: 36px; }
  .carousel { min-height: 300px; }
  .room-rail-label { margin-right: 8px; }
}

@media (max-height: 700px) and (min-width: 921px) {
  .site-header { height: 58px; }
  .explorer { height: calc(100svh - 58px); min-height: 540px; padding-block: 12px 16px; }
  .section-heading { margin-bottom: 9px; }
  .section-heading h2 { font-size: 30px; }
  .gallery-panel { padding-block: 18px 14px; }
  .gallery-topline { margin-bottom: 12px; }
  .room-description { margin-block: 10px 12px; }
}

/* Room journal: compact, tactile panels with independently sized controls. */
body { background: #f5f3ec; }
.site-header { height: 72px; border-bottom: 0; }
.header-note { display: flex; align-items: center; gap: 12px; font-size: 12px; }
.brand-title { font-size: 22px; }
.brand-location { letter-spacing: .04em; text-transform: none; }
.explorer { height: calc(100svh - 72px); min-height: 590px; padding-top: 8px; }
.section-heading { margin-bottom: 22px; align-items: center; }
.section-heading .eyebrow { font-size: 10px; letter-spacing: .12em; margin-bottom: 10px; }
.section-heading h2 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; }
.title-spark { color: #c37a53; display: inline-block; transform: rotate(12deg); }
.workspace { gap: 18px; box-shadow: none; }
.plan-card, .gallery-panel { border: 1px solid #dedfd2; border-radius: 24px; overflow: hidden; }
.plan-card { padding: 20px; background: #e7eddf; gap: 16px; container-type: size; }
.plan-heading { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; font-family: "Fredoka", sans-serif; font-size: 16px; }
.panel-step { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: #d5dec9; font-family: "DM Sans", sans-serif; font-size: 11px; }
.plan-tag { margin-left: auto; font-family: "DM Sans", sans-serif; color: #566852; font-size: 11px; }
.plan-stage { flex: 0 0 auto; width: min(100%, calc((100cqh - 86px) * 1.15106)); max-height: none; border-radius: 12px; }
.plan-stage > img { filter: grayscale(1) sepia(.14) contrast(.8) brightness(1.14); }
.hotspot { border-radius: 5px; background: rgba(133, 161, 117, .08); }
.hotspot.active { background: rgba(206, 150, 88, .34); border: 2px solid #b77947; }
.hotspot.active::after { background: #8a552e; }
.plan-caption { display: flex; align-items: center; justify-content: center; gap: 9px; font-size: 10px; }
.legend-dot { width: 8px; height: 8px; border-radius: 50%; background: #ba8856; }
.gallery-panel { padding: 20px 22px 12px; background: #fffdf8; grid-template-rows: minmax(0, 1fr) 68px; }
.gallery-topline { margin-bottom: 12px; align-items: center; }
.room-number { letter-spacing: .12em; }
.photo-count { padding: 6px 10px; border-radius: 20px; background: #f4e8d9; color: #815a35; font-size: 11px; }
.gallery-panel h2 { font-size: clamp(28px, 2.6vw, 38px); line-height: 1.08; }
.gallery-panel .eyebrow { font-size: 9px; margin-bottom: 6px; }
.room-description { min-height: 0; margin: 10px 0 16px; line-height: 1.5; }
.gallery-content > div:not(.carousel) { flex-shrink: 0; }
.carousel { grid-template-rows: minmax(0, 1fr) 48px; }
.carousel-media { overflow: hidden; border-radius: 14px; }
.carousel-viewport { background: #eeeae1; touch-action: pan-y; }
.carousel-slide { margin: 0; pointer-events: none; }
.carousel-slide.active { pointer-events: auto; }
.slide-index { border-radius: 8px; }
.carousel-controls { min-width: 0; border: 0; gap: 8px; display: grid; grid-template-columns: 1fr minmax(0, 1fr) 1fr; }
.pagination-label { font-size: 10px; color: var(--muted); }
.carousel-dots { justify-content: center; gap: 0; overflow-x: auto; }
.dot, .dot.active { flex: 0 0 24px; width: 24px; height: 32px; border-radius: 0; background: transparent; position: relative; }
.dot::after { content: ""; position: absolute; width: 6px; height: 6px; border-radius: 9px; background: #cbc8c0; top: 13px; left: 9px; }
.dot.active::after { width: 16px; left: 4px; background: var(--sage-deep); }
.expand-photo { justify-self: end; border: 0; background: transparent; padding: 8px 0 8px 8px; color: var(--sage-deep); font-size: 11px; cursor: pointer; }
.expand-photo:disabled { visibility: hidden; }
.room-rail { background: #fffdf8; gap: 6px; }
.room-rail-label { font-size: 9px; margin-right: 4px; }
.room-tabs { position: relative; gap: 6px; padding-block: 10px; }
.room-tab { font-family: "DM Sans", sans-serif; height: 38px; font-size: 11px; white-space: nowrap; }
.room-tab::after { content: attr(data-count); margin-left: 7px; opacity: .6; font-size: 9px; }
.room-tab:hover, .room-tab.active { transform: none; }
button:focus-visible, a:focus-visible { outline: 3px solid #b77947; outline-offset: 3px; }
.empty-state strong { font-family: "Fredoka", sans-serif; font-size: 24px; }
.empty-icon { background: #e2e9d8; border: 0; width: 56px; height: 56px; border-radius: 18px; transform: rotate(-7deg); }
.photo-dialog { width: min(1100px, 95vw); height: 92svh; padding: 52px 16px 16px; border: 0; border-radius: 20px; background: #fffdf8; }
.photo-dialog::backdrop { background: rgba(24, 36, 29, .8); backdrop-filter: blur(8px); }
.photo-dialog img { width: 100%; height: 100%; object-fit: contain; }
.close-photo { position: absolute; right: 18px; top: 12px; border: 0; border-radius: 20px; padding: 8px 16px; background: #e7eddf; cursor: pointer; color: var(--ink); }
@media (max-height: 740px) and (min-width: 921px) {
  .site-header { height: 60px; }
  .explorer { height: calc(100svh - 60px); min-height: 520px; padding-bottom: 14px; }
  .section-heading { margin-bottom: 14px; }
  .section-heading h2 { font-size: 30px; }
  .gallery-panel { padding-top: 14px; }
  .room-description { margin-bottom: 10px; font-size: 11px; }
}
@media (max-width: 920px) {
  .explorer { height: auto; min-height: 0; }
  .workspace { gap: 16px; }
  .plan-card { container-type: normal; }
  .plan-stage { max-height: none; width: min(100%, 520px); }
  .gallery-panel { height: 680px; min-height: 0; scroll-margin-top: 16px; }
  .carousel { min-height: 0; }
  .hotspot.active::after { display: block; font-size: 9px; }
}
@media (max-width: 620px) {
  .site-header { height: auto; min-height: 80px; }
  .brand { flex-wrap: wrap; gap: 6px 10px; }
  .brand-title { font-size: 20px; }
  .brand-location { font-size: 15px; }
  .header-note, .hint { display: none; }
  .section-heading .eyebrow { font-size: 8px; }
  .section-heading h2 { font-size: 28px; }
  .explorer { padding-top: 8px; padding-bottom: 20px; }
  .plan-card { padding: 14px; border-radius: 18px; }
  .plan-heading { font-size: 14px; }
  .plan-tag { font-size: 10px; }
  .gallery-panel { height: 620px; padding: 18px 14px 8px; border-radius: 18px; }
  .gallery-topline { margin-bottom: 14px; }
  .gallery-panel h2 { font-size: 30px; }
  .room-rail-label { display: none; }
  .plan-caption { font-size: 9px; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
