:root {
  --bg: #e9f4ff;
  --card: #fffaf2;
  --ink: #12324a;
  --ink-soft: #3f6480;
  --line: rgba(33, 82, 125, 0.2);
  --accent: #ef8d36;
  --accent-dark: #cb6c1f;
  --ok: #2c8a6a;
  --danger: #c14c3d;
  --shadow: 0 16px 36px rgba(20, 56, 90, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 13% 8%, #ffe6c4 0%, transparent 42%),
              radial-gradient(circle at 84% 10%, #cfeaff 0%, transparent 36%),
              var(--bg);
  line-height: 1.55;
}

.bg-glow {
  position: fixed;
  width: 24rem;
  height: 24rem;
  border-radius: 999px;
  filter: blur(86px);
  z-index: -1;
  opacity: 0.42;
}

.bg-glow-one {
  background: #ffbb79;
  top: -9rem;
  left: -7rem;
}

.bg-glow-two {
  background: #91d5ff;
  bottom: -9rem;
  right: -7rem;
}

.site-header {
  width: min(1150px, 94vw);
  margin: 1rem auto 0;
  padding: 0.74rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(245, 251, 255, 0.9);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: sticky;
  top: 0.6rem;
  z-index: 40;
}

.brand {
  text-decoration: none;
  color: inherit;
  display: flex;
  gap: 0.65rem;
  align-items: center;
  font-weight: 700;
}

.brand-mark {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: #ffe9cc;
  font-family: "Fraunces", serif;
}

.site-nav {
  display: flex;
  gap: 1.15rem;
  align-items: center;
}

.site-nav a {
  color: inherit;
  text-decoration: none;
  font-size: 0.95rem;
}

.site-nav a[aria-current="page"] {
  font-weight: 700;
}

.menu-toggle {
  display: none;
}

main,
.site-footer {
  width: min(1150px, 94vw);
  margin-inline: auto;
}

.hero {
  padding: 6rem 0 3.8rem;
}

.hero-home {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  margin-top: 1.2rem;
  min-height: min(72svh, 700px);
  padding: clamp(4.6rem, 8vw, 7rem) min(8vw, 6rem) 3.2rem;
  display: flex;
  align-items: end;
  background-image: linear-gradient(110deg, rgba(11, 35, 58, 0.78) 10%, rgba(18, 56, 92, 0.44) 44%, rgba(239, 141, 54, 0.34) 100%),
                    url("../media/img/villa/1.jpeg");
  background-size: cover;
  background-position: center;
}

.hero-home-inner {
  max-width: 40rem;
  color: #fff4e3;
}

.hero-home .eyebrow,
.hero-home .hero-copy {
  color: #ffe9c8;
}

.page-intro {
  padding: 5rem 0 0.8rem;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.1;
  font-family: "Fraunces", serif;
}

h1 {
  font-size: clamp(2rem, 5vw, 4.1rem);
  margin-top: 0.45rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.73rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.hero-copy {
  margin: 1.2rem 0 1.8rem;
  max-width: 128ch;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

.hero-actions,
.footer-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  min-height: 2.72rem;
  padding: 0.2rem 1.14rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: 700;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-dark);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}

.btn-ghost-light {
  border-color: rgba(255, 246, 231, 0.52);
  color: #fff8ee;
}

.content {
  padding: 3rem 0;
}

.section-head h2 {
  margin-top: 0.34rem;
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

.grid-two {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.info-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.info-grid article {
  background: rgba(242, 248, 255, 0.72);
  padding: 1.1rem;
  border-top: 2px solid rgba(239, 141, 54, 0.45);
}

.info-grid p {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
}

.video-embed {
  margin-top: 1.4rem;
  border-radius: 1.1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: #000;
}

.video-embed iframe,
.video-embed video {
  width: 100%;
  height: min(56vw, 720px);
  aspect-ratio: 16 / 9;
  border: 0;
  display: block;
}

.video-embed video {
  object-fit: cover;
}

.video-fallback {
  margin: 0.7rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.video-fallback a {
  color: inherit;
  font-weight: 700;
}

.card,
.media-section,
.price-table-wrap,
.winter-price,
.calendar-card,
.booking-form,
.booking-contact,
.feedback-entry,
.feedback-empty {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 1.15rem;
  padding: 1.2rem;
  box-shadow: var(--shadow);
}

.card ul {
  margin: 0.7rem 0 0;
  padding-left: 1.1rem;
}

.card li {
  margin: 0.45rem 0;
}

.map-wrap {
  margin-top: 1.3rem;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.map-wrap iframe {
  width: 100%;
  height: min(56vw, 420px);
  border: 0;
  display: block;
}

.villa-gallery {
  margin-top: 1.3rem;
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.gallery-switch {
  width: fit-content;
  display: flex;
  align-items: center;
  gap: 0.44rem;
  padding: 0.36rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #edf6ff;
  margin-inline: auto;
}

.gallery-toggle {
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  font-size: 1.02rem;
  min-height: 2.7rem;
  padding: 0.5rem 1.2rem;
  cursor: pointer;
}

.gallery-toggle.is-active {
  background: var(--accent);
  color: #fff;
}

.gallery-toggle:focus-visible {
  outline: 2px solid rgba(239, 141, 54, 0.42);
  outline-offset: 1px;
}

.villa-stage {
  margin: 1rem 0 0.8rem;
}

.villa-stage-media {
  position: relative;
}

.villa-stage img {
  width: 100%;
  height: min(62vw, 660px);
  object-fit: cover;
  border-radius: 1rem;
  border: 1px solid var(--line);
  display: block;
}

.villa-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 999px;
  border: 1px solid rgba(18, 50, 74, 0.24);
  background: rgba(255, 252, 246, 0.94);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(10, 26, 44, 0.16);
}

.villa-nav::before {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  display: block;
}

.villa-nav-prev {
  left: 0.8rem;
}

.villa-nav-prev::before {
  transform: rotate(-135deg);
}

.villa-nav-next {
  right: 0.8rem;
}

.villa-nav-next::before {
  transform: rotate(45deg);
}

.villa-nav:hover {
  background: #fff;
}

.villa-nav:focus-visible {
  outline: 2px solid rgba(239, 141, 54, 0.44);
  outline-offset: 1px;
}

.villa-stage-caption {
  margin-top: 0.54rem;
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.villa-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(96px, 120px);
  gap: 0.52rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
}

.villa-thumb {
  border: 2px solid transparent;
  border-radius: 0.74rem;
  background: #dbeaf8;
  padding: 0;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.85;
  transition: opacity 120ms ease, transform 120ms ease, border-color 120ms ease;
}

.villa-thumb img {
  width: 100%;
  height: 74px;
  object-fit: cover;
  display: block;
}

.villa-thumb.is-active {
  border-color: var(--accent);
  opacity: 1;
}

.villa-thumb:hover {
  transform: translateY(-1px);
}

.villa-thumb:focus-visible {
  outline: 2px solid rgba(239, 141, 54, 0.46);
  outline-offset: 1px;
}

.villa-thumbs-empty {
  margin: 0.2rem 0 0;
  color: var(--ink-soft);
}

.slideshow-grid {
  align-items: start;
}

.media-section h3 {
  margin-bottom: 0.8rem;
}

.slideshow {
  display: grid;
  gap: 0.7rem;
}

.slide-frame {
  position: relative;
  border-radius: 0.95rem;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #dfecf8;
}

.slide-frame img {
  width: 100%;
  height: min(56vw, 420px);
  object-fit: cover;
  display: block;
}

.slide-caption {
  position: absolute;
  left: 0.7rem;
  bottom: 0.7rem;
  font-size: 0.85rem;
  background: rgba(18, 48, 76, 0.72);
  color: #fff;
  border-radius: 999px;
  padding: 0.22rem 0.62rem;
}

.slide-controls {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.slide-controls button {
  border: 1px solid var(--line);
  background: #f7fbff;
  border-radius: 999px;
  padding: 0.3rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
}

.price-table tr {
  border-bottom: 1px solid var(--line);
}

.price-table tr:last-child {
  border-bottom: 0;
}

.price-table th,
.price-table td {
  padding: 0.76rem 0;
  text-align: left;
}

.price-table th {
  font-weight: 500;
}

.price-table td {
  font-weight: 700;
}

.price-table.full-width th {
  width: 72%;
}

.winter-price p {
  margin: 0.72rem 0 1rem;
}

.winter-price .btn {
  margin-top: 0.4rem;
}

.calendar-card {
  margin-top: 1.4rem;
}

.booking-calendar {
  display: grid;
  gap: 1rem;
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.calendar-nav-status {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-soft);
  text-align: center;
}

.calendar-nav-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.38rem 0.78rem;
  background: #f7fbff;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.calendar-nav-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.calendar-months {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.calendar-empty {
  margin: 0;
  padding: 0.65rem 0.8rem;
  border-radius: 0.7rem;
  background: #eef6ff;
  border: 1px solid var(--line);
  color: var(--ink-soft);
}

.calendar-month {
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  padding: 0.8rem;
  background: #f7fbff;
}

.calendar-month h3 {
  font-size: 1rem;
  margin-bottom: 0.7rem;
}

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

.day-head,
.day-cell {
  text-align: center;
  font-size: 0.8rem;
  padding: 0.4rem 0;
}

.day-head {
  font-weight: 700;
  color: var(--ink-soft);
}

.day-cell {
  border-radius: 0.4rem;
  background: #eef6ff;
}

.day-cell.empty {
  background: transparent;
}

.day-cell.booked {
  background: #ffe2cf;
  color: #9a4f15;
  font-weight: 700;
}

.day-cell.today {
  background: #dff1ff;
  color: #1a4f79;
  font-weight: 700;
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.day-cell.today:focus {
  box-shadow: 0 0 0 3px rgba(239, 141, 54, 0.24);
}

.calendar-legend {
  margin-top: 0.7rem;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

.calendar-legend span {
  display: inline-flex;
  gap: 0.36rem;
  align-items: center;
}

.dot {
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  display: inline-block;
}

.dot-free {
  background: #eef6ff;
  border: 1px solid var(--line);
}

.dot-booked {
  background: #ffdcbc;
}

.booking-grid {
  margin-top: 1.4rem;
  display: grid;
  grid-template-columns: 1.34fr 1fr;
  gap: 1rem;
}

.booking-form {
  display: grid;
  gap: 0.8rem;
}

.feedback-form {
  margin-top: 1.4rem;
}

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

.form-field {
  display: grid;
  gap: 0.34rem;
  font-size: 0.9rem;
  font-weight: 700;
}

.form-field input,
.form-field textarea,
.form-field select {
  font: inherit;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid rgba(33, 82, 125, 0.25);
  border-radius: 0.72rem;
  padding: 0.58rem 0.72rem;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: 2px solid rgba(191, 108, 58, 0.3);
  outline-offset: 1px;
}

.star-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.18rem;
}

.star-option {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 1.75rem;
  line-height: 1;
  padding: 0;
  cursor: pointer;
  color: #c8d9ea;
  transition: transform 120ms ease, color 120ms ease;
}

.star-option.is-active {
  color: #ef9a3e;
}

.star-option:hover {
  transform: translateY(-1px);
}

.star-option:focus-visible {
  outline: 2px solid rgba(191, 108, 58, 0.4);
  outline-offset: 2px;
  border-radius: 0.2rem;
}

.rating-value {
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.feedback-list {
  margin-top: 1.3rem;
  display: grid;
  gap: 0.85rem;
}

.feedback-entry p {
  margin: 0.45rem 0 0;
}

.feedback-meta {
  display: flex;
  gap: 0.7rem;
  font-size: 0.86rem;
  color: var(--ink-soft);
  flex-wrap: wrap;
}

.rating {
  color: #d67623;
}

.site-footer {
  margin-top: 2.1rem;
  margin-bottom: 2.5rem;
  padding: 1.45rem;
  border-radius: 1.2rem;
  background: #12324a;
  color: #ffeed8;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.site-footer .eyebrow {
  color: #b8dcff;
}

.site-footer p {
  margin: 0.52rem 0 0;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .info-grid,
  .grid-two,
  .booking-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .calendar-months {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .site-header {
    border-radius: 1rem;
  }

  .menu-toggle {
    display: inline-flex;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.45rem 0.8rem;
    background: transparent;
    color: inherit;
    font-weight: 700;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: calc(100% + 0.52rem);
    right: 1rem;
    min-width: 12rem;
    flex-direction: column;
    align-items: flex-start;
    border-radius: 0.92rem;
    border: 1px solid var(--line);
    background: #f5fbff;
    padding: 0.75rem;
  }

  .site-nav.open {
    display: flex;
  }

  .hero {
    padding-top: 4.6rem;
  }

  .hero-home {
    margin-top: 0.9rem;
    min-height: 64svh;
    padding-top: 4rem;
  }

  .field-row {
    grid-template-columns: 1fr;
  }

  .slide-frame img {
    height: min(64vw, 350px);
  }

  .villa-stage img {
    height: min(66vw, 420px);
  }

  .villa-nav {
    width: 2.3rem;
    height: 2.3rem;
  }

  .villa-nav-prev {
    left: 0.7rem;
  }

  .villa-nav-next {
    right: 0.7rem;
  }

  .villa-thumbs {
    grid-auto-columns: minmax(78px, 96px);
  }

  .villa-thumb img {
    height: 64px;
  }

  .gallery-toggle {
    font-size: 0.95rem;
    min-height: 2.45rem;
    padding: 0.45rem 1rem;
  }
}
