:root {
  color-scheme: light;
  --ink: #1f2426;
  --muted: #646e72;
  --paper: #f6f7f4;
  --surface: #ffffff;
  --line: #d8ded8;
  --moss: #516a54;
  --moss-dark: #263f31;
  --wine: #7b3043;
  --clay: #a96443;
  --blue: #dce9ed;
  --gold: #a67c35;
  --shadow: 0 18px 60px rgba(28, 34, 31, 0.14);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Aptos", "Inter", "SF Pro Display", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 30;
  transform: translateY(-160%);
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1rem;
  border-radius: var(--radius);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 4rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(12, 16, 13, 0.72), rgba(12, 16, 13, 0.18));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  min-width: 0;
  flex: 0 0 auto;
}

.brand-logo {
  display: block;
  width: clamp(7.25rem, 11vw, 9.5rem);
  max-width: 28vw;
  height: auto;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  width: 2.65rem;
  height: 2.65rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  font-weight: 700;
}

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 0.95rem;
  line-height: 1.2;
}

.brand small {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.9rem;
  font-weight: 850;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
}

.main-nav a {
  text-decoration: none;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.9rem;
}

.main-nav a:hover,
.main-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  outline: 0;
}

.main-nav a.active {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}

.language-toggle {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3rem;
  height: 2.45rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 850;
  letter-spacing: 0;
  cursor: pointer;
  backdrop-filter: blur(14px);
}

.language-toggle:hover,
.language-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.16);
  outline: 0;
}

.hero {
  position: relative;
  min-height: 82svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #111;
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: url("assets/gallery/zamek-dolni-berkovice-hero.jpg") center / cover;
  transform: scale(1.02);
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(9, 12, 10, 0.88) 0%, rgba(9, 12, 10, 0.64) 34%, rgba(9, 12, 10, 0.04) 68%, rgba(255, 250, 235, 0.28) 100%),
    linear-gradient(180deg, rgba(9, 12, 10, 0.08) 0%, rgba(9, 12, 10, 0.55) 100%),
    radial-gradient(circle at 76% 34%, rgba(255, 250, 235, 0.28), transparent 38%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(1160px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 8rem 0 4.5rem;
}

.eyebrow {
  margin: 0 0 0.85rem;
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #e8c878;
}

.rental-kicker {
  margin: 0 0 0.5rem;
  color: #fff;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  line-height: 1.08;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.15rem;
  font-size: 3rem;
  font-weight: 850;
}

.hero h1 {
  max-width: 18ch;
}

h2 {
  margin-bottom: 1rem;
  font-size: 2.25rem;
  font-weight: 820;
}

h3 {
  margin-bottom: 0.7rem;
  font-size: 1.15rem;
}

.hero-lead {
  max-width: 44rem;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  background: rgba(12, 17, 14, 0.58);
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.12rem;
  box-shadow: 0 1.2rem 3rem rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(10px);
}

.hero-motto {
  max-width: 43rem;
  margin-bottom: 1rem;
  color: #fff;
  font-size: clamp(1.35rem, 3vw, 2.4rem);
  font-weight: 880;
  line-height: 1.12;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  min-height: 2.9rem;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 0.72rem 1.05rem;
  text-decoration: none;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  outline: 0;
}

.button.primary {
  background: var(--wine);
  color: #fff;
  box-shadow: 0 16px 32px rgba(78, 24, 39, 0.28);
}

.button.primary:hover,
.button.primary:focus-visible {
  background: #8c3a50;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.9);
  color: var(--ink);
  border-color: rgba(31, 36, 38, 0.12);
}

.hero .button.secondary {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(14px);
}

.section {
  padding: 5.5rem 4rem;
}

.page-hero {
  position: relative;
  min-height: 48svh;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: #111;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(12, 14, 13, 0.84), rgba(12, 14, 13, 0.42)),
    linear-gradient(180deg, rgba(12, 14, 13, 0.18), rgba(12, 14, 13, 0.62)),
    var(--page-image, url("assets/gallery/owned/exterior-arcades-prampouch-courtyard.jpg")) center / cover;
  transform: scale(1.02);
}

.page-hero-content {
  position: relative;
  width: min(1040px, calc(100% - 3rem));
  margin: 0 auto;
  padding: 8rem 0 4rem;
}

.page-hero h1 {
  max-width: 13ch;
}

.page-hero p:not(.eyebrow) {
  max-width: 44rem;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.08rem;
}

.section-heading {
  width: min(1040px, 100%);
  margin: 0 auto 2.2rem;
}

.section-heading > p:not(.eyebrow) {
  max-width: 46rem;
  color: var(--muted);
}

.history,
.terms-section {
  background: var(--surface);
}

.overview-section {
  background:
    linear-gradient(135deg, rgba(220, 233, 237, 0.72), rgba(246, 247, 244, 0.95) 44%, rgba(255, 255, 255, 0.94)),
    var(--paper);
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: min(1040px, 100%);
  margin: 0 auto;
}

.overview-card {
  min-height: 14rem;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px rgba(31, 36, 38, 0.06);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease;
}

.overview-card:hover,
.overview-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(123, 48, 67, 0.35);
  outline: 0;
}

.overview-card span {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--clay);
  font-weight: 900;
}

.overview-card p {
  color: var(--muted);
}

.text-band {
  background: var(--surface);
}

.text-panel {
  width: min(1040px, 100%);
  margin: 0 auto;
  color: #394045;
  font-size: 1.04rem;
}

.text-panel p {
  max-width: 50rem;
}

.history-grid {
  display: grid;
  gap: 2.6rem;
  width: min(1040px, 100%);
  margin: 0 auto;
}

.history-copy {
  color: #394045;
  font-size: 1.02rem;
}

.history-copy p {
  margin-bottom: 1.1rem;
}

.timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0.2rem 0 0.65rem;
  list-style: none;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0.95rem;
  left: 5.55%;
  right: 5.55%;
  height: 2px;
  background: linear-gradient(90deg, rgba(123, 48, 67, 0.15), rgba(123, 48, 67, 0.62), rgba(123, 48, 67, 0.15));
}

.timeline li {
  position: relative;
  min-width: 0;
}

.timeline-point {
  position: relative;
  display: grid;
  justify-items: center;
  width: 100%;
  min-height: 3.2rem;
  padding: 1.85rem 0.12rem 0;
  border: 0;
  background: transparent;
  color: var(--wine);
  cursor: pointer;
}

.timeline-point::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 50%;
  width: 0.82rem;
  height: 0.82rem;
  transform: translateX(-50%);
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--wine);
  box-shadow: 0 0 0 1px rgba(123, 48, 67, 0.28);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.timeline-point:hover::before,
.timeline-point:focus-visible::before,
.timeline-point.is-active::before {
  transform: translateX(-50%) scale(1.28);
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(166, 124, 53, 0.18);
}

.timeline-point:focus-visible {
  outline: 0;
}

.timeline-point.is-active time {
  color: var(--ink);
}

.timeline time {
  display: block;
  color: var(--wine);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.08;
  text-align: center;
  white-space: nowrap;
}

.timeline-detail {
  min-height: 8rem;
  margin-top: 1rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9faf8;
}

.timeline-detail h3 {
  margin-bottom: 0.55rem;
  color: var(--wine);
  font-size: 1.5rem;
}

.timeline-detail p:not(.eyebrow) {
  max-width: 48rem;
  color: #4a5255;
  font-size: 1rem;
  line-height: 1.45;
}

.event-section {
  background:
    linear-gradient(135deg, rgba(220, 233, 237, 0.78), rgba(246, 247, 244, 0.95) 42%, rgba(241, 243, 238, 0.95)),
    var(--paper);
}

.event-grid,
.terms-grid {
  display: grid;
  gap: 1rem;
  width: min(1040px, 100%);
  margin: 0 auto;
}

.event-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.terms-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.event-card,
.terms-grid article {
  min-height: 13rem;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 10px 30px rgba(31, 36, 38, 0.06);
}

.event-number {
  display: inline-block;
  margin-bottom: 2rem;
  color: var(--clay);
  font-weight: 900;
}

.event-card p,
.terms-grid p,
.integration-note {
  color: var(--muted);
}

.legal-section,
.access-section {
  background: var(--surface);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(18rem, 0.65fr);
  gap: 1.2rem;
  width: min(1040px, 100%);
  margin: 0 auto;
}

.legal-card,
.info-card {
  padding: 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(31, 36, 38, 0.06);
}

.legal-card > :last-child,
.info-card > :last-child {
  margin-bottom: 0;
}

.detail-list {
  display: grid;
  gap: 0.75rem;
  margin: 1.3rem 0 0;
}

.detail-list div {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--line);
}

.detail-list dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.detail-list dd {
  margin: 0;
  font-weight: 720;
}

.plain-list,
.link-list {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}

.plain-list li {
  padding-left: 1rem;
  border-left: 3px solid rgba(123, 48, 67, 0.32);
  color: var(--muted);
}

.link-list a,
.inline-link {
  color: var(--wine);
  font-weight: 800;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: min(1040px, 100%);
  margin: 0 auto;
}

.info-card p {
  color: var(--muted);
}

.info-card strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--wine);
  font-size: 1.65rem;
  line-height: 1;
}

.nearby-panel,
.nearby-list {
  width: min(1040px, 100%);
  margin: 1.2rem auto 0;
}

.nearby-panel h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
}

.nearby-list {
  display: grid;
  gap: 0.85rem;
}

.nearby-item {
  display: grid;
  grid-template-columns: minmax(10rem, 0.3fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(31, 36, 38, 0.06);
}

.nearby-item strong {
  color: var(--wine);
  font-size: 1.08rem;
  line-height: 1.25;
}

.nearby-item p {
  margin: 0;
  color: var(--muted);
}

.single-aside {
  grid-template-columns: 1fr;
  margin-top: 1.2rem;
}

.notice-box {
  width: min(1040px, 100%);
  margin: 1.2rem auto 0;
  padding: 1rem 1.2rem;
  border: 1px solid rgba(81, 106, 84, 0.26);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
}

.gallery-section {
  overflow: hidden;
  background: #17211b;
  color: #fff;
}

.gallery-section .section-heading > p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.72);
}

.gallery-group {
  width: 100%;
}

.gallery-group + .gallery-group {
  margin-top: 3.2rem;
}

.gallery-group-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  width: min(1040px, calc(100% - 8rem));
  margin: 0 auto 1rem;
}

.gallery-group-heading h3 {
  margin: 0;
  color: #fff;
}

.gallery-group-heading p {
  max-width: 24rem;
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  text-align: right;
}

.gallery-shell {
  position: relative;
  width: 100%;
  overflow: visible;
}

.gallery-viewport {
  overflow-x: hidden;
  overflow-y: hidden;
}

.gallery-track {
  display: flex;
  width: max-content;
  gap: 1rem;
  padding: 0 4rem;
  will-change: transform;
}

.gallery-card {
  flex: 0 0 auto;
  width: min(26rem, 72vw);
  border: 0;
  border-radius: var(--radius);
  padding: 0;
  overflow: hidden;
  color: #fff;
  background: #000;
  cursor: zoom-in;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.3);
}

.gallery-card.placeholder-card {
  cursor: default;
}

.gallery-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 240ms ease, filter 240ms ease;
}

.gallery-card:hover img,
.gallery-card:focus-visible img {
  transform: scale(1.035);
  filter: saturate(1.08);
}

.gallery-caption {
  display: block;
  min-height: 4.2rem;
  padding: 0.9rem;
  background: rgba(12, 14, 13, 0.92);
  text-align: left;
}

.gallery-caption span {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
  font-weight: 450;
  line-height: 1.45;
}

.gallery-arrow {
  position: absolute;
  top: 48%;
  z-index: 4;
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(10, 14, 12, 0.7);
  color: #fff;
  font-size: 1.35rem;
  font-weight: 900;
  cursor: pointer;
  backdrop-filter: blur(14px);
  transition: background 160ms ease, transform 160ms ease;
}

.gallery-arrow:hover,
.gallery-arrow:focus-visible {
  background: rgba(123, 48, 67, 0.9);
  outline: 0;
  transform: translateY(-1px);
}

.gallery-arrow.previous {
  left: 1rem;
}

.gallery-arrow.next {
  right: 1rem;
}

.gallery-placeholder-visual {
  display: grid;
  aspect-ratio: 4 / 3;
  place-items: center;
  padding: 1.4rem;
  background:
    linear-gradient(135deg, rgba(220, 233, 237, 0.88), rgba(81, 106, 84, 0.7)),
    url("assets/gallery/owned/interior-green-room.jpg") center / cover;
}

.gallery-placeholder-visual span {
  display: inline-flex;
  max-width: 12rem;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  background: rgba(18, 23, 21, 0.6);
  color: #fff;
  text-align: center;
  font-weight: 850;
}

.terms-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.terms-grid article {
  display: flex;
  flex-direction: column;
  min-height: 12rem;
}

.document-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  width: min(1040px, 100%);
  margin: 1.2rem auto 0;
}

.document-overview article {
  display: flex;
  min-height: 12.5rem;
  flex-direction: column;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(31, 36, 38, 0.06);
}

.document-overview h3 {
  margin-bottom: 0.55rem;
}

.document-overview p {
  color: var(--muted);
}

.more-link {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  gap: 0.35rem;
  margin-top: auto;
  color: var(--wine);
  font-weight: 850;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.more-link::after {
  content: ">";
  font-size: 0.95em;
  line-height: 1;
}

.cta-band {
  background: #17211b;
  color: #fff;
}

.cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  width: min(1040px, 100%);
  margin: 0 auto;
}

.cta-inner p {
  max-width: 42rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.72);
}

.booking-section {
  background:
    linear-gradient(180deg, rgba(81, 106, 84, 0.1), rgba(255, 255, 255, 0)),
    var(--paper);
}

.booking-heading h2 {
  max-width: 24ch;
}

.booking-heading > p:not(.eyebrow) {
  max-width: 58rem;
  font-size: 1.05rem;
}

.booking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, 0.55fr);
  gap: 1.2rem;
  width: min(1040px, 100%);
  margin: 0 auto;
}

.availability-calendar {
  grid-column: 1 / -1;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.3rem;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.calendar-toolbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1rem;
  align-items: center;
}

.calendar-toolbar h3,
.calendar-toolbar p {
  margin: 0;
  text-align: center;
}

.calendar-toolbar p {
  color: var(--muted);
}

.calendar-nav {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #f9faf8;
  color: var(--ink);
  font-weight: 900;
  cursor: pointer;
}

.calendar-nav:hover,
.calendar-nav:focus-visible {
  border-color: var(--moss);
  background: var(--blue);
  outline: 0;
}

.calendar-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin: 1rem 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 750;
}

.calendar-legend span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #24332a;
}

.legend-dot {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 50%;
  border: 1px solid transparent;
}

.legend-dot.free {
  background: #7fb07d;
  border-color: #5d8f5f;
}

.legend-dot.busy {
  background: #747b75;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.45rem;
}

.calendar-weekdays {
  margin-bottom: 0.45rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  display: grid;
  align-content: start;
  min-height: 4.35rem;
  border: 2px solid #a5c8a5;
  border-radius: var(--radius);
  padding: 0.55rem;
  background: #eef7ed;
  color: #1f3a25;
  text-align: left;
  cursor: pointer;
}

.calendar-day:hover,
.calendar-day:focus-visible {
  border-color: var(--moss);
  outline: 3px solid rgba(81, 106, 84, 0.14);
}

.calendar-day.is-empty {
  visibility: hidden;
  pointer-events: none;
}

.calendar-day.is-past {
  color: #9ca5a0;
  background: #f1f3f0;
  border-color: #d8ded8;
  cursor: not-allowed;
}

.calendar-day.is-busy {
  border-color: #818982;
  background: #d1d6d0;
  color: #3f4641;
}

.calendar-day.is-selected {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 2px rgba(166, 124, 53, 0.32);
}

.calendar-day strong,
.calendar-day span {
  display: block;
}

.calendar-day strong {
  font-size: 1.1rem;
}

.calendar-day span {
  margin-top: 0.15rem;
  color: #426848;
  font-size: 0.76rem;
  line-height: 1.25;
  font-weight: 760;
}

.calendar-day .calendar-weekday-name {
  text-transform: lowercase;
}

.calendar-day .calendar-status {
  display: inline-block;
  width: max-content;
  max-width: 100%;
  margin-top: 0.25rem;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  background: rgba(25, 99, 56, 0.12);
  text-transform: uppercase;
  letter-spacing: 0;
  color: #225b34;
  font-size: 0.72rem;
  font-weight: 900;
}

.calendar-day:not(.is-busy):not(.is-past) .calendar-status {
  background: #1d6b3e;
  color: #fff;
}

.calendar-day.is-busy .calendar-status {
  background: #59615b;
  color: #fff;
  font-weight: 900;
}

.booking-form,
.booking-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.booking-form {
  display: grid;
  gap: 1rem;
  padding: 1.3rem;
}

.booking-form input,
.booking-form select,
.booking-form textarea {
  max-width: 100%;
  min-width: 0;
}

.form-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.choice-group {
  display: grid;
  gap: 0.6rem;
  min-width: 0;
  margin: 0;
  border: 0;
  padding: 0;
}

.choice-group legend {
  color: #374046;
  font-size: 0.92rem;
  font-weight: 800;
}

.choice-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.choice-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3rem;
  border: 1px solid #cbd4ce;
  border-radius: var(--radius);
  padding: 0.72rem 0.8rem;
  background: #fbfcfb;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
}

.choice-option:has(input:checked) {
  border-color: var(--moss);
  background: #eef4ee;
  box-shadow: inset 0 0 0 2px rgba(81, 106, 84, 0.14);
}

.choice-option:focus-within {
  border-color: var(--moss);
  outline: 3px solid rgba(81, 106, 84, 0.16);
}

.choice-option input {
  width: 1rem;
  height: 1rem;
  accent-color: var(--moss);
}

.customer-fields {
  display: grid;
  gap: 1rem;
  border: 1px solid rgba(81, 106, 84, 0.18);
  border-radius: var(--radius);
  padding: 1rem;
  background: #f7f9f6;
}

.customer-fields[hidden] {
  display: none;
}

.form-row {
  display: grid;
  gap: 0.4rem;
}

.form-row label,
.check-row {
  color: #374046;
  font-size: 0.92rem;
  font-weight: 800;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  min-height: 3rem;
  border: 1px solid #cbd4ce;
  border-radius: var(--radius);
  padding: 0.72rem 0.8rem;
  background: #fbfcfb;
  color: var(--ink);
}

.form-row textarea {
  resize: vertical;
}

.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
  border-color: var(--moss);
  outline: 3px solid rgba(81, 106, 84, 0.16);
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-weight: 700;
}

.check-row input {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.25rem;
  accent-color: var(--moss);
}

.check-row a {
  color: var(--wine);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.submit-button {
  width: fit-content;
  max-width: 100%;
}

.booking-panel {
  align-self: start;
  padding: 1.3rem;
  background:
    linear-gradient(180deg, rgba(220, 233, 237, 0.44), rgba(255, 255, 255, 0)),
    #fff;
}

.booking-summary {
  display: grid;
  gap: 0.8rem;
  margin: 1.3rem 0;
}

.booking-summary div {
  display: grid;
  gap: 0.1rem;
  padding-bottom: 0.8rem;
  border-bottom: 1px solid var(--line);
}

.booking-summary dt {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.booking-summary dd {
  margin: 0;
  font-weight: 750;
}

.download-link {
  margin-bottom: 1rem;
}

.foundation-link-section {
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: var(--surface);
}

.foundation-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.5rem;
  align-items: center;
  width: min(1040px, 100%);
  margin: 0 auto;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f9faf8;
}

.foundation-link h2 {
  margin-bottom: 0.45rem;
  font-size: 1.35rem;
}

.foundation-link p:not(.eyebrow) {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--muted);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 0.8fr 1fr 1fr;
  gap: 2rem;
  padding: 2rem 4rem;
  background: #121715;
  color: #fff;
}

.site-footer p {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.68);
}

.site-footer a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.footer-links {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.footer-links strong {
  margin-bottom: 0.2rem;
}

.footer-note {
  font-size: 0.9rem;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 4.5rem 5rem;
  background: rgba(5, 8, 6, 0.88);
}

.lightbox.is-open {
  display: flex;
}

.lightbox figure {
  display: grid;
  gap: 0.8rem;
  width: min(82rem, 100%);
  margin: 0;
}

.lightbox img {
  width: 100%;
  max-height: 76svh;
  border-radius: var(--radius);
  object-fit: contain;
  background: #000;
}

.lightbox figcaption {
  color: rgba(255, 255, 255, 0.82);
  text-align: center;
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  cursor: pointer;
}

.lightbox-close:hover,
.lightbox-nav:hover,
.lightbox-close:focus-visible,
.lightbox-nav:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  outline: 0;
}

.lightbox-close {
  top: 1.4rem;
  right: 1.4rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.5rem;
}

.lightbox-nav.prev {
  left: 1.4rem;
}

.lightbox-nav.next {
  right: 1.4rem;
}

@media (min-width: 900px) {
  .rental-kicker {
    font-size: 3rem;
  }

  h1 {
    font-size: 5rem;
  }

  h2 {
    font-size: 3rem;
  }
}

@media (max-width: 980px) {
  .site-header {
    align-items: flex-start;
    padding: 0.8rem 1rem;
  }

  .main-nav {
    justify-content: flex-end;
    flex-wrap: wrap;
    border-radius: var(--radius);
  }

  .main-nav a {
    padding: 0.45rem 0.6rem;
  }

  .language-toggle {
    height: 2.25rem;
    min-width: 2.75rem;
  }

  .section {
    padding: 4rem 1rem;
  }

  .gallery-group-heading {
    width: min(100%, calc(100% - 2rem));
  }

  .history-grid,
  .legal-layout,
  .booking-layout,
  .site-footer,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .event-grid,
  .info-grid,
  .terms-grid,
  .document-overview,
  .overview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cta-inner {
    display: grid;
  }

  .foundation-link {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .site-header {
    position: absolute;
    display: grid;
    width: 100%;
    gap: 0.65rem;
    padding-right: 4.6rem;
    background: linear-gradient(180deg, rgba(12, 16, 13, 0.82), rgba(12, 16, 13, 0.22));
  }

  .language-toggle {
    position: absolute;
    top: 0.85rem;
    right: 1rem;
  }

  .brand {
    min-width: 0;
  }

  .brand-logo {
    width: 7.4rem;
    max-width: 40vw;
  }

  .brand small {
    display: none;
  }

  .main-nav {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    padding: 0.32rem;
    scrollbar-width: none;
  }

  .main-nav::-webkit-scrollbar {
    display: none;
  }

  .main-nav a {
    flex: 0 0 auto;
    min-width: max-content;
    text-align: center;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-content {
    width: calc(100vw - 2rem);
    max-width: calc(100vw - 2rem);
    margin: 0 0 0 1rem;
    padding-bottom: 2.6rem;
  }

  .hero-lead {
    width: 22rem;
    max-width: calc(100vw - 2rem);
    overflow-wrap: break-word;
  }

  .hero-motto {
    width: 22rem;
    max-width: calc(100vw - 2rem);
  }

  .page-hero-content {
    width: calc(100% - 2rem);
    padding-bottom: 3rem;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 22rem;
    max-width: calc(100vw - 2rem);
  }

  .hero-actions .button {
    width: 100%;
  }

  h1 {
    max-width: 10ch;
    font-size: 2.7rem;
  }

  h2 {
    font-size: 2.05rem;
  }

  .section-heading,
  .section-heading > p:not(.eyebrow) {
    text-align: left;
  }

  .form-pair,
  .choice-row,
  .event-grid,
  .info-grid,
  .terms-grid,
  .document-overview,
  .nearby-item,
  .overview-grid {
    grid-template-columns: 1fr;
  }

  .booking-form,
  .booking-panel {
    padding: 1rem;
  }

  .availability-calendar {
    width: 100%;
    min-width: 0;
    padding: 0.68rem;
    overflow: hidden;
  }

  .calendar-legend {
    justify-content: flex-start;
    gap: 0.45rem;
  }

  .calendar-legend span {
    padding: 0.32rem 0.48rem;
    font-size: 0.78rem;
  }

  .calendar-toolbar {
    grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem;
    gap: 0.4rem;
  }

  .calendar-nav {
    width: 2.25rem;
    height: 2.25rem;
  }

  .calendar-toolbar h3 {
    font-size: 0.95rem;
  }

  .calendar-toolbar p {
    font-size: 0.76rem;
  }

  .calendar-grid,
  .calendar-weekdays {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    width: 100%;
    gap: 0.18rem;
  }

  .calendar-weekdays span {
    min-width: 0;
    font-size: 0.66rem;
  }

  .calendar-day {
    min-width: 0;
    min-height: 3.35rem;
    padding: 0.26rem 0.08rem;
    border-radius: 7px;
    text-align: center;
    overflow: hidden;
    overflow-wrap: normal;
  }

  .calendar-day strong {
    font-size: 0.82rem;
    line-height: 1;
  }

  .calendar-day span {
    margin-top: 0.05rem;
    font-size: 0.54rem;
    line-height: 1.05;
  }

  .calendar-day .calendar-status {
    margin-top: 0.12rem;
    padding: 0.08rem 0.16rem;
    font-size: clamp(0.48rem, 1.8vw, 0.56rem);
    line-height: 1.05;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .booking-form input,
  .booking-form select,
  .booking-form textarea {
    font-size: 16px;
  }

  .timeline {
    padding-top: 0.12rem;
  }

  .timeline::before {
    top: 0.9rem;
  }

  .timeline-point {
    min-height: 3.2rem;
    padding: 1.72rem 0.02rem 0;
  }

  .timeline-point::before {
    top: 0.46rem;
    width: 0.95rem;
    height: 0.95rem;
    border-width: 2px;
    box-shadow: 0 0 0 3px rgba(123, 48, 67, 0.12);
  }

  .timeline time {
    font-size: 0.62rem;
  }

  .timeline-detail {
    min-height: 9rem;
    padding: 1rem;
  }

  .timeline-detail h3 {
    font-size: 1.25rem;
  }

  .gallery-card {
    width: 82vw;
  }

  .gallery-track {
    padding: 0 1rem;
  }

  .gallery-group-heading {
    display: block;
  }

  .gallery-group-heading p {
    margin-top: 0.35rem;
    text-align: left;
  }

  .gallery-arrow {
    width: 2.65rem;
    height: 2.65rem;
  }

  .site-footer {
    padding: 2rem 1rem;
  }

  .lightbox {
    padding: 4rem 1rem;
  }

  .lightbox-nav {
    top: auto;
    bottom: 1rem;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }

  .gallery-track {
    transition: none !important;
  }

  .button,
  .gallery-card img {
    transition: none;
  }
}
