/* Hasu Stay — additions for the multi-property pages (listing, property detail, blog).
   Loaded after css/home.css and reuses its tokens (--olive, --pink, --cream, --serif ...). */

.main-nav a.current { color: var(--olive-dark); border-color: var(--pink); }
.center-note { text-align: center; color: var(--muted); padding: 30px 0; }
.center-note h1 { font-family: var(--serif); color: var(--olive-darker); margin-bottom: 10px; }
.center-note .btn { margin-top: 10px; }
.narrow { max-width: 780px; }

/* ---------- Plain page header (listing, blog) ---------- */
.page-hero { background: linear-gradient(160deg, var(--olive-darker), var(--olive)); color: #fff; padding: 70px 0 56px; }
.page-hero h1 { font-family: var(--serif); font-size: clamp(34px, 5vw, 52px); margin: 4px 0 10px; }
.page-hero p { max-width: 620px; opacity: .9; }
.page-hero a { text-decoration: underline; }
.page-hero .eyebrow { color: var(--pink-pale); }
.filter-row { margin-bottom: 30px; }

/* clickable card media/title */
a.prop-media { display: block; }
.prop-body h3 a:hover { color: var(--olive); }

/* ---------- Property hero ---------- */
.hero-property { min-height: 560px; }
.hero-slides.static { inset: 0; background-size: cover; background-position: center; transform: none; }
.hero-property .hero-inner { justify-content: flex-end; padding-top: 70px; padding-bottom: 64px; }
.crumbs { font-size: 13px; opacity: .9; margin-bottom: 18px; }
.crumbs a { text-decoration: underline; text-underline-offset: 3px; }
.crumbs.dark { color: var(--muted); opacity: 1; }
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-badges span { font-size: 13px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.3); padding: 6px 14px; border-radius: 999px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-property h1 { margin-bottom: 8px; }

/* ---------- Sub-navigation under the hero ---------- */
.subnav { position: sticky; top: 72px; z-index: 50; background: #fff; border-bottom: 1px solid var(--line); }
.subnav .container { display: flex; gap: 26px; overflow-x: auto; white-space: nowrap; }
.subnav a { padding: 14px 0; font-size: 14px; font-weight: 500; border-bottom: 2px solid transparent; }
.subnav a:hover { color: var(--olive-dark); border-color: var(--pink); }

/* ---------- About ---------- */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.about-copy h2 { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 40px); color: var(--olive-darker); margin-bottom: 16px; }
.about-p { color: var(--muted); font-size: 16px; margin-bottom: 20px; }
.tick-list { display: grid; gap: 10px; margin-bottom: 22px; }
.tick-list li { position: relative; padding-left: 28px; }
.tick-list li::before { content: "✓"; position: absolute; left: 0; color: var(--pink); font-weight: 700; }
.season-note { font-size: 13px; color: var(--muted); margin-bottom: 18px; }
.about-photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 4 / 3; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Rooms ---------- */
.room-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 24px; }
.room-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.room-media { aspect-ratio: 16 / 10; background: linear-gradient(150deg, #47552a, #8a9a52); display: grid; place-items: center; font-size: 44px; overflow: hidden; }
.room-media img { width: 100%; height: 100%; object-fit: cover; }
.room-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.room-body h3 { font-family: var(--serif); font-size: 22px; color: var(--olive-darker); }
.room-body p { color: var(--muted); font-size: 14.5px; }
.room-price { margin-top: auto; padding-top: 10px; font-size: 13px; color: var(--muted); }
.room-price b { color: var(--olive-dark); font-size: 18px; }
.rooms-cta { text-align: center; margin-top: 28px; color: var(--muted); }
.rooms-cta a { color: var(--olive-dark); font-weight: 600; border-bottom: 1px solid var(--pink); }

/* ---------- Amenities ---------- */
.amenity-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 22px; }
.amenity-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center; }
.amenity-icon { width: 72px; height: 72px; margin: 0 auto 14px; border-radius: 50%; overflow: hidden; background: var(--pink-pale); display: grid; place-items: center; font-size: 26px; color: var(--olive-dark); }
.amenity-icon img { width: 100%; height: 100%; object-fit: cover; }
.amenity-card h3 { font-size: 16.5px; color: var(--olive-darker); margin-bottom: 6px; }
.amenity-card p { color: var(--muted); font-size: 14px; }

/* ---------- Gallery + videos ---------- */
.video-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 24px; margin-bottom: 30px; }
.video-item { margin: 0; }
.video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius); overflow: hidden; background: #000; box-shadow: var(--shadow-sm); }
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-item figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; text-align: center; }
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.gallery-grid a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; background: var(--sand); }
.gallery-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-grid a:hover img { transform: scale(1.06); }

.lightbox { position: fixed; inset: 0; z-index: 300; background: rgba(12,15,6,.92); display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 24px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 80vh; border-radius: 8px; object-fit: contain; }
.lb-cap { color: #fff; opacity: .85; margin-top: 12px; font-size: 14px; text-align: center; }
.lb-close, .lb-nav { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; width: 44px; height: 44px; font-size: 26px; line-height: 1; cursor: pointer; }
.lb-close { top: 18px; right: 18px; }
.lb-nav { top: 50%; transform: translateY(-50%); }
.lb-prev { left: 18px; } .lb-next { right: 18px; }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.25); }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 26px; }
.post-card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.post-media { display: block; aspect-ratio: 16 / 10; background: linear-gradient(150deg, #47552a, #8a9a52); overflow: hidden; }
.post-media img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post-meta { font-size: 12.5px; color: var(--muted); }
.post-body h3 { font-family: var(--serif); font-size: 21px; color: var(--olive-darker); }
.post-body h3 a:hover { color: var(--olive); }
.post-body p { color: var(--muted); font-size: 14.5px; }
.read-more { margin-top: auto; font-weight: 600; color: var(--olive-dark); font-size: 14px; }

.post-head { background: var(--sand); padding: 54px 0 36px; }
.post-head h1 { font-family: var(--serif); font-size: clamp(30px, 4.5vw, 46px); color: var(--olive-darker); margin: 10px 0 8px; }
.post-cover { width: 100%; max-height: 460px; object-fit: cover; border-radius: var(--radius); margin: -10px 0 0; box-shadow: var(--shadow); }
.post-content { padding-top: 36px; padding-bottom: 64px; font-size: 17px; line-height: 1.75; overflow-wrap: anywhere; }
.post-content h2, .post-content h3 { font-family: var(--serif); color: var(--olive-darker); margin: 1.6em 0 .5em; }
.post-content p { margin: 0 0 1.1em; }
.post-content ul, .post-content ol { margin: 0 0 1.1em 1.3em; padding: 0; list-style: revert; }
.post-content img { border-radius: 12px; margin: 1.2em auto; height: auto; }
.post-content blockquote { margin: 1.4em 0; padding: 4px 20px; border-left: 4px solid var(--pink); color: var(--muted); font-style: italic; }
.post-content a { color: var(--olive-dark); text-decoration: underline; text-decoration-color: var(--pink); }
.post-content iframe { max-width: 100%; border: 0; aspect-ratio: 16 / 9; width: 100%; border-radius: 12px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: start; }
.contact-grid h2 { font-family: var(--serif); font-size: clamp(26px, 3.4vw, 36px); color: var(--olive-darker); margin: 4px 0 18px; }
.contact-list { display: grid; gap: 12px; font-size: 16px; }
.contact-list a { color: var(--olive-dark); font-weight: 600; border-bottom: 1px solid var(--pink); }
.side-title { font-family: var(--serif); font-size: 20px; color: var(--olive-darker); margin-bottom: 14px; }
.other-list { display: grid; gap: 10px; }
.other-list a { display: block; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; transition: border-color .2s; }
.other-list a:hover { border-color: var(--pink); }
.other-list b { display: block; color: var(--olive-darker); }
.other-list span { font-size: 13px; color: var(--muted); }

@media (max-width: 820px) {
  .about-grid, .contact-grid { grid-template-columns: 1fr; gap: 28px; }
  .subnav { top: 72px; }
  .hero-property { min-height: 480px; }
}
@media (max-width: 560px) {
  .page-hero { padding: 48px 0 36px; }
  .lb-nav { width: 38px; height: 38px; }
}

/* website builder: "Hide on phones" section setting */
@media (max-width: 720px) { .hide-mobile { display: none !important; } }

/* ---------- website builder: free-form sections (sx-*) ---------- */
.sx-narrow { max-width: 820px; }
.sx-align-center { text-align: center; }
.sx-text h2, .sx-narrow > h2 { font-family: var(--serif); font-size: clamp(28px, 3.6vw, 40px); color: var(--olive-darker); margin-bottom: 16px; }
.sx-rich { color: var(--muted); font-size: 16px; line-height: 1.75; }
.sx-rich > :first-child { margin-top: 0; }
.sx-rich p, .sx-rich ul, .sx-rich ol, .sx-rich blockquote { margin: 0 0 1.1em; }
.sx-rich h2, .sx-rich h3, .sx-rich h4 { font-family: var(--serif); color: var(--olive-darker); margin: 1.4em 0 .5em; line-height: 1.25; }
.sx-rich ul, .sx-rich ol { margin-left: 1.3em; padding: 0; list-style: revert; }
.sx-rich a { color: var(--olive-dark); text-decoration: underline; text-decoration-color: var(--pink); }
.sx-rich blockquote { padding: 4px 20px; border-left: 4px solid var(--pink); font-style: italic; }
.sx-rich img { border-radius: 12px; height: auto; max-width: 100%; }
.sx-align-center .sx-rich { text-align: center; }
.sx-align-center .sx-rich ul, .sx-align-center .sx-rich ol { display: inline-block; text-align: left; }
.sx-actions { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.sx-align-center .sx-actions { justify-content: center; }
.sx-side-left .about-photo { order: -1; }
.sx-noimg { grid-template-columns: 1fr; max-width: 820px; }
.sx-banner { position: relative; display: flex; align-items: center; color: #fff; background: var(--olive-darker) center/cover no-repeat; }
.sx-h-small { min-height: 260px; } .sx-h-medium { min-height: 380px; } .sx-h-tall { min-height: 520px; }
.sx-banner-inner { padding-top: 56px; padding-bottom: 56px; }
.sx-banner h2 { font-family: var(--serif); font-size: clamp(28px, 4.2vw, 46px); max-width: 720px; margin-bottom: 10px; }
.sx-banner p { max-width: 620px; opacity: .92; font-size: 17px; }
.sx-cols { display: grid; gap: 22px; }
.sx-cols-2 { grid-template-columns: repeat(2, 1fr); } .sx-cols-3 { grid-template-columns: repeat(3, 1fr); } .sx-cols-4 { grid-template-columns: repeat(4, 1fr); }
.sx-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.sx-card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--sand); }
.sx-card-img img { width: 100%; height: 100%; object-fit: cover; }
.sx-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.sx-card h3 { font-family: var(--serif); font-size: 21px; color: var(--olive-darker); }
.sx-card p { color: var(--muted); font-size: 15px; }
.sx-link { margin-top: auto; font-weight: 600; color: var(--olive-dark); }
.sx-link:hover { color: var(--pink); }
.sx-stat-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 64px; text-align: center; }
.sx-stat b { display: block; font-family: var(--serif); font-size: clamp(34px, 5vw, 52px); color: var(--olive-darker); line-height: 1.1; }
.sx-stat span { color: var(--muted); font-size: 14px; letter-spacing: .4px; }
.sx-faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
.sx-faq summary { cursor: pointer; padding: 16px 20px; font-weight: 600; color: var(--olive-darker); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.sx-faq summary::-webkit-details-marker { display: none; }
.sx-faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--pink); }
.sx-faq details[open] summary::after { content: '–'; }
.sx-faq details p { padding: 0 20px 18px; color: var(--muted); }
.sx-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 22px; }
.sx-quote { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 16px; }
.sx-quote blockquote { font-family: var(--serif); font-size: 18px; line-height: 1.55; color: var(--olive-darker); }
.sx-quote figcaption { margin-top: auto; font-size: 14px; color: var(--muted); }
.sx-quote figcaption b { color: var(--ink); display: block; }
.sx-lead { color: var(--muted); font-size: 17px; margin-bottom: 18px; }
.sx-contact { list-style: none; padding: 0; display: grid; gap: 10px; font-size: 17px; }
.sx-contact a { color: var(--olive-dark); font-weight: 600; border-bottom: 1px solid var(--pink); }
.sx-spacer { padding: 0; }
.sx-sp-small { height: 24px; } .sx-sp-medium { height: 56px; } .sx-sp-large { height: 112px; }
.sx-spacer hr { border: 0; border-top: 1px solid var(--line); margin: 0 auto; max-width: 1152px; position: relative; top: 50%; }
@media (max-width: 900px) { .sx-cols-3, .sx-cols-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) {
  .sx-cols-2, .sx-cols-3, .sx-cols-4 { grid-template-columns: 1fr; }
  .sx-h-tall { min-height: 420px; } .sx-sp-large { height: 72px; }
}

/* free elements (drag-and-drop blocks) */
.sx-blocks { display: flex; flex-wrap: wrap; gap: 18px 24px; align-items: flex-start; }
.sx-b { flex: 0 0 100%; max-width: 100%; min-width: 0; }
.sx-w-two-thirds { flex-basis: calc(66.666% - 8px); max-width: calc(66.666% - 8px); }
.sx-w-half { flex-basis: calc(50% - 12px); max-width: calc(50% - 12px); }
.sx-w-third { flex-basis: calc(33.333% - 16px); max-width: calc(33.333% - 16px); }
.sx-a-center { text-align: center; } .sx-a-right { text-align: right; }
.sx-bh { font-family: var(--serif); color: var(--olive-darker); line-height: 1.2; }
h2.sx-bh { font-size: clamp(26px, 3.6vw, 40px); } h3.sx-bh { font-size: clamp(21px, 2.6vw, 28px); } h4.sx-bh { font-size: 19px; }
.sx-bimg img { width: 100%; height: auto; border-radius: 12px; display: block; }
.sx-bimg figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.sx-bhr { border: 0; border-top: 1px solid var(--line); margin: 6px 0; }
.sx-sp-small .sx-bsp { height: 12px; } .sx-sp-medium .sx-bsp { height: 32px; } .sx-sp-large .sx-bsp { height: 64px; }
.sx-extra { padding-top: 36px; padding-bottom: 36px; }
@media (max-width: 700px) { .sx-w-two-thirds, .sx-w-half, .sx-w-third { flex-basis: 100%; max-width: 100%; } }

/* ---- sticky Call / WhatsApp bar (phones only) ---- */
.sticky-contact { display: none; }
@media (max-width: 760px) {
  .sticky-contact { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; gap: 1px; background: rgba(0,0,0,.15); box-shadow: 0 -2px 10px rgba(0,0,0,.18); padding-bottom: env(safe-area-inset-bottom); background-color: #fff; }
  .sticky-contact a { flex: 1; text-align: center; padding: 13px 8px; font-weight: 600; font-size: 15px; color: #fff; text-decoration: none; }
  .sticky-contact .sc-call { background: var(--primary, #2f5d3a); }
  .sticky-contact .sc-wa { background: #1faa59; }
  body { padding-bottom: 52px; }
}

/* which property a blog card belongs to (blog page) */
.post-media { position: relative; }
.post-tab { position: absolute; top: 0; left: 0; z-index: 2; max-width: 85%; padding: 6px 14px; border-radius: 0 0 12px 0; color: #fff; font-size: 12.5px; font-weight: 700; line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }

/* blog post pictures and ready-made blocks */
.post-pic { display: block; margin: 1.2em auto; }
.post-content .post-pic img { display: block; width: 100%; margin: 0; }
.post-pic.sz-small { width: 35%; } .post-pic.sz-medium { width: 60%; }
.post-pic.sz-custom { width: var(--w); } /* dragged to size in the editor */
.post-pic.al-left { margin-left: 0; } .post-pic.al-right { margin-right: 0; }
.post-cap { display: block; margin-top: 6px; text-align: center; font-size: 14px; line-height: 1.5; color: var(--muted); }
.post-video { margin: 1.4em 0; }
.post-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; margin: 1.4em 0; }
.post-gallery a { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 12px; }
.post-content .post-gallery img { width: 100%; height: 100%; object-fit: cover; margin: 0; border-radius: 0; }
.post-book { margin: 1.8em 0; padding: 24px 20px; border-radius: var(--radius); background: var(--sand); text-align: center; }
.post-content .post-book p { margin: 0; }
.post-content .post-book-title { font-family: var(--serif); font-size: 22px; color: var(--olive-darker); }
.post-book-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 14px 0 10px; }
.post-content .post-book-actions a.btn { text-decoration: none; }
.post-content .post-book-actions a.btn-primary, .post-content .post-book-actions a.btn-outline:hover { color: #fff; }
@media (max-width: 600px) { .post-pic.sz-medium { width: 100%; } .post-pic.sz-small { width: 60%; } .post-pic.sz-custom { width: min(100%, calc(var(--w) * 1.7)); } }
