/* =========================================================
   KEYS LIFE CONDO
   Easy editing:
   1) Main colors are directly below.
   2) Most spacing/font sizes use variables.
   3) Swap photos by replacing files in /images with same names.
   ========================================================= */

:root {
  --ink: #173f42;
  --muted: #6c7c7d;
  --sea: #6ba9aa;
  --sea-dark: #315f62;
  --sand: #f5ecdc;
  --shell: #fbfaf6;
  --white: #ffffff;
  --line: #dce5e2;
  --shadow: 0 16px 45px rgba(27, 60, 61, .12);
  --radius: 20px;
  --max: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--shell);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

button,
input,
select,
textarea {
  font: inherit;
}

h1, h2, h3, p { margin-top: 0; }

h1, h2 {
  letter-spacing: -.035em;
  line-height: 1.03;
}

h1 {
  font-size: clamp(3rem, 8vw, 6.7rem);
  margin-bottom: 18px;
}

h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
  margin-bottom: 18px;
}

p { color: #425f61; }

.eyebrow {
  color: var(--sea-dark);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .15em;
  margin-bottom: 12px;
}

.eyebrow.light { color: rgba(255,255,255,.84); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: var(--white);
  font-weight: 800;
  cursor: pointer;
  transition: transform .2s ease, opacity .2s ease;
}

.button:hover { transform: translateY(-1px); opacity: .94; }

.button-light {
  background: var(--white);
  color: var(--ink);
}

.button-full { width: 100%; }

.hidden {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

/* HEADER */
.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  right: 0;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 max(22px, calc((100vw - var(--max)) / 2));
  background: rgba(251,250,246,.92);
  border-bottom: 1px solid rgba(220,229,226,.85);
  backdrop-filter: blur(14px);
}

.brand {
  font-size: 1.08rem;
  font-weight: 900;
  letter-spacing: -.02em;
}

nav {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: .92rem;
  font-weight: 700;
}

.nav-book {
  border: 1px solid var(--ink);
  padding: 9px 15px;
  border-radius: 999px;
}

/* HERO */
.hero {
  min-height: 92svh;
  position: relative;
  display: grid;
  align-items: end;
  overflow: hidden;
  background: var(--ink);
}

.hero > img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero > img { object-fit: cover; }

.hero-shade {
  background:
    linear-gradient(to top, rgba(13,48,50,.68) 0%, rgba(13,48,50,.14) 60%, rgba(13,48,50,.08) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 0 0 clamp(54px, 10vh, 96px);
  color: white;
}

.hero-copy p:not(.eyebrow) {
  max-width: 560px;
  color: rgba(255,255,255,.9);
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  margin-bottom: 28px;
}

/* LAYOUT */
.section {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
}

.listing-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 365px;
  gap: 70px;
  align-items: start;
}

.listing-main { min-width: 0; }

.intro {
  padding: 74px 0 56px;
  border-bottom: 1px solid var(--line);
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin: 18px 0 24px;
  font-weight: 750;
}

.facts span:not(:last-child)::after {
  content: "•";
  margin-left: 24px;
  color: var(--sea);
}

.lead {
  max-width: 720px;
  font-size: 1.15rem;
}

.content-section {
  padding: 72px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-heading p:last-child { margin-bottom: 0; }

.split-copy {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: 50px;
  align-items: start;
}

.split-copy > p {
  font-size: 1.1rem;
  margin-top: 34px;
}

/* GALLERY */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.gallery figure {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  background: #e6eeeb;
  aspect-ratio: 4 / 3;
}

.gallery-large {
  grid-column: span 2;
  aspect-ratio: 16 / 9 !important;
}

.gallery-wide {
  grid-column: span 2;
  aspect-ratio: 16 / 8 !important;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.gallery figure:hover img { transform: scale(1.018); }

/* AMENITIES */
.amenities-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.amenity {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 3px 12px;
  padding: 20px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.amenity > span {
  grid-row: span 2;
  font-size: 1.45rem;
  color: var(--sea-dark);
}

.amenity small { color: var(--muted); }

/* MAP */
.map-wrap {
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: #dbe6e3;
}

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

.nearby {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.nearby div {
  padding: 17px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.nearby strong,
.nearby span {
  display: block;
}

.nearby span {
  margin-top: 4px;
  color: var(--muted);
  font-size: .9rem;
}

/* RULES */
.rules-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}

.rules-list div {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 30px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.rules-list span { color: var(--muted); }

/* REVIEWS */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.review {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  padding: 24px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--line);
}

.review p { flex: 1; }

.stars {
  margin-bottom: 16px;
  letter-spacing: .08em;
}

.review small {
  color: var(--muted);
  margin-top: 2px;
}

/* PLATFORM LINKS */
.alt-booking h2 { max-width: 620px; }

.platform-links {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.platform-links a {
  padding: 13px 17px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  font-weight: 750;
}

/* BOOKING CARD */
.booking-card {
  position: sticky;
  top: 98px;
  margin-top: 74px;
  padding: 25px;
  border-radius: 22px;
  background: white;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.price-line strong { font-size: 1.45rem; }

.muted,
.form-note {
  color: var(--muted);
  font-size: .88rem;
}

.booking-card form {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.booking-card label {
  display: grid;
  gap: 6px;
  font-size: .82rem;
  font-weight: 800;
}

.booking-card input,
.booking-card select,
.booking-card textarea {
  width: 100%;
  min-height: 49px;
  padding: 11px 12px;
  color: var(--ink);
  background: var(--shell);
  border: 1px solid #cdd9d6;
  border-radius: 10px;
  outline: none;
}

.booking-card textarea { resize: vertical; }

.booking-card input:focus,
.booking-card select:focus,
.booking-card textarea:focus {
  border-color: var(--sea-dark);
  box-shadow: 0 0 0 3px rgba(107,169,170,.15);
}

.date-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.estimate {
  display: none;
  padding: 13px 14px;
  border-radius: 12px;
  background: var(--sand);
  font-size: .9rem;
}

.estimate.show { display: block; }

.calendar-details {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}

.calendar-details summary {
  cursor: pointer;
  font-weight: 800;
  font-size: .9rem;
}

.calendar-key {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px 0 4px;
  font-size: .76rem;
  color: var(--muted);
}

.key-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.key-dot.open { background: #a6d2c3; }
.key-dot.blocked { background: #d5d5d2; margin-left: 8px; }

.calendar {
  display: grid;
  gap: 16px;
  max-height: 380px;
  overflow: auto;
  margin-top: 10px;
  padding-right: 5px;
}

.month h3 {
  margin: 0 0 8px;
  font-size: .9rem;
}

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

.day-name,
.day {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  font-size: .7rem;
  border-radius: 7px;
}

.day-name {
  aspect-ratio: auto;
  height: 20px;
  color: var(--muted);
  font-weight: 800;
}

.day.open { background: #eaf4ef; }
.day.blocked { background: #efefec; color: #aaa; text-decoration: line-through; }
.day.empty { background: transparent; }

/* CONTACT + FOOTER */
.contact-band {
  width: min(var(--max), calc(100% - 44px));
  margin: 80px auto 0;
  padding: clamp(34px, 6vw, 66px);
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 50px;
  border-radius: 28px;
  background: var(--sea-dark);
  color: white;
}

.contact-band p { color: rgba(255,255,255,.78); }

.contact-links {
  display: grid;
  align-content: center;
  gap: 8px;
}

.contact-links a {
  padding: 11px 0;
  border-bottom: 1px solid rgba(255,255,255,.22);
  font-weight: 750;
}

footer {
  width: min(var(--max), calc(100% - 44px));
  margin: 0 auto;
  padding: 36px 0 110px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  font-size: .86rem;
}

footer div:first-child {
  display: grid;
}

/* Mobile sticky CTA is hidden on desktop */
.mobile-book-bar { display: none; }

/* TABLET */
@media (max-width: 960px) {
  .listing-shell {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .booking-card {
    position: static;
    margin: 0 0 40px;
  }

  .review-grid {
    grid-template-columns: 1fr;
  }

  .review { min-height: auto; }
}

/* PHONE */
@media (max-width: 680px) {
  html { scroll-padding-top: 68px; }

  body { padding-bottom: 78px; }

  .site-header {
    height: 64px;
    padding: 0 18px;
  }

  nav a:not(.nav-book) { display: none; }

  .nav-book { padding: 8px 13px; }

  .hero {
    min-height: 84svh;
  }

  .hero-copy {
    width: calc(100% - 34px);
    padding-bottom: 42px;
  }

  .section {
    width: 100%;
  }

  .intro,
  .content-section {
    padding-left: 18px;
    padding-right: 18px;
  }

  .intro { padding-top: 48px; }

  .facts {
    gap: 8px 14px;
    font-size: .92rem;
  }

  .facts span:not(:last-child)::after { margin-left: 14px; }

  .split-copy {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .split-copy > p { margin-top: 0; }

  .gallery {
    margin-left: -18px;
    margin-right: -18px;
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .gallery figure,
  .gallery-large,
  .gallery-wide {
    grid-column: auto !important;
    border-radius: 0;
    aspect-ratio: 4 / 5 !important;
  }

  .amenities-grid {
    grid-template-columns: 1fr;
  }

  .nearby {
    grid-template-columns: 1fr;
  }

  .map-wrap {
    margin-left: -18px;
    margin-right: -18px;
    border-radius: 0;
    box-shadow: none;
  }

  .map-wrap iframe { height: 360px; }

  .rules-list div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .contact-band {
    width: calc(100% - 28px);
    grid-template-columns: 1fr;
    gap: 24px;
    margin-top: 54px;
    padding: 30px 24px;
    border-radius: 22px;
  }

  footer {
    width: calc(100% - 36px);
    display: grid;
    padding-bottom: 36px;
  }

  .booking-card {
    margin: 0 18px 40px;
  }

  .mobile-book-bar {
    position: fixed;
    z-index: 80;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 10px 10px 16px;
    background: rgba(255,255,255,.97);
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: 0 10px 34px rgba(18,45,47,.22);
    backdrop-filter: blur(12px);
  }

  .mobile-book-bar span:first-child {
    display: grid;
    line-height: 1.1;
  }

  .mobile-book-bar small {
    margin-top: 5px;
    color: var(--muted);
  }

  .mobile-book-bar .button {
    min-height: 46px;
    padding: 0 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
