:root {
  --sea: #1b5e63;
  --sea-dark: #0f3f43;
  --sand: #f6f1e7;
  --sand-dark: #ece3d0;
  --sun: #917a5c;
  --ink: #26302f;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(15, 63, 67, 0.12);
  font-size: 16px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
}

h1, h2, h3 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  color: var(--sea-dark);
  margin: 0 0 0.5em;
}

a { color: var(--sea); }

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

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(246, 241, 231, 0.95);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--sand-dark);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: 1100px;
  margin: 0 auto;
}

.logo {
  font-family: Georgia, serif;
  font-size: 1.25rem;
  color: var(--sea-dark);
  text-decoration: none;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
}
.logo img {
  height: 46px;
  width: 46px;
  object-fit: contain;
  display: block;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
}

nav.main-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

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

nav.main-nav a:hover, nav.main-nav a.active {
  color: var(--sea);
  border-bottom: 2px solid var(--sun);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nav-cta {
  background: var(--sea);
  color: var(--white) !important;
  padding: 8px 18px;
  border-radius: 30px;
  border-bottom: none !important;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--sea-dark);
}
.nav-toggle .icon-svg {
  width: 26px;
  height: 26px;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  nav.main-nav {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 14px;
    min-width: 200px;
    background: var(--sand, #f6f1e7);
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    padding: 14px 20px;
    border: 1px solid var(--sand-dark);
    border-radius: 10px;
    box-shadow: var(--shadow);
  }

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

  nav.main-nav a {
    width: 100%;
    padding: 8px 0;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: flex-end;
  background-size: cover;
  background-position: center;
  color: var(--white);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,63,67,0.15) 0%, rgba(15,63,67,0.75) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 60px 24px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}

.hero-content h1 { color: var(--white); font-size: 2.6rem; }
.hero-content p { font-size: 1.15rem; max-width: 600px; }
.eyebrow {
  background: var(--sea);
  color: white;
  padding: 10px 14px;
  border-radius: 20px;
  width: fit-content;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.8rem;
  margin-bottom: 10px;
  box-shadow: 0 0px 10px var(--sand);
}

.btn {
  display: inline-block;
  background: var(--sun);
  color: var(--white);
  padding: 13px 28px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(217,154,78,0.35); }
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--white);
  color: var(--white);
}
.btn-secondary {
  background: var(--sea);
}

/* Sections */
section { padding: 48px 0; }
.section-alt { background: var(--white); }
.section-header { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.section-header p { color: #556; }

/* Feature grid (used on location.html) */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  text-align: center;
}
.feature-card .icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--sand);
  color: var(--sea);
}
.feature-card h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature-card p { font-size: 0.92rem; color: #556; margin: 0; }

/* Icon primitive, used everywhere */
.icon-svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

/* Bento feature grid (homepage) */
.bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 150px);
  gap: 18px;
}
.bento-tile {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.bento-tile.big {
  grid-column: 1 / 3;
  grid-row: 1 / 4;
  background-size: cover;
  background-position: center;
  color: var(--white);
  display: flex;
  align-items: flex-end;
}
.bento-tile.big::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,63,67,0) 40%, rgba(15,63,67,0.82) 100%);
}
.bento-tile.big .bento-content {
  position: relative;
  z-index: 2;
  padding: 26px;
}
.bento-tile.big .bento-content .icon-badge {
  background: rgba(255,255,255,0.18);
  color: var(--white);
}
.bento-tile.big h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 6px; }
.bento-tile.big p { color: rgba(255,255,255,0.88); margin: 0; font-size: 0.95rem; }

.bento-tile.small {
  background: var(--white);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}
.bento-tile.small h3 { font-size: 0.98rem; margin: 0; }
.bento-tile.small p { font-size: 0.82rem; color: #667; margin: 0; }

.icon-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--sand);
  color: var(--sea);
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
  }
  .bento-tile.big { grid-column: 1 / 3; grid-row: auto; min-height: 260px; }
  .bento-tile.small { grid-column: auto; grid-row: auto; min-height: 130px; }
}

/* Amenities: compact single strip of chips */
.amenity-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}
.amenity-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--sand);
  border-radius: 30px;
  padding: 8px 18px 8px 8px;
  font-size: 0.88rem;
  white-space: nowrap;
}
.amenity-chip .icon-badge {
  width: 30px;
  height: 30px;
  margin-bottom: 0;
  border-radius: 50%;
  background: var(--white);
}
.amenity-chip .icon-svg { width: 16px; height: 16px; }

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.gallery-grid img {
  width: 100%;
  height: 260px;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.gallery-grid img:hover { transform: scale(1.02); }
.gallery-grid .tall { grid-row: span 2; height: 100%; }

@media (max-width: 800px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid .tall { grid-row: span 1; height: 260px; }
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,20,20,0.92);
  z-index: 100;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 85vh; border-radius: 8px; }
.lightbox-close {
  position: absolute;
  top: 24px;
  right: 32px;
  color: var(--white);
  font-size: 2rem;
  cursor: pointer;
  background: none;
  border: none;
}

/* Two column */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 800px) { .split { grid-template-columns: 1fr; } }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

/* Amenities list */
.amenities-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.amenities-list li {
  background: var(--sand);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.95rem;
}

/* Booking page */
.booking-layout {
  display: grid;
  grid-template-columns: 0.8fr 1fr;
  gap: 40px;
  align-items: flex-start;
}
@media (max-width: 900px) { .booking-layout { grid-template-columns: 1fr; } }

.calendar-card, .form-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

.cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cal-header button {
  background: var(--sand);
  border: none;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  cursor: pointer;
  font-size: 1rem;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  text-align: center;
}
.cal-grid .dow {
  font-size: 0.75rem;
  color: #789;
  padding-bottom: 6px;
}
.cal-day {
  padding: 8px 0;
  border-radius: 8px;
  font-size: 0.88rem;
  position: relative;
}
.cal-day.blocked { background: #f4d9d3; color: #a44; text-decoration: line-through; }
.cal-day.available { background: #b7e9d2; }
.cal-day.past { color: #ccc; }
.cal-day.empty { visibility: hidden; }

.legend { display: flex; gap: 18px; margin-top: 14px; font-size: 0.85rem; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .dot { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.dot.available { background: #b7e9d2; }
.dot.blocked { background: #f4d9d3; }

.cal-status { font-size: 0.85rem; color: #789; margin-top: 10px; }

form label {
  display: block;
  font-size: 0.9rem;
  margin: 14px 0 6px;
  font-weight: 600;
}
form input, form textarea, form select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid #d8d0bd;
  font-size: 0.95rem;
  font-family: inherit;
}
form textarea { resize: vertical; }

/* Check-in / check-out: iOS Safari renders type="date" with its own grey,
   borderless native chrome that ignores our field styling entirely. Same
   fix as the phone country-code field below — a styled, visible display
   box sits on top, with the real (functional) date input made invisible
   underneath, so tapping anywhere still opens the native date picker. */
.date-wrap { position: relative; }
.date-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid #d8d0bd;
  font-size: 0.95rem;
  line-height: 1.2;
  background: var(--white);
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
}
.date-text.placeholder { color: #99958a; }
.date-icon { width: 18px; height: 18px; color: #99958a; flex-shrink: 0; }
.date-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 16px; /* prevents iOS auto-zoom on focus */
}

/* Phone field: country-code select + number input side by side */
.phone-row { display: flex; gap: 8px; align-items: center; }
.cc-wrap { position: relative; width: 90px; flex-shrink: 0; }
.cc-display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 11px 10px 11px 12px;
  border-radius: 8px;
  border: 1px solid #d8d0bd;
  font-size: 0.95rem;
  line-height: 1.2;
  background: var(--white);
  white-space: nowrap;
  overflow: hidden;
}
.cc-chevron {
  width: 14px;
  height: 14px;
  color: #99958a;
  flex-shrink: 0;
}
.cc-native {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  font-size: 16px; /* prevents iOS auto-zoom on focus */
}
.phone-row input[type="tel"] { flex: 1; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 500px) { .form-row { grid-template-columns: 1fr; } }

.contact-alt {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--sand-dark);
  font-size: 0.9rem;
  text-align: center;
}
.whatsapp-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #075E54;
  color: var(--white);
  padding: 11px 20px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
}

/* Map */
.map-embed {
  width: 100%;
  height: 420px;
  border: 0;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Footer */
footer {
  background: var(--sea-dark);
  color: var(--sand);
  padding: 40px 0;
  text-align: center;
  font-size: 0.9rem;
}
footer a { color: var(--sun); }

.rating-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  padding: 6px 14px;
  border-radius: 30px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}
.rating-badge .icon-svg { width: 15px; height: 15px; color: var(--sun); }
.whatsapp-btn .icon-svg { width: 20px; height: 20px; }
