:root {
  --paper: #fbfaf7;
  --warm: #f4f0e8;
  --white: #ffffff;
  --ink: #2d2a26;
  --muted: #7c776f;
  --line: #e5e0d8;
  --olive: #59624c;
  --olive-soft: #e8ede0;
  --coral: #ff5a5f;
  --coral-soft: #ffe3e4;
  --sea: #4f8798;
  --dark: #191817;
  --shadow: 0 16px 40px rgba(45, 42, 38, .08);
  --radius: 22px;
  --max: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }

.container {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.section { padding: 92px 0; }
.section-tight { padding: 28px 0; }

.section-head {
  max-width: 620px;
  margin-bottom: 34px;
}
.section-head h2,
.contact-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.section-head p,
.contact-copy p,
.availability-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 78px;
  padding: 16px max(24px, calc((100vw - var(--max)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--white);
  transition: background .25s ease, color .25s ease, box-shadow .25s ease;
}
.site-header.is-scrolled,
.site-header.is-open {
  background: rgba(255,255,255,.96);
  color: var(--ink);
  box-shadow: 0 4px 20px rgba(45, 42, 38, .06);
}
.brand {
  display: grid;
  gap: 1px;
  line-height: 1.05;
  font-weight: 650;
}
.brand small {
  font-weight: 400;
  font-size: .78rem;
  opacity: .86;
}
.main-nav {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: .93rem;
  font-weight: 520;
}
.main-nav a:hover { text-decoration: underline; text-underline-offset: 6px; }
.menu-toggle { display: none; }

.hero {
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--dark);
}
.hero picture,
.hero img,
.hero-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero img { object-fit: cover; }
.hero-overlay {
  background:
    linear-gradient(180deg, rgba(0,0,0,.28), rgba(0,0,0,.06) 38%, rgba(0,0,0,.34)),
    linear-gradient(90deg, rgba(0,0,0,.36), rgba(0,0,0,0) 58%);
}
.hero-content {
  position: relative;
  z-index: 1;
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding-top: 28vh;
  color: var(--white);
}
.eyebrow {
  margin: 0 0 12px;
  font-size: .88rem;
  letter-spacing: .02em;
  opacity: .85;
}
.hero h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.2rem, 9vw, 7.4rem);
  line-height: .92;
  letter-spacing: -.065em;
}
.hero-content > p:not(.eyebrow) {
  margin: 22px 0 0;
  max-width: 520px;
  font-size: clamp(1.06rem, 2vw, 1.32rem);
  opacity: .92;
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 104px;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-weight: 620;
  font-size: .95rem;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, filter .18s ease;
}
.btn-primary {
  background: var(--coral);
  color: white;
  border-color: var(--coral);
}
.btn-primary:hover { filter: brightness(.94); }
.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.btn-secondary:hover { border-color: #cbc4b9; }
.btn-on-dark {
  background: rgba(255,255,255,.92);
  border-color: rgba(255,255,255,.72);
}

.fact-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.fact-list span {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 9px 16px;
  font-weight: 560;
  color: var(--ink);
}

.gallery-mosaic {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr;
  grid-template-rows: repeat(2, 245px);
  gap: 12px;
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-photo {
  appearance: none;
  border: 0;
  padding: 0;
  background: #ddd;
  cursor: pointer;
  overflow: hidden;
}
.gallery-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease, filter .2s ease;
}
.gallery-photo:hover img {
  transform: scale(1.025);
  filter: brightness(1.04);
}
.gallery-large {
  grid-row: 1 / span 2;
}
.show-photos {
  position: absolute;
  right: 18px;
  bottom: calc(50% - 58px);
  box-shadow: var(--shadow);
  z-index: 5;
  pointer-events: auto;
}

.villa-section,
.reviews-section,
.contact-section { background: var(--warm); }

.villa-cards,
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.villa-cards article,
.review-grid article,
.enquiry-card,
.calendar-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.villa-cards article {
  padding: 26px;
  min-height: 150px;
}
.villa-cards h3 {
  margin: 0 0 10px;
  font-size: 1.1rem;
  line-height: 1.2;
}
.villa-cards p {
  margin: 0;
  color: var(--muted);
  font-size: .96rem;
}

.location-photo {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  min-height: 560px;
  background: var(--dark);
}
.location-photo img {
  width: 100%;
  height: 560px;
  object-fit: cover;
}
.location-card {
  position: absolute;
  right: 14px;
  bottom: 32px;
  width: min(360px, calc(100% - 40px));
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(229,224,216,.9);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.location-card h2 {
  margin: 0 0 10px;
  font-size: 1.8rem;
  line-height: 1.05;
}
.location-card p {
  color: var(--muted);
  margin: 0 0 18px;
}

.review-grid article {
  padding: 24px;
  min-height: 150px;
}
.stars {
  color: var(--coral);
  margin: 0 0 10px;
  letter-spacing: .08em;
}
.review-grid blockquote {
  margin: 0;
  font-size: 1.14rem;
  font-weight: 650;
  line-height: 1.28;
}
.source {
  margin: 18px 0 0;
  color: var(--muted);
  text-transform: uppercase;
  font-size: .78rem;
  letter-spacing: .08em;
}
.review-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 24px;
  margin-top: 28px;
  color: var(--muted);
  font-weight: 560;
}
.review-links a:hover { text-decoration: underline; text-underline-offset: 5px; }

.availability-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
  gap: 54px;
  align-items: center;
}
.calendar-card {
  padding: 24px;
  max-width: 650px;
}
.calendar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.calendar-top h3 {
  margin: 0;
  font-size: 1.35rem;
}
.calendar-nav {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 50%;
  cursor: pointer;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}
.calendar-days {
  color: var(--muted);
  font-size: .78rem;
  text-align: center;
  margin-bottom: 8px;
}
.calendar-day {
  min-height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  background: var(--olive-soft);
  font-weight: 560;
  color: var(--ink);
}
.calendar-day.is-muted { background: #f2f0eb; color: #aaa; }
.calendar-day.is-booked { background: var(--coral-soft); }
.calendar-day.is-today { border-color: var(--sea); box-shadow: inset 0 0 0 1px var(--sea); }
.calendar-legend {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin-top: 20px;
  color: var(--muted);
  font-size: .9rem;
}
.calendar-legend i {
  display: inline-block;
  width: 18px;
  height: 12px;
  border-radius: 4px;
  margin-right: 6px;
  vertical-align: -1px;
}
.calendar-legend .available { background: var(--olive-soft); }
.calendar-legend .booked { background: var(--coral-soft); }
.calendar-legend .today { border: 1px solid var(--sea); background: white; }
.availability-copy h3 {
  margin: 0 0 14px;
  font-size: clamp(2rem, 4vw, 3rem);
  letter-spacing: -.04em;
}
.availability-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.contact-layout {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 60px;
  align-items: start;
}
.contact-copy {
  padding-top: 26px;
}
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}
.enquiry-card {
  padding: 30px;
}
.enquiry-card h3 {
  margin: 0 0 4px;
  font-size: 1.5rem;
}
.form-note {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: .9rem;
}
.enquiry-card label {
  display: grid;
  gap: 7px;
  margin-bottom: 16px;
  color: var(--muted);
  font-weight: 560;
  font-size: .9rem;
}
.enquiry-card input,
.enquiry-card textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 12px;
  padding: 12px 13px;
  color: var(--ink);
  outline-color: var(--olive);
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.site-footer {
  text-align: center;
  padding: 32px 20px 88px;
  color: var(--muted);
  font-size: .9rem;
}
.site-footer a { text-decoration: underline; text-underline-offset: 4px; }

.mobile-action-bar {
  display: none;
}

.gallery-modal {
  position: fixed;
  z-index: 100;
  inset: 0;
  background: rgba(25,24,23,.98);
  color: white;
}
.gallery-modal[hidden] { display: none; }
.gallery-modal figure {
  margin: 0;
  height: 100%;
  display: grid;
  place-items: center;
}
.gallery-modal img {
  max-width: min(86vw, 1500px);
  max-height: 82vh;
  object-fit: contain;
}
.gallery-modal figcaption {
  position: fixed;
  left: 24px;
  top: 22px;
  color: rgba(255,255,255,.8);
}
.gallery-close {
  position: fixed;
  top: 18px;
  right: 24px;
  z-index: 1;
  border: 0;
  background: transparent;
  color: white;
  cursor: pointer;
}
.gallery-arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 0;
  background: rgba(255,255,255,.14);
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
}
.gallery-prev { left: 24px; }
.gallery-next { right: 24px; }

@media (max-width: 900px) {
  .main-nav {
    position: absolute;
    top: 78px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: rgba(255,255,255,.98);
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 12px;
    box-shadow: var(--shadow);
  }
  .main-nav a {
    width: 100%;
    padding: 12px;
  }
  .site-header.is-open .main-nav { display: flex; }
  .menu-toggle {
    display: inline-flex;
    border: 1px solid currentColor;
    background: transparent;
    color: currentColor;
    border-radius: 999px;
    padding: 8px 13px;
  }
  .hero-content { padding-top: 27vh; }
  .gallery-mosaic {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 260px 150px 150px;
  }
  .gallery-large { grid-column: 1 / -1; grid-row: auto; }
  .villa-cards,
  .review-grid,
  .availability-layout,
  .contact-layout {
    grid-template-columns: 1fr;
  }
  .location-card {
    left: 16px;
    right: 16px;
    bottom: 22px;
    width: auto;
    background: transparent;
    border: 0;
    box-shadow: none;
    color: #fff;
    padding: 22px 18px;
    text-shadow: 0 2px 16px rgba(0,0,0,.42);
  }
  .location-card p {
    color: rgba(255,255,255,.90);
  }
  .location-card .btn {
    text-shadow: none;
  }
  .mobile-action-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: rgba(255,255,255,.96);
    border-top: 1px solid var(--line);
  }
  .mobile-action-bar a {
    padding: 14px 6px;
    text-align: center;
    font-size: .86rem;
    font-weight: 620;
  }
}

@media (max-width: 620px) {
  .section { padding: 68px 0; }
  .container { width: min(100% - 28px, var(--max)); }
  .site-header { padding: 14px; height: 72px; }
  .main-nav { top: 72px; left: 14px; right: 14px; }
  .hero h1 { font-size: clamp(3.1rem, 16vw, 4.9rem); }
  .hero-content { padding-top: 25vh; }
  .hero-actions { margin-top: 104px; }
  .hero-actions,
  .availability-actions,
  .contact-actions,
  .form-actions { align-items: stretch; }
  .btn { width: 100%; }
  .gallery-mosaic {
    grid-template-columns: 1fr;
    grid-template-rows: 260px repeat(4, 160px);
  }
  .show-photos {
    right: 16px;
    bottom: 16px;
    width: auto;
  }
  .form-row { grid-template-columns: 1fr; }
  .location-photo,
  .location-photo img { min-height: 620px; height: 620px; }
}


.villa-facts {
  margin: -10px 0 34px;
}


@media (max-width: 900px) {
  .location-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.55));
    pointer-events: none;
  }
  .location-card {
    z-index: 1;
  }
}

/* v0.4 mobile Location correction: text and button near the top of the photo */
@media (max-width: 760px) {
  .location-photo {
    position: relative;
  }

  .location-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background:
      linear-gradient(180deg, rgba(0,0,0,.66) 0%, rgba(0,0,0,.34) 34%, rgba(0,0,0,.08) 64%, rgba(0,0,0,.18) 100%);
    pointer-events: none;
  }

  .location-photo picture,
  .location-photo img {
    position: relative;
    z-index: 0;
  }

  .location-section .location-card {
    position: absolute;
    z-index: 2;
    top: 22px;
    left: 22px;
    right: 22px;
    bottom: auto;
    width: auto;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    color: #fff;
    padding: 0;
    text-shadow: 0 2px 18px rgba(0,0,0,.50);
  }

  .location-section .location-card h2 {
    color: #fff;
    margin-bottom: 8px;
  }

  .location-section .location-card p {
    color: rgba(255,255,255,.93);
    margin-bottom: 16px;
  }

  .location-section .location-card .btn {
    background: rgba(255,255,255,.94);
    color: var(--ink);
    border-color: rgba(255,255,255,.75);
    text-shadow: none;
    width: auto;
  }
}


.calendar-day {
  cursor: pointer;
}

.calendar-day.is-muted,
.calendar-day.is-booked {
  cursor: not-allowed;
}

.calendar-day.is-selected-start,
.calendar-day.is-selected-end {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
}

.calendar-day.is-selected-range {
  background: var(--coral);
  color: #fff;
  border-color: var(--coral);
}

.selected-dates {
  margin: 18px 0 0;
  color: var(--ink);
  font-weight: 620;
}


.calendar-day.is-past {
  background: #f2f0eb;
  color: #b7b0a6;
  border-color: #e5e0d8;
  cursor: not-allowed;
}

.calendar-legend .past {
  background: #f2f0eb;
  border: 1px solid #e5e0d8;
}

.calendar-status {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .86rem;
}


.selected-dates-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 18px 0 0;
}

.selected-dates-row .selected-dates {
  margin: 0;
}

.reset-dates {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  border-radius: 999px;
  min-height: 28px;
  padding: 0 12px;
  font-size: .82rem;
  font-weight: 620;
  cursor: pointer;
}

.reset-dates:hover {
  border-color: #cbc4b9;
  color: var(--ink);
}


/* PM-009 v0.7 anti-cache contact update */
.contact-layout-simple {
  display: block;
}

.contact-copy-simple {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.contact-copy-simple .contact-actions {
  justify-content: center;
}

@media (max-width: 760px) {
  .mobile-action-bar {
    grid-template-columns: repeat(4, 1fr);
  }

  .mobile-action-bar a {
    font-size: .72rem;
  }
}


/* PM-009 v0.8 contact cleanup */
.contact-viber-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .95rem;
}

.contact-viber-note span {
  color: var(--ink);
  font-weight: 650;
}

@media (max-width: 760px) {
  .mobile-action-bar {
    grid-template-columns: repeat(3, 1fr);
  }

  .mobile-action-bar a {
    font-size: .78rem;
  }
}

