/* Ocean Peak Escapes — Puerto Rico vacation rental company
   Flagship property: Turquoise Horizons (Fajardo, PR)
   Palette: deep teal water, sun-warmed sand, cream, midnight ink.
   Type: Cormorant Garamond for editorial moments, Inter for everything else. */

:root {
  --c-ink: #0f1f23;
  --c-ink-soft: #2a4147;
  --c-muted: #6c8388;
  --c-line: #e6eceb;
  --c-cream: #f7f3ec;
  --c-sand: #ead7b7;
  --c-sand-deep: #c9a875;
  --c-water: #0e6e7a;
  --c-water-deep: #08434a;
  --c-water-tint: #d6ecee;
  --c-coral: #d96f5b;
  --c-white: #ffffff;
  --shadow-1: 0 1px 2px rgba(15, 31, 35, .04), 0 8px 24px -12px rgba(15, 31, 35, .12);
  --shadow-2: 0 1px 2px rgba(15, 31, 35, .05), 0 24px 60px -24px rgba(15, 31, 35, .25);
  --radius: 14px;
  --radius-lg: 22px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  color: var(--c-ink);
  background: var(--c-cream);
  line-height: 1.55;
  font-size: 16px;
}
img, svg, figure { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  background: rgba(247, 243, 236, .82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid rgba(15, 31, 35, .06);
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 30%, #6ad7d4 0%, var(--c-water) 55%, var(--c-water-deep) 100%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .35), 0 6px 14px -6px rgba(8, 67, 74, .55);
  flex: none;
}
.brand-stack { display: inline-flex; flex-direction: column; line-height: 1.1; }
.brand-name {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  font-size: 22px;
  letter-spacing: .01em;
  color: var(--c-ink);
}
.brand-sub {
  font-size: 11.5px;
  color: var(--c-muted);
  letter-spacing: .04em;
  margin-top: 2px;
}
@media (max-width: 720px) {
  .brand-sub { display: none; }
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a { font-size: 14.5px; color: var(--c-ink-soft); transition: color .2s; }
.nav-links a:hover { color: var(--c-water); }
.nav-cta {
  padding: 9px 18px;
  border: 1px solid var(--c-water);
  color: var(--c-water) !important;
  border-radius: 999px;
  transition: background .2s, color .2s;
}
.nav-cta:hover { background: var(--c-water); color: var(--c-white) !important; }

@media (max-width: 720px) {
  .nav { padding: 14px 18px; }
  .nav-links { gap: 14px; font-size: 13px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links .nav-cta { display: inline-flex; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s, color .2s, border-color .2s, box-shadow .2s;
  text-decoration: none;
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--c-water);
  color: var(--c-white);
  box-shadow: 0 10px 28px -14px rgba(8, 67, 74, .55);
}
.btn-primary:hover { background: var(--c-water-deep); }
.btn-ghost {
  background: transparent;
  color: var(--c-cream);
  border-color: rgba(247, 243, 236, .65);
}
.btn-ghost:hover { background: rgba(247, 243, 236, .12); border-color: var(--c-cream); }
.btn-lg { padding: 16px 30px; font-size: 16px; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex; align-items: flex-end;
  padding: 120px 28px 70px;
  color: var(--c-cream);
  overflow: hidden;
  isolation: isolate;
}
.hero-photo {
  position: absolute; inset: 0; z-index: -2;
  background-image: url('/images/01-hero.jpg');
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
}
.hero-veil {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(8, 25, 30, .35) 0%, rgba(8, 25, 30, .15) 35%, rgba(8, 25, 30, .85) 100%);
}
.hero-inner { max-width: var(--maxw); width: 100%; margin: 0 auto; }
.hero-eyebrow {
  text-transform: uppercase;
  letter-spacing: .26em;
  font-size: 12px;
  color: rgba(247, 243, 236, .85);
  margin: 0 0 18px;
}
.hero-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(48px, 8vw, 96px);
  line-height: 1;
  letter-spacing: -.01em;
  margin: 0 0 18px;
}
.hero-tag {
  max-width: 44ch;
  font-size: clamp(16px, 1.8vw, 19px);
  color: rgba(247, 243, 236, .92);
  margin: 0 0 26px;
  line-height: 1.5;
}
.hero-spec {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  font-size: 14px;
  color: rgba(247, 243, 236, .92);
  margin: 0 0 32px;
}
.hero-spec .spec-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(247, 243, 236, .35);
  border-radius: 999px;
  background: rgba(8, 25, 30, .22);
  font-weight: 500;
  letter-spacing: .01em;
}
.hero-spec .spec-dot { color: rgba(247, 243, 236, .45); margin: 0 -2px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- highlights strip ---------- */
.strip-highlights {
  background: var(--c-white);
  border-bottom: 1px solid var(--c-line);
}
.strip-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 32px 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.strip-card {
  display: flex; align-items: flex-start; gap: 14px;
}
.strip-icon {
  flex: none;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--c-water-tint);
  color: var(--c-water-deep);
  display: grid; place-items: center;
}
.strip-title { font-weight: 600; color: var(--c-ink); margin: 2px 0 4px; font-size: 15.5px; }
.strip-sub { color: var(--c-muted); font-size: 13.5px; line-height: 1.5; }

/* ---------- generic section ---------- */
.section {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 100px 28px;
}
.section-head { max-width: 60ch; margin: 0 auto 56px; text-align: center; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .24em;
  font-size: 11.5px;
  color: var(--c-water);
  margin: 0 0 14px;
  font-weight: 600;
}
.section h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
  letter-spacing: -.005em;
  margin: 0 0 18px;
  color: var(--c-ink);
}
.muted { color: var(--c-muted); }

/* ---------- about (the condo) ---------- */
.section-about { padding-top: 90px; padding-bottom: 70px; }
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.about-copy h2 { margin-top: 8px; }
.about-copy p { color: var(--c-ink-soft); font-size: 16.5px; line-height: 1.7; margin: 0 0 16px; }
.about-list {
  list-style: none; padding: 0; margin: 22px 0 0;
  display: grid; gap: 10px;
  font-size: 15px;
  color: var(--c-ink-soft);
}
.about-list li {
  padding-left: 22px;
  position: relative;
}
.about-list li::before {
  content: ''; position: absolute; left: 0; top: 9px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--c-water);
}
.about-list strong { color: var(--c-water-deep); font-weight: 600; }
.about-photo {
  margin: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-2);
}
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }

@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; gap: 36px; }
}

/* ---------- nearby (the area) ---------- */
.nearby-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 240px;
  gap: 16px;
}
.nearby-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  text-decoration: none;
  color: var(--c-cream);
  cursor: default;
}
.nearby-card img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s ease;
}
.nearby-card:hover img { transform: scale(1.04); }
.nearby-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(8, 25, 30, .05) 0%, rgba(8, 25, 30, .15) 40%, rgba(8, 25, 30, .85) 100%);
}
.nearby-card .nearby-text {
  position: absolute; left: 0; right: 0; bottom: 0;
  z-index: 1;
  padding: 20px 22px;
}
.nearby-eyebrow {
  display: inline-block;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  background: rgba(247, 243, 236, .92);
  color: var(--c-water-deep);
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
  font-weight: 600;
}
.nearby-card h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: 26px;
  margin: 0 0 6px;
  color: var(--c-cream);
}
.nearby-card p { font-size: 14px; color: rgba(247, 243, 236, .9); margin: 0; line-height: 1.5; max-width: 38ch; }
.nearby-card.big { grid-column: span 4; grid-row: span 2; }
.nearby-card:not(.big) { grid-column: span 2; }

@media (max-width: 880px) {
  .nearby-grid { grid-template-columns: 1fr; grid-auto-rows: 280px; }
  .nearby-card.big, .nearby-card:not(.big) { grid-column: span 1; }
}

/* ---------- amenities ---------- */
.amen-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.amen-col {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 22px 24px;
  box-shadow: var(--shadow-1);
}
.amen-col h4 {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--c-water);
  margin: 0 0 14px;
}
.amen-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--c-ink-soft); }
.amen-col li { padding-left: 20px; position: relative; }
.amen-col li::before {
  content: '✓';
  position: absolute; left: 0; top: 0;
  color: var(--c-water);
  font-weight: 600;
}

/* ---------- calendar ---------- */
.cal-wrap {
  max-width: 720px;
  margin: 0 auto;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-1);
}
.cal-controls {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 22px;
}
.cal-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 500;
  margin: 0;
}
.cal-nav {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  background: var(--c-white);
  color: var(--c-ink-soft);
  font-size: 22px; line-height: 1;
  transition: background .2s, color .2s, border-color .2s;
}
.cal-nav:hover { background: var(--c-water); color: var(--c-white); border-color: var(--c-water); }
.calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}
.cal-dow, .cal-cell {
  text-align: center;
  font-size: 13px;
  padding: 10px 0;
  border-radius: 8px;
}
.cal-dow {
  color: var(--c-muted);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10.5px;
  font-weight: 600;
}
.cal-cell { background: transparent; border: 1px solid transparent; cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.cal-cell.empty { cursor: default; }
.cal-cell.past { color: var(--c-line); cursor: not-allowed; }
.cal-cell.open:hover { background: var(--c-water-tint); color: var(--c-water-deep); }
.cal-cell.blocked { background: #f1efeb; color: #b1a99c; cursor: not-allowed; text-decoration: line-through; }
.cal-cell.selected { background: var(--c-water); color: var(--c-white); }
.cal-cell.in-range { background: var(--c-water-tint); color: var(--c-water-deep); }
.cal-legend { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; margin-top: 22px; font-size: 13px; color: var(--c-muted); }
.legend-item { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot-open { background: var(--c-water-tint); border: 1px solid var(--c-water); }
.dot-blocked { background: #d8d3ca; }
.dot-selected { background: var(--c-water); }

/* ---------- form ---------- */
.form-card {
  max-width: 760px; margin: 0 auto;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: 38px;
  box-shadow: var(--shadow-1);
}
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 18px; margin-bottom: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--c-ink-soft); }
.field span { font-weight: 500; }
.field em { color: var(--c-muted); font-style: normal; font-weight: 400; font-size: 12.5px; margin-left: 4px; }
.field input, .field textarea {
  padding: 12px 14px;
  border: 1px solid var(--c-line);
  border-radius: 10px;
  background: var(--c-cream);
  color: var(--c-ink);
  font-family: inherit; font-size: 15px;
  transition: border-color .15s, background .15s, box-shadow .15s;
  resize: vertical;
}
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--c-water);
  background: var(--c-white);
  box-shadow: 0 0 0 4px rgba(14, 110, 122, .12);
}
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-card .btn-lg { width: 100%; margin-top: 8px; }
.form-fineprint { font-size: 13px; color: var(--c-muted); text-align: center; margin: 14px 0 0; }
.form-status { margin-top: 18px; padding: 14px 16px; border-radius: 10px; font-size: 14.5px; display: none; }
.form-status.success { display: block; background: #e8f5f1; color: #145e4d; border: 1px solid #b8dccd; }
.form-status.error { display: block; background: #fbeae5; color: #843325; border: 1px solid #f0c2b6; }

/* ---------- faq ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--radius);
  padding: 20px 24px;
  transition: box-shadow .2s;
}
.faq-item:hover { box-shadow: var(--shadow-1); }
.faq-q {
  list-style: none;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  color: var(--c-ink);
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::after { content: '＋'; color: var(--c-water); font-size: 18px; transition: transform .2s; }
.faq-item[open] .faq-q::after { transform: rotate(45deg); }
.faq-a { color: var(--c-ink-soft); margin: 12px 0 0; font-size: 15px; line-height: 1.65; }

/* ---------- brand band (Ocean Peak Escapes parent brand) ---------- */
.brand-band {
  background: var(--c-white);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.brand-band-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 70px 28px;
  text-align: center;
}
.brand-band h2 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.18;
  margin: 0 0 14px;
  color: var(--c-ink);
}
.brand-band p { color: var(--c-ink-soft); font-size: 16px; line-height: 1.65; margin: 0; }

/* ---------- footer ---------- */
.footer { background: var(--c-water-deep); color: var(--c-cream); padding: 60px 28px 40px; margin-top: 80px; }
.footer-inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; }
.footer-brand { font-family: 'Cormorant Garamond', serif; font-size: 26px; margin: 0 0 4px; }
.footer .muted { color: rgba(247, 243, 236, .65); }
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: rgba(247, 243, 236, .85); font-size: 14px; }
.footer-links a:hover { color: var(--c-cream); }
.footer-meta { width: 100%; font-size: 12.5px; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(247, 243, 236, .12); text-align: center; }

/* ---------- chat ---------- */
.chat-toggle {
  position: fixed; bottom: 24px; right: 24px; z-index: 60;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 18px;
  border-radius: 999px;
  border: none;
  background: var(--c-water);
  color: var(--c-white);
  box-shadow: 0 12px 32px -12px rgba(8, 67, 74, .55);
  font-size: 14px; font-weight: 500;
  transition: transform .15s, background .2s;
}
.chat-toggle:hover { background: var(--c-water-deep); transform: translateY(-1px); }
.chat-panel {
  position: fixed; bottom: 84px; right: 24px; z-index: 60;
  width: 360px; max-width: calc(100vw - 32px);
  height: 480px; max-height: calc(100vh - 120px);
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: 18px;
  box-shadow: var(--shadow-2);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.chat-head {
  padding: 14px 18px;
  background: var(--c-water-deep);
  color: var(--c-cream);
  display: flex; align-items: center; justify-content: space-between;
}
.chat-title { font-size: 14px; font-weight: 500; letter-spacing: .02em; }
.chat-close { background: transparent; color: var(--c-cream); border: none; font-size: 22px; line-height: 1; cursor: pointer; opacity: .8; }
.chat-close:hover { opacity: 1; }
.chat-log { flex: 1; padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.chat-msg { max-width: 84%; padding: 10px 14px; border-radius: 14px; line-height: 1.5; }
.chat-msg.bot { align-self: flex-start; background: var(--c-water-tint); color: var(--c-water-deep); border-bottom-left-radius: 4px; }
.chat-msg.user { align-self: flex-end; background: var(--c-water); color: var(--c-white); border-bottom-right-radius: 4px; }
.chat-form { display: flex; padding: 12px; border-top: 1px solid var(--c-line); gap: 8px; background: var(--c-cream); }
.chat-form input { flex: 1; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--c-line); background: var(--c-white); font-size: 14px; }
.chat-form input:focus { outline: none; border-color: var(--c-water); }
.chat-form button { width: 38px; height: 38px; border-radius: 50%; border: none; background: var(--c-water); color: var(--c-white); font-size: 18px; }
.chat-form button:hover { background: var(--c-water-deep); }

/* ---------- 404 / admin shared bits ---------- */
.center-card {
  min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background: var(--c-cream);
}
