/* =====================================================================
   Anaya Villas — UI 2027 design layer
   Loaded last on every page. Same brand (forest green + gold, Inter),
   refreshed: glass header, softer depth, rounder cards, card-style FAQs
   and tables, icon chips, calmer mobile layouts.
   Selectors start with :root so they win over each page's own CSS
   without !important. Delete the <link> to go back to the old look.
   ===================================================================== */
:root{
  --u-forest:#1B3D2F;--u-forest-2:#24513e;--u-green:#155f3f;--u-gold:#B8922A;--u-gold-l:#D4A940;
  --u-ink:#1d1f1e;--u-ink-2:#565b58;--u-line:#ebe6db;--u-surface:#faf8f4;--u-tint:#eef6f1;
  --u-r:18px;--u-r-md:14px;--u-r-sm:12px;
  --u-sh-1:0 1px 2px rgba(16,24,20,.04),0 6px 18px -10px rgba(16,24,20,.14);
  --u-sh-2:0 2px 6px rgba(16,24,20,.05),0 22px 44px -20px rgba(16,24,20,.28);
  --u-ease:cubic-bezier(.2,.8,.2,1)
}
html{scroll-padding-top:92px}
::selection{background:#d6eadc;color:#0f2619}
:root body{text-rendering:optimizeLegibility;-webkit-tap-highlight-color:transparent}
:root :focus-visible{outline:2.5px solid var(--u-gold-l);outline-offset:3px;border-radius:8px}
:root img{-webkit-user-drag:none}

/* ---------- header ---------- */
:root header.nav{background:rgba(255,255,255,.84);-webkit-backdrop-filter:saturate(1.7) blur(16px);backdrop-filter:saturate(1.7) blur(16px);border-bottom:1px solid rgba(225,218,204,.7);box-shadow:0 1px 0 rgba(255,255,255,.6) inset}
:root header.nav.scrolled{box-shadow:0 8px 28px -18px rgba(16,24,20,.35)}
:root .nav-links a{font-weight:500;letter-spacing:.005em}
:root .nav-wa,:root .burger,:root .acb-btn{transition:background .2s,border-color .2s,transform .15s}
:root .nav-wa:active,:root .burger:active,:root .acb-btn:active{transform:scale(.94)}

/* ---------- buttons ---------- */
:root .btn{border-radius:var(--u-r-sm);transition:transform .2s var(--u-ease),box-shadow .2s var(--u-ease),background .2s,filter .2s}
:root .btn-primary{background:linear-gradient(135deg,#21704d 0%,#1B3D2F 100%);color:#fff;box-shadow:0 8px 18px -10px rgba(27,61,47,.7)}
:root .btn-primary:hover{transform:translateY(-1px);box-shadow:0 14px 26px -12px rgba(27,61,47,.7);filter:saturate(1.08)}
:root .btn-gold{box-shadow:0 8px 18px -10px rgba(184,146,42,.7)}
:root .btn:active{transform:translateY(0) scale(.98)}
:root .btn-ghost{border-color:var(--u-line)}

/* ---------- cards (home grid, listing pages, "more villas", guides, services) ---------- */
:root .card,:root .vcard,:root .ov-card,:root .gd-card,:root .hsvc-card,:root .pf-card,:root .testi-card{
  border-radius:var(--u-r);border:1px solid var(--u-line);box-shadow:var(--u-sh-1);
  transition:transform .25s var(--u-ease),box-shadow .25s var(--u-ease),border-color .25s}
:root .card:hover,:root .vcard:hover,:root .ov-card:hover,:root .gd-card:hover,:root .hsvc-card:hover{transform:translateY(-4px);box-shadow:var(--u-sh-2);border-color:#e1dacb}
:root .card-media,:root .vcard,:root .ov-media{overflow:hidden}
:root .vcard img,:root .ov-media img{transition:transform .7s var(--u-ease)}
:root .vcard:hover img,:root .ov-card:hover .ov-media img{transform:scale(1.045)}
:root .vcard img{height:auto;aspect-ratio:3/2}
:root .vcard-body{padding:16px 18px 18px}
:root .vcard h3{font-size:1.1rem;letter-spacing:-.01em}
:root .gd-card{background:#fff}
:root .card .badge,:root .badge{border-radius:999px;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}

/* icon chips on villa cards (built by the villa builder / homepage script) */
.u-chips{display:flex;flex-wrap:wrap;gap:6px;margin:6px 0 10px}
.u-chip{display:inline-flex;align-items:center;gap:5px;font-size:.78rem;font-weight:600;color:#3a3f3c;background:#f4f1ea;border:1px solid #ece6d9;border-radius:999px;padding:4px 10px 4px 8px;line-height:1.2;white-space:nowrap}
.u-chip svg{width:14px;height:14px;flex:none;color:var(--u-green)}
.u-chip.rate{background:#fff7e3;border-color:#f0dfae;color:#6e5410}
.u-chip.rate svg{color:#b8922a}
.card-specs .u-ic{display:inline-flex;align-items:center;gap:4px}
.card-specs .u-ic svg{width:14px;height:14px;color:var(--u-green);flex:none}

/* ---------- section rhythm ---------- */
:root main.wrap .colsec>.wrap{padding-left:0;padding-right:0}
:root .sec-head h2,:root .villas-sec h2,:root .hsvc h2,:root .hguides h2,:root .hreel h2{letter-spacing:-.025em}
:root .eyebrow{letter-spacing:.12em}
:root .cta-band{border-radius:22px;overflow:hidden}
:root .chip{transition:all .2s var(--u-ease)}

/* ---------- FAQs: card accordions everywhere ---------- */
:root .faq details,:root .faq-block details,:root .vfaq details,:root .hfaq-item,:root .faq-item{
  border:1px solid var(--u-line);border-radius:var(--u-r-md);background:#fff;padding:0 16px;margin:0 0 10px;
  transition:box-shadow .2s,border-color .2s}
:root .faq details[open],:root .faq-block details[open],:root .vfaq details[open],:root .hfaq-item[open],:root .faq-item.open{box-shadow:var(--u-sh-1);border-color:#dcd3c1}
:root .faq details summary,:root .faq-block summary,:root .vfaq summary,:root .hfaq-item summary{padding:15px 28px 15px 0;line-height:1.45}
:root .faq details p,:root .faq-block details p,:root .vfaq details p,:root .hfaq-item p{margin-top:0;padding-bottom:14px}
:root .faq-q{padding:16px 0}
:root .faq-q .plus{border-color:#e2dccf;background:var(--u-surface)}

/* ---------- tables ---------- */
:root .rate-table,:root article table,:root .post-body table,:root .content table{border-collapse:separate;border-spacing:0;border:1px solid var(--u-line);border-radius:var(--u-r-md);overflow:hidden}
:root .rate-table th,:root .rate-table td{border:0;border-bottom:1px solid #f1ece2}
:root .rate-table tr:last-child td{border-bottom:0}

/* ---------- blog / long reads ---------- */
:root .toc{border-radius:var(--u-r);background:linear-gradient(180deg,#fbf9f5,#f6f2ea);border-color:var(--u-line)}
:root .blog-hero{isolation:isolate}
:root article p,:root .post-body p{text-wrap:pretty}
:root h1,:root h2,:root h3{text-wrap:balance}

/* ---------- villa page ---------- */
:root .gallery{border-radius:var(--u-r)}
:root .book-card{border-radius:22px;border-color:var(--u-line)}
@media(min-width:981px){:root .book-card{box-shadow:var(--u-sh-2)}}
:root .book-fields{border-radius:var(--u-r-md)}
:root .amen-item{border-bottom-color:#f1ece2}
:root .amen-item svg{color:var(--u-green)}
@media(max-width:560px){:root .amen-grid{grid-template-columns:minmax(0,1fr);gap:0}:root .amen-item{padding:12px 0;font-size:.97rem}}
:root .rev{border:1px solid var(--u-line);border-radius:var(--u-r-md);padding:16px 18px;background:#fff;box-shadow:var(--u-sh-1)}
:root .rev p.u-clamp{display:-webkit-box;-webkit-line-clamp:5;-webkit-box-orient:vertical;overflow:hidden}
.u-more{margin-top:8px;background:none;border:0;padding:0;font:600 .86rem 'Plus Jakarta Sans',system-ui,sans-serif;color:var(--u-green);text-decoration:underline;text-underline-offset:3px;cursor:pointer}
:root .feat svg{color:var(--u-green)}
:root .map-shell{border-radius:var(--u-r)}
:root .pstrip{border-radius:var(--u-r)}
:root .mbar{background:rgba(255,255,255,.9);-webkit-backdrop-filter:saturate(1.6) blur(14px);backdrop-filter:saturate(1.6) blur(14px);border-top-color:rgba(225,218,204,.8)}
:root .ns-row{transition:transform .2s var(--u-ease),box-shadow .2s var(--u-ease)}
:root .ns-row:hover{transform:translateY(-2px);box-shadow:var(--u-sh-1)}

/* ---------- forms ---------- */
:root .pf-form,:root .datebar{border-radius:var(--u-r)}
:root .pf-form input:focus,:root .pf-form select:focus,:root .pf-form textarea:focus,:root .db-f input:focus,:root .db-f select:focus,:root .ls-row input:focus{outline:none;border-color:var(--u-green);box-shadow:0 0 0 4px rgba(21,95,63,.14)}

/* ---------- footer ---------- */
:root footer.site{background:linear-gradient(180deg,#faf8f4 0%,#f3efe6 100%)}
:root .foot-col a,:root .foot-links a,:root .popsearch a{transition:color .15s}
:root .popsearch{background:#fbfaf7}

/* ---------- static pages (about, contact, legal, careers) ---------- */
:root main>.wrap>section>ul{list-style:none;padding-left:0}
:root main>.wrap>section>ul>li{position:relative;padding-left:28px;margin:0 0 10px}
:root main>.wrap>section>ul>li::before{content:"";position:absolute;left:0;top:.28em;width:18px;height:18px;border-radius:50%;
  background:var(--u-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23155f3f' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/11px no-repeat}

/* ---------- back to top (added by mobile-nav.js) ---------- */
.u-top{position:fixed;left:16px;bottom:20px;z-index:45;width:44px;height:44px;border-radius:50%;border:1px solid var(--u-line);background:rgba(255,255,255,.92);
  -webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);color:var(--u-forest);display:flex;align-items:center;justify-content:center;
  box-shadow:var(--u-sh-1);cursor:pointer;opacity:0;transform:translateY(10px);pointer-events:none;transition:opacity .25s,transform .25s}
.u-top.on{opacity:1;transform:none;pointer-events:auto}
.u-top svg{width:18px;height:18px}
@media(max-width:980px){body:has(.mbar) .u-top{bottom:calc(92px + env(safe-area-inset-bottom))}}

@media(prefers-reduced-motion:reduce){
  :root .card,:root .vcard,:root .ov-card,:root .gd-card,:root .hsvc-card,:root .btn,:root .vcard img,:root .ov-media img{transition:none}
  :root .card:hover,:root .vcard:hover,:root .ov-card:hover,:root .gd-card:hover,:root .hsvc-card:hover{transform:none}
}

/* listing-page FAQs used the browser's ▶ marker — same + / − as the rest of the site */
:root .faq details summary{list-style:none;cursor:pointer;position:relative;font-weight:600;padding-right:40px}
:root .faq details summary::-webkit-details-marker{display:none}
:root .faq details summary::after{content:"+";position:absolute;right:0;top:50%;transform:translateY(-50%);width:24px;height:24px;border-radius:50%;
  border:1px solid #e2dccf;background:var(--u-surface);color:var(--u-gold);display:flex;align-items:center;justify-content:center;font-size:1.05rem;font-weight:500;line-height:1}
:root .faq details[open] summary::after{content:"\2212"}

/* ---- Mobile: AI + WhatsApp chat bubble sits ABOVE the booking bar, never on top of it ---- */
@media(max-width:980px){
  body:has(.mbar) .ac-launcher{bottom:calc(86px + env(safe-area-inset-bottom))!important;right:14px!important;width:52px!important;height:52px!important}
  body:has(.mbar) .ac-menu{bottom:calc(148px + env(safe-area-inset-bottom))!important;right:14px!important}
  body:has(.mbar) .ac-panel{bottom:calc(86px + env(safe-area-inset-bottom))!important}
  body:has(.mbar) .mbar{gap:12px;padding-left:16px;padding-right:16px}
  body:has(.mbar) .mbar .btn{margin-right:0!important;flex:0 0 auto}
  /* bottom-sheets / pickers open: bubble steps aside so it never covers Done / Submit */
  body.dp-lock .ac-launcher,body.dp-lock .ac-menu,
  body:has(.acb.on) .ac-launcher,body:has(.acb.on) .ac-menu,
  body:has(.acb-ov.on) .ac-launcher{opacity:0!important;pointer-events:none!important}
}
/* tap targets & no iOS zoom on form fields */
@media(max-width:980px){
  :root input:not([type=checkbox]):not([type=radio]),:root select,:root textarea{font-size:16px}
}
/* bigger thumb targets for the small controls the audit flagged */
@media(max-width:980px){
  :root .u-more{padding:10px 2px;min-height:40px}
  :root .db-cb{min-height:40px;padding-top:8px;padding-bottom:8px}
  :root .ac-close{min-width:40px;min-height:40px}
  :root .ac-wa{display:inline-flex;align-items:center;min-height:40px}
}

/* ===== 2027 type: Fraunces (display serif) + Plus Jakarta Sans (text/UI) ===== */
:root{--display:'Fraunces',Georgia,'Times New Roman',serif}
body{font-family:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;text-rendering:optimizeLegibility}
:root h1,:root h2{font-family:var(--display);font-weight:600;letter-spacing:-.018em;font-optical-sizing:auto;font-variation-settings:"SOFT" 30}
:root h1{line-height:1.06}
:root h2{line-height:1.12}
:root h1 em,:root h2 em,:root h1 i,:root h2 i{font-style:italic;font-weight:500;color:var(--u-gold,#a9842f)}
:root h3,:root h4{letter-spacing:-.012em}
:root .btn,:root button{letter-spacing:-.005em}

/* ===== Logo: bigger & sharper on every page ===== */
a.brand{flex:none}
a.brand svg{height:58px!important;width:auto!important;max-width:none}
@media(max-width:980px){a.brand svg{height:50px!important}}
@media(max-width:360px){a.brand svg{height:44px!important}}

/* ===== Planning guides block (destination & trip pages, homepage) ===== */
.u-guides{padding:46px 0 40px;background:linear-gradient(180deg,#fff,#f7f4ec)}
.ug-wrap{max-width:1180px;margin:0 auto;padding:0 20px}
.ug-head h2{margin:6px 0 18px}
.ug-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.ug-card{display:flex;flex-direction:column;gap:8px;padding:18px 18px 16px;background:#fff;border:1px solid #e9e3d4;border-radius:16px;text-decoration:none;color:inherit;transition:transform .18s ease,box-shadow .18s ease,border-color .18s}
.ug-card:hover{transform:translateY(-2px);box-shadow:0 14px 30px -18px rgba(27,61,47,.45);border-color:#d8ccad}
.ug-card b{font-family:var(--display,Georgia,serif);font-weight:600;font-size:1.08rem;line-height:1.3;color:#1B3D2F}
.ug-card span{font-size:.88rem;line-height:1.55;color:#5b5b5b}
.ug-card em{margin-top:auto;display:inline-flex;align-items:center;gap:6px;font-style:normal;font-weight:700;font-size:.84rem;color:#a9842f}
.ug-card em svg,.ug-all svg{width:15px;height:15px}
.ug-all{display:inline-flex;align-items:center;gap:6px;margin-top:16px;font-weight:700;color:#1B3D2F;text-decoration:none}
@media(max-width:900px){.ug-grid{grid-template-columns:1fr 1fr}}
@media(max-width:560px){.u-guides{padding:34px 0 28px}.ug-grid{grid-template-columns:1fr;gap:10px}.ug-card{padding:15px}}

/* Desktop scroll speed (27 Nov): blur behind the sticky header and on card badges is repainted on
   every scroll frame — heavy on big screens with many cards visible. Desktop only; mobile unchanged. */
@media (min-width:861px){
  :root header.nav,header.nav{-webkit-backdrop-filter:none!important;backdrop-filter:none!important;background:rgba(255,255,255,.98)!important}
  :root .card .badge,:root .badge,.card-media .badge,.lux-tag{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
}
