/* ============================================
   Chaka's Cove Beachfront Apartments
   Palette: white & blue — deep ocean navy, bright azure CTA,
   soft blue-white backgrounds. WhatsApp buttons stay green (brand recognition).
   ============================================ */

:root {
  --ocean-deep: #0a4a72;   /* deep navy blue — headings, dark sections */
  --ocean: #1573ad;        /* mid blue — links, accents */
  --ocean-light: #4a9cbf;  /* light blue */
  --sand: #f2f8fc;         /* soft blue-white page background */
  --sand-dark: #dbeaf5;    /* pale blue — borders, chips */
  --ink: #16303f;          /* near-navy body text */
  --ink-soft: #4d5c63;     /* muted grey-blue text */
  --coral: #1b83d1;        /* bright azure — primary call-to-action */
  --coral-dark: #12639f;   /* darker azure — CTA hover */
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe5b;
  --white: #ffffff;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(10, 74, 114, 0.12);
  --max-width: 1180px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

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

a { color: inherit; text-decoration: none; }

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

h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ocean-deep);
  line-height: 1.25;
  margin: 0 0 0.5em;
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.3rem; }

section { padding: 64px 0; }
section.tight { padding: 40px 0; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.brand {
  font-family: Georgia, serif;
  font-weight: bold;
  font-size: 1.3rem;
  color: var(--ocean-deep);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand span.sub {
  display: block;
  font-family: "Segoe UI", sans-serif;
  font-size: 0.65rem;
  font-weight: normal;
  color: var(--ink-soft);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

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

.nav-cta {
  background: var(--whatsapp);
  color: var(--white) !important;
  padding: 10px 18px;
  border-radius: 30px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
}
.nav-cta:hover { background: var(--whatsapp-dark); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.6rem;
  color: var(--ocean-deep);
  cursor: pointer;
  min-width: 44px;
  min-height: 44px;
  line-height: 1;
}

@media (max-width: 480px) {
  .brand { font-size: 1.05rem; white-space: nowrap; }
  .brand span.sub { display: none; }
}

@media (max-width: 820px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 16px 20px 24px;
    gap: 16px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 78vh;
  display: flex;
  align-items: center;
  background: linear-gradient(180deg, rgba(0,0,0,0.28), rgba(0,0,0,0.5)),
              var(--ocean-deep) center/cover no-repeat;
  color: var(--white);
  text-align: center;
  overflow: hidden;
}

.hero.page-hero {
  min-height: 42vh;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px;
}

.hero-wave {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  line-height: 0;
  z-index: 1;
}

.hero-wave svg {
  display: block;
  width: 100%;
  height: 90px;
}

.hero-wave path {
  fill: var(--sand);
}

/* ---------- Sand grain drift (decorative, sits behind the sections below the wave) ---------- */
.sand-zone {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 600'%3E%3Cg fill='%23b8935c'%3E%3Ccircle cx='10' cy='5' r='1.4' fill-opacity='.65'/%3E%3Ccircle cx='35' cy='15' r='1.8' fill-opacity='.7'/%3E%3Ccircle cx='60' cy='3' r='1.2' fill-opacity='.55'/%3E%3Ccircle cx='85' cy='20' r='1.6' fill-opacity='.75'/%3E%3Ccircle cx='110' cy='8' r='1.4' fill-opacity='.6'/%3E%3Ccircle cx='140' cy='25' r='2' fill-opacity='.8'/%3E%3Ccircle cx='165' cy='5' r='1.3' fill-opacity='.58'/%3E%3Ccircle cx='190' cy='18' r='1.7' fill-opacity='.7'/%3E%3Ccircle cx='215' cy='10' r='1.5' fill-opacity='.62'/%3E%3Ccircle cx='240' cy='22' r='1.8' fill-opacity='.72'/%3E%3Ccircle cx='265' cy='6' r='1.3' fill-opacity='.55'/%3E%3Ccircle cx='290' cy='15' r='1.6' fill-opacity='.68'/%3E%3Ccircle cx='20' cy='32' r='1.4' fill-opacity='.6'/%3E%3Ccircle cx='125' cy='35' r='1.6' fill-opacity='.65'/%3E%3Ccircle cx='255' cy='35' r='1.5' fill-opacity='.6'/%3E%3Ccircle cx='15' cy='50' r='1.2' fill-opacity='.45'/%3E%3Ccircle cx='45' cy='70' r='1.5' fill-opacity='.5'/%3E%3Ccircle cx='70' cy='45' r='1.1' fill-opacity='.4'/%3E%3Ccircle cx='95' cy='85' r='1.6' fill-opacity='.55'/%3E%3Ccircle cx='120' cy='60' r='1.3' fill-opacity='.42'/%3E%3Ccircle cx='150' cy='95' r='1.7' fill-opacity='.58'/%3E%3Ccircle cx='175' cy='50' r='1.2' fill-opacity='.4'/%3E%3Ccircle cx='200' cy='75' r='1.4' fill-opacity='.48'/%3E%3Ccircle cx='225' cy='55' r='1.6' fill-opacity='.52'/%3E%3Ccircle cx='250' cy='90' r='1.3' fill-opacity='.44'/%3E%3Ccircle cx='280' cy='65' r='1.5' fill-opacity='.5'/%3E%3Ccircle cx='30' cy='100' r='1.2' fill-opacity='.38'/%3E%3Ccircle cx='60' cy='115' r='1.4' fill-opacity='.46'/%3E%3Ccircle cx='90' cy='55' r='1.1' fill-opacity='.36'/%3E%3Ccircle cx='135' cy='110' r='1.6' fill-opacity='.5'/%3E%3Ccircle cx='165' cy='75' r='1.3' fill-opacity='.4'/%3E%3Ccircle cx='210' cy='105' r='1.2' fill-opacity='.38'/%3E%3Ccircle cx='240' cy='45' r='1.5' fill-opacity='.48'/%3E%3Ccircle cx='270' cy='110' r='1.3' fill-opacity='.4'/%3E%3Ccircle cx='10' cy='80' r='1.1' fill-opacity='.36'/%3E%3Ccircle cx='25' cy='140' r='1.1' fill-opacity='.3'/%3E%3Ccircle cx='55' cy='170' r='1.3' fill-opacity='.35'/%3E%3Ccircle cx='85' cy='150' r='1' fill-opacity='.28'/%3E%3Ccircle cx='115' cy='190' r='1.4' fill-opacity='.38'/%3E%3Ccircle cx='145' cy='160' r='1.1' fill-opacity='.3'/%3E%3Ccircle cx='175' cy='210' r='1.3' fill-opacity='.34'/%3E%3Ccircle cx='205' cy='145' r='1' fill-opacity='.26'/%3E%3Ccircle cx='235' cy='180' r='1.2' fill-opacity='.32'/%3E%3Ccircle cx='265' cy='220' r='1.1' fill-opacity='.3'/%3E%3Ccircle cx='295' cy='155' r='1.4' fill-opacity='.36'/%3E%3Ccircle cx='40' cy='230' r='1' fill-opacity='.25'/%3E%3Ccircle cx='100' cy='240' r='1.2' fill-opacity='.3'/%3E%3Ccircle cx='160' cy='200' r='1.1' fill-opacity='.28'/%3E%3Ccircle cx='220' cy='235' r='1' fill-opacity='.26'/%3E%3Ccircle cx='280' cy='175' r='1.3' fill-opacity='.32'/%3E%3Ccircle cx='30' cy='270' r='1' fill-opacity='.2'/%3E%3Ccircle cx='75' cy='310' r='1.1' fill-opacity='.22'/%3E%3Ccircle cx='120' cy='290' r='.9' fill-opacity='.18'/%3E%3Ccircle cx='170' cy='330' r='1.2' fill-opacity='.24'/%3E%3Ccircle cx='215' cy='300' r='1' fill-opacity='.2'/%3E%3Ccircle cx='260' cy='350' r='1.1' fill-opacity='.22'/%3E%3Ccircle cx='50' cy='370' r='.9' fill-opacity='.16'/%3E%3Ccircle cx='140' cy='390' r='1' fill-opacity='.2'/%3E%3Ccircle cx='200' cy='360' r='.8' fill-opacity='.15'/%3E%3Ccircle cx='280' cy='320' r='1.1' fill-opacity='.22'/%3E%3Ccircle cx='60' cy='420' r='.8' fill-opacity='.12'/%3E%3Ccircle cx='150' cy='450' r='.7' fill-opacity='.1'/%3E%3Ccircle cx='230' cy='410' r='.9' fill-opacity='.13'/%3E%3Ccircle cx='100' cy='500' r='.6' fill-opacity='.08'/%3E%3Ccircle cx='200' cy='540' r='.8' fill-opacity='.1'/%3E%3Ccircle cx='40' cy='560' r='.7' fill-opacity='.06'/%3E%3C/g%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-position: top center;
  background-size: 300px 600px;
}

.hero h1 { color: var(--white); text-shadow: 0 2px 12px rgba(0,0,0,0.35); }

.hero .lede {
  font-size: 1.15rem;
  margin-bottom: 1.5em;
  text-shadow: 0 1px 8px rgba(0,0,0,0.3);
}

.hero-cta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 14px;
  row-gap: 26px;
  max-width: 500px;
  margin: 0 auto;
}

.hero-cta-grid .btn {
  width: 100%;
  justify-content: center;
}

.rating-item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 16px;
  padding: 10px 18px 10px 12px;
}

@media (max-width: 560px) {
  .hero-cta-grid { grid-template-columns: 1fr; max-width: 320px; }
}
.rating-label { text-align: left; font-size: 0.82rem; line-height: 1.3; opacity: 0.95; }
.rating-label b { display: block; font-size: 0.98rem; }

/* Rating score sitting inside a star */
.star-score {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
}
.star-score svg {
  width: 100%;
  height: 100%;
  fill: var(--ocean-deep);
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}
.star-score .num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 6px;
  color: #fff;
  font-weight: 800;
  font-size: 0.98rem;
}

.mini-star {
  width: 15px;
  height: 15px;
  fill: var(--coral);
  vertical-align: -2px;
  margin-right: 5px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 0.98rem;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }

.btn-coral { background: var(--coral); color: var(--white); }
.btn-coral:hover { background: var(--coral-dark); }

.btn-whatsapp { background: var(--whatsapp); color: var(--white); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.7);
}
.btn-outline:hover { background: rgba(255,255,255,0.15); }

.btn-outline-dark {
  background: transparent;
  color: var(--ocean-deep);
  border-color: var(--ocean-deep);
}
.btn-outline-dark:hover { background: var(--ocean-deep); color: var(--white); }

.btn-block { width: 100%; justify-content: center; }
.btn-sm { padding: 12px 18px; font-size: 0.88rem; }

/* ---------- Intro ---------- */
.intro {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}
.intro p { color: var(--ink-soft); font-size: 1.08rem; }

/* ---------- Apartment cards ---------- */
.apartments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 32px;
  margin-top: 40px;
}

.apartment-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.apartment-card .photo {
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--sand-dark);
}
.apartment-card .photo img { width: 100%; height: 100%; object-fit: cover; }

.apartment-card .body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }

.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--sand-dark);
  color: var(--ocean-deep);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 6px 12px;
  border-radius: 20px;
  align-self: flex-start;
}

.amenity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0;
}
.amenity-tags span {
  background: var(--sand);
  border: 1px solid var(--sand-dark);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.card-actions {
  margin-top: auto;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ---------- Why book direct ---------- */
.why-direct {
  background: var(--white);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 36px;
  text-align: center;
}
@media (max-width: 720px) {
  .why-grid { grid-template-columns: 1fr; max-width: 360px; margin-left: auto; margin-right: auto; }
}
.icon-badge {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--sand-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.icon-badge svg { width: 30px; height: 30px; fill: var(--ocean-deep); }

/* Inline icons inside buttons */
.btn svg, .nav-cta svg { width: 19px; height: 19px; flex: 0 0 auto; fill: currentColor; }

/* ---------- Reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 36px;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
}
.review-card .stars { color: var(--coral); margin-bottom: 8px; letter-spacing: 2px; }
.review-card p.quote { font-style: italic; color: var(--ink); margin-bottom: 12px; }
.review-card .who { font-weight: 700; font-size: 0.9rem; color: var(--ocean-deep); }
.review-card .where { font-size: 0.8rem; color: var(--ink-soft); }

/* ---------- Location ---------- */
.location-wrap {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 36px;
  align-items: start;
}
@media (max-width: 860px) {
  .location-wrap { grid-template-columns: 1fr; }
}
.map-embed {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: none;
  width: 100%;
  height: 340px;
}
.location-score {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 14px 0 20px;
  padding: 14px 16px;
  background: var(--sand);
  border-radius: var(--radius);
}
.location-score-badge {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--ocean-deep);
  color: var(--white);
  font-weight: 700;
  font-size: 1.05rem;
}
.location-score p { margin: 0; color: var(--ink); }
.location-score .soft { color: var(--ink-soft); font-weight: 400; }
.location-tagline { margin-top: 4px !important; font-size: 0.85rem; color: var(--ink-soft); }

.nearby-list { list-style: none; padding: 0; margin: 0; }
.nearby-list li {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--sand-dark);
  color: var(--ink-soft);
}
.nearby-list li b { color: var(--ink); font-weight: 600; }

/* ---------- Contact ---------- */
.contact-section {
  background: var(--ocean-deep);
  color: var(--white);
}
.contact-section h2 { color: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}
.contact-card {
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius);
  padding: 26px;
  text-align: center;
}
.contact-card h3 { color: var(--white); }
.contact-card p { color: rgba(255,255,255,0.8); margin-bottom: 18px; }

/* ---------- Footer ---------- */
.site-footer {
  background: #072f40;
  color: rgba(255,255,255,0.75);
  padding: 40px 0 24px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
.footer-grid h4 { color: var(--white); font-family: inherit; font-size: 1rem; }
.footer-grid a { color: rgba(255,255,255,0.75); }
.footer-grid a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 18px;
  text-align: center;
  font-size: 0.82rem;
}

/* ---------- Gallery / Lightbox ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 20px;
}
.gallery-grid img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.15s ease;
}
.gallery-grid img:hover { transform: scale(1.03); }

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(7, 20, 26, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw;
  max-height: 86vh;
  border-radius: 8px;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: var(--white);
  font-size: 2.2rem;
  cursor: pointer;
  background: none;
  border: none;
}
.lightbox-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.15);
  border: none;
  color: var(--white);
  font-size: 2rem;
  padding: 10px 16px;
  cursor: pointer;
  border-radius: 6px;
}
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

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

.booking-box {
  position: sticky;
  top: 90px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 26px;
}
.booking-box .score {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}
.booking-box .score .star-score { width: 64px; height: 64px; }
.booking-box .score .star-score .num { font-size: 1.05rem; }
.booking-box .btn { margin-bottom: 10px; }

.amenities-list {
  columns: 2;
  column-gap: 30px;
  list-style: none;
  padding: 0;
}
.amenities-list li {
  break-inside: avoid;
  padding: 6px 0;
  color: var(--ink-soft);
}
.amenities-list li::before {
  content: "\2713  ";
  color: var(--ocean);
  font-weight: 700;
}
@media (max-width: 500px) {
  .amenities-list { columns: 1; }
}

.breadcrumb {
  font-size: 0.85rem;
  color: var(--ink-soft);
  padding: 16px 0 0;
}
.breadcrumb a { color: var(--ocean); }

.listing-meta {
  color: var(--ink-soft);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.house-rules dl {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
}
.house-rules dt { font-weight: 700; color: var(--ink); }
.house-rules dd { margin: 0; color: var(--ink-soft); }

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
}
.skip-link:focus {
  left: 10px;
  top: 10px;
  background: var(--white);
  padding: 10px 16px;
  z-index: 2000;
  border-radius: 8px;
}
