/* Round 2 shared components (all three options). Brand tokens come from assets/css/nest-base.css. */

.section { padding: clamp(64px, 8vw, 120px) 0; position: relative; }
.section--tight { padding: clamp(40px, 5vw, 72px) 0; }
.section--flush-top { padding-top: 0; }
.h-section { font-size: clamp(2.125rem, 4.2vw, 3.5rem); }
.label-clay { color: var(--nest-deep-clay); }
.label-glass { color: var(--nest-sea-glass); }
.muted { color: var(--nest-muted); }
.lede { font-size: clamp(1.0625rem, 1.3vw, 1.1875rem); line-height: 1.6; }
.center { text-align: center; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .btn-row { justify-content: center; }
.nav-list a[aria-current="page"] { background-size: 100% 1.5px; }
.mock-flag { font-size: .8125rem; color: var(--nest-muted); margin-top: 14px; }

/* Section head */
.head { margin-bottom: clamp(32px, 4vw, 56px); max-width: 46rem; }
.head.center { margin-left: auto; margin-right: auto; }
.head h2 { margin-top: 12px; }
.head .lede { margin-top: 16px; color: var(--nest-muted); }
.on-dark .head .lede, .head.on-dark .lede { color: var(--nest-sand); }
.head-arch { width: 112px; margin-bottom: 18px; overflow: visible; }
.center .head-arch { margin-left: auto; margin-right: auto; }

/* Drawing arches (used by Open Door and Hybrid). Fully drawn by default; replays when its block scrolls in. */
.draw path { stroke-dasharray: 1; stroke-dashoffset: 0; }
/* Transparent at the start: a round cap on a hidden dash would otherwise paint as a dot while it waits */
@keyframes arch-draw { from { stroke-dashoffset: 1; stroke-opacity: 0; } 4% { stroke-opacity: 1; } to { stroke-dashoffset: 0; stroke-opacity: 1; } }
.is-in .draw path, .draw.is-in path { animation: arch-draw 1.6s var(--ease) both; animation-delay: var(--dd, .1s); }

/* Breadcrumb */
.crumbs { font-size: .875rem; margin-bottom: 22px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li + li::before { content: "›"; margin-right: 6px; }
.crumbs a { color: inherit; text-underline-offset: 3px; }

/* Icon feature list (What's included page, room details) */
.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.features--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.features--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.features--5 li { flex-direction: column; gap: 14px; }
.features li { background: var(--nest-cream); border-radius: var(--nest-radius-card); padding: 24px; display: flex; gap: 18px; align-items: flex-start; }
.features .ic { width: 52px; height: 52px; border-radius: 50%; background: var(--nest-sand); display: grid; place-items: center; flex: 0 0 auto; }
.features .icon { width: 28px; height: 28px; }
.features h3 { font: 600 1.125rem/1.3 var(--nest-font-body); margin: 4px 0 6px; }
.features p { color: var(--nest-muted); }

/* Why Nest points */
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.points svg { width: 56px; }
.points h3 { font-size: 1.5rem; margin: 14px 0 8px; }

/* Pillars */
.pillars { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.pillars li { background: var(--nest-cream); border-radius: var(--nest-radius-card); padding: 24px; }
.pillars h3 { font-size: 1.5rem; margin-bottom: 8px; }
.pillars p { color: var(--nest-muted); }

/* Compare table */
.compare { background: var(--nest-cream); border-radius: var(--nest-radius-card); overflow: hidden; }
.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td { padding: 16px 24px; text-align: left; border-top: 1px solid var(--nest-line); }
.compare thead th { font-size: var(--nest-text-label); letter-spacing: .12em; text-transform: uppercase; color: var(--nest-muted); font-weight: 600; border-top: 0; }
.compare tbody th { font-weight: 500; }
.compare td { font-weight: 600; width: 26%; }
.yes { display: inline-flex; align-items: center; gap: 8px; }
.tick { width: 18px; height: 18px; fill: none; stroke: var(--nest-petrol); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }

/* Check list */
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; font-size: 1.0625rem; }
.checks .tick { margin-top: 4px; }
.on-dark .checks .tick { stroke: var(--nest-sea-glass); }

/* FAQ accordion */
.faq-group + .faq-group { margin-top: 56px; }
.faq-group h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); margin-bottom: 18px; }
.faq { background: var(--nest-cream); border-radius: var(--nest-radius-card); }
.faq + .faq { margin-top: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 1.0625rem; border-radius: var(--nest-radius-card); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 12px; height: 12px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-3px, -3px); transition: transform .3s var(--ease); flex: 0 0 auto; }
.faq[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.faq summary:focus-visible { outline: 3px solid var(--nest-deep-clay); outline-offset: 2px; }
.faq .answer { padding: 0 24px 22px; color: var(--nest-muted); max-width: 46rem; }
.faq .answer a { font-weight: 600; }
.faq-layout { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 8fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.faq-nav { position: sticky; top: 24px; }
.faq-nav ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 4px; }
.faq-nav a { display: block; padding: 8px 0; color: var(--nest-petrol); font-weight: 500; text-decoration: none; }
.faq-nav a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Illustrated map */
.map { background: var(--nest-cream); border-radius: var(--nest-radius-card); border-top-right-radius: clamp(64px, 10vw, 140px); padding: 16px; margin: 0; }
.map svg { width: 100%; height: auto; }
.map svg text { font-family: var(--nest-font-body); font-weight: 600; fill: var(--nest-petrol); }
.map figcaption { font-size: .8125rem; color: var(--nest-muted); padding: 10px 8px 2px; }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.split--even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* Room detail */
.room-detail { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.room-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.room-gallery .main { grid-column: 1 / -1; border-radius: var(--nest-radius-card); border-top-left-radius: var(--nest-radius-arch); overflow: hidden; aspect-ratio: 16 / 10; }
.room-gallery .thumb { border-radius: var(--nest-radius-card); overflow: hidden; aspect-ratio: 4 / 3; }
.room-gallery img { width: 100%; height: 100%; object-fit: cover; }
.room-info h1 { font-size: clamp(2.5rem, 5vw, 4rem); margin: 10px 0 14px; }
.room-info .lede { color: var(--nest-muted); }
.book-card { background: var(--nest-petrol); color: var(--nest-sand); border-radius: var(--nest-radius-card); padding: 28px; position: sticky; top: 24px; display: grid; gap: 14px; }
.book-card h2 { font-size: 1.625rem; }
.book-card .field { background: var(--nest-cream); color: var(--nest-petrol); border-radius: 12px; padding: 10px 14px; }
.book-card .field .nest-label { color: var(--nest-muted); display: block; margin-bottom: 2px; }
.book-card select { appearance: none; -webkit-appearance: none; width: 100%; border: 0; color: var(--nest-petrol); font: 500 1.0625rem/1.3 var(--nest-font-body); padding: 2px 28px 2px 0; cursor: pointer;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173F47' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 20px; }
.book-card select:focus-visible { outline: 3px solid var(--nest-deep-clay); outline-offset: 4px; }
.book-card .nest-button { width: 100%; }
.book-card .search-status { color: var(--nest-sand); }
.book-card .small { font-size: .9375rem; }
.book-card .small a { color: var(--nest-sand); font-weight: 600; text-underline-offset: 4px; }
.other-room { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); background: var(--nest-cream); border-radius: var(--nest-radius-card); overflow: hidden; align-items: center; }
.other-room img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }
.other-room .body { padding: clamp(24px, 3vw, 40px); }
.other-room h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 8px 0 10px; }
.other-room p { color: var(--nest-muted); }

/* Room media: tabs for photos, floor plan, 360 tour and video */
.room-media { display: grid; gap: 14px; }
.media-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.media-tab { font: 600 .9375rem/1 var(--nest-font-body); padding: 11px 18px; min-height: 44px; border: 0; border-radius: var(--nest-radius-pill); background: var(--nest-cream); color: var(--nest-petrol); box-shadow: inset 0 0 0 1.5px var(--nest-line); cursor: pointer; }
.media-tab span { color: var(--nest-muted); font-weight: 500; margin-left: 2px; }
.media-tab:hover { box-shadow: inset 0 0 0 1.5px var(--nest-petrol); }
.media-tab[aria-selected="true"] { background: var(--nest-petrol); color: var(--nest-sand); box-shadow: none; }
.media-tab[aria-selected="true"] span { color: var(--nest-sea-glass); }
.media-tab:focus-visible { outline: 3px solid var(--nest-deep-clay); outline-offset: 3px; }
.media-panel { border-radius: var(--nest-radius-card); }

/* Photos */
.mv-stage { position: relative; aspect-ratio: 16 / 10; border-radius: var(--nest-radius-card); border-top-left-radius: var(--nest-radius-arch); overflow: hidden; background: var(--nest-sea-glass); }
.mv-slide { position: absolute; inset: 0; margin: 0; opacity: 0; transition: opacity .5s var(--ease); }
.mv-slide.is-active { opacity: 1; }
.mv-slide img { width: 100%; height: 100%; object-fit: cover; }
.mv-slide figcaption { position: absolute; left: 16px; bottom: 16px; background: var(--nest-cream); color: var(--nest-petrol); border-radius: var(--nest-radius-pill); padding: 8px 14px; font-weight: 600; font-size: .875rem; }
.mv-arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: 0; background: var(--nest-cream); color: var(--nest-petrol); display: grid; place-items: center; cursor: pointer; box-shadow: 0 10px 24px -14px rgba(23, 63, 71, .7); transition: transform .2s var(--ease); }
.mv-arrow:hover { transform: translateY(-50%) scale(1.06); }
.mv-arrow svg, .mv-expand svg, .pano-controls svg, .pano-hint svg, .vid-play svg, .vid-toggle svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mv-prev { left: 14px; } .mv-next { right: 14px; }
.mv-count { position: absolute; right: 16px; bottom: 16px; background: var(--nest-petrol); color: var(--nest-sand); border-radius: var(--nest-radius-pill); padding: 7px 12px; font-weight: 600; font-size: .8125rem; font-variant-numeric: tabular-nums; }
.mv-expand { position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--nest-cream); color: var(--nest-petrol); display: grid; place-items: center; cursor: pointer; }
.mv-thumbs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.mv-thumb { padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 4 / 3; cursor: pointer; opacity: .65; transition: opacity .2s; box-shadow: 0 0 0 2px transparent; background: var(--nest-sea-glass); }
.mv-thumb img { width: 100%; height: 100%; object-fit: cover; }
.mv-thumb:hover { opacity: 1; }
.mv-thumb.is-active { opacity: 1; box-shadow: 0 0 0 3px var(--nest-petrol); }
.mv-thumb:focus-visible, .mv-arrow:focus-visible, .mv-expand:focus-visible { outline: 3px solid var(--nest-deep-clay); outline-offset: 3px; }
.mv-lightbox { border: 0; padding: 0; background: transparent; max-width: min(1200px, 94vw); width: 94vw; overflow: visible; }
.mv-lightbox::backdrop { background: rgba(23, 63, 71, .92); }
.mv-lightbox img { width: 100%; max-height: 82vh; object-fit: contain; border-radius: var(--nest-radius-card); display: block; }
.lb-close { position: absolute; top: -56px; right: 0; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--nest-cream); color: var(--nest-petrol); font-size: 1.75rem; line-height: 1; cursor: pointer; }
.lb-count { position: absolute; top: -48px; left: 0; color: var(--nest-sand); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Floor plan */
.plan { margin: 0; background: var(--nest-cream); border-radius: var(--nest-radius-card); border-top-left-radius: var(--nest-radius-arch); padding: clamp(16px, 3vw, 32px); }
.plan-svg { width: 100%; height: auto; }
.plan-svg text { font: 600 15px var(--nest-font-body); fill: var(--nest-petrol); }
.plan figcaption { display: flex; flex-wrap: wrap; gap: 8px 20px; padding-top: 12px; font-size: .875rem; color: var(--nest-muted); }
.plan-key { display: inline-flex; align-items: center; gap: 8px; }
.plan-key i { display: inline-block; width: 22px; height: 0; border-top: 4px solid var(--nest-petrol); }
.plan-key .k-win { border-top-color: var(--nest-sea-glass); }
.plan-key .k-door { border-top: 2px dashed var(--nest-petrol); }

/* 360 tour */
.pano { position: relative; aspect-ratio: 16 / 10; border-radius: var(--nest-radius-card); border-top-left-radius: var(--nest-radius-arch); overflow: hidden; cursor: grab; touch-action: pan-y; background: var(--nest-sea-glass); user-select: none; }
.pano:active { cursor: grabbing; }
.pano:focus-visible { outline: 3px solid var(--nest-deep-clay); outline-offset: 3px; }
.pano-stage { position: absolute; top: 0; left: 0; width: 160%; height: 100%; background-size: cover; background-position: center; will-change: transform; }
.pano-hot { position: absolute; transform: translate(-50%, -50%); width: 22px; height: 22px; border-radius: 50%; background: var(--nest-cream); box-shadow: 0 0 0 6px rgba(255, 253, 248, .35); }
.pano-hot::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; background: var(--nest-clay); }
.pano-hot span { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); white-space: nowrap; background: var(--nest-petrol); color: var(--nest-sand); font-weight: 600; font-size: .8125rem; padding: 6px 10px; border-radius: var(--nest-radius-pill); }
.pano-hint { position: absolute; left: 50%; top: 16px; transform: translateX(-50%); display: inline-flex; gap: 8px; align-items: center; background: var(--nest-cream); color: var(--nest-petrol); font-weight: 600; font-size: .875rem; padding: 8px 14px; border-radius: var(--nest-radius-pill); transition: opacity .4s; }
.pano.is-used .pano-hint { opacity: 0; }
.pano-controls { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; background: var(--nest-petrol); color: var(--nest-sand); border-radius: var(--nest-radius-pill); padding: 6px; }
.pano-controls button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: inherit; display: grid; place-items: center; cursor: pointer; }
.pano-controls button:hover { background: rgba(243, 235, 221, .15); }
.pano-controls button:focus-visible { outline: 3px solid var(--nest-sand); outline-offset: 1px; }
.pano-badge { font-weight: 700; font-size: .875rem; letter-spacing: .04em; }

/* Video walkthrough */
.vid { position: relative; aspect-ratio: 16 / 10; border-radius: var(--nest-radius-card); border-top-left-radius: var(--nest-radius-arch); overflow: hidden; background: var(--nest-petrol); }
.vid-frames, .vid-frame { position: absolute; inset: 0; }
.vid-frame { background-size: cover; background-position: center; opacity: 0; }
.vid-frame:first-child { opacity: 1; }
.vid.is-started .vid-frame { animation: vid-show 24s linear infinite; }
.vid.is-started .vid-frame:nth-child(2) { animation-delay: 6s; } .vid.is-started .vid-frame:nth-child(3) { animation-delay: 12s; } .vid.is-started .vid-frame:nth-child(4) { animation-delay: 18s; }
.vid.is-started .vid-frame:first-child { opacity: 0; }
.vid.is-paused .vid-frame { animation-play-state: paused; }
@keyframes vid-show { 0% { opacity: 0; transform: scale(1.12) translateX(2%); } 4% { opacity: 1; } 25% { opacity: 1; } 29% { opacity: 0; transform: scale(1) translateX(-2%); } 100% { opacity: 0; } }
.vid::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(23, 63, 71, .75)); pointer-events: none; }
.vid-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--nest-cream); color: var(--nest-petrol); display: grid; place-items: center; cursor: pointer; z-index: 2; box-shadow: 0 0 0 10px rgba(255, 253, 248, .3); transition: transform .25s var(--ease); }
.vid-play:hover { transform: translate(-50%, -50%) scale(1.06); }
.vid-play svg { width: 32px; height: 32px; fill: currentColor; stroke: none; margin-left: 4px; }
.vid.is-started .vid-play { display: none; }
.vid-bar { position: absolute; left: 16px; right: 16px; bottom: 14px; display: flex; align-items: center; gap: 12px; color: var(--nest-sand); z-index: 2; }
.vid-toggle { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--nest-cream); color: var(--nest-petrol); display: grid; place-items: center; cursor: pointer; flex: 0 0 auto; }
.vid-toggle svg { fill: currentColor; stroke: none; width: 18px; height: 18px; }
.vid-toggle .i-pause { display: none; }
.vid.is-started:not(.is-paused) .vid-toggle .i-pause { display: block; }
.vid.is-started:not(.is-paused) .vid-toggle .i-play { display: none; }
.vid-track { flex: 1; height: 4px; border-radius: 4px; background: rgba(243, 235, 221, .35); overflow: hidden; }
.vid-progress { display: block; height: 100%; width: 0; background: var(--nest-clay); }
.vid-time { font-weight: 600; font-size: .875rem; font-variant-numeric: tabular-nums; }
.vid-title { position: absolute; left: 16px; top: 16px; margin: 0; background: var(--nest-cream); color: var(--nest-petrol); border-radius: var(--nest-radius-pill); padding: 8px 14px; font-size: .875rem; z-index: 2; }
.vid-toggle:focus-visible, .vid-play:focus-visible { outline: 3px solid var(--nest-sand); outline-offset: 3px; }

@media (max-width: 640px) {
  .media-tabs { flex-wrap: nowrap; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .media-tab { padding: 10px 12px; font-size: .875rem; white-space: nowrap; flex: 0 0 auto; }
  .plan-svg text { font-size: 26px; }
  .pano-hint { white-space: nowrap; font-size: .8125rem; padding: 7px 12px; }
  .mv-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .mv-stage, .pano, .vid { aspect-ratio: 4 / 3; border-top-left-radius: 72px; }
  .plan { border-top-left-radius: 72px; }
  .mv-arrow { width: 40px; height: 40px; }
  .pano-hot span { display: none; }
  .vid-title { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .vid.is-started .vid-frame { animation: none; }
  .mv-slide { transition: none; }
}

/* Room options panel: academic year, tenancy length, floor.
   On desktop its column stretches to the full height of the room details, so the panel follows the page down. */
.room-detail > div:last-child { align-self: stretch; }
.room-block { margin-top: clamp(48px, 6vw, 80px); }
.room-block .head { margin-bottom: 24px; }
.features--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.features--2 li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.room-price-note { margin-top: 16px; font-weight: 600; }
.options-card { position: static; }
@media (min-width: 961px) {
  /* --stick-top is set by site.js: 24px when the panel fits on screen, otherwise negative so its bottom
     (and the Book a room button) stays in view on shorter windows */
  .options-card { position: sticky; top: var(--stick-top, 24px); }
}
.options-card { gap: 12px; padding: 24px 26px; }
.options-card h2 { font-size: 1.5rem; }
.options-card fieldset { gap: 6px; }
.options-card legend { margin-bottom: 6px; }

/* Room options panel: academic year, tenancy length, floor */
.options-card fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; }
.options-card legend { color: var(--nest-sea-glass); padding: 0; margin-bottom: 10px; }
.opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.opt-stack { display: grid; gap: 8px; }
.opt-pill, .opt-card { position: relative; cursor: pointer; }
.opt-pill input, .opt-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opt-pill span { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 16px; border-radius: var(--nest-radius-pill); box-shadow: inset 0 0 0 1.5px rgba(243, 235, 221, .45); font-weight: 600; font-size: .9375rem; transition: background-color .2s, color .2s; }
.opt-card span { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-radius: 12px; box-shadow: inset 0 0 0 1.5px rgba(243, 235, 221, .45); transition: background-color .2s, color .2s; }
.opt-card strong { font-size: 1.0625rem; }
.opt-card small { font-size: .875rem; color: var(--nest-sea-glass); }
.opt-pill:hover span, .opt-card:hover span { box-shadow: inset 0 0 0 1.5px var(--nest-sand); }
.opt-pill input:checked + span, .opt-card input:checked + span { background: var(--nest-sand); color: var(--nest-petrol); box-shadow: none; }
.opt-card input:checked + span small { color: var(--nest-petrol); }
.opt-pill input:focus-visible + span, .opt-card input:focus-visible + span { outline: 3px solid var(--nest-sand); outline-offset: 3px; }
.opt-summary { display: grid; gap: 4px; padding: 14px 0 2px; border-top: 1px solid rgba(243, 235, 221, .25); font-weight: 600; }
.opt-summary .nest-label { color: var(--nest-sea-glass); }
.options-card .opt-note { color: var(--nest-sea-glass); font-size: .8125rem; }
.form-card .mock-flag.full { grid-column: 1 / -1; margin-top: 0; }

/* Booking form (front end only) */
.form-layout { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(32px, 4vw, 64px); align-items: start; }
.form-card { background: var(--nest-cream); border-radius: var(--nest-radius-card); padding: clamp(24px, 4vw, 48px); }
.form-card fieldset { border: 0; padding: 0; margin: 0 0 28px; }
.form-card legend { font-family: var(--nest-font-heading); font-weight: 600; font-size: 1.5rem; margin-bottom: 14px; padding: 0; }
.choice-row { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-flex; align-items: center; min-height: 48px; padding: 12px 22px; border-radius: var(--nest-radius-pill); box-shadow: inset 0 0 0 1.5px var(--nest-petrol); font-weight: 600; cursor: pointer; transition: background-color .2s, color .2s; }
.choice input:checked + span { background: var(--nest-petrol); color: var(--nest-sand); }
.choice input:focus-visible + span { outline: 3px solid var(--nest-deep-clay); outline-offset: 3px; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.fields .full { grid-column: 1 / -1; }
.form-card label.f { display: grid; gap: 6px; font-weight: 600; font-size: .9375rem; }
.form-card input[type=text], .form-card input[type=email], .form-card input[type=tel], .form-card select, .form-card textarea {
  font: 400 1rem/1.4 var(--nest-font-body); color: var(--nest-petrol); background: var(--nest-sand); border: 1.5px solid transparent; border-radius: 12px; padding: 13px 14px; width: 100%; }
.form-card select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173F47' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 20px; padding-right: 40px; }
.form-card input:focus, .form-card select:focus, .form-card textarea:focus { outline: none; border-color: var(--nest-petrol); box-shadow: 0 0 0 3px var(--nest-sea-glass); }
.form-card .hint { font-weight: 400; color: var(--nest-muted); font-size: .875rem; }
.check-line { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.check-line input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--nest-petrol); flex: 0 0 auto; }
.form-status { margin-top: 16px; font-weight: 600; min-height: 1.5em; }
.aside-card { background: var(--nest-sea-glass); border-radius: var(--nest-radius-card); padding: 28px; display: grid; gap: 16px; position: sticky; top: 24px; }
.aside-card h2 { font-size: 1.5rem; }

/* Callout card */
.callout { background: var(--nest-cream); border-radius: var(--nest-radius-card); border-top-left-radius: clamp(64px, 10vw, 140px); padding: clamp(32px, 6vw, 72px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.callout .head { margin-bottom: 0; }
.callout p:not(.nest-label) { color: var(--nest-muted); font-size: 1.0625rem; }
.callout p:not(.nest-label) + p { margin-top: 12px; }

/* Rooms listing filter */
.filter { background: var(--nest-cream); border-radius: var(--nest-radius-card); padding: 16px 20px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 16px 24px; align-items: center; }
.filter label { display: block; }
.filter label + label { border-left: 1px solid var(--nest-line); padding-left: 20px; }
.filter .nest-label { color: var(--nest-muted); display: block; margin-bottom: 2px; }
.filter select { appearance: none; width: 100%; border: 0; background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173F47' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right center / 20px; color: var(--nest-petrol); font: 500 1rem/1.3 var(--nest-font-body); padding: 2px 28px 2px 0; cursor: pointer; }
.filter-status { font-weight: 600; font-size: .9375rem; }
[data-room][hidden] { display: none !important; }

/* Room type grid: every room type visible at once, with tabs to narrow by category */
.rt-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.rt-tab { font: 600 .9375rem/1 var(--nest-font-body); padding: 12px 18px; min-height: 44px; border: 0; border-radius: var(--nest-radius-pill); background: var(--nest-cream); color: var(--nest-petrol); box-shadow: inset 0 0 0 1.5px var(--nest-line); cursor: pointer; transition: background-color .2s, color .2s; }
.rt-tab span { color: var(--nest-muted); font-weight: 500; margin-left: 4px; }
.rt-tab:hover { box-shadow: inset 0 0 0 1.5px var(--nest-petrol); }
.rt-tab[aria-pressed="true"] { background: var(--nest-petrol); color: var(--nest-sand); box-shadow: none; }
.rt-tab[aria-pressed="true"] span { color: var(--nest-sea-glass); }
.rt-tab:focus-visible { outline: 3px solid var(--nest-deep-clay); outline-offset: 3px; }
.rt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.rt-card { background: var(--nest-cream); border-radius: var(--nest-radius-card); overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease); }
.rt-card:hover { transform: translateY(-4px); box-shadow: 0 24px 40px -28px rgba(23, 63, 71, .55); }
.rt-card .photo { position: relative; display: block; aspect-ratio: 4 / 3; overflow: hidden; }
.rt-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.rt-card:hover .photo img { transform: scale(1.04); }
.rt-chip { position: absolute; left: 12px; bottom: 12px; background: var(--nest-cream); color: var(--nest-petrol); border-radius: var(--nest-radius-pill); padding: 6px 12px; font-weight: 600; font-size: .8125rem; }
.rt-card .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rt-card h3 { font-size: 1.375rem; }
.rt-card h3 a { color: inherit; text-decoration: none; }
.rt-card h3 a:hover { text-decoration: underline; text-underline-offset: 5px; }
.rt-card .muted { font-size: .9375rem; }
.rt-actions { margin-top: auto; padding-top: 12px; display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; }
.rt-actions .nest-button { padding: 12px 18px; min-height: 44px; font-size: .9375rem; }
.rt-link { font-weight: 600; font-size: .9375rem; text-underline-offset: 4px; }
.rt-card.is-match { box-shadow: 0 0 0 3px var(--nest-clay); }
/* Phones: compact row cards so every room type stays in view without a long scroll */
@media (max-width: 640px) {
  .rt-grid { gap: 12px; }
  .rt-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: stretch; }
  .rt-card .photo, .opt-open-door .rt-card .photo, .opt-neighbours .rt-card .photo, .opt-hybrid .rt-card .photo,
  .opt-neighbours .rt-card:nth-child(even) .photo, .opt-hybrid .rt-card:nth-child(even) .photo {
    aspect-ratio: auto; height: auto; align-self: stretch; min-height: 112px; margin: 8px 0 8px 8px; border-radius: 10px; border-top-left-radius: 48px; }
  .opt-open-door .rt-card .photo { border-radius: 56px 56px 10px 10px / 40px 40px 10px 10px; }
  .rt-chip { left: 6px; bottom: 6px; padding: 4px 8px; font-size: .75rem; }
  .rt-card .body { padding: 12px 14px; gap: 2px; }
  .rt-card .body .nest-label, .rt-card .muted { display: none; }
  .rt-card h3 { font-size: 1.1875rem; }
  .rt-actions { padding-top: 8px; gap: 6px 14px; }
  .rt-actions .nest-button { padding: 10px 14px; min-height: 40px; font-size: .875rem; }
}
/* Open Door: door-shaped photos inside each card */
.opt-open-door .rt-card .photo { margin: 14px 14px 0; border-radius: 50% 50% 12px 12px / 36% 36% 12px 12px; }
/* Neighbours and Hybrid: one large arched corner, alternating sides */
.opt-neighbours .rt-card .photo, .opt-hybrid .rt-card .photo { margin: 10px 10px 0; border-radius: 10px; border-top-left-radius: 64px; }
.opt-neighbours .rt-card:nth-child(even) .photo, .opt-hybrid .rt-card:nth-child(even) .photo { border-top-left-radius: 10px; border-top-right-radius: 64px; }

/* Home locations */
.loc-city { font-size: clamp(2rem, 3.4vw, 2.75rem); margin: 4px 0 8px; }
.loc-meta { font-weight: 600; margin-top: 10px; }
.loc-photo { display: block; }
.nb-place .photo { display: block; }

/* Property card (location page) */
.prop-card { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); background: var(--nest-cream); border-radius: var(--nest-radius-card); overflow: hidden; align-items: stretch; }
.prop-card .photo { display: block; border-top-left-radius: clamp(64px, 10vw, 140px); overflow: hidden; min-height: 360px; }
.prop-card .photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.prop-card:hover .photo img { transform: scale(1.03); }
.prop-card .body { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.prop-card h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); }
.prop-card h3 a { color: inherit; text-decoration: none; }
.prop-card h3 a:hover { text-decoration: underline; text-underline-offset: 6px; }
.prop-card .checks { margin-top: 6px; }

/* About */
.about-logo { width: min(280px, 70%); margin-top: 8px; }
.pillars--two { grid-template-columns: 1fr 1fr; }

/* CTA centring */
.od-cta .btn-row, .nb-cta .btn-row { justify-content: center; }
.od-cta .head-arch { margin: 0 auto 24px; display: block; }

/* Footer */
.site-footer { border-top: 1px solid rgba(243, 235, 221, .18); }
.site-footer .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; padding: 64px 0 40px; }
.site-footer h2 { font: 600 var(--nest-text-label)/1.4 var(--nest-font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--nest-sea-glass); margin-bottom: 18px; }
.footer-brand p { margin-top: 18px; }
.site-footer h2.gap { margin-top: 28px; }
.footer-base { border-top: 1px solid rgba(243, 235, 221, .2); padding: 24px 0 40px; font-size: .875rem; display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; }
.footer-base .legal { display: flex; gap: 18px; flex-wrap: wrap; }

@media (max-width: 1100px) {
  .rt-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .features--5, .features--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .features--5 li:last-child { grid-column: 1 / -1; }
  .features--5 li { flex-direction: row; }
}
@media (max-width: 960px) {
  .split, .split--even, .room-detail, .form-layout, .faq-layout, .callout, .prop-card { grid-template-columns: 1fr; }
  .prop-card .photo { min-height: 0; aspect-ratio: 16 / 10; }
  .rt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter { grid-template-columns: 1fr 1fr; }
  .filter label:nth-child(3) { border-left: 0; padding-left: 0; }
  .filter-status { grid-column: 1 / -1; }
  .points { grid-template-columns: 1fr; gap: 24px; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .book-card, .aside-card, .faq-nav { position: static; }
  .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .pillars, .pillars--two, .fields, .filter, .features--5, .features--3, .features--2, .rt-grid { grid-template-columns: 1fr; }
  .filter label + label { border-left: 0; padding-left: 0; border-top: 1px solid var(--nest-line); padding-top: 12px; }
  .compare th, .compare td { padding: 12px; font-size: .9375rem; }
  .other-room { grid-template-columns: 1fr; }
  .other-room img { min-height: 0; aspect-ratio: 16 / 10; }
  .room-gallery .main { border-top-left-radius: 72px; }
  .btn-row .nest-button { flex: 1 1 auto; }
}
