/* ---------------------------------
   De Vuurduin — shared styles
---------------------------------- */

:root {
  --forest: #263b30;
  --forest-light: #3d5948;
  --moss: #78836b;
  --sand: #ded6c5;
  --paper: #f3f0e8;
  --white: #fffdf8;
  --clay: #ad7357;
  --ink: #292d28;
  --muted: #77796f;

  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "DM Sans", Arial, sans-serif;

  --page-width: 1120px;
}

/* Reset and basics */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

#top{
  scroll-margin-top: 100px;
}

section[id]:not(#top) {
  scroll-margin-top: 50px;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: 400;
  line-height: 1.15;
}

h1 {
  font-size: clamp(3rem, 7vw, 6.5rem);
}

h2 {
  font-size: clamp(2.2rem, 4vw, 3.8rem);
}

h3 {
  font-size: 1.5rem;
}

.eyebrow {
  margin-bottom: 1rem;
  color: var(--moss);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.small-note {
  margin-top: 2rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.section-lead {
  max-width: 440px;
  color: var(--muted);
}

/* Buttons and links */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0.8rem 1.6rem;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.button-light {
  background: var(--white);
  color: var(--forest);
}

.button-light:hover {
  background: var(--sand);
}

.button-dark {
  background: var(--forest);
  color: var(--white);
}

.button-dark:hover {
  background: var(--forest-light);
}

.button-small {
  min-height: 42px;
  padding: 0.55rem 1.15rem;
  font-size: 0.82rem;
}

.text-link {
  display: inline-flex;
  gap: 0.7rem;
  align-items: center;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid currentColor;
  color: var(--forest);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
}

.text-link-light {
  color: var(--white);
}

/* Brand */

.brand,
.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.4rem;
  text-decoration: none;
}

.home-brand .brand-logo {
  width: 38px;
  height: 38px;
}
/* ---------------------------------
   Homepage
---------------------------------- */
.home-header {
  position: absolute;
  z-index: 3;
  top: 1.5rem;
  left: 6vw;
}

.home-page {
  min-height: 100%;
  overflow: hidden;
  background: var(--forest);
}

.home-screen {
  position: relative;
  display: flex;
  min-height: 100svh;
  min-height: 100vh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 3rem 1.5rem 2rem;
  color: var(--white);
}

.home-slideshow,
.home-slide,
.home-overlay {
  position: absolute;
  inset: 0;
}

.home-slideshow {
  z-index: 0;
}

.home-slide {
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 1.5s ease, transform 7s ease;
}

.home-slide.active {
  opacity: 1;
  transform: scale(1.08);
}

.home-overlay {
  z-index: 1;
  background: rgba(20, 34, 27, 0.42);
}

.home-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: min(760px, 100%);
  flex-direction: column;
  align-items: center;
  margin: auto;
  text-align: center;
}

.home-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: clamp(3rem, 9vh, 6rem);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.home-brand .brand-logo {
  width: 42px;
  height: 42px;
}

.home-welcome {
  margin-bottom: clamp(2.5rem, 7vh, 4rem);
}

.home-welcome .eyebrow {
  margin-bottom: 0.5rem;
  color: rgba(255, 253, 248, 0.8);
}

.home-welcome h1 {
  margin-bottom: 0.8rem;
  font-size: clamp(3.5rem, 8vw, 6rem);
}

.home-subtitle {
  margin: 0;
  color: rgba(255, 253, 248, 0.9);
  font-size: clamp(1rem, 2vw, 1.2rem);
}

.property-grid {
  display: grid;
  width: min(100%, 1040px);
  grid-template-columns: repeat(auto-fit, 220px);
  justify-content: center;
  gap: 1rem;
}

.property-card {
  display: flex;
  width: 220px;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border: 1px solid rgba(255, 253, 248, 0.45);
  background: rgba(38, 59, 48, 0.45);
  color: var(--white);
  text-align: left;
  text-decoration: none;
  backdrop-filter: blur(8px);
  transition: background 180ms ease, border-color 180ms ease;
}

.property-card:hover {
  background: rgba(96, 117, 104, 0.85);
  border-color: rgba(255, 253, 248, 0.65);
  color: var(--white);
}

.property-card-name {
  font-size: 0.95rem;
  font-weight: 500;
}

.property-card-arrow {
  font-size: 1.2rem;
}

.home-footer {
  position: relative;
  z-index: 2;
  width: 100%;
  margin-top: 2rem;
  color: rgba(255, 253, 248, 0.75);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-align: center;
  text-transform: uppercase;
}

/* Compact screens */

@media (max-height: 700px) {
  .home-screen {
    padding-top: 1.5rem;
    padding-bottom: 1rem;
  }

  .home-brand {
    margin-bottom: 2rem;
  }

  .home-welcome {
    margin-bottom: 2rem;
  }

  .home-welcome h1 {
    font-size: clamp(3rem, 7vw, 4.5rem);
  }

  .property-card {
    min-height: 60px;
  }
}

@media (max-width: 560px) {
  .home-screen {
    padding: 2rem 1.2rem 1.2rem;
  }

  .home-brand {
    margin-bottom: 3.5rem;
  }

  .home-welcome {
    margin-bottom: 2.5rem;
  }

  .home-welcome h1 {
    font-size: clamp(3.2rem, 14vw, 4.5rem);
  }

  .property-grid {
    grid-template-columns: 220px;
  }
}

/* ---------------------------------
   Property page header
---------------------------------- */

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 0.7rem 6vw;
  background: rgba(243, 240, 232, 0.96);
  border-bottom: 1px solid rgba(38, 59, 48, 0.1);
  backdrop-filter: blur(12px);
}

.site-header .brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--forest);
  font-family: var(--font-heading);
  font-size: 1.5rem;
}

.site-header .brand .brand-logo {
  width: 42px;
  height: 42px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2.5vw, 2.2rem);
}

.site-nav > a:not(.button) {
  color: var(--forest);
  font-size: 0.82rem;
  text-decoration: none;
}

.site-nav > a:not(.button):hover {
  color: var(--clay);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--forest);
}

/* ---------------------------------
   Property hero
---------------------------------- */

.property-hero {
  position: relative;
  display: flex;
  min-height: 85vh; /*consider picking a miniumum for large monitors:min(750px, 85vh);*/
  align-items: flex-end;
  overflow: hidden;
  background: var(--forest);
  color: var(--white);
}

.property-hero-image,
.property-hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.property-hero-image {
  object-fit: cover;
}

.property-hero-overlay {
  background: linear-gradient(
    0deg,
    rgba(20, 34, 27, 0.7),
    rgba(20, 34, 27, 0.05) 75%
  );
}

.property-hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--page-width), 90%);
  margin: 0 auto;
  padding: 5rem 0;
}

.property-hero-content .eyebrow {
  color: #e2d9c8;
}

.property-hero-content h1 {
  margin-bottom: 0.7rem;
}

.property-hero-content > p:not(.eyebrow) {
  margin-bottom: 1.8rem;
  font-size: 1.1rem;
}

/* ---------------------------------
   General sections
---------------------------------- */

.section {
  width: min(var(--page-width), 88%);
  margin: 0 auto;
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.section-intro {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 5rem;
  align-items: start;
}

.section-heading h2 {
  max-width: 700px;
  margin-bottom: 1rem;
}

.section-copy {
  max-width: 500px;
  padding-top: 2.2rem;
  color: #55594f;
}

.section-copy p + p {
  margin-top: 1.2rem;
}

.image-band {
  width: 100%;
  height: clamp(260px, 48vw, 580px);
  overflow: hidden;
  background: var(--sand);
}

.image-band img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.section-features {
  padding-bottom: 6rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.feature-item {
  padding-top: 1.2rem;
  border-top: 1px solid #c8c3b7;
}

.feature-item h3 {
  margin-bottom: 0.7rem;
}

.feature-item p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.feature-item img {
  display: block;
  object-fit: cover;
  width: 100%;
  aspect-ratio: 1 / 1;
}

.feature-more {
  margin-top: 2.5rem;
  text-align: left;
  color: #55594f;
}

/* ---------------------------------
   Area section
---------------------------------- */

.section-area {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: clamp(2.5rem, 7vw, 6rem);
  align-items: center;
}

.area-image {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.area-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.area-copy p:not(.eyebrow) {
  color: #55594f;
}

/* ---------------------------------
   Gallery
---------------------------------- */

.section-gallery {
  width: min(var(--page-width), 88%);
  margin: 0 auto;
  padding-top: 3rem;
}

.gallery-wide {
  width: min(92vw, 1500px);
  margin-left: 50%;
  transform: translateX(-50%);
}

.gallery-carousel {
    position: relative;
    margin-top: 2.5rem;
}

.gallery-viewport {
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
}

.gallery-viewport::-webkit-scrollbar {
  display: none;
}

.gallery-track {
  display: flex;
  gap: 1rem;
}

.gallery-slide {
  flex: 0 0 calc((100% - 2rem) / 3);
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  scroll-snap-align: start;
}

.gallery-controls {
    position: absolute;
    top: 50%;
    left: -80px;
    right: -80px;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
    z-index: 2;
}

.gallery-arrow {
    width: 42px;
    height: 42px;
    border: 1px solid #c8c3b7;
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background 0.2s ease;
    pointer-events: auto;
}

.gallery-arrow:hover {
  background: var(--sand);
}

.gallery-arrow:disabled {
  opacity: 0.3;
  cursor: default;
}
/* ---------------------------------
   Booking and footer
---------------------------------- */

.section-booking {
  display: flex;
  min-height: 420px;
  align-items: center;
  justify-content: center;
  padding: 5rem 6vw;
  background: var(--forest);
  color: var(--white);
  text-align: center;
}

.booking-content {
  max-width: 620px;
}

.booking-content .eyebrow {
  color: #c6cbb8;
}

.booking-content h2 {
  margin-bottom: 1rem;
}

.booking-content p:not(.eyebrow) {
  margin-bottom: 2rem;
  color: rgba(255, 253, 248, 0.8);
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  align-items: center;
  gap: 2rem;
  padding: 2.5rem 6vw;
  border-top: 1px solid rgba(38, 59, 48, 0.1);
}

.footer-contact,
.footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  font-size: 0.85rem;
}

.footer-contact a {
  color: var(--forest);
  text-decoration: none;
}

.footer-contact a:hover {
  color: var(--clay);
}

.footer-label {
  margin: 0;
  color: var(--muted);
}

.footer-back-to-top {
  justify-self: center;
  color: var(--forest);
  font-size: 0.85rem;
  text-decoration: none;
}

.footer-back-to-top:hover {
  color: var(--clay);
}

.footer-meta {
  justify-self: end;
  align-items: flex-end;
  color: var(--muted);
  font-size: 0.75rem;
}

.footer-credit {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.footer-credit img {
  display: block;
  width: auto;
  height: 2em;
}

.floating-back-to-top {
  position: fixed;
  right: 2rem;
  bottom: 2rem;
  z-index: 30;

  display: flex;
  align-items: center;
  justify-content: center;

  width: 44px;
  height: 44px;
  border: 1px solid var(--forest);
  border-radius: 50%;

  color: var(--forest);
  background: var(--paper);
  border-color: var(--paper);
  text-decoration: none;
  font-size: 1.3rem;

  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.floating-back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.floating-back-to-top:hover {
  background: var(--forest);
  color: var(--paper);
}

/* ---------------------------------
   Guest page
---------------------------------- */
.guest-header {
  padding: 1.5rem 6vw;
  border-bottom: 1px solid rgba(38, 59, 48, 0.1);
}

.guest-hero {
  padding: clamp(5rem, 12vw, 9rem) 8vw;
  background: var(--forest);
  color: var(--white);
}

.guest-hero > * {
  width: min(720px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.guest-hero .eyebrow {
  color: #c6cbb8;
}

.guest-hero h1 {
  margin-bottom: 1.5rem;
}

.guest-hero > p:last-child {
  max-width: 560px;
  margin-bottom: 0;
  color: rgba(255, 253, 248, 0.82);
  font-size: 1.05rem;
}

.guest-section {
  width: min(900px, 86%);
  margin: 0 auto;
  padding: 5rem 0;
}

.guest-section h2 {
  margin-bottom: 1.5rem;
}

.info-list {
  margin-top: 2.5rem;
}

.info-item {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 1.5rem;
  padding: 1.5rem 0;
  border-top: 1px solid #d1ccbf;
}

.info-item h3 {
  margin: 0;
  font-size: 1.2rem;
}

.info-item p {
  margin-bottom: 0.4rem;
  color: #55594f;
}

.info-item a {
  color: var(--forest);
}

.guest-section-alt {
  width: 100%;
  padding-right: 7%;
  padding-left: 7%;
  background: #e9e5da;
}

.guest-section-alt > * {
  width: min(900px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.guest-section-alt > .eyebrow {
  margin-bottom: 1rem;
}

.document-list {
  margin-top: 2rem;
  border-top: 1px solid #c9c3b6;
}

.document-link {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
  border-bottom: 1px solid #c9c3b6;
  color: var(--forest);
  text-decoration: none;
}

.document-link:hover {
  color: var(--clay);
}

.document-type {
  font-size: 0.8rem;
}

.tip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2.5rem;
}

.tip-item {
  padding-top: 1.2rem;
  border-top: 1px solid #d1ccbf;
}

.tip-item h3 {
  margin-bottom: 0.5rem;
}

.tip-item p {
  color: var(--muted);
}

.tip-item a {
  color: var(--forest);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

.guest-ending {
  padding: 5rem 7vw;
  background: var(--forest);
  color: var(--white);
  text-align: center;
}

.guest-ending h2 {
  margin-bottom: 0.8rem;
}

.guest-ending p {
  color: rgba(255, 253, 248, 0.8);
}

.guest-ending .text-link {
  margin-top: 1rem;
  color: var(--white);
}

/* ---------------------------------
   Responsive layout
---------------------------------- */

@media (max-width: 850px) {
  .site-header {
    min-height: 70px;
  }

  .menu-toggle {
    display: flex;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 0.5rem 6vw 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid rgba(38, 59, 48, 0.1);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav > a:not(.button) {
    padding: 0.8rem 0;
    border-bottom: 1px solid #ded9ce;
  }

  .site-nav .nav-booking {
    align-self: flex-start;
    margin-top: 1rem;
  }

  .section-intro,
  .section-area {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .section-copy {
    padding-top: 0;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .area-image,
  .area-image img {
    min-height: 340px;
  }

  .gallery-slide {
    flex-basis: calc((100% - 1rem) / 2);
  }
}

@media (max-width: 560px) {
  body {
    font-size: 15px;
  }

  .home-brand {
    margin: 1.5rem 6vw;
  }

  .home-content {
    padding: 3rem 7vw;
  }

  .home-content h1 {
    font-size: clamp(2.8rem, 13vw, 4.2rem);
  }

  .home-footer {
    padding: 1rem 6vw;
  }

  .property-hero {
    min-height: 620px;
    min-height: 75svh;
  }

  .property-hero-content {
    padding: 3.5rem 0;
  }

  .section {
    width: 86%;
    padding: 4.5rem 0;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .gallery-slide {
    flex-basis: 85%;
  }

  .site-footer {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1rem;
  }

  .footer-back-to-top {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-self: center;
  }

  .footer-meta {
    align-items: flex-end;
    text-align: right;
  }

  .guest-header {
    padding: 1.2rem 7vw;
  }

  .guest-hero {
    padding: 5rem 7vw;
  }

  .guest-hero h1 {
    font-size: clamp(3rem, 13vw, 4.2rem);
  }

  .guest-section {
    width: 86%;
    padding: 4rem 0;
  }

  .guest-section-alt {
    width: 100%;
    padding-right: 7%;
    padding-left: 7%;
  }

  .info-item {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .tip-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Respect reduced-motion preferences */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}