:root {
  /* Palette from the Sol Sister logo: navy, terracotta, cream. */
  --sand: #ffffff;
  --tint: #f5f7fa;
  --sand-2: #eef1f5;
  --ink: #1f3350;
  --muted: #5d6675;
  --ocean: #1f3a5f;
  --ocean-dark: #142a47;
  --sea-glass: #f3dccd;
  --coral: #c4683c;
  --coral-dark: #a8542d;
  --line: #e2e6ec;
  --booked: #e9ecf0;
  --radius: 14px;
  --header-h: 104px;
  --serif: Rockwell, "Roboto Slab", "Iowan Old Style", Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body { margin: 0; background: var(--sand); color: var(--ink); font: 17px/1.65 var(--sans); }
img { max-width: 100%; display: block; }
a { color: var(--ocean); }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; font-weight: 700; color: var(--ink); }
h2 { font-size: 1.7rem; margin: 0 0 .9rem; }
h3 { font-size: 1.15rem; margin: 1.5rem 0 .5rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); font-weight: 400; }
.fine { font-size: .82rem; color: var(--muted); margin: 0; }
.icon { flex: none; }

.button {
  display: inline-block; border: 0; border-radius: 999px; background: var(--ocean); color: #fff;
  padding: .8rem 1.6rem; font: 600 1rem var(--sans); text-decoration: none; cursor: pointer; text-align: center;
}
.button:hover { background: var(--ocean-dark); }
.button--coral { background: var(--coral); }
.button--coral:hover { background: var(--coral-dark); }
.button--block { display: block; width: 100%; }
.button:disabled { opacity: .5; cursor: not-allowed; }
.link-button { background: none; border: 0; padding: 0; font: inherit; font-size: .9rem; color: var(--ocean); text-decoration: underline; cursor: pointer; justify-self: start; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 2px; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--ocean-dark); color: #fff; }
.site-header__inner { max-width: 1180px; margin: 0 auto; padding: 0 20px; height: var(--header-h); display: flex; align-items: center; gap: 1.5rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: #fff; text-decoration: none; margin-right: auto; }
.brand__logo { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; background: #fff; border: 3px solid #fff; }
.brand__name { font: 700 2.1rem var(--serif); letter-spacing: .02em; }
.header-cta { padding: .75rem 1.5rem; font-size: 1rem; }
/* A thin navy-and-cream "rope" band, echoing the logo's rope ring. */
.rope { height: 6px; background: repeating-linear-gradient(115deg, var(--ocean) 0 5px, #fff 5px 8px); }
.site-header .rope { background: repeating-linear-gradient(115deg, var(--coral) 0 5px, var(--ocean-dark) 5px 8px); }

/* ---------- Title + quick facts ---------- */
main { max-width: 1180px; margin: 0 auto; padding: 0 20px 4rem; }
.title-block { padding: 1.8rem 0 .4rem; }
.gallery { margin-top: 1.8rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .16em; font-size: .78rem; font-weight: 600; color: var(--coral-dark); margin: 0 0 .3rem; }
.title-block h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin: 0 0 .4rem; }
.headline { font: 700 clamp(1.4rem, 3.4vw, 2rem)/1.2 var(--serif); color: var(--coral-dark); margin: 0 0 .6rem; }
.tagline { font-size: 1.15rem; color: var(--muted); margin: 0 0 1.1rem; max-width: 46rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .6rem; }
.chips li { display: flex; align-items: center; gap: .5rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .4rem .95rem; font-size: .92rem; color: var(--ink); }
.chips .icon { color: var(--coral); }

/* ---------- Gallery mosaic ---------- */
.gallery { position: relative; display: grid; gap: 8px; border-radius: var(--radius); overflow: hidden; height: clamp(260px, 44vw, 520px); }
.thumb { padding: 0; border: 0; overflow: hidden; cursor: zoom-in; background: var(--sand-2); min-height: 0; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.thumb:hover img { transform: scale(1.04); }
.thumb--hidden { display: none; }
.gallery--1 { grid-template-columns: 1fr; }
.gallery--2 { grid-template-columns: 1fr 1fr; }
.gallery--3 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery--3 .thumb:first-child { grid-row: span 2; }
.gallery--4 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery--4 .thumb:first-child { grid-row: span 2; }
.gallery--4 .thumb:nth-child(4) { grid-column: 2 / span 2; }
.gallery--5 { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 1fr 1fr; }
.gallery--5 .thumb:first-child { grid-row: span 2; }
.gallery__all {
  position: absolute; right: 14px; bottom: 14px; display: inline-flex; align-items: center; gap: .5rem; background: #fff; color: var(--ink);
  border: 1px solid var(--line); border-radius: 999px; padding: .55rem 1rem; font: 600 .9rem var(--sans); cursor: pointer; box-shadow: 0 2px 10px rgba(10, 20, 35, .18);
}
.gallery__all:hover { background: var(--tint); }
.gallery--empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; background: var(--sand-2); border: 1px dashed #cbbd9f; height: clamp(220px, 34vw, 380px); color: var(--muted); }
.gallery--empty img { width: 130px; height: 130px; border-radius: 50%; object-fit: cover; }
.gallery--empty p { margin: 0; font-family: var(--serif); font-size: 1.15rem; }

/* ---------- Two-column layout ---------- */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 3rem; align-items: start; margin-top: 2.2rem; }
.block { padding: 0 0 2.2rem; margin-bottom: 2.2rem; border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: 0; margin-bottom: 0; }
.content ul { padding-left: 1.2rem; }
.amenities ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr; gap: .55rem 1.5rem; }
.amenities li { position: relative; padding-left: 1.7rem; }
.amenities li::before { content: ""; position: absolute; left: 0; top: .35em; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: var(--sea-glass) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.2 8.3l2.4 2.4 5-5.2' fill='none' stroke='%23a8542d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat; }
.rules ul { margin: 0 0 1.2rem; }

/* ---------- Booking card ---------- */
.booking-col { position: sticky; top: calc(var(--header-h) + 18px); }
.booking-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem;
  box-shadow: 0 8px 28px rgba(31, 51, 80, .12); max-height: calc(100vh - var(--header-h) - 36px); overflow: auto;
}
.booking-card__price { font-size: 1.05rem; margin: 0 0 .9rem; }
.booking-card__price strong { font: 700 1.6rem var(--serif); }
.closed { margin: 0; }
.date-boxes { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #c9bda4; border-radius: 10px; overflow: hidden; margin-bottom: .9rem; }
.date-box { padding: .55rem .8rem; display: grid; gap: .1rem; }
.date-box + .date-box { border-left: 1px solid #c9bda4; }
.date-box__label { display: flex; align-items: center; gap: .35rem; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 600; }
.date-box__label .icon { width: 14px; height: 14px; }
.date-box__value { font-weight: 600; }
.date-box.is-active { background: var(--sea-glass); box-shadow: inset 0 0 0 2px var(--coral); }
.date-box.is-empty .date-box__value { color: var(--muted); font-weight: 400; }

.booking-card.flash { animation: flash 1.5s ease-out; }
@keyframes flash {
  0%, 35% { box-shadow: 0 0 0 4px var(--coral), 0 8px 28px rgba(31, 51, 80, .12); }
  100% { box-shadow: 0 0 0 0 rgba(196, 104, 60, 0), 0 8px 28px rgba(31, 51, 80, .12); }
}

/* Calendar */
.calendar { padding: 0; }
.cal-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: .4rem; }
.cal-nav button { border: 1px solid var(--line); background: #fff; border-radius: 999px; width: 2.2rem; height: 2.2rem; font-size: 1.1rem; cursor: pointer; color: var(--ink); }
.cal-nav button:hover:not(:disabled) { background: var(--tint); }
.cal-nav button:disabled { opacity: .3; cursor: default; }
.cal-title { font: 700 1.05rem var(--serif); }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.cal-dow { text-align: center; font-size: .72rem; color: var(--muted); padding-bottom: .2rem; }
.day {
  aspect-ratio: 1 / 1.05; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: .92rem; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; color: var(--ink); padding: 0;
}
.day small { font-size: .6rem; color: var(--muted); }
.day:hover:not(:disabled) { background: var(--sea-glass); }
.day:disabled { cursor: default; color: #b3b0aa; }
.day.booked { background: var(--booked); text-decoration: line-through; color: #a49e93; }
.day.in-range { background: var(--sea-glass); border-radius: 0; }
.day.start, .day.end { background: var(--ocean); color: #fff; }
.day.start small, .day.end small { color: #d9e2ee; }
.day.start { border-radius: 8px 0 0 8px; }
.day.end { border-radius: 0 8px 8px 0; }
.day.start.end { border-radius: 8px; }
.day.today { outline: 1px solid var(--ocean); outline-offset: -1px; }
.cal-legend { display: flex; gap: .4rem 1rem; flex-wrap: wrap; font-size: .76rem; color: var(--muted); margin-top: .7rem; }
.cal-legend span::before { content: ""; display: inline-block; width: .75rem; height: .75rem; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }
.lg-free::before { background: #fff; border: 1px solid var(--line); }
.lg-booked::before { background: var(--booked); }
.lg-sel::before { background: var(--ocean); }
.cal-hint { font-size: .85rem; color: var(--muted); margin: .5rem 0 0; min-height: 1.3em; }

/* Form */
.request-form { display: grid; gap: .85rem; margin-top: .6rem; }
.step { display: grid; gap: .85rem; }
.step[hidden] { display: none; }
.request-form label { display: grid; gap: .25rem; font-size: .88rem; font-weight: 600; }
.request-form input, .request-form textarea {
  font: inherit; font-weight: 400; padding: .6rem .7rem; border: 1px solid #c9bda4; border-radius: 8px; background: #fff; width: 100%;
}
.request-form input:focus, .request-form textarea:focus { outline: 2px solid var(--ocean); outline-offset: -1px; }
.request-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.request-form .check { display: flex; gap: .5rem; align-items: flex-start; font-weight: 400; }
.request-form .check input { width: auto; margin-top: .35rem; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.dates-summary { font-weight: 600; font-size: .95rem; }
.quote { background: var(--tint); border-radius: 10px; padding: .8rem 1rem; font-size: .92rem; }
.quote table { width: 100%; border-collapse: collapse; }
.quote td:last-child { text-align: right; }
.quote tr.total td { font-weight: 700; border-top: 1px solid var(--line); padding-top: .4rem; }
.agreement { font-size: .86rem; background: var(--tint); border-radius: 8px; padding: .5rem .8rem; }
.agreement summary { cursor: pointer; font-weight: 600; }
.vra-notice { font-size: .82rem; margin: 0; padding: .6rem .8rem; border-left: 3px solid var(--coral); background: var(--tint); }
.form-status { margin: 0; font-size: .92rem; min-height: 1.2em; }
.form-status.error { color: #b3401a; }
.success { background: var(--sea-glass); border-radius: var(--radius); padding: 1.3rem; }
.success h3 { margin-top: 0; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ocean-dark); color: #dfe7f1; text-align: center; margin-top: 2rem; }
.site-footer .rope { background: repeating-linear-gradient(115deg, var(--coral) 0 5px, var(--ocean-dark) 5px 8px); }
.site-footer__inner { padding: 2.2rem 20px 3rem; display: grid; gap: .3rem; justify-items: center; }
.site-footer p { margin: 0; }
.site-footer .fine { color: #9fb0c6; }
.brand--footer { margin: 0 0 .4rem; }

/* ---------- Mobile booking bar ---------- */
.mobile-bar { display: none; }

/* ---------- Lightbox ---------- */
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1100px, 94vw); overflow: visible; }
.lightbox::backdrop { background: rgba(8, 20, 26, .9); }
.lightbox img { max-height: 82vh; border-radius: 8px; margin: 0 auto; }
.lightbox__caption { color: #fff; text-align: center; margin: .6rem 0 0; min-height: 1.5em; }
.lightbox__close { position: fixed; top: 12px; right: 18px; font-size: 2.2rem; color: #fff; background: none; border: 0; cursor: pointer; line-height: 1; }
.lightbox__nav { position: fixed; top: 50%; transform: translateY(-50%); width: 3rem; height: 3rem; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 1.8rem; line-height: 1; cursor: pointer; }
.lightbox__nav--prev { left: 16px; }
.lightbox__nav--next { right: 16px; }

/* ---------- Tablet / phone ---------- */
@media (max-width: 980px) {
  .layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .booking-col { position: static; }
  .booking-card { max-height: none; overflow: visible; }
}
@media (max-width: 640px) {
  :root { --header-h: 76px; }
  body { font-size: 16px; }
  .site-footer__inner { padding-bottom: 6rem; }
  main { padding: 0 14px 3rem; }
  .brand__logo { width: 56px; height: 56px; }
  .brand__name { font-size: 1.5rem; }
  .header-cta { display: none; }
  .title-block { padding-top: 1.2rem; }
  .gallery { margin-top: 1.2rem; }
  .gallery { height: 62vw; border-radius: 10px; }
  .gallery--3, .gallery--4, .gallery--5 { grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; }
  .gallery--4 .thumb:nth-child(4), .gallery--5 .thumb:nth-child(4), .gallery--5 .thumb:nth-child(5) { display: none; }
  .amenities ul { grid-template-columns: 1fr; }
  .mobile-bar {
    display: flex; align-items: center; justify-content: space-between; gap: 1rem; position: fixed; left: 0; right: 0; bottom: 0; z-index: 15;
    background: #fff; border-top: 1px solid var(--line); padding: .7rem 16px calc(.7rem + env(safe-area-inset-bottom)); box-shadow: 0 -4px 16px rgba(10, 20, 35, .1);
  }
  .mobile-bar p { margin: 0; }
  .mobile-bar strong { font: 700 1.25rem var(--serif); }
  .mobile-bar .button { padding: .65rem 1.2rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .thumb img { transition: none; }
  .booking-card.flash { animation: none; }
}

/* Discount code */
.quote tr.discount td { color: var(--coral-dark); }
.promo { margin-top: .6rem; }
.promo__toggle { background: none; border: 0; padding: 0; color: var(--ocean); font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }
.promo__row { display: flex; gap: .5rem; margin-top: .5rem; }
.promo__row input { flex: 1; min-width: 0; padding: .55rem .7rem; border: 1px solid var(--line); border-radius: 8px; font: inherit; text-transform: uppercase; }
.promo__msg { margin: .4rem 0 0; font-size: .85rem; min-height: 1.1em; }
.promo__msg--ok { color: #1c6b3a; }
.promo__msg--error { color: #a32020; }
.button--small { padding: .5rem .9rem; font-size: .9rem; }

/* Amenities + house rules side by side */
.info-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem; padding-bottom: 2.2rem; border-bottom: 1px solid var(--line); }
.info-pair h2 { margin-top: 0; }
.info-pair ul { margin: 0; }
@media (max-width: 700px) { .info-pair { grid-template-columns: 1fr; gap: 1.5rem; } }

/* House layout */
.layout-block { margin-top: 2.2rem; }
.floors { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 2.5rem; }
.floor h3 { margin: 0 0 .5rem; font-size: 1.05rem; color: var(--coral-dark); text-transform: uppercase; letter-spacing: .06em; }
.floor ul { margin: 0; padding-left: 1.2rem; }
.floor p { margin: 0; }
@media (max-width: 700px) { .floors { grid-template-columns: 1fr; } }
