.oak-component {
  --oak-comp-ink: var(--oak-ink, #163a35);
  --oak-comp-line: var(--oak-line, #d8dfda);
  --oak-comp-accent: var(--oak-accent, #567465);
  --oak-comp-wash: var(--oak-mist, #f2f5f2);
  --oak-comp-paper: var(--oak-surface, #fff);
  --oak-comp-serif: var(--oak-serif, Georgia, serif);
  width: min(calc(100% - clamp(2rem, 8vw, 6rem)), 76rem);
  margin-inline: auto;
  margin-block: clamp(3rem, 7vw, 6rem);
  scroll-margin-top: 6rem;
  color: var(--oak-comp-ink);
}
.oak-component *, .oak-component *::before, .oak-component *::after { box-sizing: border-box; }
.oak-component-head { max-width: 52rem; margin: 0 0 clamp(1rem, 2.7vw, 2.25rem); }
.oak-component-head h2 { margin: 0; font: 500 clamp(2rem, 4.8vw, 3.85rem)/1.05 var(--oak-comp-serif); letter-spacing: -.035em; color: inherit; }
.oak-component-head > p { max-width: 66ch; margin: .8rem 0 0; line-height: 1.65; }
.oak-component :is(a, button, input, select, summary):focus-visible { outline: 3px solid #ad7529; outline-offset: 3px; }
.oak-component [hidden] { display: none !important; }
.oak-explorer-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(16rem, .9fr); gap: clamp(1.25rem, 4vw, 4rem); align-items: start; }
.oak-explorer-image { position: relative; isolation: isolate; min-width: 0; line-height: 0; }
.oak-explorer-image picture, .oak-explorer-image img { display: block; width: 100%; }
.oak-explorer-image img { height: auto; border-radius: .45rem; }
.oak-markers { position: absolute; inset: 0; pointer-events: none; }
.oak-pin {
  position: absolute;
  left: clamp(22px, var(--pin-x), calc(100% - 22px));
  top: clamp(22px, var(--pin-y), calc(100% - 22px));
  transform: translate(-50%, -50%);
  pointer-events: auto;
  width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: transparent; color: #103b35; cursor: pointer;
}
.oak-pin span {
  display: grid; place-items: center; width: 32px; height: 32px;
  border: 1px solid rgb(255 255 255 / .9); border-radius: 50%;
  background: rgb(255 255 255 / .96); box-shadow: 0 1px 8px rgb(0 0 0 / .45);
  color: inherit; font: 500 23px/1 system-ui, sans-serif;
}
.oak-pin[aria-expanded="true"] span, .oak-pin:hover span { background: #173e37; color: #fff; }
.oak-pin[aria-expanded="true"] span { font-size: 0; }
.oak-pin[aria-expanded="true"] span::before { content: '−'; font-size: 22px; }
.oak-detail { margin: 0; padding: 0; border: 0; border-block-start: 1px solid var(--oak-comp-line); background: transparent; }
.oak-detail:last-child { border-block-end: 1px solid var(--oak-comp-line); }
.oak-detail summary, .oak-gallery-more summary {
  display: flex; align-items: center; justify-content: space-between; gap: .85rem;
  min-height: 48px; cursor: pointer; list-style: none; line-height: 1.38; color: inherit; 
}
.oak-detail summary { padding: .85rem .2rem; font-weight: 650; }
.oak-detail summary::-webkit-details-marker, .oak-gallery-more summary::-webkit-details-marker { display: none; }
.oak-detail summary::after { content: '+'; font-size: 1.3rem; font-weight: 400; line-height: 1; }
.oak-detail[open] summary::after { content: '−'; }
.oak-detail p { max-width: 66ch; margin: -.1rem 0 1rem; line-height: 1.62; color: inherit; }
.oak-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.85rem, 2.1vw, 1.75rem); }
.oak-gallery-item { min-width: 0; margin: 0; scroll-margin-top: 6rem; }
.oak-gallery-item > a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: .3rem; }
.oak-gallery-item > a picture, .oak-gallery-item > a img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: inherit; }
.oak-gallery-item figcaption { padding-top: .5rem; font-size: .9rem; line-height: 1.45; }
.oak-zoom-icon {
  pointer-events: none; position: absolute; inset: auto .55rem .55rem auto;
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 50%; color: #fff; background: rgb(17 43 38 / .79);
}
.oak-zoom-icon::before { content: ''; width: 11px; height: 11px; border: 1.5px solid currentColor; border-radius: 50%; margin: -2px 0 0 -2px; }
.oak-zoom-icon::after { content: ''; position: absolute; width: 6px; height: 1.5px; background: currentColor; transform: translate(5px, 5px) rotate(45deg); }
.oak-gallery-more { margin-block-start: 1.35rem; }
.oak-gallery-more summary {
  justify-content: center; width: fit-content; margin-inline: auto; padding: .55rem 1.15rem;
  border: 1px solid var(--oak-comp-ink); border-radius: 3px; font-size: .95rem; font-weight: 650;
}
.oak-gallery-more summary:hover { color: #fff; background: var(--oak-comp-ink); }
.oak-gallery-more[open] > .oak-gallery-grid { margin-block-start: clamp(1rem, 2vw, 1.6rem); }
.oak-gallery-more .oak-less-label, .oak-gallery-more[open] .oak-more-label { display: none; }
.oak-gallery-more[open] .oak-less-label { display: inline; }
html.oak-lightbox-open { overflow: hidden; }
.oak-lightbox:not([open]) { display: none; }
.oak-lightbox[open] {
  position: fixed; inset: 0; display: grid; place-items: center;
  border: 0; padding: clamp(.5rem, 2vw, 1.5rem); margin: 0;
  height: 100%; height: 100dvh; width: 100%; max-width: none; max-height: none;
  color: #fff; background: transparent; overscroll-behavior: contain;
}
.oak-lightbox::backdrop { background: rgb(8 21 20 / .96); }
.oak-dialog-inner { width: min(100%, 96rem); height: 100%; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: .45rem; }
.oak-dialog-top, .oak-dialog-bottom { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.oak-dialog-top { font-variant-numeric: tabular-nums; }
.oak-lightbox-photo { min-width: 0; min-height: 0; }
.oak-lightbox-photo picture, .oak-lightbox-photo img { display: block; height: 100%; width: 100%; object-fit: contain; }
.oak-dialog-bottom > p { margin: 0; text-align: center; line-height: 1.4; font-size: clamp(.875rem, 2.5vw, 1rem); }
.oak-dialog-control {
  display: grid; place-items: center; flex: 0 0 auto; width: 44px; height: 44px;
  margin: 0; padding: 0; border: 1px solid #a5b9b3; border-radius: 50%;
  background: transparent; color: #fff; font: 400 1.8rem/1 system-ui, sans-serif; cursor: pointer;
}
.oak-dialog-control:hover { background: #315149; }
.oak-calc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: clamp(.8rem, 3vw, 2rem); }
.oak-input-panel, .oak-result-panel { min-width: 0; border-radius: .4rem; padding: clamp(1rem, 3vw, 2.5rem); }
.oak-input-panel { border: 1px solid var(--oak-comp-line); background: var(--oak-comp-wash); }
.oak-input-panel[hidden] + .oak-result-panel { grid-column: 1 / -1; }
.oak-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .95rem 1.15rem; }
.oak-fields label { display: grid; min-width: 0; align-content: start; gap: .35rem; font-size: .925rem; font-weight: 650; }
.oak-calc-unit { grid-column: 1 / -1; }
.oak-number { position: relative; display: block; }
.oak-fields input, .oak-fields select {
  display: block; width: 100%; min-width: 0; min-height: 46px; margin: 0; padding: .6rem .8rem;
  border: 1px solid #8e9d96; border-radius: 3px; background: #fff; color: #193b34; font: inherit; font-size: 1rem; font-weight: 500;
}
.oak-fields input { appearance: textfield; padding-inline-end: 3.25rem; font-variant-numeric: tabular-nums; }
.oak-fields input::-webkit-inner-spin-button { -webkit-appearance: none; }
.oak-number > span { pointer-events: none; position: absolute; inset-inline-end: .7rem; top: 50%; transform: translateY(-50%); font-size: .8rem; font-weight: 500; }
.oak-result-panel { color: #fff; background: #173b35; }
.oak-monthly-label { margin: 0 0 .3rem; font-weight: 600; }
.oak-monthly { margin: 0 0 1rem; color: #fff; font: 500 clamp(2.6rem, 5vw, 4.4rem)/1 var(--oak-comp-serif); letter-spacing: -.045em; }
.oak-result-panel dl { display: grid; gap: .55rem; margin: 0; }
.oak-result-panel dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; font-size: .95rem; }
.oak-result-panel dt, .oak-result-panel dd { margin: 0; color: inherit; }
.oak-result-panel dd { font-variant-numeric: tabular-nums; font-weight: 650; white-space: nowrap; }
.oak-result-panel dl > div:last-child { border-top: 1px solid rgb(255 255 255 / .34); padding-top: .65rem; margin-top: .15rem; }
.oak-finance-note { max-width: 85ch; margin: .85rem 0 0; font-size: .91rem; line-height: 1.55; }
.oak-calc-error { margin: .65rem 0 0; color: #7b2f18; line-height: 1.4; }
.oak-calc-error:empty { margin: 0; }
@media (max-width: 48rem) {
  .oak-explorer-layout, .oak-calc-grid { grid-template-columns: minmax(0, 1fr); }
  .oak-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 27rem) {
  .oak-fields { gap: .9rem .65rem; }
  .oak-gallery-grid { gap: .7rem; }
  .oak-gallery-item figcaption { font-size: .84rem; }
  .oak-gallery-item > a { aspect-ratio: 1; }
  .oak-dialog-bottom { gap: .4rem; }
}
@media (max-width: 22rem) {
  .oak-fields { grid-template-columns: minmax(0, 1fr); }
}
