/* Toki Rentals, tokirentals.com
   Coastal, editorial design. System sans for body, Fraunces for display.
   No frameworks, no build step. */

:root {
  --sea: #0e7c86;
  --sea-deep: #083a41;
  --sea-ink: #0a3038;
  --foam: #e8f1f0;
  --sand: #f7f1e5;
  --sand-deep: #efe3cd;
  --ink: #1c292c;
  --muted: #5d6e72;
  --line: #dde4e1;
  --card: #ffffff;
  --accent: #dd7f1e;
  --accent-deep: #b96a12;
  --gold: #c9862b;
  --ok: #1e7d4f;
  --shadow-sm: 0 2px 8px rgba(10, 46, 53, 0.08);
  --shadow-md: 0 10px 30px rgba(10, 46, 53, 0.14);
  --shadow-lg: 0 24px 60px rgba(10, 46, 53, 0.22);
  --radius: 16px;
  --header-h: 64px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

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

h1, h2, h3, .display {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  font-weight: 600;
  letter-spacing: 0.1px;
}

a { color: var(--sea); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* Header, sticky with a shadow once the page scrolls */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--sea-deep);
  color: #fff;
  transition: box-shadow 0.25s ease;
}
header.site-header.scrolled { box-shadow: 0 6px 24px rgba(3, 25, 31, 0.35); }
header.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: var(--header-h);
}
.logo {
  font-family: "Fraunces", Georgia, serif;
  font-size: 23px; font-weight: 700; color: #fff; letter-spacing: 0.3px;
  display: inline-flex; align-items: center; gap: 9px;
}
.logo:hover { text-decoration: none; }
.logo .sun {
  width: 13px; height: 13px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #ffd9a0, var(--gold));
  box-shadow: 0 0 0 4px rgba(201, 134, 43, 0.25);
  flex: none;
}
nav.main-nav a { color: #d9ecef; margin-left: 20px; font-size: 15px; }
nav.main-nav a.nav-cta {
  background: var(--accent); color: #fff; font-weight: 600;
  padding: 8px 14px; border-radius: 999px;
}
nav.main-nav a.nav-cta:hover { background: var(--accent-deep); text-decoration: none; }

/* Homepage hero, full bleed photo */
.hero {
  position: relative;
  color: #fff;
  background: #0a2e35 url("assets/ocean-escape/escape-01.jpg") center 62% / cover no-repeat;
  padding: 96px 0 120px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(5, 32, 39, 0.82) 0%, rgba(5, 32, 39, 0.55) 45%, rgba(5, 32, 39, 0.12) 100%);
}
.hero .wrap { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-block;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(4px);
  padding: 5px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; letter-spacing: 0.6px; text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(38px, 6vw, 62px);
  margin: 18px 0 14px; line-height: 1.05; max-width: 640px;
}
.hero p { font-size: 19px; max-width: 560px; margin: 0; color: #e8f2f3; }
.hero .hero-save {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px;
  background: var(--accent); color: #fff;
  font-weight: 700; font-size: 15px;
  padding: 9px 16px; border-radius: 999px;
  box-shadow: var(--shadow-md);
}

/* Search style bar overlapping the hero */
.searchbar {
  position: relative; z-index: 5;
  margin-top: -58px;
}
.searchbar form {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 0.8fr auto;
  gap: 12px;
  align-items: end;
}
.searchbar label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); margin-bottom: 5px; }
.searchbar input, .searchbar select {
  width: 100%; padding: 11px 12px;
  border: 1px solid var(--line); border-radius: 10px;
  font: inherit; font-size: 15px; background: #fff; color: var(--ink);
}
.searchbar input[readonly] { background: var(--foam); font-weight: 600; }
.search-status { margin: 14px 2px 0; font-size: 14px; color: var(--sea-deep); min-height: 20px; }

section { padding: 46px 0; }
h2.section-title { font-size: 30px; margin: 0 0 6px; }
p.section-sub { color: var(--muted); margin: 0 0 26px; max-width: 640px; }

/* Home cards */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 0.28s ease, box-shadow 0.28s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.card.filtered-out { display: none; }
.card.match { box-shadow: 0 0 0 2px var(--accent), var(--shadow-md); }
.card .card-photo { height: 210px; overflow: hidden; background: var(--sand); position: relative; }
.card .card-photo img {
  width: 100%; height: 100%; object-fit: cover; display: block;
  transition: transform 0.6s ease;
}
.card:hover .card-photo img { transform: scale(1.07); }
.card .card-badge {
  position: absolute; top: 12px; left: 12px; z-index: 2;
}
.photo-placeholder {
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 214, 150, 0.75), rgba(255, 214, 150, 0) 42%),
    linear-gradient(155deg, #bcd9d6 0%, var(--sand) 88%);
  color: var(--sea-deep);
  font-family: "Fraunces", Georgia, serif;
  font-size: 21px; font-weight: 600; text-align: center; padding: 12px;
}
.card .card-body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card h3 { margin: 0; font-size: 21px; }
.card .area { color: var(--muted); font-size: 14px; }
.card .meta { font-size: 14px; }
.card .fit-note { display: none; font-size: 13px; font-weight: 700; color: var(--accent-deep); }
.card.match .fit-note { display: block; }

/* Price treatment: platform rate struck through, direct rate as headline */
.price-row { margin-top: auto; display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.price-row .from-label { width: 100%; font-size: 12px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; color: var(--muted); }
.price-row .was { color: var(--muted); text-decoration: line-through; font-size: 16px; }
.price-row .now { font-size: 24px; font-weight: 800; color: var(--sea-ink); }
.price-row .per { font-weight: 400; color: var(--muted); font-size: 14px; }
.price-plain { margin-top: auto; font-weight: 700; }
.price-plain .per { font-weight: 400; color: var(--muted); font-size: 14px; }

.badge-save {
  display: inline-block;
  background: var(--accent); color: #fff;
  font-size: 12px; font-weight: 700; letter-spacing: 0.3px;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}

.btn {
  display: inline-block; margin-top: 12px;
  background: var(--sea); color: #fff;
  padding: 11px 18px; border-radius: 10px; font-weight: 600; text-align: center;
  border: none; cursor: pointer; font-size: 15px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.btn:hover { background: var(--sea-deep); text-decoration: none; }
.btn:active { transform: scale(0.98); }
.btn-accent { background: var(--accent); }
.btn-accent:hover { background: var(--accent-deep); }

/* Why book direct */
.why {
  background: linear-gradient(180deg, var(--sand) 0%, #fdfaf2 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.why .grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.why .why-item {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(217, 111, 69, 0.18);
  border-radius: 14px; padding: 18px;
}
.why h3 { margin: 0 0 6px; font-size: 18px; }
.why p { margin: 0; color: var(--muted); font-size: 15px; }
.why .why-num {
  font-family: "Fraunces", Georgia, serif;
  font-size: 26px; color: var(--accent); font-weight: 700; line-height: 1;
}

footer.site-footer {
  background: var(--sea-deep); color: #cfe0e3; padding: 34px 0; font-size: 14px;
}
footer.site-footer .op { color: #fff; font-weight: 600; }

/* Property pages */
.crumb { font-size: 14px; padding: 20px 0 0; }
.prop-head h1 { font-size: 38px; margin: 14px 0 4px; }
.prop-head .area { color: var(--muted); font-size: 16px; }
.prop-head .badge-save { margin-top: 10px; font-size: 13px; padding: 6px 12px; }
.prop-section { padding: 10px 0; }
.prop-section h2 { font-size: 26px; margin: 24px 0 10px; }

/* Interactive gallery */
.gallery2 { margin: 22px 0; }
.gallery-main {
  border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--sand);
  cursor: zoom-in;
}
.gallery-main img {
  width: 100%; height: 480px; object-fit: cover; display: block;
  transition: opacity 0.25s ease;
}
.gallery-main img.fading { opacity: 0.25; }
.gallery-thumbs {
  display: flex; gap: 10px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px;
}
.gallery-thumbs button {
  border: 2px solid transparent; border-radius: 10px; padding: 0;
  background: none; cursor: pointer; flex: none; overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease;
}
.gallery-thumbs button:hover { transform: translateY(-2px); }
.gallery-thumbs button.active { border-color: var(--accent); }
.gallery-thumbs img { width: 104px; height: 70px; object-fit: cover; display: block; }
.gallery-hint { font-size: 13px; color: var(--muted); margin-top: 6px; }

.hero-photo { margin: 22px 0; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.hero-photo .photo-placeholder { height: 300px; font-size: 28px; }

.facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px; margin: 20px 0;
}
.fact {
  background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px;
  box-shadow: var(--shadow-sm);
}
.fact .k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.6px; font-weight: 700; }
.fact .v { font-size: 17px; font-weight: 600; margin-top: 2px; }

table.rates { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm); }
table.rates td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
table.rates tr:last-child td { border-bottom: none; }
table.rates td:first-child { color: var(--muted); width: 42%; }
table.rates .was { color: var(--muted); text-decoration: line-through; margin-right: 8px; }
table.rates .now { font-weight: 800; color: var(--sea-ink); }
table.rates .plat { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }

.draft-note {
  background: #fdf6e9; border: 1px solid #ecd9ac; color: #6d5410;
  border-radius: 10px; padding: 12px 14px; font-size: 14px;
}

/* Booking widget: calendar + live price breakdown */
.booking-widget { margin: 8px 0 4px; }
.booking-grid {
  display: grid; grid-template-columns: 1.45fr 1fr; gap: 22px; align-items: start;
}
.calendar-box, .price-box {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); padding: 18px;
}
.price-box { position: sticky; top: calc(var(--header-h) + 14px); }
.cal-nav { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-nav .cal-title { font-weight: 700; font-size: 15px; color: var(--sea-ink); }
.cal-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--line); background: #fff; cursor: pointer;
  font-size: 18px; line-height: 1; color: var(--sea-deep);
  transition: background 0.2s ease, border-color 0.2s ease;
}
.cal-btn:hover:not(:disabled) { background: var(--foam); border-color: var(--sea); }
.cal-btn:disabled { opacity: 0.35; cursor: default; }
.cal-months { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.cal-month h4 { margin: 0 0 8px; font-size: 15px; text-align: center; font-family: inherit; font-weight: 700; }
.cal-weekdays, .cal-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-weekdays span { text-align: center; font-size: 11px; font-weight: 700; color: var(--muted); padding: 4px 0; text-transform: uppercase; }
.cal-day {
  aspect-ratio: 1 / 1;
  border: none; background: none; cursor: pointer;
  font: inherit; font-size: 14px; color: var(--ink);
  border-radius: 50%;
  transition: background 0.15s ease, color 0.15s ease;
  padding: 0;
}
.cal-day:hover:not(:disabled) { background: var(--foam); }
.cal-day:disabled { color: #b9c4c2; cursor: default; }
.cal-day.empty { visibility: hidden; }
.cal-day.in-range { background: #dcefe9; border-radius: 0; }
.cal-day.range-start, .cal-day.range-end {
  background: var(--sea); color: #fff; font-weight: 700; border-radius: 50%;
}
.cal-day.range-start.in-range { border-radius: 50% 0 0 50%; background: var(--sea); color: #fff; }
.cal-day.range-end.in-range { border-radius: 0 50% 50% 0; }
.cal-day.single { border-radius: 50%; }
.cal-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; gap: 10px; flex-wrap: wrap; }
.cal-selection { font-size: 14px; font-weight: 600; color: var(--sea-ink); }
.cal-clear {
  background: none; border: none; color: var(--sea); cursor: pointer;
  font: inherit; font-size: 14px; font-weight: 600; text-decoration: underline; padding: 4px;
}
.cal-note { font-size: 12px; color: var(--muted); margin-top: 8px; }

.price-head { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 12px; }
.price-head .was { color: var(--muted); text-decoration: line-through; font-size: 17px; margin-right: 8px; }
.price-head .now { font-size: 30px; font-weight: 800; color: var(--sea-ink); }
.price-head .per { color: var(--muted); font-size: 14px; }
.price-head .badge-save { margin-left: 8px; vertical-align: middle; }
.price-rows { display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.price-row-line { display: flex; justify-content: space-between; gap: 12px; }
.price-row-line .lbl { color: var(--ink); }
.price-row-line .lbl small { display: block; color: var(--muted); font-size: 12px; }
.price-row-line.discount .amt { color: var(--ok); font-weight: 700; }
.price-row-line.total {
  border-top: 1px solid var(--line); padding-top: 11px; margin-top: 3px;
  font-weight: 800; font-size: 17px; color: var(--sea-ink);
}
.price-empty { color: var(--muted); font-size: 15px; }
.price-warn { color: #9a3412; font-weight: 600; font-size: 14px; }
.price-note { font-size: 12px; color: var(--muted); margin-top: 10px; }
.pet-toggle {
  display: flex; align-items: center; gap: 9px;
  margin-top: 14px; padding: 11px 12px;
  background: var(--sand); border: 1px solid var(--sand-deep); border-radius: 10px;
  font-size: 14px; font-weight: 600; cursor: pointer;
}
.pet-toggle input { width: 17px; height: 17px; accent-color: var(--sea); }
.price-box .btn { width: 100%; margin-top: 14px; }

.rates-soon {
  background: #fff; border: 1px dashed var(--sea); border-radius: var(--radius);
  padding: 22px; color: var(--sea-ink); font-size: 16px; box-shadow: var(--shadow-sm);
}
.rates-soon strong { display: block; font-size: 18px; margin-bottom: 4px; }

/* Inquiry form */
form.inquiry {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  box-shadow: var(--shadow-sm);
}
form.inquiry .full { grid-column: 1 / -1; }
form.inquiry label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
form.inquiry input, form.inquiry textarea, form.inquiry select {
  width: 100%; padding: 10px; border: 1px solid var(--line); border-radius: 8px;
  font: inherit; font-size: 15px;
}
form.inquiry input:focus, form.inquiry textarea:focus, .searchbar input:focus, .searchbar select:focus {
  outline: 2px solid rgba(13, 90, 104, 0.35); outline-offset: 1px; border-color: var(--sea);
}
form.inquiry .form-note { font-size: 13px; color: var(--muted); }
.form-summary {
  background: var(--foam); border: 1px solid #cfe0da; border-radius: 10px;
  padding: 12px 14px; font-size: 14px; color: var(--sea-ink);
}
.form-summary strong { font-size: 15px; }
#inquiry-status { font-size: 14px; color: var(--sea-deep); }

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(4, 22, 27, 0.93);
  display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(92vw, 1100px); max-height: 84vh;
  border-radius: 10px; box-shadow: var(--shadow-lg); object-fit: contain;
}
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.4);
  background: rgba(255, 255, 255, 0.12); color: #fff;
  font-size: 24px; cursor: pointer; line-height: 1;
  transition: background 0.2s ease;
}
.lb-btn:hover { background: rgba(255, 255, 255, 0.28); }
.lb-prev { left: 18px; }
.lb-next { right: 18px; }
.lb-close {
  top: 18px; right: 18px; transform: none;
  font-size: 20px;
}
.lb-count {
  position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%);
  color: #d9ecef; font-size: 14px; letter-spacing: 1px;
}

/* Sticky mobile booking bar (home pages with a calculator) */
.mobile-bar {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  background: #fff; border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(10, 46, 53, 0.16);
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
  align-items: center; gap: 14px;
}
.mobile-bar .mb-info { flex: 1; min-width: 0; }
.mobile-bar .mb-name { display: block; font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-bar .mb-total { display: block; font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-bar .mb-total strong { color: var(--sea-ink); font-size: 15px; }
.mobile-bar .btn { margin-top: 0; flex: none; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .searchbar form { grid-template-columns: 1fr 1fr; }
  .searchbar .search-go { grid-column: 1 / -1; }
  .booking-grid { grid-template-columns: 1fr; }
  .price-box { position: static; }
  .gallery-main img { height: 340px; }
}

@media (max-width: 760px) {
  body.has-booking { padding-bottom: 74px; }
  .mobile-bar { display: flex; }
}

@media (max-width: 640px) {
  .hero { padding: 64px 0 110px; }
  .hero p { font-size: 17px; }
  .searchbar form { grid-template-columns: 1fr; }
  .cal-months { grid-template-columns: 1fr; }
  .cal-months .cal-month.second { display: none; }
  form.inquiry { grid-template-columns: 1fr; }
  nav.main-nav a { margin-left: 12px; }
  nav.main-nav a.nav-cta { display: none; }
  .prop-head h1 { font-size: 30px; }
  .gallery-main img { height: 260px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .card, .card .card-photo img, .gallery-main img { transition: none; }
}

/* Promo code box (booking widget) */
.promo-box{margin-top:14px;border-top:1px dashed rgba(13,27,38,.18);padding-top:14px}
.promo-box label{display:block;font-size:12.5px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#5d7180;margin-bottom:7px}
.promo-row{display:flex;gap:8px}
.promo-row input{flex:1;min-width:0;padding:11px 13px;border:1px solid rgba(13,27,38,.25);border-radius:10px;font:inherit;font-size:15px;text-transform:uppercase;background:#fff}
.promo-apply{border:0;cursor:pointer;background:#0d1b26;color:#fff;font:inherit;font-weight:600;font-size:14.5px;padding:11px 18px;border-radius:10px}
.promo-apply:hover{background:#c85a30}
.promo-status{margin-top:8px;font-size:14px}
.promo-status.ok{color:#1e7a46}
.promo-status.err{color:#b23c2a}

/* Live availability states */
.cal-day.blocked { color: #bdb5aa; background: #f0ebe4; text-decoration: line-through; cursor: not-allowed; }
.cal-day.blocked:hover { border-color: transparent; color: #bdb5aa; }
.cal-note { font-size: 12.5px; color: var(--muted); margin-top: 8px; min-height: 16px; }

.logo-badge { height: 32px; width: auto; }
.footer-logo { height: 96px; width: auto; margin-bottom: 14px; }

/* Location maps (Leaflet) */
.toki-map { height: 340px; border-radius: 18px; overflow: hidden; border: 1px solid #dce8ea; margin-top: 14px; z-index: 0; }
.toki-pin-wrap { background: none; border: none; }
.toki-map .leaflet-popup-content { font-size: 14px; line-height: 1.45; }
.toki-map .leaflet-popup-content a { color: #0e7c86; font-weight: 600; }

/* Amenities list */
.amenities { list-style: none; margin: 14px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px 26px; }
.amenities li { position: relative; padding-left: 24px; line-height: 1.45; }
.amenities li::before { content: "\2713"; position: absolute; left: 0; top: 0; color: #0e7c86; font-weight: 700; }
