@font-face {
  font-family: Manrope;
  src: url('/fonts/manrope-normal-400.ttf');
}
@font-face {
  font-family: Manrope;
  src: url('/fonts/manrope-normal-600.ttf');
  font-weight: 600;
}
@font-face {
  font-family: Cormorant;
  src: url('/fonts/cormorant-garamond-normal-500.ttf');
  font-weight: 500;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--es-paper);
  color: var(--es-ink);
  font: 15px/1.6 var(--es-body);
}
a {
  color: inherit;
}
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 3px solid var(--es-focus);
  outline-offset: 3px;
}
.site-header {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--es-line);
}
.site-header nav {
  display: flex;
  gap: 25px;
  flex-wrap: wrap;
}
.site-header a {
  text-decoration: none;
}
.logo {
  font-size: 24px;
  font-weight: 600;
}
.logo span {
  color: var(--es-accent);
  margin-left: 5px;
}
.wrap {
  max-width: var(--es-container);
  margin: auto;
  padding: 0 32px;
}
.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7%;
  align-items: center;
  padding: 60px 0;
}
.hero h1,
h1,
h2 {
  font-family: var(--es-display);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.hero h1 {
  font-size: clamp(52px, 6vw, 88px);
  max-width: 600px;
  margin: 20px 0;
}
.intro {
  max-width: 420px;
  font-size: 17px;
}
.quiet {
  color: var(--es-muted);
  margin-top: 35px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.12em;
  font-weight: 600;
  color: var(--es-muted);
}
.hero-art {
  min-height: 440px;
  border-radius: 130px 10px 130px 10px;
  background: linear-gradient(145deg, #d6e0d2, #849b89);
  display: flex;
  align-items: flex-end;
  padding: 36px;
  color: var(--es-ink);
  font-size: 11px;
  letter-spacing: 0.14em;
}
.search-panel {
  background: var(--es-surface);
  border: 1px solid var(--es-line);
  border-radius: var(--es-panel-radius);
  padding: 32px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}
.search-panel h2,
.guidance h2 {
  font-size: 42px;
  margin: 8px 0;
}
.search-panel p {
  margin: 8px 0;
}
form {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}
label {
  display: grid;
  gap: 6px;
  font-weight: 600;
}
input,
button {
  font: inherit;
  min-height: 48px;
  border-radius: 6px;
  padding: 10px 14px;
}
input {
  border: 1px solid var(--es-border-strong);
  background: white;
}
button {
  border: 0;
  background: var(--es-forest);
  color: white;
  cursor: pointer;
}
.guidance {
  padding: 90px 0;
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin: 35px 0;
}
.steps span {
  font: 48px var(--es-display);
  color: var(--es-accent);
}
.steps h3 {
  font-size: 16px;
}
.steps p {
  color: var(--es-muted);
}
footer {
  background: var(--es-forest);
  color: var(--es-on-dark);
  padding: 35px max(32px, calc((100vw - 1216px) / 2));
}
.catalog-heading {
  padding: 55px 0 25px;
}
.catalog-heading h1 {
  font-size: clamp(45px, 5vw, 70px);
  margin: 10px 0;
}
.catalog-search {
  padding: 26px;
  background: var(--es-surface);
  border: 1px solid var(--es-line);
  border-radius: var(--es-panel-radius);
}
.catalog-section {
  padding: 30px 0;
}
.catalog-section h2 {
  font-size: 38px;
}
.catalog-section ul {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
}
.catalog-section article {
  background: var(--es-surface);
  border: 1px solid var(--es-line);
  border-radius: var(--es-panel-radius);
  overflow: hidden;
}
.card-placeholder {
  height: 170px;
  background: linear-gradient(140deg, #dce6d9, #b7c9b8);
  display: flex;
  align-items: end;
  padding: 18px;
  color: var(--es-muted);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.card-body {
  padding: 22px;
}
.card-body h3 {
  margin: 0;
  font-size: 18px;
}
.card-body button {
  width: 100%;
}
@media (max-width: 700px) {
  .site-header {
    padding-inline: 0;
    gap: 15px;
    align-items: flex-start;
  }
  .site-header nav {
    gap: 10px 16px;
    font-size: 13px;
  }
  .wrap {
    padding: 0 20px;
  }
  .hero {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 40px 0;
  }
  .hero-art {
    min-height: 240px;
    border-radius: 70px 8px 70px 8px;
  }
  .search-panel {
    display: block;
    padding: 22px;
  }
  .search-panel form {
    margin-top: 20px;
  }
  .steps {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  .guidance {
    padding: 60px 0;
  }
}
.hero-art {
  position: relative;
  overflow: hidden;
  padding: 0;
}
.hero-art img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  inset: 0;
}
.hero-art img[hidden] {
  display: none;
}
.hero-caption {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 24px;
  background: linear-gradient(transparent, #172f27dd);
  color: white;
}
.hero-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}
.hero-controls button {
  background: var(--es-surface);
  color: var(--es-ink);
  min-width: 44px;
  min-height: 44px;
}
.empty-state {
  padding: 30px;
  background: var(--es-tint);
  border-radius: var(--es-panel-radius);
}
.empty-state a {
  font-weight: 600;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
/* UI-01.1: editorial composition */
.site-header {
  height: 84px;
  gap: 32px;
  padding-block: 0;
}
.logo {
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  letter-spacing: -0.07em;
}
.logo span {
  color: inherit;
  margin: 0;
}
.logo-mark {
  display: inline-block;
  width: 21px;
  height: 21px;
  background: var(--es-forest);
  border-radius: 50% 50% 50% 3px;
  transform: rotate(-45deg);
  margin-right: 10px;
}
.desktop-nav {
  margin-right: auto;
}
.header-actions {
  display: flex;
  gap: 24px;
  font-size: 13px;
}
.mobile-menu {
  display: none;
}
.site-header nav {
  font-size: 13px;
}
.hero {
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(36px, 5vw, 76px);
  padding: 36px 0 24px;
}
.hero h1 {
  max-width: 9ch;
  font-size: clamp(58px, 6.1vw, 88px);
  line-height: 0.96;
}
.hero .eyebrow,
.quiet {
  display: none;
}
.hero-art {
  min-height: clamp(350px, 33vw, 470px);
  border-radius: clamp(85px, 8vw, 105px) 13px clamp(80px, 7vw, 95px) 13px;
}
.search-panel {
  background: var(--es-tint);
  padding: 24px;
  display: block;
}
.search-panel form {
  background: var(--es-surface);
  border-radius: var(--es-control-radius);
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: end;
}
.search-panel label {
  min-width: min(100%, 260px);
  font-size: 13px;
  color: var(--es-muted);
}
.catalog-heading {
  padding: 48px 0 36px;
  border-bottom: 1px solid var(--es-line);
}
.breadcrumbs {
  font-size: 12px;
  color: var(--es-muted);
}
.catalog-command {
  background: var(--es-tint);
  border: 1px solid var(--es-line);
  border-radius: var(--es-panel-radius);
  margin: 28px 0;
  padding: 20px 28px;
}
.catalog-command p {
  margin: 0;
}
.catalog-layout {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  gap: 32px;
}
.filter-panel {
  background: var(--es-tint);
  border: 1px solid var(--es-line);
  border-radius: var(--es-panel-radius);
  padding: 24px;
  height: max-content;
}
.filter-panel h2 {
  font: 600 17px var(--es-body);
  margin: 0 0 20px;
}
.catalog-search {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--es-line);
  border-radius: 0;
  padding: 20px 0 0;
  display: grid;
  gap: 14px;
}
.catalog-search label {
  font-size: 13px;
}
.catalog-search input {
  width: 100%;
}
.catalog-search small,
.results-hint {
  font-size: 12px;
  color: var(--es-muted);
}
.catalog-search button {
  width: 100%;
}
.catalog-search a {
  font-size: 13px;
}
.catalog-section {
  padding: 0 0 36px;
}
.catalog-section h2 {
  font-size: 34px;
}
.catalog-section ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}
.card-placeholder {
  height: clamp(210px, 21vw, 300px);
}
.card-body h3 {
  font: 500 32px/1.08 var(--es-display);
}
.space-choice {
  border-top: 1px solid var(--es-line);
  padding-top: 14px;
}
.space-choice small {
  color: var(--es-muted);
}
.empty-state {
  text-align: center;
  padding: clamp(48px, 7vw, 96px) 24px;
}
.empty-state h3 {
  font: 500 36px/1.1 var(--es-display);
}
.empty-symbol {
  display: inline-grid;
  place-items: center;
  background: #d1dfd0;
  border-radius: 50%;
  width: 55px;
  height: 55px;
  font-size: 28px;
}
@media (max-width: 900px) {
  .catalog-layout {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .catalog-section ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .wrap {
    padding-inline: 24px;
  }
}
@media (max-width: 600px) {
  .site-header {
    height: 72px;
    padding: 0;
  }
  .desktop-nav,
  .header-actions {
    display: none !important;
  }
  .mobile-menu {
    display: block;
    position: relative;
  }
  .mobile-menu summary {
    cursor: pointer;
    list-style: none;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 6px;
  }
  .mobile-menu summary::-webkit-details-marker {
    display: none;
  }
  .mobile-menu nav {
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 5;
    display: grid;
    gap: 0;
    min-width: 200px;
    background: var(--es-surface);
    border: 1px solid var(--es-line);
    border-radius: var(--es-control-radius);
    box-shadow: 0 18px 44px #1c34231a;
  }
  .mobile-menu nav a {
    padding: 12px 16px;
  }
  .wrap {
    padding-inline: 18px;
  }
  .wrap:has(.hero) {
    display: flex;
    flex-direction: column;
  }
  .hero {
    display: contents;
  }
  .hero-copy {
    order: 0;
    padding-top: 28px;
  }
  .hero-copy h1 {
    font-size: clamp(48px, 12vw, 64px);
    max-width: 10ch;
  }
  .search-panel {
    order: 1;
    margin-top: 24px;
    padding: 14px;
  }
  .search-panel form {
    margin: 0;
    padding: 14px;
    display: grid;
  }
  .search-panel label {
    min-width: 0;
  }
  .hero-art {
    order: 2;
    margin-top: 28px;
    min-height: 320px;
    border-radius: 75px 9px 75px 9px;
  }
  .guidance {
    order: 3;
  }
  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .catalog-section ul {
    grid-template-columns: 1fr;
  }
  .catalog-heading {
    padding-top: 30px;
  }
  .catalog-command {
    margin: 20px 0;
  }
  .filter-panel {
    padding: 20px;
  }
}
select {
  font: inherit;
  min-height: 48px;
  border: 1px solid var(--es-border-strong);
  background: var(--es-surface);
  border-radius: 6px;
  padding: 10px 14px;
  max-width: 100%;
}
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--es-focus);
  outline-offset: 3px;
}
.reference-filters {
  display: grid;
  gap: 16px;
  border-top: 1px solid var(--es-line);
  margin-top: 20px;
  padding-top: 20px;
}
.reference-filters label {
  font-size: 13px;
}
.reference-filters select {
  width: 100%;
}
.reference-filters button {
  width: 100%;
}
.search-panel form {
  gap: 18px;
}
.search-panel label {
  flex: 1;
  min-width: 160px;
}
.reference-filters fieldset {
  border: 0;
  border-top: 1px solid var(--es-line);
  padding: 14px 0 0;
  margin: 0;
  min-width: 0;
}
.reference-filters legend {
  font-weight: 600;
  font-size: 13px;
  padding: 0 0 8px;
}
.reference-filters fieldset label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
  padding: 3px 0;
}
.reference-filters input[type='checkbox'] {
  min-height: 0;
  width: 17px;
  height: 17px;
  padding: 0;
  accent-color: var(--es-forest);
}
.reference-filters [role='status'] {
  font-size: 12px;
  color: var(--es-error);
}
.price-filters {
  display: grid;
  gap: 14px;
  border-top: 1px solid var(--es-line);
  margin-top: 20px;
  padding-top: 20px;
}
.price-filters h3 {
  font-size: 16px;
  margin: 0;
}
.price-filters label {
  font-size: 13px;
}
.price-filters input,
.price-filters select {
  width: 100%;
}
.card-location {
  font-size: 12px;
  color: var(--es-muted);
}
.site-footer {
  background: var(--es-forest);
  color: var(--es-on-dark);
  padding: 52px 32px;
}
.footer-inner {
  max-width: 1216px;
  margin: auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.footer-inner p {
  max-width: 30ch;
  color: #d6e0d2;
  font-size: 13px;
}
.footer-inner nav {
  display: grid;
  align-content: start;
  gap: 8px;
}
.footer-inner a {
  text-decoration: none;
}
.footer-inner strong {
  font-size: 13px;
}
.footer-brand {
  font-size: 24px;
  font-weight: 600;
}
.error-page {
  padding: clamp(70px, 12vw, 150px) 0;
  min-height: 50vh;
}
.error-page h1 {
  font-size: clamp(44px, 5vw, 70px);
  max-width: 16ch;
}
.error-page div {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 30px;
}
.error-page a {
  font-weight: 600;
}
@media (max-width: 600px) {
  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .site-footer {
    padding: 40px 18px;
  }
}
@font-face {
  font-family: Manrope;
  src: url('/fonts/manrope-normal-500.ttf');
  font-weight: 500;
}
@font-face {
  font-family: Manrope;
  src: url('/fonts/manrope-normal-700.ttf');
  font-weight: 700;
}
@font-face {
  font-family: Cormorant;
  src: url('/fonts/cormorant-garamond-italic-500.ttf');
  font-weight: 500;
  font-style: italic;
}
.filter-panel summary {
  display: none;
  font-weight: 600;
  cursor: pointer;
}
.search-panel fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  flex: 1;
}
.search-panel legend {
  font-size: 13px;
  font-weight: 600;
  color: var(--es-muted);
}
.search-panel fieldset label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-weight: 400;
  font-size: 13px;
}
.search-panel input[type='checkbox'] {
  width: 17px;
  height: 17px;
  min-height: 0;
  padding: 0;
  accent-color: var(--es-forest);
}
@media (max-width: 600px) {
  .filter-panel summary {
    display: list-item;
    min-height: 44px;
  }
  .filter-panel details[open] summary {
    margin-bottom: 12px;
  }
}
/* UI-01.2: original layer compatibility and editorial sections */
.site-header .header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  width: 100%;
  height: 100%;
  margin: auto;
}
.site-header .logo {
  flex-shrink: 0;
}
.site-header .desktop-nav {
  margin-right: auto;
}
.site-header .header-actions {
  margin-left: auto;
}
.site-footer {
  height: auto;
}
.site-footer .footer-main {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 48px;
}
.site-footer .footer-col {
  display: grid;
  align-content: start;
  gap: 8px;
}
.site-footer p,
.site-footer a,
.site-footer strong {
  color: var(--es-on-dark);
}
.site-footer .footer-bottom {
  margin-top: 38px;
  border-top: 1px solid var(--es-footer-line);
  padding-top: 20px;
}
.editorial-inspiration,
.home-page .section.soft {
  padding: clamp(44px, 6vw, 85px) 24px;
  border-radius: 12px;
}
.editorial-idea img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
}
.editorial-idea small,
.case-overview-photos small {
  display: block;
  font-size: 11px;
  color: var(--es-muted);
  line-height: 1.4;
  margin-top: 8px;
}
.editorial-idea h3,
.editorial-advice h3 {
  font: 500 30px/1.1 var(--es-display);
  margin: 12px 0;
}
.home-page .collection img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.home-page .collection-copy p,
.home-page .collection-copy h3 {
  color: white;
}
.case-overview-photos > div {
  min-width: 0;
}
.case-overview-photos img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: 8px;
}
.editorial-advice article {
  border-top: 1px solid var(--es-line);
  padding-top: 18px;
}
.selection-page,
.detail-page {
  min-height: 50vh;
  padding-block: 36px 70px;
}
.selection-page [data-results] {
  margin-top: 30px;
}
.owner-banner {
  margin-bottom: 70px;
}
.home-page .filter-panel details summary {
  font-size: 16px;
}
.home-page .catalog-section ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (max-width: 900px) {
  .site-header .header-inner {
    gap: 18px;
  }
  .editorial-inspiration .grid3,
  .editorial-advice.grid3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .site-header .header-inner {
    justify-content: space-between;
  }
  .site-footer .footer-main {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .editorial-inspiration .grid3,
  .editorial-advice.grid3,
  .home-page .catalog-section ul {
    grid-template-columns: 1fr;
  }
  .home-page .section.soft {
    padding: 32px 18px;
  }
  .home-page .case-overview-photos {
    grid-template-columns: 1fr 1fr;
  }
  .case-overview-photos img {
    height: 180px;
  }
  .selection-page,
  .detail-page {
    padding-block: 24px 50px;
  }
}
@media (max-width: 600px) {
  .home-page .filter-panel details.drawer-ready[open] {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 40;
    width: min(90vw, 390px);
    overflow-y: auto;
    padding: 24px;
    background: var(--es-surface);
    box-shadow: -15px 0 40px #1c342344;
  }
  .home-page .filter-panel details.drawer-ready[open] summary {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--es-surface);
    padding: 10px 0;
  }
}
.site-footer .footer-main {
  grid-template-columns: 2fr 1fr 1fr 1fr;
}
.editorial-visual .editorial-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.editorial-visual .editorial-photo[hidden] {
  display: none;
}
.hero-caption {
  align-self: end;
}
.home-page .editorial-hero .hero-controls {
  position: static;
}
.home-page .editorial-hero .search-panel {
  margin-top: 24px;
}
.home-page .editorial-hero .hero {
  padding: 0;
}
.editorial-visual .hero-controls span {
  color: white;
}
@media (max-width: 600px) {
  .site-footer .footer-main {
    grid-template-columns: 1fr;
  }
  .home-page .editorial-hero {
    display: flex;
    flex-direction: column;
  }
  .home-page .editorial-stage {
    display: contents;
  }
  .home-page .editorial-copy {
    order: 0;
  }
  .home-page .editorial-hero .search-panel {
    order: 1;
  }
  .home-page .editorial-visual {
    order: 2;
    margin-top: 28px;
  }
  .wrap:has(.hero) {
    display: block;
  }
  .home-page .editorial-hero .editorial-visual {
    min-height: 320px;
  }
}
.home-page .home-search-panel .searchbox-v2 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  align-items: end;
  gap: 14px;
}
.home-page .home-search-panel .searchfield {
  min-width: 0;
}
.home-page .home-search-panel .searchfield label {
  display: grid;
  gap: 6px;
}
.home-page .home-search-panel .searchfield select,
.home-page .home-search-panel .searchfield input {
  width: 100%;
}
@media (max-width: 600px) {
  .home-page .home-search-panel .searchbox-v2 {
    grid-template-columns: 1fr 1fr;
  }
  .home-page .home-search-panel .searchfield.guest-field,
  .home-page .home-search-panel .searchbox-v2 > .btn {
    grid-column: 1 / -1;
  }
}
.home-page .editorial-home > .section.soft {
  border-radius: 0;
  padding-inline: 0;
}
.site-header .header-actions .icon-btn svg {
  width: 20px;
  height: 20px;
}
.site-header .owner-link {
  white-space: nowrap;
}
@media (max-width: 900px) {
  .site-header .owner-link {
    display: none;
  }
}
@media (max-width: 850px) {
  .home-page .catalog-layout {
    grid-template-columns: 1fr;
  }
  .home-page .catalog-layout > .filter-panel {
    display: block;
  }
  .home-page .filter-panel summary {
    display: list-item;
    min-height: 44px;
  }
  .home-page .filter-panel:has(details.drawer-ready:not([open])) {
    display: none;
  }
  .home-page .filter-panel details.drawer-ready[open] {
    position: fixed;
    inset: 0 0 0 auto;
    z-index: 40;
    width: min(90vw, 390px);
    overflow-y: auto;
    padding: 24px;
    background: var(--es-surface);
    box-shadow: -15px 0 40px #1c342344;
  }
  .home-page .filter-panel details.drawer-ready[open] summary {
    position: sticky;
    top: 0;
    z-index: 1;
    background: var(--es-surface);
    padding: 10px 0;
  }
  .home-page .mobile-filter:not([hidden]) {
    display: inline-flex;
  }
  .home-page [data-filter-close]:not([hidden]) {
    display: inline-flex;
    margin: 10px 0;
  }
  .home-page .mobile-filter[hidden],
  .home-page [data-filter-close][hidden] {
    display: none !important;
  }
}

/* Prototype section and published-detail composition. */
.editorial-home .grid3 > .empty-state, .editorial-home .grid2 > .empty-state { grid-column: 1 / -1; }
.detail-spaces { display: grid; gap: 24px; padding: 0; list-style: none; }
.detail-spaces .space-card { padding: clamp(20px, 3vw, 36px); }
.detail-spaces .gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 8px; margin-top: 24px; overflow: hidden; }
.detail-spaces .gallery figure { margin: 0; }
.detail-spaces .gallery img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.detail-layout-single { grid-template-columns: minmax(0, 1fr); }
.detail-spaces .detail-space-card { display: block; }
.detail-spaces .detail-space-card .space-card-body { padding: 0; }
.detail-spaces .detail-space-card section { padding: 20px 0; }
.venue-section-nav a { display: inline-block; padding: 10px 14px; }

.selection-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 30px 0 60px; }
.selection-results > .empty-state { grid-column: 1 / -1; }
.selection-card { padding: 24px; overflow-wrap: anywhere; }
.selection-card > a { font-family: var(--es-font-display, serif); font-size: 24px; }
.selection-card p { line-height: 1.6; }
@media (max-width: 850px) { .selection-results { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .favorites-results { grid-template-columns: 1fr; } .compare-results { display: flex; overflow-x: auto; } .compare-results > .selection-card { flex: 0 0 min(80vw, 300px); } .compare-results > .empty-state { flex: 1 0 100%; } }

.editorial-home .empty-state { min-height: 170px; display: flex; align-items: center; justify-content: center; padding: 32px; border: 1px solid var(--es-line, #ded8d0); border-radius: var(--es-panel-radius, 12px); background: var(--es-surface, #fff); text-align: center; }
.editorial-home .case-overview-photos > .empty-state { min-height: 220px; grid-column: 1 / -1; }
.compare-results > .compare-scroll { grid-column: 1 / -1; width: 100%; overflow-x: auto; }
.compare-results .compare-table { min-width: 760px; width: 100%; }
.compare-results .compare-table th, .compare-results .compare-table td { vertical-align: top; overflow-wrap: anywhere; }
.compare-results > .compare-scroll { min-width: 0; overscroll-behavior-x: contain; }
.compare-results .compare-price { display: grid; gap: 4px; margin-bottom: 12px; }
.compare-results .compare-price:last-child { margin-bottom: 0; }
.compare-results .compare-price-main { font-size: 1.15em; line-height: 1.35; }
.compare-results .compare-price-details { color: var(--muted); font-size: .9em; }
.compare-results > .compare-scroll-hint { display: none; grid-column: 1 / -1; }
/* Compare page: keep the prototype's editorial hierarchy and EventSpace palette. */
.selection-page:has(.compare-results) { padding-top: 28px; }
.compare-results > .compare-scroll {
  border: 1px solid var(--es-line);
  border-radius: var(--es-panel-radius);
  background: var(--es-surface);
  scrollbar-color: var(--es-muted) var(--es-tint);
}
.compare-results .compare-table { min-width: 760px; table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.compare-results .compare-table th:first-child,
.compare-results .compare-table td:first-child { width: 190px; }
.compare-results .compare-table th:not(:first-child),
.compare-results .compare-table td:not(:first-child) { min-width: 0; width: auto; }
.compare-results .compare-table thead th { background: var(--es-surface); color: var(--es-ink); text-align: left; border-bottom: 1px solid var(--es-line); }
.compare-results .compare-table thead th:first-child,
.compare-results .compare-table tbody th[scope="row"] { background: var(--es-tint); color: var(--es-forest); }
.compare-results .compare-table tbody th[scope="row"] { font-weight: 650; }
.compare-results .compare-table tbody td,
.compare-results .compare-table tbody th { border-bottom: 1px solid var(--es-line); }
.compare-results .compare-table tbody tr:last-child td,
.compare-results .compare-table tbody tr:last-child th { border-bottom: 0; }
.compare-results .compare-table thead th > a {
  display: block;
  color: var(--es-forest);
  font: 500 clamp(18px, 1.7vw, 23px)/1.25 var(--es-display);
  text-decoration: none;
  overflow-wrap: anywhere;
}
.compare-results .compare-table thead th > a:hover { text-decoration: underline; text-underline-offset: .18em; }
.compare-results .compare-table thead th > p { margin: 7px 0 12px; color: var(--es-muted); font-size: 12px; line-height: 1.45; }
.compare-results .compare-table .text-btn { min-height: 40px; padding: 8px 12px; border: 1px solid var(--es-line); border-radius: 999px; color: var(--es-forest); font-size: 12px; }
.compare-results .compare-table .text-btn:hover { background: var(--es-tint); }
.compare-results .compare-table :focus-visible,
.compare-results > .compare-scroll:focus-visible { outline: 2px solid var(--es-forest); outline-offset: 3px; }
@media (max-width: 900px) {
  .compare-results > .compare-scroll-hint { display: block; margin: 0 0 8px; color: var(--muted); font-size: 12px; }
}
@media (max-width: 600px) {
  .compare-results { display: block; overflow: visible; }
  .compare-results .compare-table { min-width: 720px; }
  .compare-results .compare-table th:first-child,
  .compare-results .compare-table td:first-child { width: 150px; }
  .compare-results .compare-table th:not(:first-child),
  .compare-results .compare-table td:not(:first-child) { min-width: 0; width: auto; }
  .compare-results .compare-table th,
  .compare-results .compare-table td { padding: 14px 12px; font-size: 13px; line-height: 1.5; }
  .compare-results .compare-table thead th > a { font-size: 18px; }
  .compare-results > .compare-scroll:focus-visible { outline: 2px solid var(--es-forest); outline-offset: 3px; }
}
@media (max-width: 600px) { .compare-results > .compare-scroll { flex: 1 0 100%; } }

/* Compare page visual system follows the approved wide-table prototype. */
.selection-page:has(.compare-results) > .page-top { max-width: 980px; padding-block: 34px 28px; }
.selection-page:has(.compare-results) > .page-top h1 { color: var(--es-forest); font: 400 clamp(38px, 5vw, 62px)/1.06 var(--es-display); letter-spacing: -.035em; }
.selection-page:has(.compare-results) > .page-top p { max-width: 620px; }
.selection-page:has(.compare-results) { padding-bottom: 0; }
.selection-page:has(.compare-results) [data-results] { margin: 20px 0 0; row-gap: 24px; }
.compare-toolbar { grid-column: 1 / -1; display: flex; width: 100%; box-sizing: border-box; align-items: center; gap: 24px; min-height: 96px; margin: 0; padding: 18px 26px; border: 1px solid var(--es-line); border-radius: 13px; background: var(--es-tint); color: var(--es-forest); }
.home-page .selection-page .compare-toolbar { padding: 18px 26px; }
.compare-count { flex: 0 0 auto; color: var(--es-muted); font-size: 13px; white-space: nowrap; }
.compare-toggle { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 10px; min-height: 42px; cursor: pointer; white-space: nowrap; }
.compare-toggle input { display: block; width: 44px; min-width: 44px; height: 27px; min-height: 27px; margin: 0; padding: 0; appearance: none; border: 1px solid #98ad9d; border-radius: 999px; background: #edf1e8; cursor: pointer; transition: background .16s ease; }
.compare-toggle input::before { display: block; width: 21px; height: 21px; margin: 2px; border-radius: 50%; background: white; box-shadow: 0 1px 4px #1c342333; content: ''; transition: transform .16s ease; }
.compare-toggle input:checked { background: var(--es-forest); }
.compare-toggle input:checked::before { transform: translateX(17px); }
.compare-toggle input:focus-visible, .compare-clear:focus-visible { outline: 2px solid var(--es-forest); outline-offset: 3px; }
.compare-clear { margin-left: auto; padding: 8px 10px; border: 0; background: transparent; color: var(--es-muted); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.compare-clear:hover { color: var(--es-forest); }
.compare-results .compare-table { min-width: 940px; border: 1px solid var(--es-line); border-radius: 13px; overflow: hidden; background: var(--es-surface); }
.compare-results .compare-table .compare-label-column { width: 170px; }
.compare-results .compare-table th:first-child, .compare-results .compare-table td:first-child { width: 170px; }
.compare-results .compare-table thead th { padding: 16px; vertical-align: top; }
.compare-results .compare-table thead th:first-child { vertical-align: top; }
.compare-results .compare-corner { width: 170px; }
.compare-results .compare-corner h3 { margin: 0 0 10px; color: var(--es-forest); font: 500 13px/1.35 var(--es-sans); }
.compare-results .compare-corner-hint { margin: 0 0 14px; color: var(--es-muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.compare-results .compare-table thead th > a.compare-add { display: inline-flex; width: auto; align-items: center; padding: 8px 12px; border: 1px solid var(--es-border-strong); border-radius: 8px; background: transparent; color: var(--es-forest); font: 500 12px/1.3 var(--es-sans); text-decoration: none; white-space: nowrap; }
.compare-results .compare-table thead th > a.compare-add:hover { background: var(--es-surface); color: var(--es-forest); }
.compare-photo, .compare-photo-fallback { display: flex; width: 100%; height: 160px; margin-bottom: 16px; align-items: center; justify-content: center; overflow: hidden; border-radius: 9px; background: #e7ebe2; color: var(--es-muted); }
.compare-photo { object-fit: cover; }
.compare-photo-fallback { border: 1px dashed #aab9aa; font-size: 12px; }
.compare-results .compare-card-title { display: block; margin: 0; color: var(--es-forest); font: 400 25px/1.2 var(--es-display); text-decoration: none; }
.compare-results .compare-card-title:hover { text-decoration: underline; text-underline-offset: .18em; }
.compare-card-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.compare-card-heading .compare-card-title { min-width: 0; overflow-wrap: anywhere; }
.compare-results .compare-card-venue { margin: 8px 0 14px; color: var(--es-muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.compare-results .compare-table thead th a.compare-details { display: inline-flex; width: auto; min-height: 36px; align-items: center; padding: 7px 12px; border: 1px solid var(--es-border-strong); border-radius: 8px; background: transparent; color: var(--es-forest); font: 500 12px/1.3 var(--es-sans); text-decoration: none; white-space: nowrap; }
.compare-results .compare-table thead th a.compare-details:hover { background: var(--es-tint); color: var(--es-forest); }
.compare-card-actions { display: flex; align-items: center; gap: 8px; }
.compare-results .compare-table .compare-remove { display: inline-flex; width: 30px; min-width: 30px; min-height: 30px; align-items: center; justify-content: center; margin: 0; padding: 0; border: 1px solid var(--es-line); border-radius: 50%; background: transparent; color: var(--es-muted); cursor: pointer; font: 20px/1 var(--es-sans); }
.compare-results .compare-table .compare-remove:hover { border-color: var(--es-border-strong); background: var(--es-tint); color: var(--es-forest); }
.compare-results .compare-table tbody tr:nth-child(even) td { background: #f7f5ec; }
.compare-results .compare-table tbody tr:nth-child(odd) td { background: #fffefa; }
.compare-results .compare-table tbody td, .compare-results .compare-table tbody th { padding: 15px 18px; font-size: 14px; line-height: 1.55; }
.compare-results .compare-table tbody th[scope="row"] { background: var(--es-tint); font-size: 13px; font-weight: 500; }
.compare-results .compare-table tbody td > div + div { margin-top: 7px; }
.compare-empty-differences { grid-column: 1 / -1; padding: 26px; border: 1px solid var(--es-line); border-radius: 12px; background: var(--es-tint); color: var(--es-forest); }
@media (max-width: 706px) {
  .compare-toolbar { flex-wrap: nowrap; gap: 14px; padding: 14px 16px; }
  .home-page .selection-page .compare-toolbar { gap: 14px; padding: 14px 16px; }
  .compare-clear { margin-left: auto; white-space: nowrap; }
  .compare-results .compare-table { min-width: 800px; }
  .compare-results .compare-table .compare-label-column { width: 145px; }
  .compare-results .compare-table th:first-child, .compare-results .compare-table td:first-child { width: 145px; }
  .compare-photo, .compare-photo-fallback { height: 126px; }
  .compare-results .compare-card-title { font-size: 21px; }
  .compare-results .compare-table tbody td, .compare-results .compare-table tbody th { padding: 13px 14px; font-size: 13px; }
  .compare-results .compare-corner-hint { font-size: 11px; }
}
@media (max-width: 900px) { .compare-results { row-gap: 12px; } .compare-results > .compare-scroll-hint { margin: 0; } }
@media (max-width: 600px) {
  .compare-toolbar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; padding: 13px 14px; }
  .home-page .selection-page .compare-toolbar { gap: 8px 12px; padding: 12px 14px; }
  .compare-toggle { grid-column: 1; grid-row: 1; gap: 8px; font-size: 13px; }
  .compare-count { grid-column: 2; grid-row: 1; justify-self: end; font-size: 12px; }
  .compare-clear { grid-column: 1 / -1; justify-self: end; margin: 0; padding: 4px 0; }
  .compare-results .compare-table { min-width: 760px; }
  .compare-results .compare-table .compare-label-column { width: 140px; }
  .compare-results .compare-table th:first-child, .compare-results .compare-table td:first-child { width: 140px; }
  .compare-photo, .compare-photo-fallback { height: 116px; }
}

.gallery-dialog { width: min(960px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 20px; border: 0; border-radius: 12px; background: #fff; }
.gallery-dialog::backdrop { background: rgba(0, 0, 0, .78); }
.gallery-dialog > [data-gallery-close] { display: block; margin: 0 0 12px auto; min-width: 44px; min-height: 44px; }
.gallery-dialog > img { width: 100%; height: min(65vh, 640px); object-fit: contain; }
.gallery-dialog .gallery-controls { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 12px; }
.gallery-dialog .gallery-controls button { display: inline-grid; width: 48px; height: 48px; place-items: center; border: 1px solid var(--es-line); border-radius: 50%; background: var(--es-paper); color: var(--es-ink); }
.gallery-dialog .gallery-controls button:hover { background: var(--es-tint); }
.gallery-dialog .gallery-controls button:focus-visible,
.gallery-dialog > [data-gallery-close]:focus-visible { outline: 3px solid var(--es-focus); outline-offset: 3px; }
.gallery-dialog .gallery-controls button[hidden] { display: none; }
.gallery-dialog .gallery-controls svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.home-page .editorial-hero .hero-controls { position: absolute; left: 0; right: 0; bottom: 0; }
.is-home .hero-slide[hidden] { display: none; }
.is-home .hero-dots button[aria-pressed="true"]:before { transform: scaleX(1); }
@media (max-width: 600px) { .home-page .editorial-hero .search-panel { order: 2; } .home-page .editorial-visual { order: 1; } .site-footer .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
