:root {
  color-scheme: light;
  font-family: Poppins, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #ffffff;
  color: #2e2e2e;
  font-synthesis: none;
  --ink: #2e2e2e;
  --brown: #483b2f;
  --brown-dark: #281c13;
  --gold: #cc8613;
  --gold-dark: #a96f10;
  --taupe: #e9e4df;
  --paper: #ffffff;
  --soft: #f7f5f1;
  --line: #e4dfd8;
  --muted: #6c6761;
  --site-header-height: 0px;
  --sticky-header-height: 0px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; overflow-x: hidden; background: #ffffff; }
button, input, select { font: inherit; letter-spacing: 0; }
button, select { cursor: pointer; }
body, button, input, select, textarea { font-family: Poppins, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: white;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.utility-bar {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: calc(5px + env(safe-area-inset-top)) clamp(18px, 4vw, 58px) 5px;
  background: var(--taupe);
  color: #332d28;
  font-size: 15px;
  font-weight: 700;
}
.utility-actions { display:flex; align-items:center; gap:18px; flex-wrap:wrap; }
.top-link-bar {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: clamp(14px, 1.8vw, 28px);
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
}
.top-link-bar a:hover { color: var(--gold-dark); }
.utility-location a { color: var(--gold-dark); text-decoration: underline; text-underline-offset: 3px; }
.phone-link { color:#2f2f2f; font-size:18px; font-weight:800; white-space:nowrap; }
.quote-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 0 16px 0 24px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(#d99722, var(--gold));
  color: #15110c;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 3px 8px rgba(74,47,9,.26);
  white-space:nowrap;
}
.quote-button span {
  width: 34px;
  height: 34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#070707;
  color:white;
  font-size:20px;
  line-height:1;
}
.quote-button.small { min-height:38px; padding-left:20px; font-size:14px; }
.quote-button.small span { width:28px; height:28px; font-size:17px; }
.quote-button.secondary { background: linear-gradient(#e0a143, #cf8b1c); }

.main-nav {
  min-height: 68px;
  display:grid;
  grid-template-columns:minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items:center;
  gap:28px;
  padding: 8px clamp(18px, 4vw, 58px);
  background:white;
  box-shadow: 0 1px 0 rgba(0,0,0,.08);
}
.logo-link { display:block; flex:0 0 auto; }
.main-nav::after { content:""; }
.brand-logo { width:min(172px, 22vw); height:auto; max-height:52px; object-fit:contain; object-position:left center; display:block; mix-blend-mode:multiply; }
.header-lookbook-title {
  margin: 0;
  color: #211a14;
  font-size: clamp(24px, 3.2vw, 36px);
  line-height: 1;
  letter-spacing: 0;
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
}
.phone-link:hover { color:var(--gold-dark); }
.lookbook-sections {
  min-height: 40px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  overflow-x: auto;
  border-top: 1px solid #eee9e3;
  border-bottom: 1px solid var(--line);
  background: #fff;
  scrollbar-width: none;
}
.lookbook-sections::-webkit-scrollbar { display: none; }
.lookbook-sections a {
  min-width: 150px;
  display: grid;
  place-items: center;
  padding: 0 22px;
  border-right: 1px solid var(--line);
  color: #544c45;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.lookbook-sections a:first-child { border-left: 1px solid var(--line); }
.lookbook-sections a:hover { color: var(--gold-dark); }
.lookbook-sections a.active {
  background: #f7f1e7;
  color: var(--gold-dark);
  box-shadow: inset 0 -3px 0 var(--gold);
}
.offline-status {
  display: inline-flex;
  align-items:center;
  min-height:28px;
  padding: 5px 9px;
  border: 1px solid rgba(72,59,47,.2);
  border-radius: 999px;
  background: white;
  color: #4d4238!important;
  font-size: 10px!important;
  font-weight:800;
  text-transform:uppercase;
  white-space:nowrap;
  cursor:pointer;
  opacity:0;
}
.offline-status:not(:disabled):hover { border-color: var(--gold); color: var(--gold-dark)!important; }
.offline-status:disabled { cursor:default; opacity:0; }
.offline-status[data-ready="true"] {
  border-color: rgba(204,134,19,.42);
  background: #fff4dc;
}

main { padding: 0 clamp(18px, 3.5vw, 54px) 64px; background:#fff; }
.browse-controls {
  position: sticky;
  top: var(--sticky-header-height);
  z-index: 24;
  margin: 0 calc(clamp(18px, 3.5vw, 54px) * -1) 24px;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid rgba(0,0,0,.1);
  box-shadow: 0 10px 26px rgba(0,0,0,.08);
  backdrop-filter: blur(14px);
}
.room-rail {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0 clamp(18px, 3.5vw, 54px);
  overflow-x: auto;
  scrollbar-width: thin;
  border-bottom: 1px solid rgba(0,0,0,.1);
}
.room-rail button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-right: 1px solid #ded8cf;
  border-radius: 0;
  background: transparent;
  color: #2f2f2f;
  font-size: 13px;
  font-weight: 700;
  box-shadow: none;
}
.room-rail button span {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-width: 22px;
  height: 22px;
  margin-left: 7px;
  border-radius: 999px;
  background: #f0ece6;
  color: #4b433b;
  font-size: 12px;
}
.room-rail button.active {
  background: #f7f1e7;
  color: var(--gold-dark);
}
.room-rail button.active span { background: var(--gold); color: white; }
.filters {
  display: grid;
  grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(130px, 1fr)) auto;
  gap: 8px;
  align-items: end;
  margin: 0;
  padding: 10px clamp(18px, 3.5vw, 54px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.owner-filters { grid-template-columns: minmax(210px, 1.6fr) repeat(5, minmax(120px, 1fr)) auto; }
.filters label { display: grid; gap: 6px; min-width: 0; }
.filters label > span { font-size: 11px; font-weight: 750; text-transform: uppercase; color: #5f5750; }
.filters input, .filters select {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid #d7d1c9;
  border-radius: 4px;
  background: white;
  color: var(--ink);
}
.filters input:focus, .filters select:focus { outline: 3px solid rgba(204,134,19, 0.25); border-color: var(--gold); }
.reset-button { min-height: 40px; padding: 0 16px; border: 1px solid #d0c8bd; border-radius: 4px; background: transparent; color: var(--gold-dark); font-weight: 760; }

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 22px;
  padding: 8px clamp(18px, 3.5vw, 54px) 10px;
  background: #faf8f4;
}
.section-heading p { margin: 0; color: #675f58; }
.section-heading h2 { margin: 0; font-size: clamp(20px, 2.1vw, 28px); line-height: 1.04; letter-spacing: 0; font-weight:850; }
#active-filter-summary { margin-top:6px; color: var(--gold-dark); font-size: 12px; font-weight: 850; text-transform: uppercase; }
#result-count { margin-right:10px; color:#2e2e2e; font-size:14px; font-weight:800; }
#gallery-note { font-size: 14px; font-weight: 700; text-align: right; }
.gallery-controls { display:grid; justify-items:end; gap:9px; }
.view-toggle { display:inline-grid; grid-template-columns:1fr 1fr; padding:3px; border:1px solid #ddd6cd; border-radius:999px; background:white; box-shadow:0 1px 4px rgba(0,0,0,.08); }
.view-toggle button { min-height:34px; padding:0 15px; border:0; border-radius:999px; background:transparent; color:#4f473f; font-size:13px; font-weight:850; }
.view-toggle button.active { background:var(--gold); color:white; box-shadow:0 1px 3px rgba(25,31,28,.18); }
.gallery { display: grid; grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 14px; }
.photo-card { appearance: none; display: grid; grid-template-rows: auto 1fr; align-content: start; grid-column: span 4; min-width: 0; border: 1px solid rgba(50, 39, 29, 0.12); border-radius: 4px; overflow: hidden; background: #fff; box-shadow: 0 8px 24px rgba(40,30,20,0.10); color: inherit; text-align: left; padding: 0; transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease; }
.photo-card:first-child { grid-column: span 4; grid-row: span 1; }
.photo-card:focus-visible { outline: 4px solid rgba(204,134,19,.34); outline-offset: 3px; }
.photo-card:hover,.photo-card:focus-visible { transform: translateY(-2px); border-color: rgba(204,134,19,.32); box-shadow: 0 18px 34px rgba(40,30,20,0.16); }
.photo-card:hover .card-image, .photo-card:focus-visible .card-image { transform: scale(1.018); }
.card-image-wrap { aspect-ratio: 4 / 3; overflow: hidden; background: #e3e1dc; }
.photo-card:first-child .card-image-wrap { aspect-ratio: 4 / 3; }
.card-image { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 180ms ease; }
.card-copy { min-height: 116px; padding: 12px 13px 13px; display: grid; align-content: start; gap: 6px; }
.card-room { margin: 0; color: var(--gold-dark); font-size: 12px; font-weight: 850; text-transform: uppercase; }
.card-copy h2 { margin: 0; font-size: 17px; line-height: 1.15; letter-spacing: 0; color:#202020; }
.photo-card:first-child .card-copy h2 { font-size: 17px; }
.card-caption { margin: 0; color: #5f5b56; font-size: 13px; line-height: 1.32; }
.feature-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 3px; }
.feature-strip span { padding: 4px 7px; border-radius: 999px; background: #f3eee7; color: #5b5046; font-size: 11px; font-weight: 760; }
.owner-card .card-copy { min-height: 134px; }
.owner-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.status { padding: 3px 7px; border-radius: 3px; font-size: 11px; font-weight: 800; background: #e4e8e5; color: #44504a; }
.status.approved { background: #e5edbd; color: #46531a; }
.status.flagged { background: #f4d3ce; color: #773a31; }
.status.review { background: #eee0ba; color: #6c5316; }
.empty-state { margin: 70px 0; text-align: center; color: #66706a; }

.site-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  padding:34px clamp(18px, 4vw, 58px);
  border-top:1px solid var(--line);
  background:#f7f4ef;
}
.site-footer img { width:180px; max-width:38vw; mix-blend-mode:multiply; }
.site-footer nav { display:flex; align-items:center; justify-content:flex-end; gap:22px; flex-wrap:wrap; color:#302a24; font-size:14px; font-weight:700; }
.site-footer a:hover { color:var(--gold-dark); }

.viewer { width: min(1260px, calc(100vw - 28px)); height: min(900px, calc(100dvh - 28px)); padding: 0; border: 0; border-radius: 7px; overflow: hidden; background: #111714; color: white; }
.viewer::backdrop { background: rgba(7, 11, 9, 0.88); }
.viewer figure { margin: 0; height: 100%; display: grid; grid-template-columns: minmax(0, 2.35fr) minmax(310px, 0.75fr); }
.viewer figure > img { width: 100%; height: 100%; min-height: 0; object-fit: contain; background: #090d0b; }
.viewer figcaption { padding: 74px 32px 34px; overflow-y: auto; background: #1f2c28; border-left: 1px solid rgba(255,255,255,.08); }
.owner-viewer figcaption { background: #22272a; }
.viewer-room { color: #dce8a8; font-size: 12px; font-weight: 800; text-transform: uppercase; }
.owner-viewer .viewer-room { color: #f1b6ad; }
.viewer h2 { margin: 8px 0 18px; font-size: clamp(30px, 3vw, 44px); line-height: 1.02; letter-spacing: 0; }
.viewer figcaption > p:not(.viewer-room) { color: #dfe5e1; line-height: 1.55; }
.viewer-counter { margin-top: 22px!important; color: #aeb8b1!important; font-size: 13px; font-weight: 800; text-transform: uppercase; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.tag { border: 1px solid #728079; border-radius: 3px; padding: 6px 9px; color: #eef2ef; font-size: 12px; }
.icon-button { position: absolute; z-index: 2; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(19, 27, 23, 0.82); color: white; font-size: 28px; line-height: 1; }
.close-button { top: 16px; right: 16px; }
.previous-button { left: 14px; top: calc(50% - 23px); }
.next-button { right: calc(28% + 14px); top: calc(50% - 23px); }

@media (max-width: 1050px) {
  .utility-bar { min-height:38px; align-items:center; flex-direction:row; padding-block:4px; }
  .top-link-bar { gap: 13px; font-size: 11px; }
  .utility-actions { margin-left:auto; gap:10px; flex-wrap:nowrap; }
  .quote-button.small { min-height:32px; padding-left:14px; font-size:12px; }
  .quote-button.small span { width:24px; height:24px; font-size:15px; }
  .phone-link { font-size:15px; }
  .main-nav { min-height:54px; grid-template-columns:minmax(118px, 1fr) auto minmax(118px, 1fr); gap:14px; }
  .brand-logo { width:138px; max-width:20vw; max-height:42px; }
  .header-lookbook-title { font-size: clamp(22px, 3.3vw, 30px); }
  .filters, .owner-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .search-field { grid-column: span 2; }
  .browse-controls { position: static; }
  .gallery { grid-template-columns: repeat(16, minmax(0, 1fr)); gap: 12px; }
  .photo-card, .photo-card:first-child { grid-column: span 4; }
  .feature-strip { display:none; }
  .card-copy { min-height: 98px; }
  .card-caption {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
}

@media (max-width: 900px) {
  .offline-status { display:none; }
  .top-link-bar { gap:11px; font-size:10px; }
  .quote-button.small { padding-inline:10px 7px; }
}

@media (min-width: 900px) and (max-width: 1050px) {
  .filters, .owner-filters {
    grid-template-columns: minmax(220px, 1.6fr) repeat(4, minmax(96px, 1fr)) auto;
  }
  .search-field { grid-column: auto; }
}

@media (max-width: 720px) {
  .utility-bar { font-size:13px; padding-inline:20px; }
  .top-link-bar { width:100%; overflow-x:auto; gap:18px; padding:4px 0; font-size:11px; scrollbar-width:none; }
  .top-link-bar::-webkit-scrollbar { display:none; }
  .utility-actions { display:none; }
  .main-nav { min-height:62px; grid-template-columns:minmax(108px, 1fr) auto minmax(108px, 1fr); padding:8px 18px; }
  .brand-logo { width:120px; max-width:34vw; }
  .header-lookbook-title { max-width:45vw; font-size:20px; line-height:1.03; white-space:normal; }
  .lookbook-sections { min-height: 38px; justify-content: flex-start; }
  .lookbook-sections a { min-width: auto; flex: 1 0 auto; padding-inline: 18px; font-size: 12px; }
  .browse-controls { position: static; margin-bottom: 16px; }
  .filters, .owner-filters { grid-template-columns: 1fr 1fr; margin-top:0; }
  .search-field { grid-column: 1 / -1; }
  .reset-button { width: 100%; }
  .section-heading { align-items: start; display: block; }
  .gallery-controls { justify-items:start; margin-top:12px; }
  #gallery-note { margin-top: 0; text-align: left; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .photo-card, .photo-card:first-child { grid-column: span 1; }
  .photo-card:first-child { grid-column: 1 / -1; }
  .card-copy { min-height: 118px; padding: 12px; }
  .card-copy h2 { font-size: 17px; }
  .photo-card:first-child .card-copy h2 { font-size: 17px; }
  .card-caption { font-size: 13px; }
  .feature-strip { display: none; }
  .site-footer { align-items:flex-start; flex-direction:column; }
  .site-footer nav { justify-content:flex-start; }
  .viewer { width: 100vw; height: 100dvh; max-width: none; max-height: none; border-radius: 0; }
  .viewer figure { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .viewer figcaption { max-height: 42dvh; padding: 22px 22px 28px; }
  .next-button { right: 14px; }
}

@media (max-width: 440px) {
  :root { --header-height: 164px; }
  .gallery { grid-template-columns: 1fr; }
  .photo-card, .photo-card:first-child { grid-column: 1 / -1; }
  .filters, .owner-filters { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) { .card-image { transition: none; } }
