/**
 * Villa lower-page sections — Map, Hosts, Photo Strip and final CTA.
 * Depends on villa-home.css.
 *
 * @package Villa_Addon
 */

/* ---- MAP ---- */
.vo-map { padding-block: var(--sp-160); padding-inline: var(--pad-x); }
.vo-map__inner { width: 100%; margin-inline: auto; }
.map__wrap { display: grid; grid-template-columns: .85fr 1.15fr; background: var(--dark); }
.map__info { padding: 60px; display: flex; flex-direction: column; justify-content: center; }
.map__info .eyebrow { color: var(--teal); }
.map__info h2 { font-family: var(--display); font-weight: 600; color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.1vw, 34px); line-height: 1.1; margin: 0; }
.map__info p { color: rgba(255, 255, 255, .78); }
.map__addr { margin-top: 36px; padding-top: 26px; border-top: 1px solid rgba(255, 255, 255, .18); display: grid; gap: 14px; }
.map__addr div { display: flex; gap: 14px; color: rgba(255, 255, 255, .78); font-size: 18px; line-height: 1.4; }
.map__addr svg { width: 19px; height: 19px; color: var(--teal); flex: none; margin-top: 5px; }
/* Award badge with flanking laurels (optional, e.g. home Location section) */
.vo-award { display: flex; align-items: center; gap: .8rem; margin: 1.5rem 0 .4rem; padding: .9rem 1.1rem; border: 1px solid rgba(255, 255, 255, .22); border-radius: 14px; background: rgba(255, 255, 255, .05); }
.vo-award__laurel { width: 24px; height: 36px; flex: none; color: var(--teal); }
.vo-award__laurel--flip { transform: scaleX(-1); }
.vo-award__txt { display: flex; flex-direction: column; line-height: 1.32; }
.vo-award__txt b { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--teal); font-weight: 600; }
.vo-award__txt span { color: rgba(255, 255, 255, .9); font-size: .98rem; }
.map__info .vo-btn { align-self: flex-start; margin-top: 36px; border-color: var(--teal); color: var(--teal); }
.map__info .vo-btn:hover { background: var(--teal); color: var(--dark); border-color: var(--teal); }
.map__frame { position: relative; min-height: 420px; overflow: hidden; }
.map__frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
/* When nudged, the iframe is oversized (140%) and shifted by the --mx/--my offsets so
   a different part of the map shows without ever revealing an empty edge. */
.map__frame.is-nudged iframe { inset: auto !important; top: calc(-20% + var(--my, 0%)) !important; left: calc(-20% + var(--mx, 0%)) !important; width: 140% !important; height: 140% !important; max-width: none !important; }
@media (max-width: 860px) { .map__wrap { grid-template-columns: 1fr; } .map__info { padding: 34px; } .map__frame { min-height: 320px; } }

/* ---- HOSTS ---- */
.vo-hosts { padding-block: var(--sp-160); padding-inline: var(--pad-x); }
.hosts__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.hosts__photo { overflow: hidden; }
.hosts__photo img { width: 100%; aspect-ratio: 4 / 3.6; object-fit: cover; display: block; }
.hosts__copy h2 { margin: 0; }
.hosts__copy p { margin-top: 1.3rem; font-size: 18px; line-height: 1.5; }
.hosts__copy p a { color: var(--teal-ink); border-bottom: 1px solid var(--teal-ink); }
.hosts__mail { display: inline-flex; align-items: center; gap: .7rem; margin-top: 36px; color: var(--dark); font-weight: 500; border-bottom: 1px solid var(--dark); padding-bottom: 2px; text-decoration: none; }
.hosts__mail svg { width: 20px; height: 20px; }
.vo-form { margin-top: 36px; display: grid; gap: 18px; }
.vo-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.vo-form input, .vo-form textarea { width: 100%; font-family: var(--sans); font-size: 18px; color: var(--dark); background: transparent; border: 0; border-bottom: 1px solid var(--line); padding: 14px 0; transition: border-color .3s; }
.vo-form input::placeholder, .vo-form textarea::placeholder { color: #9d968d; }
.vo-form input:focus, .vo-form textarea:focus { outline: none; border-color: var(--dark); }
.vo-form textarea { resize: vertical; min-height: 100px; }
.vo-form .vo-btn { justify-self: start; margin-top: 10px; }
@media (max-width: 900px) { .hosts__grid { grid-template-columns: 1fr; gap: 44px; } }
@media (max-width: 560px) { .vo-form__row { grid-template-columns: 1fr; } }

/* ---- HOSTS STATS (optional 4-up figures row, e.g. About page) ---- */
/* Framed as a distinct band with hairline top/bottom rules and thin dividers
   between each figure — a refined, restrained lift over four floating numbers. */
.hosts__stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 44px; margin-top: clamp(56px, 7vw, 104px); padding-block: clamp(40px, 4vw, 60px); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.hosts__stat { position: relative; display: flex; flex-direction: column; gap: 10px; }
.hosts__stat + .hosts__stat::before { content: ""; position: absolute; left: -22px; top: 50%; transform: translateY(-50%); height: 64%; width: 1px; background: rgba(18, 53, 54, .14); }
.hosts__stat-n { font-family: var(--display); font-weight: 600; color: var(--dark); font-size: clamp(2.4rem, 1.4rem + 2.7vw, 4rem); line-height: 1; }
.hosts__stat-l { font-family: var(--sans); font-size: 15px; letter-spacing: .01em; color: rgba(18, 53, 54, .72); }
@media (max-width: 720px) { .hosts__stats { grid-template-columns: repeat(2, 1fr); gap: 40px 20px; } .hosts__stat + .hosts__stat::before { display: none; } }

/* ---- PHOTO STRIP ---- */
/* Kill Elementor's default 20px widget margin so the strip sits flush against
   the dark CTA below it (was showing as a white band between the two). */
.elementor-widget-villa-strip { margin-bottom: 0 !important; }
.vo-strip { overflow: hidden; height: 350px; }
.strip__marquee { display: flex; width: max-content; animation: voStrip 60s linear infinite; }
.vo-strip:hover .strip__marquee { animation-play-state: paused; }
.strip__list { display: flex; flex: none; }
.strip__item { position: relative; width: 350px; height: 350px; flex: none; overflow: hidden; display: block; }
.strip__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.strip__item::after { content: ""; position: absolute; inset: 0; z-index: 1; background: rgba(18, 53, 54, 0); transition: background .4s; }
.strip__item:hover img { transform: scale(1.06); }
.strip__item:hover::after { background: rgba(18, 53, 54, .45); }
.strip__ic { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; opacity: 0; transform: scale(.72); transition: opacity .35s var(--ease), transform .35s var(--ease); pointer-events: none; }
.strip__ic svg { width: 46px; height: 46px; color: #fff; }
.strip__item:hover .strip__ic { opacity: 1; transform: none; }
@keyframes voStrip { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 700px) { .vo-strip, .strip__item { height: 220px; } .strip__item { width: 220px; } }
@media (prefers-reduced-motion: reduce) { .strip__marquee { animation: none; } }

/* ---- FINAL CTA ---- */
/* The rating laurels are declared in villa-reviews.css, but this CTA reuses
   `.laurel` and appears on pages WITHOUT the Reviews widget (Gallery, About,
   Contact, Blog) — there the SVG had no width and blew up to ~375x563px.
   Re-declare the sizing here so the CTA laurels are correct on every page. */
.vo-cta .laurel { width: clamp(44px, 7vw, 64px); height: auto; color: var(--teal); }
.vo-cta .laurel.flip { transform: scaleX(-1); }
.vo-cta { position: relative; overflow: hidden; background: var(--dark); color: #fff; text-align: center; padding-block: var(--sp-160); padding-inline: var(--pad-x); }
.cta__bg { position: absolute; inset: 0; z-index: 0; }
.cta__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .3; }
.cta__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(18, 53, 54, .78) 0%, rgba(18, 53, 54, .9) 100%); }
.cta__inner { position: relative; z-index: 1; width: 100%; margin-inline: auto; }
.cta__rating { display: inline-flex; align-items: center; gap: 16px; flex-wrap: wrap; justify-content: center; margin-bottom: 2rem; }
/* Client asked to remove the initial-circle "profile pic" avatars everywhere. */
.cta__avatars { display: none; }
.cta__av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 600; font-size: 17px; border: 2px solid var(--dark); margin-left: -12px; }
.cta__av:first-child { margin-left: 0; }
.cta__av--plus { background: var(--teal); color: var(--dark); }
.cta__ratetext { font-size: 16px; color: rgba(255, 255, 255, .82); }
.cta__ratetext b { color: #fff; font-weight: 600; }
.cta__title { color: #fff; font-family: var(--display); font-weight: 600; line-height: 1.1; font-size: clamp(2.5rem, 1.4rem + 3.9vw, 72px); margin: 0; }
.cta__sub { max-width: 60ch; margin: 1.4rem auto 0; font-size: 20px; line-height: 1.5; color: rgba(255, 255, 255, .78); }
.cta__btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; margin-top: clamp(2rem, 4vw, 2.8rem); }
.cta__btns .vo-btn--light { border-color: var(--cream); color: var(--cream); }
.cta__btns .vo-btn--light:hover { background: var(--cream); color: var(--dark); border-color: var(--cream); }
.cta__btns .vo-btn--ghost { border-color: rgba(255, 255, 255, .45); color: #fff; }
.cta__btns .vo-btn--ghost:hover { background: #fff; color: var(--dark); border-color: #fff; }
@media (max-width: 560px) { .cta__btns { width: 100%; } .cta__btns .vo-btn { flex: 1 1 100%; } }

/* ---- LIVE PARITY FIXES ----
   These were previously inline in WPCode snippet 816, which also carried the
   obsolete mobile-video facade and the hardcoded VO_GAL gallery override. That
   snippet has been retired now the gallery lives in Elementor, so the layout
   fixes move here into the plugin where they belong. */
/* 1 — Details CTA sits under the heading. */
.vo-details__l .vo-btn { margin-top: 36px; }
/* 2 — Gallery tile photos fill their 4/5 frames. */
.vo-gallery .gcat .gcat__img { width: 100%; height: 100%; }
/* 3 — Photo strip flush to the CTA (also declared above; kept for parity). */
.elementor-widget-villa-strip { margin-bottom: 0 !important; }
/* 4 — Footer: no trailing gap below it. */
.footer { position: relative; z-index: 5; }
.elementor-widget-villa-footer { margin-bottom: 0 !important; }
/* 5 — CTA rating laurels sized on pages without the Reviews widget. */
.vo-cta .laurel { width: clamp(44px, 7vw, 64px); height: auto; color: var(--teal, #10bab5); }
.vo-cta .laurel.flip { transform: scaleX(-1); }
/* 6 — Home hero scrolls away like the approved live site (was position:fixed). */
.elementor-widget-villa-hero > .elementor-widget-container { position: relative; overflow: hidden; }
.elementor-widget-villa-hero .vo-herofix { position: absolute; }
