/* ===== Home Edition v2 — Warm & Handmade ===== */

:root {
  --cream: #F2EBDD;
  --cream-paper: #EAE0CD;
  --cream-deep: #DFD2B9;
  --sage: #7E8F5E;
  --sage-deep: #4F5D3C;
  --moss: #3E4A30;
  --espresso: #3A2D24;
  --espresso-deep: #2A1F18;
  --terracotta: #C26B3F;
  --ink: #2A1F18;
  --ink-soft: #4A3A2E;
  --ink-mute: #7A6A5C;
  --rule: #C9BBA0;
  --paper-shadow: rgba(58, 45, 36, 0.08);
  --grain-rgba: 0.23, 0.18, 0.14, 0.06;
  --grain-blend: multiply;
}

html[data-theme="dark"] {
  --cream: #181D12;          /* deep moss-dark, slight green cast */
  --cream-paper: #1E2418;
  --cream-deep: #1A2014;
  --sage: #9CB07F;           /* lifted sage so it pops on dark */
  --sage-deep: #B8C99B;
  --moss: #2A3322;
  --espresso: #E8DDC6;
  --espresso-deep: #100E0B;
  --terracotta: #E08A5C;     /* warmer terracotta for dark */
  --ink: #EFE5CF;            /* warm cream text */
  --ink-soft: #C8BBA0;
  --ink-mute: #8B7F6A;
  --rule: #3A4030;
  --paper-shadow: rgba(0, 0, 0, 0.4);
  --grain-rgba: 1, 0.95, 0.85, 0.05;
  --grain-blend: screen;
}

* { box-sizing: border-box; }

html:not([data-theme]), html:not([data-theme]) body, html[data-theme="light"], html[data-theme="light"] body {
  background: var(--cream);
}
html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "DM Sans", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background 0.4s ease, color 0.4s ease;
}

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

/* Subtle paper grain everywhere */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.23  0 0 0 0 0.18  0 0 0 0 0.14  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}
html[data-theme="dark"] body::before {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 0.95  0 0 0 0 0.82  0 0 0 0.10 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  mix-blend-mode: screen;
  opacity: 0.5;
}

.app { position: relative; z-index: 2; }

/* ===== Mesh gradient ambient bg (toggleable) ===== */
.mesh-bg {
  position: fixed;
  inset: -10vh -10vw;
  z-index: 0;
  pointer-events: none;
  filter: blur(80px) saturate(0.85);
  opacity: 0.55;
  transition: opacity 0.6s ease;
}
.mesh-bg.off { opacity: 0; }
.mesh-bg .blob {
  position: absolute;
  width: 50vw;
  height: 50vw;
  border-radius: 50%;
  mix-blend-mode: multiply;
  animation: mesh-float 22s ease-in-out infinite;
}
.mesh-bg .b1 { background: #B8C49A; top: -10%; left: -5%; animation-delay: 0s; }
.mesh-bg .b2 { background: #D9C7A8; top: 30%; right: -10%; animation-delay: -7s; }
.mesh-bg .b3 { background: #C49B7A; bottom: -10%; left: 20%; animation-delay: -14s; }
.mesh-bg .b4 { background: #9DAE85; bottom: 10%; right: 25%; animation-delay: -3s; width: 35vw; height: 35vw; }

html[data-theme="dark"] .mesh-bg { filter: blur(110px) saturate(1.0); opacity: 0.38; mix-blend-mode: screen; }
html[data-theme="dark"] .mesh-bg .blob { mix-blend-mode: screen; }
html[data-theme="dark"] .mesh-bg .b1 { background: #3A5228; }
html[data-theme="dark"] .mesh-bg .b2 { background: #2E4820; }
html[data-theme="dark"] .mesh-bg .b3 { background: #405A2C; }
html[data-theme="dark"] .mesh-bg .b4 { background: #324A22; }

@keyframes mesh-float {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(4vw, 3vh) scale(1.08); }
  66% { transform: translate(-3vw, -2vh) scale(0.95); }
}

/* ===== Type ===== */
.serif { font-family: "Playfair Display", Georgia, serif; font-weight: 500; }
.serif-italic { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-weight: 500; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }

.eyebrow {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  font-weight: 500;
}

/* ===== Container ===== */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.wrap-wide { max-width: 1440px; margin: 0 auto; padding: 0 32px; }

/* ===== Header (UNCHANGED) ===== */
.site-header {
  position: relative;
  z-index: 20;
  background: transparent;
  padding: 18px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo-link { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-link img { height: 56px; width: auto; }

.main-nav { display: flex; gap: 28px; }
.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.main-nav a:hover { color: var(--sage-deep); }
.caret { font-size: 9px; opacity: 0.6; }

.header-right { display: flex; align-items: center; gap: 18px; }
.lang { display: flex; align-items: center; gap: 6px; color: var(--ink); font-size: 14px; }
.profile-btn {
  border: 1px solid var(--ink);
  background: transparent;
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 22px;
  font-family: "DM Sans", sans-serif;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s;
}
.profile-btn:hover { background: var(--ink); color: var(--cream); }

/* ===== Hero ===== */
.hero {
  position: relative;
  height: 78vh;
  min-height: 580px;
  max-height: 760px;
  overflow: hidden;
  margin: 0 24px;
  border-radius: 6px;
}
.hero-stage { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.6s ease;
  animation: kenburns 16s ease-in-out infinite alternate;
}
.hero-slide.active { opacity: 1; }
@keyframes kenburns {
  0% { transform: scale(1.04); }
  100% { transform: scale(1.12); }
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(58,45,36,0.18) 0%, rgba(58,45,36,0.06) 40%, rgba(58,45,36,0.35) 100%);
}

/* Tape stickers in hero corners */
.tape {
  position: absolute;
  width: 110px;
  height: 28px;
  background: rgba(242,235,221,0.55);
  backdrop-filter: blur(2px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.tape::before, .tape::after {
  content: "";
  position: absolute;
  top: 0; bottom: 0;
  width: 6px;
  background-image: radial-gradient(circle at 3px 4px, transparent 2px, rgba(242,235,221,0.55) 2px);
  background-size: 6px 8px;
}
.tape::before { left: -3px; transform: translateX(-50%) rotate(0); }
.tape::after { right: -3px; transform: translateX(50%); }
.tape-tl { top: 24px; left: 30px; transform: rotate(-7deg); }
.tape-tr { top: 30px; right: 30px; transform: rotate(5deg); }

.hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 0 32px;
  color: var(--cream);
}

.hero-eyebrow {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(242,235,221,0.85);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hero-eyebrow .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--terracotta);
  display: inline-block;
}

.hero h1 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(48px, 6.5vw, 86px);
  line-height: 1.02;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 24px rgba(0,0,0,0.25);
  max-width: 14ch;
}
.hero h1 em {
  font-style: italic;
  color: #B8C99B;
  display: block;
}

.hero-sub {
  font-family: "DM Sans", sans-serif;
  font-size: 16px;
  color: rgba(242,235,221,0.92);
  margin: 12px 0 36px;
  max-width: 38ch;
}

/* Search bar */
.search-wrap {
  position: relative;
  width: min(640px, 92%);
}
.search-bar {
  display: flex;
  align-items: center;
  background: rgba(255,253,247,0.96);
  border-radius: 999px;
  padding: 6px 6px 6px 24px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.22), 0 2px 0 rgba(255,255,255,0.4) inset;
  border: 1px solid rgba(255,255,255,0.5);
}
.search-bar .search-prefix {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 500;
  font-size: 22px;
  color: var(--ink);
  margin-right: 4px;
  user-select: none;
  white-space: nowrap;
}
.search-bar input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: "DM Sans", sans-serif;
  font-size: 17px;
  padding: 14px 8px;
  color: var(--ink);
  min-width: 0;
}
.search-bar input::placeholder { color: var(--ink-mute); }
.search-btn {
  background: var(--sage);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  font-family: "DM Sans", sans-serif;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  white-space: nowrap;
}
.search-btn:hover { background: var(--sage-deep); transform: translateY(-1px); }

.trending {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
  justify-content: center;
  font-size: 13px;
}
.trending .label {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242,235,221,0.75);
}
.trending a {
  color: var(--cream);
  text-decoration: none;
  padding: 5px 12px;
  border: 1px solid rgba(242,235,221,0.4);
  border-radius: 999px;
  transition: all 0.2s;
  font-size: 13px;
}
.trending a:hover { background: rgba(242,235,221,0.15); border-color: rgba(242,235,221,0.7); }

/* Hero room indicator */
.hero-pager {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}
.hero-pager button {
  width: 36px;
  height: 3px;
  background: rgba(242,235,221,0.35);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s;
}
.hero-pager button.active { background: var(--cream); }

/* Hero "still" mode */
.hero.still .hero-slide { animation: none; }
.hero.still .hero-pager { display: none; }

/* ===== Section base ===== */
section { position: relative; z-index: 2; }
html[data-theme="dark"], html[data-theme="dark"] body { background: var(--cream) !important; color: var(--ink); }
html[data-theme="dark"] .guide-card { background: #2A2620; }
html[data-theme="dark"] .room-card { background: #100E0B; }
html[data-theme="dark"] .rooms { background: #15130F; }
html[data-theme="dark"] .rooms::before { background: var(--rule); opacity: 0.4; }
html[data-theme="dark"] .placeholder {
  background: repeating-linear-gradient(45deg, rgba(232,221,198,0.05) 0 8px, rgba(232,221,198,0.02) 8px 16px), #25221C;
  color: var(--ink-mute);
}
html[data-theme="dark"] .search-bar {
  background: rgba(40,36,30,0.92);
  border-color: rgba(232,221,198,0.2);
}
html[data-theme="dark"] .search-bar input { color: var(--ink); }
html[data-theme="dark"] .search-bar input::placeholder { color: var(--ink-mute); }
html[data-theme="dark"] .search-bar .search-prefix { color: var(--ink); }
html[data-theme="dark"] .profile-btn { border-color: var(--ink); color: var(--ink); }
html[data-theme="dark"] .profile-btn:hover { background: var(--ink); color: var(--cream); }
html[data-theme="dark"] .guide-card .cat { background: var(--cream); color: var(--ink); }
html[data-theme="dark"] .polaroid { background: #2A2620; }
html[data-theme="dark"] .polaroid .cap { color: var(--ink); }
html[data-theme="dark"] .community-tile { background: #2A2620; }
html[data-theme="dark"] .community-tile .by { color: var(--ink); }
html[data-theme="dark"] .weekend { background: #0F1A0C; }
html[data-theme="dark"] .weekend-text h2,
html[data-theme="dark"] .weekend-text p { color: var(--ink); }
html[data-theme="dark"] .weekend-cta { background: var(--cream); color: var(--espresso-deep); }
html[data-theme="dark"] .weekend-card .badge { background: rgba(40,36,30,0.95); color: var(--ink); }
html[data-theme="dark"] .weekend-card .badge .m { color: var(--ink-mute); }
html[data-theme="dark"] .sam-read { background: var(--cream); color: var(--espresso-deep); }
html[data-theme="dark"] .sam-read:hover { background: var(--ink-soft); }
html[data-theme="dark"] .bottom-cta .go { background: var(--cream); color: var(--espresso-deep); }
html[data-theme="dark"] .sam-tag { background: var(--sage-deep); color: var(--espresso-deep); }
html[data-theme="dark"] .sam-body h3 { color: var(--ink); }
html[data-theme="dark"] .sam-body .pull { color: var(--ink); }
html[data-theme="dark"] .section-head h2 { color: var(--ink); }
html[data-theme="dark"] .section-head h2 em { color: var(--sage-deep); }
html[data-theme="dark"] .rooms-head h2 em { color: var(--sage-deep); }
html[data-theme="dark"] .sam-portrait { background: #25221C; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
  gap: 24px;
}
.section-head .left { max-width: 56ch; }
.section-head .eyebrow { margin-bottom: 14px; display: inline-block; }
.section-head h2 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(36px, 4vw, 56px);
  margin: 0 0 12px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.section-head h2 em { font-style: italic; color: var(--sage-deep); }
.section-head p {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0;
  max-width: 50ch;
}

.view-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--sage-deep);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--sage);
  padding-bottom: 4px;
  font-size: 14px;
  white-space: nowrap;
  transition: gap 0.2s;
}
.view-all:hover { gap: 14px; }

/* ===== Recently Added — Editorial Bento (default) ===== */
.recently { padding: 96px 0 80px; }

.bento {
  display: grid;
  grid-template-columns: 1.55fr 1fr;
  grid-template-rows: auto auto;
  gap: 18px;
}
.bento .feature { grid-column: 1; grid-row: 1 / span 2; }
.bento .small-1 { grid-column: 2; grid-row: 1; }
.bento .small-2 { grid-column: 2; grid-row: 2; }

.bento-row-2 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.guide-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--cream-paper);
  display: block;
  text-decoration: none;
  color: var(--ink);
  isolation: isolate;
  cursor: pointer;
}
.guide-card .img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(.2,.7,.2,1);
}
.guide-card:hover .img { transform: scale(1.04); }
.guide-card .img-wrap { position: relative; width: 100%; height: 100%; overflow: hidden; }
.guide-card .img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 30%, rgba(58,45,36,0.7) 100%);
}

.guide-card.feature { aspect-ratio: 1.18 / 1; }
.guide-card.small { aspect-ratio: 1.6 / 1; }
.guide-card.tile { aspect-ratio: 1 / 1.05; }

.guide-card .meta {
  position: absolute;
  inset: auto 0 0 0;
  padding: 24px;
  z-index: 2;
  color: white;
}
.guide-card.feature .meta { padding: 32px; }
.guide-card .cat {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 3;
  background: var(--cream);
  color: var(--ink);
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 500;
}
.guide-card h3 {
  font-family: "Playfair Display", serif;
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 8px;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.guide-card.feature h3 { font-size: 38px; line-height: 1.05; max-width: 16ch; }
.guide-card.small h3 { font-size: 19px; }
.guide-card.tile h3 { font-size: 18px; }
.guide-card .time {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.1em;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 6px;
}
.guide-card.feature .pull-quote {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 15px;
  margin: 0 0 14px;
  opacity: 0.9;
  max-width: 36ch;
  border-left: 2px solid var(--terracotta);
  padding-left: 12px;
}

/* Image placeholder utility — when no real photo */
.placeholder {
  background:
    repeating-linear-gradient(45deg, rgba(58,45,36,0.06) 0 8px, rgba(58,45,36,0.02) 8px 16px),
    var(--cream-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-mute);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}
.placeholder span::before { content: "[ "; }
.placeholder span::after { content: " ]"; }

/* Recently — sticky stack variant */
.recently.layout-stack .bento,
.recently.layout-stack .bento-row-2 { display: none; }
.recently.layout-stack .stack-rail { display: block; }
.recently:not(.layout-stack) .stack-rail { display: none; }

.stack-rail {
  position: relative;
  display: none;
}
.stack-card {
  position: sticky;
  top: 100px;
  margin-bottom: 24px;
  height: 480px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(58,45,36,0.18);
}

/* Recently — horizontal rail variant */
.recently.layout-rail .bento,
.recently.layout-rail .bento-row-2 { display: none; }
.recently.layout-rail .h-rail { display: flex; }
.recently:not(.layout-rail) .h-rail { display: none; }

.h-rail {
  display: none;
  gap: 18px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x mandatory;
  scrollbar-color: var(--rule) transparent;
}
.h-rail .guide-card {
  flex: 0 0 380px;
  aspect-ratio: 4 / 5;
  scroll-snap-align: start;
}

/* ===== Browse By Room ===== */
.rooms { padding: 80px 0 96px; background: var(--cream-deep); position: relative; }
.rooms::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--rule);
  opacity: 0.5;
}

.rooms-head { text-align: center; margin-bottom: 48px; }
.rooms-head .eyebrow { display: inline-block; margin-bottom: 14px; }
.rooms-head h2 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(40px, 4.5vw, 60px);
  margin: 0 0 14px;
  letter-spacing: -0.01em;
}
.rooms-head h2 em { font-style: italic; color: var(--sage-deep); }
.rooms-head p { color: var(--ink-soft); max-width: 56ch; margin: 0 auto; }

/* Mosaic — varied tile sizes (default) */
.rooms-mosaic {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: 110px;
  gap: 12px;
}
.room-card {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  background: var(--ink);
  text-decoration: none;
}
.room-card .img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.9s cubic-bezier(.2,.7,.2,1), filter 0.5s;
  filter: saturate(0.85);
}
.room-card:hover .img { transform: scale(1.08); filter: saturate(1); }
.room-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.6) 100%);
  z-index: 1;
}
.room-card .room-meta {
  position: absolute;
  z-index: 2;
  bottom: 18px;
  left: 18px;
  right: 18px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.room-card .room-name {
  font-family: "Playfair Display", serif;
  font-size: 22px;
  font-weight: 400;
  letter-spacing: -0.01em;
}
.room-card .room-count {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s;
}
.room-card:hover .room-count { opacity: 0.95; transform: translateY(0); }
.room-card .arrow {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(242,235,221,0.0);
  border: 1px solid rgba(242,235,221,0.0);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transition: all 0.3s;
  font-size: 14px;
}
.room-card:hover .arrow {
  background: rgba(242,235,221,0.95);
  border-color: rgba(242,235,221,0.95);
  color: var(--ink);
}

/* mosaic spans */
.room-card.r-feature { grid-column: span 6; grid-row: span 4; }
.room-card.r-tall { grid-column: span 3; grid-row: span 4; }
.room-card.r-wide { grid-column: span 6; grid-row: span 3; }
.room-card.r-md   { grid-column: span 3; grid-row: span 3; }
.room-card.r-sm   { grid-column: span 3; grid-row: span 2; }
.room-card.r-md4  { grid-column: span 4; grid-row: span 3; }

.room-card.r-feature .room-name { font-size: 32px; }

/* Hover-zoom variant — even grid, simpler */
.rooms.layout-zoom .rooms-mosaic { display: none; }
.rooms.layout-zoom .rooms-grid { display: grid; }

.rooms-grid {
  display: none;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.rooms-grid .room-card {
  aspect-ratio: 1 / 1.1;
  grid-column: auto !important;
  grid-row: auto !important;
}

/* Pan variant — wide horizontal scroll without hijack */
.rooms.layout-pan .rooms-mosaic { display: none; }
.rooms.layout-pan .rooms-pan { display: flex; }

.rooms-pan {
  display: none;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 18px;
  scroll-snap-type: x mandatory;
}
.rooms-pan .room-card {
  flex: 0 0 320px;
  height: 420px;
  grid-column: auto !important;
  grid-row: auto !important;
  scroll-snap-align: start;
}

/* hide non-active layouts */
.rooms.layout-mosaic .rooms-grid,
.rooms.layout-mosaic .rooms-pan { display: none; }

/* ===== Sam — Editorial Profile ===== */
.contributors { padding: 110px 0; position: relative; }

.masthead {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  margin-bottom: 56px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.masthead .ctr { color: var(--terracotta); }

.sam-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: stretch;
}

.sam-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: 4px;
  overflow: hidden;
  background: var(--cream-paper);
  box-shadow: 0 30px 80px rgba(58,45,36,0.18);
}
.sam-portrait img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sam-portrait .sam-tape {
  position: absolute;
  top: 18px;
  right: 18px;
  background: rgba(242,235,221,0.95);
  padding: 6px 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  transform: rotate(3deg);
  box-shadow: 0 4px 14px rgba(0,0,0,0.12);
}
.sam-portrait .sam-overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px;
  color: white;
  background: linear-gradient(180deg, transparent, rgba(0,0,0,0.55));
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
}
.sam-portrait .sam-name {
  font-family: "Playfair Display", serif;
  font-size: 26px;
}
.sam-portrait .sam-handle {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  opacity: 0.9;
}

.sam-body { display: flex; flex-direction: column; justify-content: center; }
.sam-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--sage);
  color: white;
  padding: 7px 16px 7px 14px;
  border-radius: 999px;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 14px;
  width: fit-content;
  margin-bottom: 20px;
}
.sam-tag .star { font-size: 11px; }

.sam-body h3 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 30px;
  margin: 0 0 6px;
  color: var(--ink);
  line-height: 1.1;
}

.sam-body .project-title {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(36px, 4vw, 54px);
  color: var(--sage-deep);
  line-height: 1.05;
  margin: 6px 0 28px;
  letter-spacing: -0.01em;
}

.sam-body .pull {
  border-left: 2px solid var(--terracotta);
  padding: 4px 0 4px 18px;
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 19px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0 0 22px;
  max-width: 42ch;
}
.sam-body .body-copy {
  font-family: "DM Sans", sans-serif;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 50ch;
  margin: 0 0 28px;
}

.sam-cta {
  display: inline-flex;
  align-items: center;
  gap: 28px;
  margin-top: 8px;
}
.sam-read {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--cream);
  padding: 14px 26px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  transition: background 0.2s;
}
.sam-read:hover { background: var(--moss); }
.sam-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* Sam — polaroid variant */
.contributors.layout-polaroid .sam-grid { display: none; }
.contributors.layout-polaroid .sam-polaroid { display: grid; }
.contributors:not(.layout-polaroid) .sam-polaroid { display: none; }

.sam-polaroid {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.polaroid-stack { position: relative; padding: 40px; }
.polaroid {
  background: white;
  padding: 14px 14px 56px;
  box-shadow: 0 20px 50px rgba(58,45,36,0.18);
  position: relative;
}
.polaroid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; }
.polaroid .cap {
  position: absolute;
  bottom: 14px;
  left: 0; right: 0;
  text-align: center;
  font-family: "Caveat", "Playfair Display", cursive;
  font-size: 22px;
  color: var(--ink);
}
.polaroid.p1 { transform: rotate(-4deg); }
.polaroid.p2 {
  position: absolute;
  width: 180px;
  bottom: -20px;
  right: -10px;
  transform: rotate(8deg);
}
.polaroid.p2 img { aspect-ratio: 1; }

/* Sam — magazine variant */
.contributors.layout-magazine .sam-grid { display: none; }
.contributors.layout-magazine .sam-magazine { display: grid; }
.contributors:not(.layout-magazine) .sam-magazine { display: none; }

.sam-magazine {
  display: none;
  grid-template-columns: 80px 1.05fr 1fr;
  gap: 40px;
  align-items: stretch;
}
.mag-rail {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0;
  border-left: 1px solid var(--rule);
  border-right: 1px solid var(--rule);
}

/* ===== Weekend Project ===== */
.weekend {
  padding: 100px 0;
  background: var(--moss);
  color: var(--cream);
  position: relative;
  overflow: hidden;
}
.weekend::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='100' height='100'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  opacity: 0.5;
  pointer-events: none;
}
.weekend-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 64px;
  align-items: center;
  position: relative;
}
.weekend-text .eyebrow {
  color: var(--terracotta);
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.weekend-text .eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--terracotta);
}
.weekend-text h2 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(40px, 4.5vw, 64px);
  margin: 0 0 24px;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--cream);
}
.weekend-text h2 em { font-style: italic; }
.weekend-text p {
  color: rgba(242,235,221,0.85);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 28px;
  max-width: 46ch;
}
.weekend-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 32px;
  border-top: 1px solid rgba(242,235,221,0.2);
  border-bottom: 1px solid rgba(242,235,221,0.2);
  padding: 18px 0;
}
.weekend-stats .stat .n {
  font-family: "Playfair Display", serif;
  font-style: italic;
  font-size: 28px;
  color: var(--cream);
}
.weekend-stats .stat .l {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(242,235,221,0.6);
  display: block;
}
.weekend-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--cream);
  color: var(--ink);
  padding: 14px 28px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  transition: transform 0.2s;
}
.weekend-cta:hover { transform: translateY(-2px); }

.weekend-card {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
}
.weekend-card .img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.weekend-stamp {
  position: absolute;
  top: 22px;
  left: 22px;
  background: var(--terracotta);
  color: white;
  padding: 8px 16px;
  border-radius: 999px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  z-index: 2;
}
.weekend-card .badge {
  position: absolute;
  bottom: 22px;
  left: 22px;
  right: 22px;
  background: rgba(242,235,221,0.96);
  color: var(--ink);
  padding: 16px 18px;
  border-radius: 4px;
  z-index: 2;
}
.weekend-card .badge .t {
  font-family: "Playfair Display", serif;
  font-size: 19px;
  margin-bottom: 4px;
}
.weekend-card .badge .m {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
}

/* ===== Community Inspiration ===== */
.community { padding: 96px 0 80px; }
.community-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 36px;
}
.community-head h2 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(36px, 4vw, 54px);
  margin: 0;
}
.community-head .share {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--terracotta);
  text-decoration: none;
  font-size: 14px;
}

/* Marquee — constant scroll */
.community-marquee {
  position: relative;
  overflow: hidden;
  width: 100%;
  -webkit-mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
          mask-image: linear-gradient(90deg, transparent, black 4%, black 96%, transparent);
}
.community-track {
  display: flex;
  gap: 22px;
  width: max-content;
  padding: 8px 0 24px;
  animation: marquee 70s linear infinite;
}
.community-marquee:hover .community-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.community-tile {
  flex: 0 0 auto;
  width: 220px;
  background: white;
  padding: 12px 12px 44px;
  box-shadow: 0 14px 30px rgba(58,45,36,0.14);
  position: relative;
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  cursor: pointer;
}
.community-tile:hover {
  transform: rotate(0deg) translateY(-6px) scale(1.03);
  box-shadow: 0 24px 48px rgba(58,45,36,0.22);
  z-index: 5;
}
.community-tile .photo {
  width: 100%;
  aspect-ratio: 4/5;
  background-size: cover;
  background-position: center;
}
.community-tile .by {
  position: absolute;
  bottom: 12px;
  left: 0; right: 0;
  text-align: center;
  font-family: "Caveat", "Playfair Display", cursive;
  font-size: 20px;
  color: var(--ink);
}
.community-tile .pin {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #d96f4a, #8a3a20);
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
  z-index: 2;
}

/* ===== CTA ===== */
.bottom-cta {
  text-align: center;
  padding: 110px 32px;
  position: relative;
}
.bottom-cta::before, .bottom-cta::after {
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  border-radius: 50%;
  border: 1px solid var(--rule);
  opacity: 0.5;
}
.bottom-cta::before { left: -120px; top: 50%; transform: translateY(-50%); }
.bottom-cta::after  { right: -120px; top: 50%; transform: translateY(-50%); }
.bottom-cta h2 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: clamp(40px, 5vw, 64px);
  margin: 0 0 18px;
  letter-spacing: -0.01em;
}
.bottom-cta h2 em { font-style: italic; }
.bottom-cta p {
  max-width: 50ch;
  margin: 0 auto 32px;
  color: var(--ink-soft);
}
.bottom-cta .go {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--ink);
  color: var(--cream);
  padding: 16px 34px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
}

/* ===== Footer (UNCHANGED) ===== */
.site-footer {
  background: var(--espresso-deep);
  color: #C9B89E;
  padding: 80px 36px 40px;
  position: relative;
  z-index: 2;
}
.featured-guides {
  border-bottom: 1px solid rgba(201,184,158,0.15);
  padding-bottom: 50px;
  margin-bottom: 50px;
}
.featured-guides h3 {
  font-family: "Playfair Display", serif;
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 26px;
  color: var(--cream);
}
.featured-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 56px;
  margin-bottom: 32px;
}
.featured-grid a {
  color: var(--terracotta);
  text-decoration: none;
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-brand img { height: 60px; margin-bottom: 18px; }
.footer-brand p { color: #B8A788; font-size: 13px; line-height: 1.6; max-width: 28ch; }
.footer-grid h4 {
  color: var(--cream);
  font-family: "DM Sans", sans-serif;
  font-weight: 500;
  font-size: 14px;
  margin: 0 0 18px;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 10px; }
.footer-grid li a {
  color: var(--terracotta);
  text-decoration: none;
  font-size: 13px;
  font-style: italic;
  font-family: "Playfair Display", serif;
}
.footer-grid .join p { font-size: 13px; color: #B8A788; margin: 0 0 14px; }
.footer-join-form {
  display: flex;
  background: rgba(201,184,158,0.1);
  border-radius: 999px;
  padding: 4px;
}
.footer-join-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: 10px 14px;
  color: var(--cream);
  font-size: 13px;
}
.footer-join-form input::placeholder { color: rgba(201,184,158,0.5); }
.footer-join-form button {
  background: var(--sage);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

/* ===== Responsive ===== */
@media (max-width: 920px) {
  .bento { grid-template-columns: 1fr; }
  .bento .feature { grid-column: 1; grid-row: auto; }
  .bento .small-1, .bento .small-2 { grid-column: 1; grid-row: auto; }
  .bento-row-2 { grid-template-columns: repeat(2, 1fr); }
  .sam-grid, .sam-magazine { grid-template-columns: 1fr; }
  .weekend-inner { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .featured-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .rooms-mosaic { grid-template-columns: repeat(6, 1fr); }
  .room-card.r-feature { grid-column: span 6; grid-row: span 4; }
  .room-card.r-tall, .room-card.r-md, .room-card.r-md4, .room-card.r-sm, .room-card.r-wide {
    grid-column: span 3;
    grid-row: span 3;
  }
}
