/* ==========================================================================
   HUAHINHUB+ — LV Villa page + home banner (loaded after search.css)
   ========================================================================== */
.rmap, .lvmapbox { isolation: isolate; }
.rate.none small { color: var(--navy-soft); font-size: .8rem; }

/* ---------- Home banner ---------- */
.lvbanner { position: relative; display: block; min-height: 340px; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; box-shadow: var(--shadow-md); }
.lvbanner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .8s; }
.lvbanner:hover > img { transform: scale(1.04); }
.lvbanner::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 42, 91, .88) 0%, rgba(11, 42, 91, .6) 45%, rgba(11, 42, 91, .1) 100%); }
.lvb-copy { padding: clamp(28px, 5vw, 56px); max-width: 640px; color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.lvb-copy .eyebrow { margin-bottom: 0; }
.lvb-copy h2 { font-size: clamp(1.7rem, 4vw, 2.7rem); line-height: 1.2; font-weight: 700; }
.lvb-copy p { opacity: .92; max-width: 520px; }

/* ---------- Hero ---------- */
.lvhero { position: relative; isolation: isolate; overflow: hidden; background: var(--navy); color: #fff; }
.lvhero-bg { position: absolute; inset: 0; z-index: -2; }
.lvhero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 60%; }
.lvhero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(11, 42, 91, .9) 0%, rgba(11, 42, 91, .68) 45%, rgba(11, 42, 91, .15) 100%); }
.lvhero-copy { padding: clamp(48px, 9vh, 96px) 0 clamp(36px, 6vh, 64px); max-width: 720px; }
.lvhero h1 { font-size: clamp(2.1rem, 5.4vw, 3.8rem); line-height: 1.15; font-weight: 700; letter-spacing: -.01em; }
.lvhero .sub { margin-top: 16px; font-size: clamp(1rem, 1.7vw, 1.2rem); opacity: .94; line-height: 1.7; }
.lvhero-cta { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }
.lvstats { margin-top: 34px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 640px; }
.lvstats li { background: rgba(255, 255, 255, .13); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-radius: var(--r-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.lvstats b { font-size: 1.9rem; line-height: 1.1; font-weight: 700; }
.lvstats b .ico { width: 30px; height: 30px; color: #8fe9f1; stroke-width: 3; }
.lvstats span { font-size: .85rem; line-height: 1.4; opacity: .92; }

/* ---------- Highlights ---------- */
.lvhls { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.lvhl { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px 22px; box-shadow: var(--shadow-sm); transition: .25s; }
.lvhl:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--turquoise); }
.lvhl-ic { width: 52px; height: 52px; border-radius: 16px; display: inline-grid; place-items: center; background: var(--turquoise-soft); color: var(--blue); margin-bottom: 14px; }
.lvhl-ic .ico { width: 26px; height: 26px; }
.lvhl h3 { font-size: 1.12rem; font-weight: 700; line-height: 1.3; margin-bottom: 6px; }
.lvhl p { color: var(--navy-soft); font-size: .93rem; line-height: 1.65; }

/* ---------- Houses ---------- */
.lvgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.lvhouse { transition: transform .25s, box-shadow .25s, outline-color .2s; outline: 3px solid transparent; outline-offset: -3px; }
.lvhouse.picked { outline-color: var(--blue); box-shadow: 0 12px 30px rgba(21, 88, 232, .22); }
.lvspecs { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 2px 0; font-size: .88rem; font-weight: 500; }
.lvspecs li { display: inline-flex; align-items: center; gap: 6px; }
.lvspecs .ico { width: 16px; height: 16px; color: var(--turquoise); }
.lvpending { display: flex; gap: 8px; align-items: flex-start; font-size: .86rem; background: var(--sky); padding: 10px 12px; border-radius: 12px; color: var(--navy-soft); -webkit-line-clamp: unset; display: flex; }
.lvpending .ico { width: 16px; height: 16px; margin-top: 3px; color: var(--turquoise); }
.lvchips-s { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 4px; }
.lvchips-s li { display: inline-flex; align-items: center; gap: 5px; font-size: .8rem; padding: 4px 11px; border-radius: 999px; background: var(--sky); border: 1px solid var(--line); line-height: 1.4; }
.lvchips-s .ico { width: 12px; height: 12px; color: var(--turquoise); stroke-width: 3; }
.pickbtn { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: .88rem; transition: .15s; }
.pickbtn:hover { border-color: var(--blue); }
.pickbtn .ico { width: 16px; height: 16px; color: var(--blue); }
.pickbtn[aria-pressed="true"] { background: var(--blue); border-color: var(--blue); color: #fff; }
.pickbtn[aria-pressed="true"] .ico { color: #fff; }
.lvhouse .card-foot { flex-wrap: wrap; }
.lvcard-price { display: flex; align-items: baseline; gap: 4px; font-size: .86rem; color: var(--navy-soft); width: 100%; margin-bottom: 4px; }
.lvcard-price b { font-size: 1.15rem; color: var(--coral); font-weight: 700; }

/* floating "selected houses" bar */
.lvbar { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 14px; background: var(--navy); color: #fff; padding: 10px 12px 10px 22px; border-radius: 999px; box-shadow: var(--shadow-lg); font-weight: 600; max-width: calc(100vw - 24px); }
.lvbar[hidden] { display: none; }
.lvbar .linkish { color: #9fe3ea; }

/* ---------- Location ---------- */
.lvloc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.lvbox { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 24px; box-shadow: var(--shadow-sm); }
.lvbox h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 12px; }
.lvdist li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.lvdist li:last-child { border-bottom: 0; }
.lvdist span { display: inline-flex; align-items: center; gap: 9px; font-weight: 500; }
.lvdist .ico { width: 18px; height: 18px; color: var(--turquoise); }
.lvdist b { color: var(--blue); font-weight: 700; white-space: nowrap; }
.lvb9 { margin-top: 14px; display: flex; gap: 10px; align-items: flex-start; background: var(--turquoise-soft); border-radius: 14px; padding: 12px 14px; font-weight: 600; font-size: .95rem; }
.lvb9 .ico { color: var(--blue); margin-top: 3px; }

/* ---------- Partner map ---------- */
.lvnotes { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.lvnotes span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--turquoise); font-weight: 600; font-size: .88rem; }
.lvnotes .ico { color: var(--turquoise); width: 17px; height: 17px; }
.lvtools { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.lvsearch { flex: 1 1 280px; max-width: 460px; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 16px; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; }
.lvsearch:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21, 88, 232, .12); }
.lvsearch .ico { color: var(--turquoise); }
.lvsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; }
.lvacts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.lvfilters { display: grid; gap: 8px; margin-bottom: 8px; }
.lvchips { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 8px; scrollbar-width: none; }
.lvchips::-webkit-scrollbar { display: none; }
.lvchips .chip { flex: none; }
.lvorig { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; font-size: .9rem; color: var(--navy-soft); font-weight: 500; }
.lvorig .ico { width: 16px; height: 16px; color: var(--turquoise); }
.lvorig b { color: var(--navy); }

.lvmap { display: grid; grid-template-columns: minmax(340px, 430px) minmax(0, 1fr); gap: 18px; align-items: start; }
.lvplist { display: grid; gap: 14px; max-height: 640px; overflow-y: auto; padding: 2px 6px 2px 2px; scrollbar-width: thin; }
.lvmapbox { position: sticky; top: calc(var(--header-h) + 14px); height: 640px; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); background: #e9f2f7; box-shadow: var(--shadow-sm); }
.lvmapbox #mapCanvas { height: 100%; min-height: 320px; }
.lvmap[data-view="list"] { display: block; }
.lvmap[data-view="list"] .lvmapbox { display: none; }
.lvmap[data-view="list"] .lvplist { max-height: none; overflow: visible; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; }

.lvp { display: flex; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; box-shadow: var(--shadow-sm); transition: .2s; cursor: default; }
.lvmap[data-view="map"] .lvp { cursor: pointer; }
.lvp:hover { border-color: var(--turquoise); box-shadow: var(--shadow-md); }
.lvp > img { width: 104px; height: 104px; border-radius: 14px; object-fit: cover; flex: none; }
.lvp-b { min-width: 0; display: flex; flex-direction: column; gap: 3px; flex: 1; }
.lvp-c { align-self: flex-start; display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 600; padding: 2px 10px; border-radius: 999px; background: var(--sky); }
.lvp-c .ico { width: 12px; height: 12px; color: var(--turquoise); }
.lvp h3 { font-size: 1rem; font-weight: 600; line-height: 1.3; }
.lvp p { font-size: .82rem; color: var(--navy-soft); display: flex; gap: 6px; align-items: flex-start; line-height: 1.45; }
.lvp p .ico { width: 13px; height: 13px; margin-top: 3px; flex: none; color: var(--turquoise); }
.lvp-m { flex-wrap: wrap; column-gap: 14px; }
.lvp-m span { display: inline-flex; align-items: center; gap: 4px; }
.lvp-m span .ico { margin-top: 0; }
.lvp-promo { background: #fff4e5; color: #8a4b00 !important; border-radius: 10px; padding: 5px 9px; }
.lvp-promo .ico { color: #d9822b !important; }
.lvp-act, .mpop .lvp-act { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.lvp-act .btn { min-height: 36px; padding: 0 12px; font-size: .82rem; }
.lvp-act .btn .ico { width: 14px; height: 14px; }

/* markers (category coloured dots) */
.pm-dot { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #fff; border: 3px solid #fff; box-shadow: 0 4px 12px rgba(11, 42, 91, .4); transition: transform .15s, background .15s; }
.pm-dot .ico { width: 16px; height: 16px; }
.pm-things .pm-dot { background: #0e8f9c; } .pm-stays .pm-dot { background: var(--blue); } .pm-food .pm-dot { background: #d9542f; }
.pm-activities .pm-dot { background: #6a3fd0; } .pm-services .pm-dot { background: #3d6b63; } .pm-transport .pm-dot { background: var(--navy); }
.pm.hl .pm-dot, .pm:hover .pm-dot { transform: scale(1.25); background: var(--coral); }
.pm-me .pm-o { background: var(--blue); }
.lvmapbox .leaflet-container { font-family: var(--font); width: 100%; height: 100%; }
.lvmapbox .leaflet-popup-content-wrapper { padding: 0; border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-lg); }
.lvmapbox .leaflet-popup-content { margin: 0; line-height: 1.4; }
.lvmapbox .mpop a.btn { color: var(--navy); }
.lvmapbox .mpop a.btn-coral, .lvmapbox .mpop .btn-coral { color: #fff; }
.mp-promo { display: flex; gap: 6px; align-items: flex-start; font-size: .8rem; font-weight: 600; background: #fff4e5; color: #8a4b00; padding: 5px 9px; border-radius: 10px; margin-top: 2px; }
.mp-promo .ico { width: 13px; height: 13px; margin-top: 2px; color: #d9822b; }
.lvmapbox .mpop .btn { min-height: 34px; padding: 0 11px; font-size: .78rem; }

/* full-screen map mode */
.lvmapsec.full { position: fixed; inset: 0; z-index: 260; overflow-y: auto; padding: 14px 0; background: var(--sky); }
.lvmapsec.full .container { height: 100%; display: flex; flex-direction: column; }
.lvmapsec.full .lvmaphead { display: none; }
.lvmapsec.full .lvmap { flex: 1; min-height: 0; }
.lvmapsec.full .lvmapbox { position: static; height: 100%; }
.lvmapsec.full .lvplist { max-height: 100%; }

/* ---------- Services / why / CTA ---------- */
.lvsvc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.lvsvc .lvbox { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.lvsvc-h { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--blue); }
.lvsvc-h .ico { width: 18px; height: 18px; }
.lvsvc-l { margin-top: 8px; font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--navy-soft); }
.lvlist { display: grid; gap: 7px; margin-bottom: 8px; }
.lvlist li { display: flex; gap: 9px; align-items: flex-start; }
.lvlist .ico { width: 17px; height: 17px; margin-top: 4px; color: var(--turquoise); stroke-width: 2.6; }
.lvnote { font-size: .85rem; color: var(--navy-soft); background: var(--sky); padding: 10px 12px; border-radius: 12px; }
.lvwhy { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lvwhy li { display: flex; gap: 12px; align-items: flex-start; background: #fff; border-radius: var(--r-md); padding: 16px 18px; font-weight: 500; line-height: 1.5; box-shadow: var(--shadow-sm); }
.lvwhy .ico { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--turquoise-soft); color: var(--blue); stroke-width: 3; }
.lvcta-btns { display: flex; flex-wrap: wrap; gap: 12px; }

/* group form */
.checks.cols { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 12px; }
.fhint { color: var(--navy-soft); font-size: .8rem; }
.fhint[hidden] { display: none; }
.field .chk { padding: 5px 0; }
.field.err .ferr { display: block; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .lvhls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lvgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lvwhy { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .lvmap { display: flex; flex-direction: column; gap: 14px; }
  .lvmapbox { order: -1; position: relative; top: 0; height: 56vh; min-height: 340px; }
  .lvplist { max-height: none; overflow: visible; }
  .lvmap[data-view="list"] .lvplist { grid-template-columns: 1fr; }
  .lvloc, .lvsvc { grid-template-columns: 1fr; }
  .lvmapsec.full .lvmap { flex-direction: column; }
  .lvmapsec.full .lvmapbox { height: 48vh; flex: none; }
  .lvmapsec.full .lvplist { overflow-y: auto; flex: 1; }
}
@media (max-width: 760px) {
  .lvbar { bottom: calc(var(--bnav-h) + 14px + env(safe-area-inset-bottom)); }
}
@media (max-width: 640px) {
  .lvhero-copy { padding-top: 36px; }
  .lvstats { grid-template-columns: 1fr; gap: 10px; }
  .lvstats li { flex-direction: row; align-items: center; gap: 14px; padding: 12px 16px; }
  .lvstats b { min-width: 52px; font-size: 1.6rem; }
  .lvhls, .lvgrid, .lvwhy { grid-template-columns: 1fr; }
  .lvhero-cta .btn, .lvcta-btns .btn { width: 100%; }
  .lvtools { flex-direction: column; align-items: stretch; }
  .lvsearch { max-width: none; }
  .lvacts .btn, .lvacts .vtoggle { flex: 1; justify-content: center; }
  .lvacts .vtoggle button { flex: 1; justify-content: center; }
  .lvp > img { width: 84px; height: 84px; }
  .lvp-act .btn { flex: 1; min-height: 42px; }
  .pickbtn { min-height: 44px; }
  .checks.cols { grid-template-columns: 1fr; }
  .lvbanner { min-height: 300px; }
  .lvbanner::before { background: linear-gradient(0deg, rgba(11, 42, 91, .9) 0%, rgba(11, 42, 91, .55) 70%, rgba(11, 42, 91, .2) 100%); }
  .lvb-copy { justify-content: flex-end; min-height: 300px; }
}
