:root {
  color-scheme: light;
  --canvas: #f7f4eb;
  --paper: #fcfbf6;
  --sand: #ede9dc;
  --ink: #1e3026;
  --quiet: #4a554a;
  --green: #294735;
  --deep: #203a2d;
  --clay: #79583b;
  --line: #cbc9ba;
  --serif: Georgia, "Times New Roman", serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --wrap: 1320px;
  font: 1rem/1.6 var(--sans);
  background: var(--canvas);
  color: var(--ink);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
button, select { font: inherit; }
button { color: inherit; cursor: pointer; }
img { display: block; max-width: 100%; background: #dfddcf; }
figure, p, h1, h2, h3, dl, dd { margin: 0; }
p { max-width: 66ch; }
h1, h2 { font-family: var(--serif); font-weight: 400; line-height: 1.06; letter-spacing: -.048em; text-wrap: balance; }
h2 { font-size: clamp(2.45rem, 4.4vw, 4.4rem); }
:focus-visible { outline: 2px solid #9c5527; outline-offset: 4px; }
main:focus:not(:focus-visible) { outline: none; }
[id] { scroll-margin-top: 1.4rem; }
.wrap { width: min(calc(100% - 112px), var(--wrap)); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link:focus { position: absolute; top: .5rem; left: .5rem; z-index: 20; background: var(--paper); padding: .75rem 1rem; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: .65rem;
  color: var(--clay);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
}
.eyebrow-line { width: 1.5rem; height: 1px; background: currentColor; flex: none; }
.header { border-bottom: 1px solid var(--line); }
.header-inner { position: relative; min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1.4rem; }
.wordmark {
  display: inline-flex;
  width: max-content;
  align-items: center;
  min-height: 44px;
  gap: .58rem;
  text-decoration: none;
  font: 1.7rem/1 var(--serif);
  letter-spacing: -.055em;
  white-space: nowrap;
}
.brand-seal { display: block; width: 2.75rem; height: 2.75rem; flex: none; border-radius: 50%; }
.brand-kind { display: block; margin: 0 0 .18rem .08rem; font: 650 .625rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.brand-name em { font-weight: inherit; letter-spacing: -.06em; }
.footer .brand-seal { box-shadow: 0 0 0 1px #c9bb99; }
.header nav { display: flex; align-items: center; gap: clamp(1.25rem, 4vw, 3rem); }
.header nav a, .header-visit { text-decoration: none; font-size: .90rem; font-weight: 600; }
.header nav a { padding-block: .75rem; }
.header-visit { border: 1px solid var(--green); padding: .52rem .9rem; text-align: center; }
.menu-toggle { background: transparent; border: 1px solid var(--line); padding: .48rem .62rem; font-size: .9rem; min-height: 44px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 47px;
  padding: .65rem 1.2rem;
  border: 1px solid transparent;
  font-size: .94rem;
  font-weight: 680;
  text-decoration: none;
  transition: background-color .15s, color .15s, border-color .15s;
}
.button-solid { color: #fdfbf0; background: var(--deep); border-color: var(--deep); }
.button-outline { background: transparent; border-color: var(--green); }
.text-link { font-size: .96rem; font-weight: 650; text-underline-offset: .24em; text-decoration-thickness: .08em; }
.hero {
  display: grid;
  grid-template-columns: 0.86fr 1.35fr;
  align-items: start;
  gap: clamp(1.75rem, 4.3vw, 4.3rem);
  padding-block: clamp(2.3rem, 5.4vw, 5.3rem) clamp(1.8rem, 4.8vw, 4rem);
}
.hero-copy { align-self: center; padding-bottom: 2.4rem; }
h1 { margin-top: 1.08rem; font-size: clamp(3.1rem, 5.45vw, 5.7rem); text-wrap: initial; }
h1 em { display: block; color: #42604a; font-weight: 400; }
.hero-intro { margin-top: 1.35rem; font-size: clamp(1.04rem, 1.5vw, 1.23rem); line-height: 1.65; color: var(--quiet); max-width: 38ch; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .85rem 1.35rem; margin-top: 1.62rem; }
.hero-business { display: flex; flex-wrap: wrap; column-gap: 1.15rem; }
.hero-business .text-link { display: inline-flex; align-items: center; min-height: 44px; }
@media (min-width: 761px) and (max-width: 1000px) {
  .hero-business { flex-direction: column; }
}
.hero-image { width: 100%; aspect-ratio: 1.61; height: auto; object-fit: cover; object-position: 49% 50%; }
.hero-figure figcaption { display: flex; gap: .55rem; align-items: baseline; margin-top: .75rem; font-size: .86rem; color: #444d41; line-height: 1.5; }
.note-marker { width: .48rem; height: .48rem; background: #845e3a; flex: none; border-radius: 50%; }
.facts-section { border-block: 1px solid var(--line); background: var(--sand); padding-block: 1.6rem 1.3rem; }
.life-strip {
  grid-column: 1 / -1;
  order: 2;
  padding-inline: clamp(1rem, 2.4vw, 2rem);
  background: #e4e9dd;
  color: #253f31;
  border: 1px solid #bec9b9;
  border-radius: .35rem;
}
.life-scenes {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  list-style: none;
  margin-block: 0;
  padding: clamp(1.5rem,3vw,2.75rem) 0;
}
.life-scenes li { min-width: 0; padding-inline: clamp(1rem,2.7vw,2.8rem); }
.life-scenes li:first-child { padding-left: 0; }
.life-scenes li:last-child { padding-right: 0; }
.life-scenes li + li { border-left: 1px solid #b6c4b2; }
.scene-icon {
  display: block;
  width: 3.6rem;
  height: 2.5rem;
  margin-bottom: .55rem;
  color: #385642;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scene-icon .sun { fill: #c8a36b; stroke: none; }
.scene-icon .accent { stroke: #8d613a; }
.life-scenes h3 { font: 400 clamp(1.35rem,2.15vw,1.85rem)/1.12 var(--serif); letter-spacing: -.035em; text-wrap: balance; }
.life-scenes p { font-size: .97rem; line-height: 1.5; margin-top: .45rem; color: #3e5044; max-width: 37ch; }
.life-scenes a { display: inline-flex; align-items: center; min-height: 44px; font-size: .88rem; font-weight: 650; text-underline-offset: .23em; }
.life-scenes a:is(:hover,:focus-visible,:active) { color: #813819; }
html:not(.js) .life-scenes a { display: none; }
@media (min-width: 721px) {
  .life-scenes li, .life-scenes li > div { display: flex; flex-direction: column; align-items: flex-start; }
  .life-scenes li > div { flex: 1; }
  .life-scenes a { margin-top: auto; }
}
@media (max-width: 720px) {
  .life-scenes { grid-template-columns: minmax(0,1fr); padding-block: .2rem; }
  .life-scenes li { display: grid; grid-template-columns: 3.1rem 1fr; gap: .85rem; padding: 1.1rem 0 .5rem; }
  .life-scenes li + li { border-left: 0; border-top: 1px solid #b6c4b2; }
  .scene-icon { width: 3.1rem; height: 2.2rem; margin: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .scene-icon, .use-ideas dt .ui-icon {
    transform-origin: 50% 65%;
    transition: translate 200ms ease-out, rotate 240ms ease-out;
  }
  .life-scenes li:has(:focus-visible) .scene-icon { translate: 0 -3px; rotate: -3deg; }
  .life-scenes li:nth-child(2) { --scene-delay: 90ms; }
  .life-scenes li:nth-child(3) { --scene-delay: 180ms; }
  .life-strip.in-view .scene-icon { animation: scene-arrival 540ms ease-out var(--scene-delay,0ms) backwards; }
  @keyframes scene-arrival {
    from { opacity: .4; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
  }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .life-scenes li:hover .scene-icon, .use-ideas dl > div:hover .ui-icon { translate: 0 -3px; rotate: -3deg; }
}
@media screen and (prefers-reduced-motion: no-preference) {
  [data-scroll-copy] > * { transition: opacity 260ms ease-out, translate 260ms ease-out; }
  [data-scroll-copy][data-copy-below]:not(:focus-within) > * { opacity: 0; translate: 0 8px; }
  [data-scroll-copy]:focus-within > * { transition: none; }
}
.facts { display: grid; grid-template-columns: 1.03fr 1.02fr .97fr 1fr; }
.facts > div { display: flex; flex-direction: column-reverse; padding-inline: clamp(.85rem, 2.8vw, 2.35rem); gap: .2rem; }
.facts > div:first-child { padding-left: 0; }
.facts > div + div { border-left: 1px solid #c7c5b5; }
.facts dt { font-size: .93rem; color: var(--quiet); font-weight: 600; }
.facts dd { font: clamp(1.85rem, 3.2vw, 3.12rem)/1.06 var(--serif); letter-spacing: -.055em; }
.facts dd span { display: inline-block; color: var(--quiet); font: 650 .875rem/1.25 var(--sans); letter-spacing: 0; }
.room-distribution { margin-top: .6rem; }
.room-distribution summary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 44px;
  padding-block: .3rem;
  list-style: none;
  cursor: pointer;
  color: var(--green);
  font-size: .92rem;
  font-weight: 650;
  text-decoration: underline;
  text-underline-offset: .24em;
}
.room-distribution summary::-webkit-details-marker { display: none; }
.room-distribution summary:is(:hover,:focus-visible,:active) { color: #813819; }
.room-distribution[open] summary .ui-icon { transform: rotate(45deg); }
.room-breakdown { max-width: 75ch; color: var(--quiet); font-size: .92rem; line-height: 1.55; }
.room-distribution + .facts-note { margin-top: .5rem; }
.facts-note { margin-top: 1.05rem; max-width: 100ch; color: var(--quiet); font-size: .875rem; }
.story { display: grid; grid-template-columns: 1.12fr .88fr; align-items: center; gap: clamp(2rem, 6.4vw, 6.5rem); padding-block: clamp(3.4rem, 8vw, 7.5rem); }
.story-copy { padding-bottom: 1.5rem; }
.story-copy h2, .potential h2, .last h2, .section-intro h2 { margin-block: .72rem 1.12rem; }
.story-copy p:not(.eyebrow), .section-intro p:not(.eyebrow), .last p:not(.eyebrow) { color: var(--quiet); }
.story-copy p + p { margin-top: 1rem; }
.story-copy .text-link { display: inline-block; margin-top: 1.15rem; }
.story-photo img, .potential-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.story-photo figcaption, .potential-photo figcaption {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .15rem .65rem;
  padding-block: .68rem;
  border-bottom: 1px solid var(--line);
  font-size: .875rem;
  color: var(--quiet);
}
.story-photo figcaption span { color: var(--clay); }
.tour { background: var(--paper); border-top: 1px solid var(--line); padding-block: clamp(3rem, 6.5vw, 6rem); }
.section-intro { margin-bottom: 1.8rem; }
.level-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .55rem; }
.level-grid button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .3rem;
  text-align: left;
  padding: .85rem .8rem;
  min-height: 88px;
  border: 1px solid #bbbfb0;
  background: transparent;
  transition: background-color .15s, border-color .15s;
}
.level-grid button[aria-pressed="true"] { border-color: var(--green); background: var(--deep); color: #fbf9ee; }
.level-grid strong { font-size: .94rem; line-height: 1.3; }
.level-grid span { font-size: .875rem; line-height: 1.39; }
.filter-reset { min-height: 44px; padding: .35rem .25rem; color: var(--green); border: none; text-decoration: underline; text-underline-offset: .2em; background: transparent; font-size: .9rem; }
.gallery-count { color: var(--quiet); white-space: nowrap; font-size: .9rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.55rem 1.05rem; }
.gallery-card {
  display: grid;
  width: 100%;
  text-align: left;
  padding: 0 0 .7rem;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: none;
}
.gallery-frame { position: relative; display: block; overflow: hidden; background: #e4e4db; }
.gallery-frame img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .25s ease-out; }
.gallery-zoom {
  position: absolute;
  bottom: .48rem;
  right: .48rem;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: var(--paper);
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1;
}
.gallery-labels { display: flex; align-items: baseline; justify-content: space-between; gap: .25rem .6rem; flex-wrap: wrap; padding-top: .62rem; }
.gallery-title { font: 400 clamp(1.12rem, 1.7vw, 1.5rem)/1.22 var(--serif); letter-spacing: -.02em; }
.gallery-tag { color: var(--clay); font-size: .875rem; }
.gallery-more { display: flex; justify-content: center; margin-top: 1.55rem; }
.gallery-more:has([hidden]) { margin-top: 0; }
.potential { background: var(--deep); color: #f8f5e9; padding-block: clamp(3.05rem, 7vw, 6rem); }
.potential-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.potential .eyebrow { color: #e5c59d; }
.potential-copy > p:not(.eyebrow), .ideas dd { color: #e1e6d9; }
.ideas { margin-top: 1.45rem; }
.ideas > div { padding-block: .83rem; border-top: 1px solid #617464; }
.ideas dt { font: 400 1.27rem/1.25 var(--serif); }
.ideas dd { margin-top: .28rem; max-width: 62ch; }
.potential-copy .potential-note { border-top: 1px solid #617464; padding-top: .85rem; font-size: .875rem; color: #e2e7da; }
.potential-photo figcaption { color: #e2e7da; border-color: #617464; }
.potential-photo figcaption span { color: #efcc9c; }
.last { display: grid; grid-template-columns: .86fr 1.14fr; gap: clamp(2rem, 7vw, 7rem); align-items: start; padding-block: clamp(3.3rem, 6.5vw, 6.25rem); }
.last h2 { font-size: clamp(2.2rem, 4vw, 3.75rem); }
.place { padding-top: .9rem; }
.place a { display: inline-block; margin-top: .95rem; }
.visit { padding: clamp(1.4rem, 3.6vw, 3rem); border: 1px solid var(--line); background: var(--sand); }
.visit p + p { margin-top: .87rem; }
.visit .visit-status { margin-top: 1rem; font-weight: 650; }
.footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding-block: 1.55rem; }
.footer p { color: var(--quiet); font-size: .875rem; }

html:has(dialog[open]) { overflow: hidden; }
@media (max-width: 1100px) {
  .wrap { width: calc(100% - 64px); }
  .level-grid { grid-template-columns: repeat(3, 1fr); }
  .level-grid button { min-height: 67px; }
}
@media (max-width: 900px) {
  .hero { grid-template-columns: .92fr 1.08fr; align-items: center; }
  .hero-copy { padding-bottom: .8rem; }
  .hero-image { aspect-ratio: 1.09; }
  .hero .eyebrow { font-size: .8rem; }
  .facts > div { padding-inline: .85rem; }
  .potential-grid { grid-template-columns: 1.16fr .84fr; gap: 1.6rem; }
}
@media (max-width: 760px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 62px; gap: .65rem; }
  .header nav { gap: .65rem; }
  .header nav a, .header-visit { font-size: .875rem; }
  .header-visit { padding-inline: .6rem; }
  .hero, .story, .potential-grid, .last { grid-template-columns: minmax(0, 1fr); }
  .hero { gap: 1.35rem; }
  .hero-copy, .story-copy { padding-bottom: 0; }
  .hero-image { aspect-ratio: 1.63; }
  h1 { font-size: clamp(2.9rem, 8vw, 4.45rem); margin-top: .57rem; }
  .hero-intro { margin-top: .8rem; }
  .hero-actions { margin-top: 1rem; }
  .story-photo { order: 1; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: .8rem; }
  .facts > div:nth-child(odd) { border-left: 0; padding-left: 0; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .place { padding: 0; }
  .footer-inner { flex-wrap: wrap; }
}
@media (max-width: 530px) {
  .header-inner { flex-wrap: wrap; align-content: center; padding-block: .55rem; }
  .wordmark { font-size: 1.42rem; gap: .4rem; }
  .brand-seal { width: 2.1rem; height: 2.1rem; }
  .menu-toggle { margin-left: auto; }
  .header-visit { display: none; }
  .header nav { flex-basis: 100%; flex-wrap: wrap; gap: .15rem .95rem; }
  .header nav a { padding-block: .5rem; }
  .js .header nav { display: none; }
  .js .header nav[data-open] { display: flex; padding-top: .3rem; border-top: 1px solid var(--line); }
  .eyebrow { letter-spacing: .095em; }
  .hero { padding-top: 1.6rem; }
  .level-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .level-grid button { min-height: 74px; }
  .gallery-grid { gap: 1.05rem .6rem; }
  .gallery-title { font-size: 1.12rem; }
  .gallery-zoom { width: 27px; height: 27px; bottom: .3rem; right: .3rem; }
  .footer-inner p { order: 1; width: 100%; }
  .viewer-top, .viewer-bottom { padding: .6rem; }
  .viewer-stage { height: 58dvh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.album-directory { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 1.3rem; }
.album-directory details { border-top: 2px solid var(--green); }
.album-directory summary, .level-directory summary { cursor: pointer; color: var(--green); }
.album-directory summary { padding: .72rem .25rem .65rem 0; }
.album-directory summary strong { font: 400 clamp(1.25rem, 1.8vw, 1.6rem)/1.2 var(--serif); letter-spacing: -.025em; }
.album-directory summary span { display: block; margin-top: .35rem; color: var(--quiet); font-size: .875rem; line-height: 1.45; }
.album-directory ul { list-style: none; margin: 0; padding: 0; }
.album-directory a { display: flex; align-items: center; justify-content: space-between; gap: .55rem; text-decoration: none; font-size: .95rem; min-height: 44px; padding: .45rem .38rem; border-top: 1px solid var(--line); }
.album-directory a span { font-variant-numeric: tabular-nums; color: var(--quiet); font-size: .86rem; }
.album-directory a[aria-current] { font-weight: 700; }
.level-directory { border-block: 1px solid var(--line); margin-top: 1.2rem; }
.level-directory summary { padding: .75rem 0; font-weight: 650; }
.level-directory p { margin-bottom: .7rem; font-size: .925rem; color: var(--quiet); }
.level-directory .level-grid { margin: 0 0 1rem; }
.album-results { margin-top: 2rem; }
.album-results h3 { font: 400 clamp(1.75rem, 3.3vw, 2.6rem)/1.15 var(--serif); letter-spacing: -.035em; scroll-margin-top: 1.25rem; }
.album-results p { margin-top: .5rem; color: var(--quiet); }
@media (max-width: 760px) {
  .album-directory { grid-template-columns: 1fr; gap: .5rem; }
  .album-directory details { border-top-width: 1px; }
  .album-directory summary { padding-block: .72rem; }
  .level-directory { margin-top: .45rem; }
}

/* Property tour and visit planner */
.svg-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.ui-icon { width: 1.23rem; height: 1.23rem; fill: none; stroke: currentColor; stroke-width: 1.55; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; vertical-align: middle; }
.header { background: var(--paper); }
.album-directory a[aria-current] { background: var(--sand); }
.header-visit, .facts dt, .browse-all, .save-button { display: inline-flex; align-items: center; gap: .55rem; }
.header-visit { border-radius: 2rem; }
.header-visit .ui-icon { width: 1rem; height: 1rem; }
.hero { position: relative; isolation: isolate; width: 100%; max-width: 1920px; min-height: clamp(520px, 42vw, 690px); display: grid; grid-template-columns: 1fr; align-items: end; padding: 0; color: #fffdf5; background: #25392f; }
.hero-figure { position: absolute; inset: 0; z-index: -1; }
.hero-figure picture { display: block; height: 100%; }
.hero-figure::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(13 26 20 / 84%), rgb(13 26 20 / 54%) 39%, rgb(13 26 20 / 8%) 72%), linear-gradient(0deg, rgb(13 26 20 / 48%), transparent 43%); }
.hero .hero-image { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; object-position: 50% 54%; }
.hero-copy { align-self: end; width: min(calc(100% - 112px), var(--wrap)); margin: auto auto 0; padding: clamp(3rem, 5vw, 6rem) 0; }
.hero-copy h1 { max-width: 12.5ch; font-size: clamp(3.7rem, 5.9vw, 6.7rem); margin-block: .95rem; line-height: .98; }
.hero-copy h1 em { color: #efe0ba; }
.hero .eyebrow, .hero-intro { color: #faf4e6; }
.hero-intro { margin-top: 1.15rem; font-size: clamp(1.02rem, 1.5vw, 1.18rem); max-width: 39ch; }
.hero .button-solid { background: #f6f1dc; color: var(--deep); border-color: #f6f1dc; }
.hero-figure figcaption { position: absolute; z-index: 1; bottom: 1.25rem; right: clamp(1rem, 4vw, 4rem); max-width: 34ch; padding: .48rem .8rem; background: #182b22df; color: #f6f3e7; font-size: .8rem; }
.hero-figure .note-marker { background: #d3b880; }
.facts-section { background: #eeeade; }
.facts dt .ui-icon { width: 1.1rem; height: 1.1rem; color: #596b53; }
.facts dt { margin-top: .25rem; }
.guide-header { display: grid; grid-template-columns: 1.12fr .88fr; gap: clamp(1rem,4vw,5rem); align-items: end; }
.guide-header h2 { margin-bottom: 0; max-width: 15ch; }
.guide-header > p { color: #e3e9df; max-width: 43ch; }
.guide-modes { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.7rem 0 1.25rem; }
.guide-modes button, .save-button, .guide-image { font: inherit; }
.guide-modes button { display: flex; align-items: center; justify-content: center; gap: .55rem; border: 1px solid #78907b; border-radius: 2rem; min-height: 44px; padding: .48rem 1rem; font-size: .94rem; font-weight: 600; color: #f9f8ed; background: transparent; }
.guide-modes button[aria-pressed="true"] { color: var(--deep); background: #f0e9d4; border-color: #f0e9d4; }
.guide-layout { display: grid; grid-template-columns: minmax(0,1.5fr) minmax(0,1fr); border: 1px solid #6a7a67; background: #294635; }
.tour-stops {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  background: #20382b;
}
.tour-stops a {
  display: flex;
  gap: .65rem;
  align-items: baseline;
  min-height: 48px;
  padding: .85rem clamp(.65rem,2vw,1.5rem);
  border-bottom: 2px solid #627967;
  color: #e6ecdf;
  text-decoration: none;
  font: 600 .96rem/1.4 var(--sans);
}
.tour-stops a + a { border-left: 1px solid #5c7160; }
.tour-stops a span { color: #d5c8a2; font: italic 1rem/1.4 var(--serif); }
.tour-stops a[aria-current="step"] { color: #fff7df; background: #385541; border-bottom-color: #ebcd8e; }
.tour-stops a:is(:hover,:focus-visible) { color: #ffda92; }
.tour-stops a:focus-visible { outline-offset: -4px; }
@media (max-width: 480px) {
  .tour-stops a { flex-direction: column; justify-content: center; gap: 0; font-size: .88rem; padding: .4rem .55rem; }
  .tour-stops a span { font-size: .83rem; }
  .hero-actions { row-gap: .15rem; }
}
.guide-image { position: relative; border: 0; padding: 0; min-height: 0; background: #182b21; }
.guide-image img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; }
.guide-expand { position: absolute; bottom: .85rem; right: .85rem; display: flex; align-items: center; gap: .4rem; padding: .4rem .65rem; color: white; background: #182b22df; font-size: .83rem; }
.guide-detail { display: flex; flex-direction: column; align-items: start; justify-content: center; min-height: clamp(380px, 33vw, 490px); padding: clamp(1.4rem, 3vw, 3.4rem); }
.guide-position { color: #eee0b9; font-size: .875rem; font-weight: 620; }
.guide-detail h3 { font: 400 clamp(1.75rem, 3.1vw, 3.4rem)/1.04 var(--serif); letter-spacing: -.045em; margin: .8rem 0; }
#guide-copy { color: #eff2e7; max-width: 44ch; }
.guide-link { font-size: .94rem; font-weight: 600; text-underline-offset: .25em; margin-top: .8rem; }
.save-button { justify-content: center; min-height: 44px; font-size: .9rem; color: inherit; padding: .45rem .8rem; border: 1px solid currentColor; background: transparent; }
#guide-save { margin-top: 1.1rem; }
.save-button[aria-pressed="true"] .ui-icon { fill: currentColor; }
.prev .ui-icon { transform: rotate(180deg); }
.guide-foot { max-width: 90ch; font: italic .8rem/1.5 var(--serif); color: #d6dfd1; margin-top: 1rem; }
.guide-layout :focus-visible, .guide-modes :focus-visible { outline-color: #f7dba7; }
.album-directory details { background: #f0eee3; border-top: 2px solid #586a52; }
.album-directory summary { display: flex; align-items: center; gap: .75rem; min-height: 101px; padding: 1rem; list-style: none; }
.album-directory summary::-webkit-details-marker { display: none; }
.album-directory summary > .ui-icon:first-child { width: 1.75rem; height: 1.75rem; }
.album-directory summary > .ui-icon:last-child { width: 1rem; height: 1rem; margin-left: auto; }
.album-directory details[open] summary > .ui-icon:last-child { transform: rotate(45deg); }
.album-directory .directory-words { display: block; margin: 0; }
.album-directory .directory-words span { font-size: .875rem; line-height: 1.4; }
.album-directory ul { padding: 0 1rem .55rem; }
.browse-all, .back-albums { color: var(--green); min-height: 44px; font-weight: 620; text-underline-offset: .24em; font-size: .94rem; }
.browse-all { margin-top: .75rem; }
.back-albums { display: inline-flex; align-items: center; }
.album-return { display: flex; flex-wrap: wrap; align-items: center; gap: 0 1.2rem; }
.album-mode main > :not(.tour), .album-mode .tour .section-intro, .album-mode #albumes, .album-mode .browse-all, .album-mode #por-nivel { display: none; }
.album-mode .tour { min-height: 70vh; padding-top: clamp(1.25rem,3vw,2.75rem); }
.album-mode .album-results { margin-top: .6rem; }
.album-mode .album-results h3 { font-size: clamp(2.1rem,4.5vw,4.7rem); }
.album-mode .album-results p { max-width: 78ch; }
.gallery-zoom { border-radius: 50%; }
.gallery-zoom .ui-icon { width: 1rem; height: 1rem; }
.gallery-card { align-content: start; }
.gallery-frame { border-radius: .12rem; }
.visit-list { border-block: 1px solid #b9beac; margin-top: 1.2rem; padding: 1rem 0; }
.visit-list h3 { font: 400 1.55rem/1.15 var(--serif); }
.visit-list p { margin: .4rem 0; }
.visit-list ul { padding: 0; list-style: none; margin: .65rem 0; }
.visit-list li { display: flex; align-items: center; justify-content: space-between; gap: .5rem; border-top: 1px solid #c7cbbb; }
.visit-list li button { border: 0; background: none; min-height: 44px; color: var(--deep); }
.visit-list [data-open] { text-align: left; text-decoration: underline; text-underline-offset: .2em; }
.visit-list [data-remove] { width: 44px; flex-shrink: 0; }
.viewer-bottom { display: grid; grid-template-columns: auto auto 1fr auto; }
#viewer-save { justify-self: center; }
.viewer-stage { touch-action: pan-y pinch-zoom; }
@media (max-width: 900px) {
  .hero-copy { width: calc(100% - 64px); }
  .guide-detail { padding: 1.25rem; }
}
@media (max-width: 760px) {
  .hero { min-height: 0; gap: 0; display: flex; flex-direction: column; color: var(--ink); background: var(--canvas); }
  .hero-figure { position: relative; inset: auto; z-index: 0; width: 100%; order: 0; }
  .hero-copy { order: 1; margin: 0; width: 100%; padding: 1.65rem 18px 2rem; }
  .hero-copy h1 { font-size: clamp(2.85rem,8.5vw,4.6rem); max-width: 16ch; }
  .hero-copy h1 em { color: #42604a; }
  .hero .eyebrow { color: var(--clay); }
  .hero-intro { color: var(--quiet); }
  .hero .button-solid { background: var(--deep); color: white; border-color: var(--deep); }
  .hero-figure::after { display: none; }
  .hero .hero-image { aspect-ratio: 1.8; height: auto; object-position: center; }
  .hero-figure figcaption { bottom: .6rem; right: .6rem; margin: 0; padding: .3rem .55rem; line-height: 1.28; }
  .guide-header,.guide-layout { grid-template-columns: minmax(0,1fr); }
  .guide-header { gap: .75rem; }
  .guide-header h2 { max-width: none; }
  .guide-image { aspect-ratio: 1.55; }
  .guide-detail { min-height: 0; padding: 1.25rem; }
  .guide-modes { gap: .4rem; }
  .guide-modes button { font-size: .875rem; padding-inline: .7rem; }
  .guide-modes .ui-icon { width: 1rem; }
  .album-directory summary { min-height: 76px; }
}
@media (max-width: 530px) {
  .viewer-bottom { grid-template-columns: auto 1fr auto; }
  #viewer-save { grid-row: 2; grid-column: 1/-1; width: 100%; }
  .viewer-stage { height: min(53dvh,500px); }
}

.guide-caption { position: absolute; left: .85rem; bottom: .85rem; color: #fff; background: #182b22df; padding: .38rem .65rem; font-size: .83rem; }
html:not(.js) :is(.guide-layout, .guide-modes, .album-directory, .browse-all, .level-directory, .visit-list) { display: none; }

/* Keep section headings clear of the navigation, including after a direct album link. */
html.js { scroll-padding-top: var(--header-height, 76px); }
.js .header {
  position: sticky;
  top: 0;
  z-index: 12;
  transition: opacity 190ms ease, transform 220ms ease, box-shadow 160ms ease;
}
.header[data-scrolled] { box-shadow: 0 3px 12px #182b2214; }
.header nav a { position: relative; }
.header nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 .42rem;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 160ms ease-out;
}
.header nav a[aria-current="location"]::after,
.header nav a:focus-visible::after { transform: scaleX(1); }
.header-visit { min-height: 44px; }
.header-visit[aria-current="location"] { color: var(--paper); background: var(--deep); }
#visit-count { display: inline-grid; place-items: center; padding: .1rem .35rem; min-width: 1.35rem; border-radius: 1rem; font-size: .76rem; line-height: 1.4; font-variant-numeric: tabular-nums; color: var(--paper); background: var(--deep); }
.header-visit[aria-current] #visit-count { background: var(--paper); color: var(--deep); }
:where(.header-visit, .menu-toggle, .guide-modes button, .save-button, .viewer-button, .album-directory summary, .album-directory a, .level-directory summary, .gallery-zoom) {
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease;
}
.album-directory summary > .ui-icon:last-child { transition: transform 170ms ease; }
:where(.button, .menu-toggle, .save-button, .viewer-button, .guide-modes button):active:not(:disabled) { box-shadow: inset 0 0 0 2px currentColor; }
.gallery-card:focus-visible .gallery-title { text-decoration: underline; text-underline-offset: .18em; }
.gallery-card:focus-visible .gallery-zoom { color: white; background: var(--deep); }
.hero a:focus-visible { outline-color: #fff4c8; box-shadow: 0 0 0 4px #203a2d; }
.visit-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1.2rem; }
.print-room, .visit-print-notes { display: none; }

@media (hover: hover) and (pointer: fine) {
  .header-visit:hover, .gallery-card:hover .gallery-zoom { color: var(--paper); background: var(--deep); }
  .header-visit:hover #visit-count { color: var(--deep); background: var(--paper); }
  .button-solid:hover { background: #355741; border-color: #355741; }
  .hero .button-solid:hover { background: white; }
  .button-outline:hover, .menu-toggle:hover, .album-directory summary:hover,
  .level-directory summary:hover, .level-grid button:not([aria-pressed="true"]):hover { background: #e5e8dc; }
  .guide-modes button:not([aria-pressed="true"]):hover,
  #guide-save:hover, .viewer-button:hover:not(:disabled) { background: #405d49; }
  .gallery-card:hover .gallery-title { text-decoration: underline; text-underline-offset: .18em; }
  .guide-image:hover .guide-expand, .guide-image:focus-visible .guide-expand { background: var(--paper); color: var(--deep); }
  .visit-list [data-remove]:hover { background: var(--paper); }
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .gallery-card:hover img { transform: scale(1.025); }
}
@media (prefers-reduced-motion: no-preference) {
  .photo-ready { animation: photo-arrives 190ms ease-out; }
  .save-button:focus[aria-pressed="true"] .ui-icon { animation: mark-saved 170ms ease-out; }
  @keyframes photo-arrives { from { opacity: .55; } to { opacity: 1; } }
  @keyframes mark-saved { from { transform: scale(.84); } to { transform: scale(1); } }
}
@media (max-width: 760px) {
  .js .header-inner { flex-wrap: nowrap; min-height: 62px; gap: .5rem; }
  .js .menu-toggle { margin-left: auto; border: 0; border-radius: 1.5rem; }
  .js .menu-toggle[aria-expanded="true"] { background: var(--sand); }
  .js .header-visit { display: inline-flex; min-height: 44px; gap: .35rem; }
  .js .header nav { display: none; }
  .js .header nav[data-open] {
    position: absolute;
    inset: 100% 0 auto;
    display: grid;
    gap: 0;
    padding: .25rem .85rem;
    max-height: calc(100dvh - var(--header-height, 62px));
    overflow: auto;
    border: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 12px 20px #14251a22;
  }
  .header nav a { min-height: 44px; display: flex; align-items: center; }
  .header nav a::after { bottom: .35rem; }
  .hero a:focus-visible { outline-color: var(--deep); box-shadow: none; }
}
@media (max-width: 760px) and (hover: hover) and (pointer: fine) {
  .hero .button-solid:hover { background: #375443; }
}
@media (max-width: 360px) {
  .js .header-inner { width: calc(100% - 24px); gap: .25rem; }
  .js .header-visit .ui-icon { display: none; }
}
@media print {
  body.printing-visit { background: white; color: #14251a; font: 11pt/1.45 Georgia, serif; }
  .printing-visit :is(.header,.footer,.skip-link,.hero,.life-strip,.story,.tour,.potential,.place,dialog),
  .printing-visit .visit > :is(.eyebrow,p), .printing-visit .visit-actions,
  .printing-visit [data-remove] { display: none; }
  .printing-visit .facts-section { border: 0; background: white; padding: 0 0 12pt; }
  .printing-visit .facts-section::before { content: "Casa en Santa Lucía"; display: block; margin-bottom: 14pt; font-size: 22pt; }
  .printing-visit .facts { grid-template-columns: repeat(4,1fr); }
  .printing-visit .facts > div { padding: 0 4pt; }
  .printing-visit .facts dd { font-size: 17pt; }
  .printing-visit .facts-note { font-size: 9pt; }
  .printing-visit .room-distribution summary { display: none; }
  .printing-visit .wrap { width: 100%; }
  .printing-visit .last { display: block; padding: 0; }
  .printing-visit .visit { padding: 0; background: white; border: 0; }
  .printing-visit .visit h2 { font-size: 19pt; }
  .printing-visit .visit-list { border: 0; padding: 0; }
  .printing-visit .visit-list li { display: grid; grid-template-columns: 12pt 1fr; column-gap: 8pt; padding: 7pt 0; break-inside: avoid; }
  .printing-visit .visit-list li::before { content: ""; width: 9pt; height: 9pt; border: 1pt solid; align-self: center; }
  .printing-visit [data-open] { padding: 0; min-height: 0; font: inherit; text-decoration: none; }
  .printing-visit .print-room { display: block; grid-column: 2; font-size: 9pt; }
  .printing-visit .visit-print-notes { display: block; min-height: 42pt; border-bottom: 1px solid; break-inside: avoid; padding-top: 8pt; }
}

.js .header[data-tucked]:not(:has(:focus-visible)) {
  opacity: 0;
  transform: translateY(-100%);
  pointer-events: none;
}
.facts-note { max-width: 110ch; font-size: .8rem; line-height: 1.5; }
.facts sup { color: #67472c; font-size: .72em; }
.stat-value { display: inline-block; margin-inline-end: .09em; transform-origin: left bottom; font-weight: inherit; font-variant-numeric: lining-nums tabular-nums; transition: transform 200ms ease, color 200ms ease; }
.facts dd { line-height: 1.22; }
.story-photo figcaption strong { font-style: italic; }
.internal-note, .album-results .internal-note, .visit .internal-note {
  width: fit-content;
  max-width: 74ch;
  margin: .8rem 0 0;
  padding: .42rem .72rem;
  border-left: 3px solid #a4282d;
  background: #ffefea;
  color: #8b2028;
  font-size: .875rem;
  line-height: 1.5;
  font-weight: 650;
}
.level-directory summary { display: flex; align-items: center; gap: .7rem; padding: .85rem; list-style: none; }
.level-directory summary::-webkit-details-marker { display: none; }
.level-directory summary .ui-icon:last-child { margin-left: auto; transition: transform 170ms ease; }
.level-directory[open] summary .ui-icon:last-child { transform: rotate(45deg); }
.level-directory[open] > p { margin: .65rem .85rem 1rem; }
.level-grid button { border-radius: .4rem; gap: .4rem; }
.level-grid .ui-icon { width: 1.45rem; height: 1.45rem; margin-bottom: .28rem; }
.use-ideas { margin-top: 1.5rem; border-top: 1px solid #788776; padding-top: 1.1rem; }
.use-ideas h3 { font: normal 1.65rem/1.2 var(--serif); }
.use-ideas dl { display: grid; gap: 1.4rem clamp(1.5rem,3vw,3.25rem); margin: 1.2rem 0; }
.use-ideas dt { display: flex; align-items: center; gap: .6rem; color: #f0deba; font-weight: 680; line-height: 1.35; }
.use-ideas dt .ui-icon { width: 1.45rem; height: 1.45rem; color: #e6c488; }
.use-ideas dd { margin-top: .55rem; max-width: 52ch; color: #f3f0e6; font: 400 clamp(1.0625rem,1.5vw,1.18rem)/1.55 var(--serif); }
@media (min-width: 640px) {
  .use-ideas dl { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (min-width: 860px) {
  .use-ideas dl:has(> div:nth-child(3):last-child) { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (min-width: 1200px) {
  .use-ideas dl:has(> div:nth-child(4)) { grid-template-columns: repeat(4,minmax(0,1fr)); }
}
.visit-planner { margin-top: 1.3rem; }
.visit-planner fieldset { border: 0; padding: 0; margin: 0 0 1.1rem; min-width: 0; }
.visit-planner legend, .visit-planner > label { font-weight: 650; }
.priorities { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,10rem),1fr)); gap: .5rem; margin-top: .6rem; }
.priorities label { display: flex; gap: .5rem; align-items: center; min-height: 44px; padding: .45rem .65rem; background: var(--paper); border: 1px solid #a9afa0; border-radius: .35rem; font-size: .9rem; line-height: 1.35; cursor: pointer; }
.priorities label:has(:checked) { color: white; background: var(--deep); border-color: var(--deep); }
.priorities input { flex: none; width: 1rem; height: 1rem; margin: 0; accent-color: #315c3e; }
.priorities label:has(:focus-visible) { outline: 2px solid #9c5527; outline-offset: 2px; }
.visit-planner textarea { display: block; width: 100%; resize: vertical; margin-top: .4rem; padding: .75rem; color: var(--ink); background: var(--paper); border: 1px solid #9da28f; border-radius: .3rem; font: inherit; }
#plan-storage { font-size: .85rem; }

#viewer {
  position: fixed;
  inset: 0;
  width: min(calc(100vw - 48px), 1180px);
  height: min(calc(100dvh - 42px), 1000px);
  margin: auto;
  padding: 0;
  max-width: none;
  max-height: none;
  overflow: auto;
  color: #22382e;
  background: #faf8f1;
  border: 1px solid #b2b6aa;
  border-radius: 14px;
  box-shadow: 0 24px 120px #09191285;
}
#viewer[open] { display: grid; grid-template-rows: auto minmax(80px, 1fr) auto; }
#viewer::backdrop { background: #0e1c18dc; backdrop-filter: blur(6px); }
.viewer-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .95rem clamp(1rem,2.7vw,2rem); }
.viewer-heading { min-width: 0; }
#viewer-room { font-weight: 650; color: #5e665a; font-size: .83rem; letter-spacing: .035em; }
.viewer-heading h2 { font: normal clamp(1.4rem, 2.6vw, 2.4rem)/1.1 var(--serif); letter-spacing: -.035em; overflow-wrap: anywhere; text-wrap: initial; }
.viewer-button, .viewer-arrow { display: inline-flex; gap: .5rem; align-items: center; justify-content: center; min-height: 44px; padding: .55rem .85rem; border-radius: 2rem; background: transparent; border: 1px solid #9baba0; color: var(--deep); font: 600 .9rem/1.25 var(--sans); }
.viewer-close, .viewer-arrow { width: 44px; height: 44px; flex: none; padding: 0; }
.viewer-close svg { width: 1.35rem; height: 1.35rem; }
.viewer-mat { min-height: 0; position: relative; background: #202924; }
.viewer-stage { width: 100%; height: 100%; min-height: 0; touch-action: pan-y pinch-zoom; background: center / contain no-repeat; }
.viewer-stage img { width: 100%; height: 100%; object-fit: contain; background: transparent; }
.viewer-arrow { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; border-color: #eeefe88c; background: #1a2924e8; }
.viewer-arrow.prev { left: .85rem; }
.viewer-arrow.prev svg { transform: rotate(180deg); }
#next-photo { right: .85rem; }
.viewer-arrow:disabled { opacity: .38; cursor: default; }
.viewer-bottom { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: .45rem 1rem; padding: .7rem clamp(1rem,2.7vw,2rem) .8rem; }
.viewer-index { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; min-width: 0; }
#viewer-position { white-space: nowrap; font-size: .85rem; font-weight: 650; font-variant-numeric: tabular-nums; }
#viewer-thumbs { display: flex; gap: .34rem; }
#viewer-thumbs button { width: 54px; height: 44px; padding: 3px; background: transparent; border: 2px solid transparent; border-radius: 6px; }
#viewer-thumbs img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
#viewer-thumbs [aria-pressed="true"] { border-color: #375d46; }
#viewer-save { grid-column: 2; grid-row: 1; width: auto; justify-self: end; }
#viewer-save[aria-pressed="true"] { color: #fff; background: var(--deep); }
#viewer-note { grid-column: 1/-1; font-size: .8rem; line-height: 1.35; color: #566155; }
#viewer :focus-visible { outline: 3px solid #a55018; outline-offset: 2px; }
html:not(.js) :is(.visit-planner,.use-ideas) { display: none; }

@media (max-width: 640px) {
  #viewer { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }
  .viewer-top { padding: max(.65rem,env(safe-area-inset-top)) .85rem .7rem; }
  .viewer-bottom { padding: .6rem .85rem max(.75rem,env(safe-area-inset-bottom)); }
  .viewer-index { display: contents; }
  #viewer-thumbs { grid-column: 1/-1; grid-row: 2; justify-content: center; }
  #viewer-thumbs button { width: clamp(44px,12vw,58px); }
  .viewer-arrow.prev { left: .45rem; }
  #next-photo { right: .45rem; }
  #viewer-save { font-size: .84rem; }
  #viewer-note { text-align: center; }
}
@media (max-height: 520px) and (orientation: landscape) {
  #viewer { width: 100vw; height: 100dvh; border-radius: 0; }
  .viewer-top, .viewer-bottom { padding: .25rem .8rem; }
  #viewer-thumbs button { width: 44px; }
  #viewer-room { display: none; }
  #viewer-note { font-size: .75rem; }
}

/* Copper on dark surfaces, forest on light surfaces. */
:root { --interaction-pine: #244631; --interaction-gold: #f3bd77; --interaction-rust: #86391e; }
:is(.header nav a,.header .wordmark,.footer .wordmark,.album-directory a,.text-link,.browse-all,.back-albums,.filter-reset,.visit-list [data-open]):is(:hover,:focus-visible,:active) {
  color: #813819;
}
:is(.header .header-visit,.button-outline,.menu-toggle,.album-directory summary,.level-directory summary,.level-grid button,.priorities label,.visit-list [data-remove]):is(:hover,:focus-visible,:active),
.level-grid button:not([aria-pressed="true"]):hover {
  color: #fffaf0;
  background: var(--interaction-pine);
  border-color: var(--interaction-pine);
}
.album-directory :is(a,summary):is(:hover,:focus-visible,:active) span,
.header .header-visit:is(:hover,:focus-visible,:active) #visit-count { color: inherit; }
.header .header-visit:is(:hover,:focus-visible,:active) #visit-count { background: #42634e; }
.hero .button-solid:is(:hover,:focus-visible,:active) { background: var(--interaction-rust); color: white; border-color: #f3bd77; }
.guide-link:is(:hover,:focus-visible,:active) { color: var(--interaction-gold); }
@media (min-width: 761px) {
  .hero .text-link:is(:hover,:focus-visible,:active) { color: #ffda92; }
}
.potential .guide-modes button:is(:hover,:focus-visible,:active),
#guide-save:is(:hover,:focus-visible,:active), .guide-image:is(:hover,:focus-visible,:active) .guide-expand,
#viewer .viewer-arrow:not(:disabled):is(:hover,:focus-visible,:active) {
  color: #211a12; background: var(--interaction-gold); border-color: var(--interaction-gold);
}
#viewer .viewer-button:is(:hover,:focus-visible,:active) { color: white; background: var(--interaction-rust); border-color: var(--interaction-rust); }
#viewer-thumbs button:is(:hover,:focus-visible,:active) { border-color: var(--interaction-rust); background: #f5d0a2; }
.gallery-card:is(:hover,:focus-visible,:active) .gallery-title { color: #813819; }
.gallery-card:is(:hover,:focus-visible,:active) .gallery-zoom { color: white; background: var(--interaction-rust); }
@media (hover: hover) and (pointer: fine) {
  .facts > div:hover .stat-value { color: #843f23; transform: scale(1.12); transform-origin: left center; }
  .facts > div:hover dd > span { translate: .4em 0; }
}
@media (prefers-reduced-motion: reduce) {
  .facts > div:hover .stat-value { transform: none; }
  .facts > div:hover dd > span { translate: none; }
}
@media print {
  .internal-note, .visit-planner { display: none !important; }
  .printing-visit .stat-value { display: none; }
  .printing-visit .facts .sr-only { position: static; width: auto; height: auto; overflow: visible; clip-path: none; font-weight: inherit; }
  #print-question { white-space: pre-wrap; overflow-wrap: anywhere; }
  #print-question:not(:empty)::before { content: "Mi pregunta · "; font-weight: bold; }
  #print-priorities:empty { display: none; }
}

/* Browse the photographic collection by zone, then by individual room. */
.gallery-controls { margin: 1.25rem 0 1rem; }
.area-choices {
  display: flex; flex-wrap: wrap; gap: .38rem;
  padding: .4rem; border: 1px solid #c6cab9; background: #eeefe5; border-radius: .85rem;
}
.area-choices button {
  flex: 1 1 auto; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: .45rem .65rem; border: 1px solid transparent; border-radius: .55rem;
  color: #314937; background: transparent; font-size: .94rem; line-height: 1.3; font-weight: 610;
}
.area-choices .ui-icon { width: 1.28rem; height: 1.28rem; }
.area-choices button[aria-pressed="true"] { background: #254936; color: #fffdf2; box-shadow: 0 2px 4px #152f241c; }
.filter-tools { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; padding-block: .65rem .15rem; }
.filter-tools .gallery-count { margin-left: auto; font-variant-numeric: tabular-nums; }
.room-picker { position: relative; min-width: 0; max-width: 100%; }
.room-picker summary {
  display: flex; align-items: center; gap: .55rem; width: fit-content; max-width: 100%;
  min-height: 44px; padding: .4rem .85rem; border-radius: 2rem; list-style: none; cursor: pointer;
  background: #fcfbf6; border: 1px solid #aab3a2; font-weight: 620; font-size: .91rem; color: #294632;
}
.room-picker summary::-webkit-details-marker { display: none; }
.picker-chevron { width: .88rem; height: .88rem; margin-left: .2rem; transform: rotate(90deg); }
.room-picker[open] .picker-chevron { transform: rotate(-90deg); }
.room-picker[open] summary, .room-picker .chosen-room { background: #e1e9db; border-color: #748675; }
.room-panel {
  position: absolute; z-index: 5; left: 0; top: calc(100% + .4rem);
  width: min(34rem, 80vw); padding: .8rem;
  background: var(--paper); border: 1px solid #b5bfaf; border-radius: .8rem;
  box-shadow: 0 16px 40px #1c332526;
}
.room-search { display: flex; align-items: center; gap: .5rem; padding-inline: .65rem; border: 1px solid #a2b09b; background: #f5f5ec; border-radius: .38rem; }
.room-search input { min-width: 0; width: 100%; border: 0; min-height: 42px; background: transparent; font: inherit; color: var(--ink); }
.room-search:focus-within { outline: 2px solid #9c5527; outline-offset: 1px; }
.room-search input:focus { outline: none; }
.room-options { max-height: min(42dvh, 24rem); overflow: auto; overscroll-behavior: contain; scrollbar-color: #9baa98 transparent; }
.room-options > div { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .18rem .5rem; }
.room-options h4 { grid-column: 1/-1; display: flex; align-items: center; gap: .45rem; font: normal 1.25rem/1.3 var(--serif); margin: .55rem 0 .25rem; padding-block: .2rem .4rem; border-bottom: 1px solid var(--line); }
.room-options h4 .ui-icon { width: 1.05rem; height: 1.05rem; }
.room-options button, #clear-room {
  min-height: 44px; padding: .4rem .48rem; border: 1px solid transparent; border-radius: .3rem;
  font: 550 .9rem/1.35 var(--sans); text-align: left; background: none; color: var(--ink);
}
.room-options button { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.room-options button span { color: #58664f; font-size: .8rem; font-variant-numeric: tabular-nums; }
.room-options button[aria-pressed="true"] { border-color: #788f78; background: #e4ebdf; }
.room-options button:focus-visible { outline-offset: -2px; }
#clear-room { text-decoration: underline; text-underline-offset: .18em; }
#clear-room:is(:hover,:focus-visible,:active) { color: #813819; }
#room-empty { padding: .6rem .25rem .1rem; font-size: .9rem; }
.area-choices button:is(:hover,:focus-visible,:active),
.room-picker summary:is(:hover,:focus-visible,:active),
.room-picker .room-options button:is(:hover,:focus-visible,:active) { background: #754026; border-color: #754026; color: #fffaf1; }
.room-options button:is(:hover,:focus-visible,:active) span { color: inherit; }
.area-choices button, .room-picker summary, .room-options button { transition: color 140ms ease, background-color 140ms ease; }

.gallery-tag, .guide-caption, .story-photo figcaption > span { font-style: italic; }
.town-photo { margin: 1.35rem 0 1.15rem; }
.town-photo img { width: 100%; height: auto; border-radius: .35rem; aspect-ratio: 4/3; }
.town-photo figcaption { display: grid; gap: .15rem; margin-top: .55rem; color: var(--quiet); font-size: .8rem; line-height: 1.45; }
.town-photo figcaption strong { color: var(--deep); font: italic 1.05rem/1.35 var(--serif); }
.town-photo figcaption a { display: inline; margin: 0; text-underline-offset: .17em; }
.town-photo figcaption a:is(:hover,:focus-visible) { color: #813819; }
.footer { isolation: isolate; position: relative; color: #fff9e9; background: #203b2e; border: 0; }
.footer::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("assets/laderas.svg") center bottom / 100% 86% no-repeat; opacity: .45;
}
.footer-inner { min-height: 7.6rem; }
.footer p { color: #e3e9d9; }
.footer :is(.wordmark,.text-link):is(:hover,:focus-visible,:active) { color: #ffcb87; }
.footer a:focus-visible { outline-color: #ffcb87; }
@media (min-width: 761px) and (max-width: 1020px) {
  .area-choices button { font-size: .87rem; padding-inline: .35rem; }
}
@media (max-width: 650px) {
  .area-choices { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .2rem; }
  .area-choices button { justify-content: start; font-size: .88rem; }
  .area-choices button:first-child:nth-last-child(odd) { grid-column: 1/-1; }
  .filter-tools { gap: .35rem .7rem; }
  .room-picker[open] { flex-basis: 100%; }
  .room-panel { position: static; width: 100%; margin-top: .4rem; box-shadow: none; }
  .room-options { max-height: min(42dvh,20rem); }
  .footer-inner { padding-block: 1.5rem 2.4rem; }
}
@media (max-width: 420px) {
  .room-options > div { grid-template-columns: minmax(0,1fr); }
  .filter-tools .gallery-count { font-size: .83rem; }
}
@media screen and (max-width: 420px) {
  .facts > div { display: grid; align-content: start; padding-inline: .65rem 0; }
  .facts > div:nth-child(odd) { padding-right: .65rem; }
  .facts dd { grid-row: 1; font-size: 1.7rem; }
  .facts dt { font-size: .875rem; }
  .facts dd span { font-size: .8rem; }
  .facts > div:nth-child(n+3) dd span { display: block; margin-top: .17rem; }
}

#guide-plan { display: inline-flex; min-height: 44px; align-items: center; }
#visit-interest, #inquiry-text {
  display: block;
  width: 100%;
  min-height: 44px;
  margin-top: .4rem;
  padding: .55rem .7rem;
  border: 1px solid #9da28f;
  border-radius: .3rem;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}
#inquiry-text { resize: vertical; }
.visit-planner fieldset { margin-top: 1.1rem; }
.visit #interest-tip { font-size: .92rem; margin-top: .5rem; }
#inquiry-feedback:empty, #print-interest:empty { display: none; }
#manual-inquiry { margin-top: 1rem; }
@media (max-width: 760px) {
  #guide-link { display: inline-flex; align-items: center; min-height: 44px; }
  .visit-actions .button { flex: 1 1 100%; }
  .hero-figure figcaption {
    position: static;
    max-width: none;
    padding: .55rem 18px;
    background: #203b2e;
    line-height: 1.4;
  }
}
@media (max-width: 530px) {
  .hero .hero-image { aspect-ratio: 2.1; max-height: 30svh; }
  .hero-copy { padding-block: 1rem 1.5rem; }
  .hero-copy h1 { font-size: clamp(2.5rem, 10vw, 3.5rem); margin-block: .55rem; }
  .hero-intro { margin-top: .65rem; line-height: 1.5; }
  .hero-actions { margin-top: .85rem; }
  .hero-business { column-gap: .85rem; }
  .guide-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .guide-modes button {
    flex-direction: column;
    gap: .3rem;
    padding: .6rem .25rem;
    border-radius: .55rem;
    font-size: .85rem;
    line-height: 1.25;
    text-align: center;
  }
  .tour-stops a { align-items: center; text-align: center; }
}
@media (max-width: 390px) and (max-height: 640px) {
  .hero .hero-image { max-height: 24svh; }
}
@media (max-width: 360px) {
  .hero-copy { padding-top: .55rem; }
  .hero .eyebrow { letter-spacing: .055em; }
  .hero .eyebrow-line { display: none; }
  .hero-copy h1 { margin-block: .4rem; }
  .hero-intro { margin-top: .5rem; }
  .hero-actions { margin-top: .6rem; }
  .hero-business { column-gap: .65rem; }
}
@media print {
  #manual-inquiry, #inquiry-feedback, #guide-plan { display: none !important; }
}
