/* v13: room-first designer with a side photo panel; Letters banner near the bottom. Builds on v12.css. */

/* numbered steps */
.d2 .step { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; }
.d2 .step h3 { font-family: "Inter", sans-serif; font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); margin: 0; }
.step-n { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--ink); color: #fff; font-weight: 800; font-size: 14px; box-shadow: inset 0 -4px 8px rgba(0,0,0,.2), inset 0 2px 0 rgba(255,255,255,.15); }

/* step 1: room cards */
.room-cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin-bottom: 30px; }
@media (max-width: 900px) { .room-cards { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(170px, 1fr); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; } }
.room-card { display: flex; align-items: center; gap: 12px; text-align: left; padding: 14px; border-radius: 16px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); scroll-snap-align: start; transition: border-color .2s, box-shadow .25s, transform .25s; }
.room-card svg { width: 42px; height: 42px; flex: none; padding: 8px; border-radius: 12px; background: #e3eff1; stroke: var(--accent); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: background .2s, stroke .2s; }
.room-card b { display: block; font-size: 15px; line-height: 1.2; }
.room-card small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.room-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.room-card.on { border-color: var(--ink); box-shadow: 0 14px 30px -18px rgba(13, 38, 48, .55), inset 0 0 0 1px var(--ink); }
.room-card.on svg { background: var(--ink); stroke: #7fe0f0; }

/* layout: room + controls on the left, photo panel on the right */
.d2-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; }
.d2-grid > * { min-width: 0; }
@media (min-width: 1000px) { .d2-grid { grid-template-columns: minmax(0, 1.4fr) minmax(330px, .9fr); gap: 36px; } }
.d2-controls { margin-top: 24px; }
.d2 .style-opts { grid-template-columns: repeat(2, 1fr); margin-bottom: 24px; }
@media (min-width: 640px) { .d2 .style-opts { grid-template-columns: repeat(4, 1fr); } }
.d2 .ctl.two { margin-bottom: 20px; align-items: center; }
.d2 .grout-sws { padding-left: 18px; border-left: 1px solid var(--line); }

/* photo panel */
.showcase { background: #fff; border-radius: 22px; padding: 22px; box-shadow: 0 30px 60px -36px rgba(13, 38, 48, .45), 0 0 0 1px rgba(13, 38, 48, .06); }
@media (min-width: 1000px) { .showcase { position: sticky; top: 96px; } }
.showcase .eyebrow { margin-bottom: 6px; }
.showcase h3 { font-family: "Fraunces", Georgia, serif; font-weight: 400; font-size: 26px; letter-spacing: -.01em; margin: 0 0 14px; }
.sc-scope { display: flex; gap: 4px; padding: 4px; background: #eef4f5; border-radius: 12px; margin-bottom: 16px; }
.sc-scope button { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 6px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 600; line-height: 1.2; transition: background .2s, color .2s, box-shadow .2s; }
.sc-scope button span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sc-scope button b { flex: none; font-size: 11px; min-width: 20px; padding: 1px 6px; border-radius: 99px; background: rgba(13, 38, 48, .08); }
.sc-scope button.on { background: #fff; color: var(--ink); box-shadow: 0 4px 12px -6px rgba(0,0,0,.35); }
.sc-scope button.on b { background: var(--accent); color: #fff; }
.sc-scope button:disabled { opacity: .4; cursor: not-allowed; }

.sc-main { position: relative; margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 4 / 5; background: #dfe9eb; }
.sc-open { position: absolute; inset: 0; padding: 0; border: 0; background: none; cursor: zoom-in; }
.sc-open img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.06); transition: opacity .9s ease, transform 6s ease-out; }
.sc-open img.show { opacity: 1; transform: scale(1); }
.sc-badge { position: absolute; z-index: 2; left: 12px; top: 12px; background: rgba(236, 122, 60, .95); color: #fff; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 99px; box-shadow: 0 6px 14px -6px rgba(0,0,0,.5); }
.sc-prev, .sc-next { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: var(--ink); font-size: 26px; line-height: 1; opacity: 0; transition: opacity .25s, transform .25s; box-shadow: 0 6px 16px -8px rgba(0,0,0,.5); }
.sc-prev { left: 12px; } .sc-next { right: 12px; }
.sc-main:hover .sc-prev, .sc-main:hover .sc-next, .sc-main:focus-within .sc-prev, .sc-main:focus-within .sc-next { opacity: 1; }
@media (hover: none) { .sc-prev, .sc-next { opacity: 1; width: 36px; height: 36px; } }
.sc-main figcaption { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; align-items: end; gap: 12px; padding: 48px 16px 18px; color: #fff; background: linear-gradient(transparent, rgba(5, 20, 26, .78)); pointer-events: none; }
.sc-main figcaption span:first-child { font-family: "Fraunces", Georgia, serif; font-style: italic; font-size: 19px; line-height: 1.25; }
.sc-count { font-size: 12px; font-weight: 700; letter-spacing: .08em; opacity: .85; white-space: nowrap; }
.sc-bar { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.2); }
.sc-bar i { display: block; height: 100%; background: #7fe0f0; transform-origin: left; transform: scaleX(0); }

.sc-thumbs { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 12px 2px 6px; scrollbar-width: thin; }
.sc-thumb { flex: none; width: 58px; aspect-ratio: 3 / 4; padding: 0; border: 0; border-radius: 9px; overflow: hidden; background: #dfe9eb; opacity: .55; scroll-snap-align: center; transition: opacity .25s, transform .25s, box-shadow .25s; animation: scIn .45s cubic-bezier(.2, .9, .25, 1.2) both; }
.sc-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-thumb:hover { opacity: .9; }
.sc-thumb.on { opacity: 1; transform: translateY(-3px); box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--accent); }
@keyframes scIn { from { opacity: 0; transform: translateY(10px) scale(.9); } }
.sc-note { margin: 8px 0 0; font-size: 14px; color: var(--muted); }

/* Letters banner near the bottom */
.letters-band.bottom { border-top: 0; padding: 30px 0 34px; }
.letters-band.bottom canvas { height: clamp(220px, 34vh, 360px); }
@media (max-width: 520px) {
  .sc-scope { flex-wrap: wrap; }
  .sc-scope button { flex: 1 1 auto; }
  .sc-scope button span { overflow: visible; white-space: normal; }
}
.nowrap { white-space: nowrap; }
