:root {
  --color-sand: #f7f2ea;
  --color-ink: #1f2a2e;
  --color-ocean: #0f6d84;
  --color-ocean-dark: #0a4f61;
  --color-sun: #e08a3c;
  --color-white: #ffffff;
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
  --radius: 14px;
  --max-width: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-ink);
  background: var(--color-white);
  line-height: 1.6;
}

h1, h2, h3 { font-family: var(--font-heading); margin: 0 0 0.5em; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.muted { color: #6b7a80; }

.notice {
  display: inline-block;
  background: #fff0d1;
  color: #8a5b00;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 14px;
  border-radius: 8px;
  margin-bottom: 16px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid #eee;
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
}

.logo {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--color-ocean-dark);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a {
  color: var(--color-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover { color: var(--color-ocean); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  cursor: pointer;
  color: var(--color-ink);
}

/* Hero */
.hero {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(180deg, rgba(15,109,132,0.55), rgba(10,79,97,0.75)),
              url('../Pictures/IMG_8274.jpeg') center/cover no-repeat;
  color: var(--color-white);
}

.hero-overlay {
  max-width: 700px;
  padding: 24px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  margin-bottom: 0.4em;
}

.hero p {
  font-size: 1.15rem;
  margin-bottom: 1.6em;
}

.btn {
  display: inline-block;
  background: var(--color-sun);
  color: var(--color-white);
  padding: 14px 28px;
  border: none;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease, background 0.15s ease;
}

.btn:hover {
  background: #c9752b;
  transform: translateY(-1px);
}

/* Sections */
.section {
  padding: 72px 0;
}

.section.alt {
  background: var(--color-sand);
}

.two-col {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.about-photo img {
  width: 100%;
  border-radius: var(--radius);
  display: block;
}

.quick-facts {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 20px;
}

.quick-facts li {
  background: var(--color-sand);
  padding: 10px 14px;
  border-radius: 10px;
  font-weight: 600;
}

/* Amenities */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.amenity {
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 24px 12px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.amenity p { margin: 0; font-weight: 600; }

/* Gallery — carousel with a peek of the next/previous photo */
.carousel {
  position: relative;
  margin-top: 24px;
}

.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 6% 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar {
  display: none;
}

.carousel-item {
  flex: 0 0 88%;
  scroll-snap-align: center;
}

.carousel-item img {
  display: block;
  width: 100%;
  height: 60vh;
  max-height: 520px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--color-sand);
  cursor: zoom-in;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  background: var(--color-white);
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  color: var(--color-ink);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.carousel-prev { left: 4px; }
.carousel-next { right: 4px; }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 20, 22, 0.92);
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  background: none;
  border: none;
  color: var(--color-white);
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--color-white);
  font-size: 1.6rem;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  cursor: pointer;
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* Map */
.map-embed {
  margin-top: 24px;
  border-radius: var(--radius);
  overflow: hidden;
}

.map-embed iframe {
  width: 100%;
  height: 360px;
  border: 0;
  display: block;
}

/* Availability calendar + booking form, side by side */
.availability-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 40px;
  align-items: start;
  margin-top: 24px;
}

.availability-layout .booking-form {
  margin-top: 0;
  max-width: none;
}

.calendar-widget {
  max-width: 420px;
  background: var(--color-white);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.calendar-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.calendar-nav button {
  background: var(--color-sand);
  border: none;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  font-size: 1.1rem;
  cursor: pointer;
}

.calendar-nav h3 {
  margin: 0;
  font-size: 1.1rem;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  border-radius: 8px;
}

.cal-head {
  font-weight: 700;
  color: #6b7a80;
  font-size: 0.75rem;
}

.cal-open {
  background: #e6f4ea;
  color: #1f2a2e;
  cursor: pointer;
}

.cal-open:hover {
  background: #d3ecda;
}

.cal-booked {
  background: #f8d7d7;
  color: #7a2b2b;
  text-decoration: line-through;
}

.cal-past {
  opacity: 0.35;
  cursor: default;
}

.cal-selected {
  background: var(--color-ocean) !important;
  color: var(--color-white) !important;
  font-weight: 700;
}

.cal-in-range {
  background: #bfe0e8 !important;
}

.calendar-legend {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  font-size: 0.85rem;
}

.calendar-legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
}

.dot-booked { background: #d97676; }
.dot-open { background: #6fbf8b; }

.calendar-dates-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}

.calendar-dates-row label {
  display: block;
  margin-bottom: 6px;
}

.calendar-dates-row input {
  width: 100%;
}

.calendar-selection-note {
  margin-top: 14px;
  font-weight: 600;
  color: var(--color-ocean-dark);
  font-size: 0.9rem;
}

.calendar-clear-btn {
  margin-top: 8px;
  background: none;
  border: none;
  color: var(--color-sun);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}

/* Signed rental agreement text (contract.html) */
.agreement-text {
  margin-top: 24px;
  line-height: 1.7;
}

.agreement-text p {
  margin: 0 0 1em;
  white-space: pre-line;
}

/* Booking form */
.booking-form {
  max-width: 560px;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.form-row { display: flex; flex-direction: column; gap: 6px; }

.two-col-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

label { font-weight: 600; font-size: 0.9rem; }

input, textarea {
  padding: 12px 14px;
  border: 1px solid #dcdcdc;
  border-radius: 10px;
  font-family: inherit;
  font-size: 1rem;
}

input:focus, textarea:focus {
  outline: none;
  border-color: var(--color-ocean);
}

.form-note {
  font-weight: 600;
  color: var(--color-ocean-dark);
  min-height: 1.2em;
}

/* Footer */
.site-footer {
  background: var(--color-ink);
  color: var(--color-white);
  padding: 32px 0;
  text-align: center;
}

.site-footer .muted { color: #a9b6ba; }

/* Responsive */
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .carousel-item { flex-basis: 92%; }
  .carousel-item img { height: 46vh; }
  .availability-layout { grid-template-columns: 1fr; }
  .calendar-widget { max-width: none; }
}

@media (max-width: 640px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--color-white);
    flex-direction: column;
    padding: 16px 24px;
    display: none;
    border-bottom: 1px solid #eee;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .two-col-form { grid-template-columns: 1fr; }
  .calendar-dates-row { grid-template-columns: 1fr; }
  .carousel-track { padding: 4px 3% 12px; }
  .carousel-item { flex-basis: 94%; }
  .carousel-item img { height: 38vh; }
  .carousel-btn { width: 38px; height: 38px; font-size: 1.1rem; }
  .lightbox-nav { width: 40px; height: 40px; font-size: 1.3rem; }
  .lightbox-close { top: 12px; right: 16px; font-size: 2rem; }
}
