/* ============================================
   Direct booking widget + Book page
   ============================================ */
.booking { background: var(--sand-soft); padding: 120px 0; display: flow-root; }
.booking.on-white { background: var(--white); }

.bk { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; margin-top: 56px; text-align: left; }
.bk-cal { background: var(--white); border-radius: 6px; padding: 32px; box-shadow: var(--shadow-sm); }
.bk-tabs { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.bk-tab { font: inherit; font-size: 0.9rem; font-weight: 500; padding: 11px 22px; border-radius: 100px; border: 1px solid var(--azure-soft); background: transparent; color: var(--azure-deep); cursor: pointer; transition: all .2s ease; }
.bk-tab[aria-pressed="true"] { background: var(--azure); border-color: var(--azure); color: var(--white); }
.bk-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.bk-hint { font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: var(--azure); }
.bk-head button { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--azure-tint); background: var(--white); color: var(--azure-deep); font-size: 1.3rem; cursor: pointer; }
.bk-head button:disabled { opacity: .35; cursor: default; }
.bk-months { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.bk-month h4 { font-size: 1.35rem; text-align: center; margin-bottom: 12px; }
.bk-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; text-align: center; }
.bk-dow { font-size: 0.7rem; letter-spacing: .1em; color: var(--ink-soft); padding: 4px 0 8px; }
.bk-d { aspect-ratio: 1; border: 0; border-radius: 4px; background: transparent; color: var(--ink); font: inherit; font-size: 0.9rem; cursor: pointer; transition: background .15s ease; }
.bk-d:hover:not(:disabled) { background: var(--azure-tint); }
.bk-d:disabled { cursor: default; color: var(--ink-soft); opacity: .35; }
.bk-d.is-booked { background: var(--sand); color: var(--ink-soft); text-decoration: line-through; opacity: 1; }
.bk-d.is-in { background: var(--azure-tint); border-radius: 0; }
.bk-d.is-start, .bk-d.is-end, .bk-d.is-start:hover, .bk-d.is-end:hover { background: var(--azure); color: var(--white); }
.bk-legend { display: flex; gap: 20px; flex-wrap: wrap; font-size: 0.8rem; color: var(--ink-soft); margin-top: 18px; }
.bk-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.bk-status { font-size: 0.8rem; color: var(--ink-soft); margin-top: 6px; }

.bk-quote { background: var(--azure-deep); color: var(--white); border-radius: 6px; padding: 32px; display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow-md); }
.bk-quote h3 { color: var(--white); font-size: 1.7rem; }
.bk-body p { color: rgba(255, 255, 255, .82); font-size: 0.95rem; }
.bk-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.bk-table td { padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .14); }
.bk-table td:last-child { text-align: right; white-space: nowrap; }
.bk-table .bk-save td { color: var(--azure-soft); }
.bk-table .bk-total td { border: 0; padding-top: 14px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.6rem; }
.bk-form { display: grid; gap: 10px; }
.bk-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.bk-form input, .bk-form select, .bk-form textarea { width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border: 0; border-radius: 4px; background: var(--white); color: var(--ink); }
.bk-form textarea { resize: vertical; }
.bk-check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.82rem; color: rgba(255, 255, 255, .85); line-height: 1.5; }
.bk-check input { width: 18px; height: 18px; margin-top: 2px; flex: none; padding: 0; }
.bk-form .btn { justify-content: center; background: var(--white); color: var(--azure-deep); }
.bk-form .btn:hover { background: var(--sand); }
.bk-msg { background: rgba(255, 255, 255, .12); border-radius: 4px; padding: 12px 14px; font-size: 0.9rem; }
.bk-alt { font-size: 0.85rem; color: rgba(255, 255, 255, .75); }
.bk-alt a { text-decoration: underline; }
.bk :focus-visible { outline: 3px solid var(--azure-soft); outline-offset: 2px; }

/* Book page */
.book-hero { padding: 170px 0 0; background: var(--sand-soft); display: flow-root; }
.why-direct { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 56px; }
.why-direct div { border-top: 1px solid var(--azure-soft); padding-top: 22px; }
.why-direct h3 { margin-bottom: 8px; }
.why-direct p, .book-faq p { color: var(--ink-soft); }
.book-faq { max-width: 820px; margin: 48px auto 0; }
.book-faq details { border-bottom: 1px solid var(--azure-tint); padding: 20px 0; }
.book-faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.4rem; }
.book-faq summary::after { content: "+"; color: var(--azure); }
.book-faq details[open] summary::after { content: "−"; }
.book-faq details p { margin-top: 10px; }
.resort-note { max-width: 820px; margin: 40px auto 0; background: var(--white); border-left: 3px solid var(--azure); padding: 18px 22px; font-size: 0.92rem; color: var(--ink-soft); }

@media (max-width: 960px) {
  .bk { grid-template-columns: minmax(0, 1fr); }
  .why-direct { grid-template-columns: minmax(0, 1fr); gap: 20px; }
}
@media (max-width: 600px) {
  .booking { padding: 80px 0; }
  .bk-cal, .bk-quote { padding: 22px 18px; }
  .bk-months { grid-template-columns: minmax(0, 1fr); }
  .bk-month + .bk-month { display: none; }
  .bk-row { grid-template-columns: minmax(0, 1fr); }
  .book-hero { padding-top: 130px; }
}
.bk-d { display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.bk-d small { font-size: 0.6rem; color: var(--ink-soft); margin-top: 2px; }
.bk-d.is-start small, .bk-d.is-end small { color: rgba(255,255,255,.85); }
@media (max-width: 600px) { .bk-d small { font-size: 0.55rem; } }

/* ============================================
   Brand logo + photo backgrounds (replaces beige)
   ============================================ */
:root { --sand-soft: #eef5f9; --sand: #d9e8f0; }
.brand-logo { width: auto; height: 48px; padding: 0; background: none; border-radius: 0; object-fit: contain; box-shadow: none; filter: drop-shadow(0 2px 6px rgba(10, 61, 92, .25)); }
.footer .brand-logo { height: 56px; }

.intro { background: var(--white); }
.gallery-section { background: var(--azure-tint); }
.amenities-card { background: var(--azure-tint); }

.photo-bg { position: relative; color: var(--white); background-size: cover; background-position: center; background-attachment: scroll; }
.photo-bg::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 61, 92, .72) 0%, rgba(10, 61, 92, .55) 40%, rgba(10, 61, 92, .82) 100%); }
.photo-bg > .container { position: relative; z-index: 1; }
.photo-bg .section-eyebrow { color: #d8eef7; }
.photo-bg h1, .photo-bg h2, .photo-bg .section-title { color: var(--white); }
.photo-bg .section-lead { color: rgba(255, 255, 255, .88); }
.photo-bg .bk-cal { box-shadow: var(--shadow-lg); }
.photo-bg .bk-quote { background: rgba(10, 61, 92, .92); backdrop-filter: blur(6px); box-shadow: var(--shadow-lg); }
.photo-bg .bubble-link { background: rgba(255, 255, 255, .95); }

.contact.photo-bg { background-image: url("../images/hero/blue-duck-pool.jpg"); }
.booking.photo-bg { background-image: url("../images/hero/palmera-waterfront.jpg"); }
.book-hero.photo-bg { background-image: url("../images/hero/villa-7090-waterfront.jpg"); padding-bottom: 72px; }
.book-hero.photo-bg + .booking.photo-bg { background-image: none; background-color: var(--azure-deep); }
.book-hero.photo-bg + .booking.photo-bg::before { display: none; }



/* ============================================
   Reviews, newsletter, owner form, legal pages
   ============================================ */
.reviews { background: var(--white); }
.review-scores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 28px; margin-top: 18px; color: var(--ink-soft); font-size: 0.95rem; }
.review-scores b { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.8rem; color: var(--azure); font-weight: 500; }
.review-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 56px; }
.review figcaption b { color: var(--ink); }
.review-grid.compact { margin: 0 0 48px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.review-grid.on-photo { margin: 40px 0 0; }
.review { margin: 0; background: var(--azure-tint); border-radius: 6px; padding: 28px; display: flex; flex-direction: column; gap: 14px; }
.review-grid.on-photo .review { background: rgba(255, 255, 255, .94); }
.review-stars { color: #e8a93a; letter-spacing: 2px; font-size: 0.95rem; }
.review blockquote { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.3rem; line-height: 1.4; color: var(--ink); flex: 1; }
.review figcaption { display: grid; gap: 2px; font-size: 0.85rem; }
.review figcaption span { color: var(--ink-soft); }
.review-note { text-align: center; color: var(--ink-soft); font-size: 0.85rem; margin-top: 24px; }

.newsletter { background: var(--azure); color: var(--white); padding: 64px 0; }
.newsletter-inner { display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap; }
.newsletter h2 { color: var(--white); font-size: clamp(1.8rem, 3vw, 2.4rem); margin-bottom: 6px; }
.newsletter p { color: rgba(255, 255, 255, .85); }
.nl-form { display: flex; gap: 10px; flex-wrap: wrap; flex: 0 1 460px; }
.nl-form input { flex: 1 1 240px; font: inherit; font-size: 16px; padding: 15px 18px; border: 0; border-radius: 100px; }
.nl-form .btn { background: var(--azure-deep); }
.nl-msg { flex-basis: 100%; font-size: 0.9rem; }

.owner-box { margin-top: 72px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 40px; align-items: center; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .15); border-radius: 6px; padding: 40px; }
.owner-box h3 { color: var(--white); font-size: 2rem; margin-bottom: 10px; }
.owner-box p { color: rgba(255, 255, 255, .85); }
.owner-form { display: grid; gap: 10px; }
.owner-form input, .owner-form select { width: 100%; font: inherit; font-size: 16px; padding: 13px 14px; border: 0; border-radius: 4px; background: var(--white); color: var(--ink); }
.owner-form .btn { justify-content: center; background: var(--white); color: var(--azure-deep); }
.owner-form .bk-msg { color: var(--white); }

.footer-legal { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-legal a { color: rgba(255, 255, 255, .6); }
.footer-legal a:hover { color: var(--white); }

.legal { padding: 160px 0 100px; background: var(--white); }
.legal h1 { font-size: clamp(2.4rem, 5vw, 3.4rem); margin-bottom: 8px; }
.legal-date { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 36px; }
.legal h2 { font-size: 1.6rem; margin: 32px 0 10px; }
.legal p { color: var(--ink-soft); line-height: 1.8; margin-bottom: 12px; }
.legal a { color: var(--azure); text-decoration: underline; }

@media (max-width: 1100px) { .review-grid:not(.compact) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .review-grid:not(.compact) { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 900px) { .owner-box { grid-template-columns: minmax(0, 1fr); padding: 28px 22px; } }
