/* premium-home-b.css: loaded after style.css. Owner: HOME-B (#dive, #attractions, #contact). */

/* --------------------------------------------------------------------------
   Dive: underwater light, arched photo with offset brass outline, editorial quote
   -------------------------------------------------------------------------- */
#dive {
    --mv-arch: 50% 50% var(--radius-lg) var(--radius-lg) / 34% 34% var(--radius-lg) var(--radius-lg);
}
/* Caustic light: soft light pools + thin bathymetry-like ripple lines, drifting slowly. */
#dive::after {
    position: absolute;
    inset: -30%;
    z-index: -1;
    background:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='520' height='520'%3E%3Cfilter id='c' x='0' y='0' width='100%25' height='100%25'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.007 .011' numOctaves='2' seed='9' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 1 0 0 0 0'/%3E%3CfeComponentTransfer%3E%3CfeFuncA type='table' tableValues='0 0 0 0 0 0 .8 0 0 0 0 0 0 .6 0 0 0 0 0 0'/%3E%3C/feComponentTransfer%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23c)'/%3E%3C/svg%3E") 0 0 / 520px 520px repeat,
        radial-gradient(ellipse 22% 16% at 28% 32%, rgba(170, 236, 224, 0.16), transparent 70%),
        radial-gradient(ellipse 18% 12% at 66% 26%, rgba(230, 210, 174, 0.14), transparent 70%),
        radial-gradient(ellipse 26% 18% at 52% 68%, rgba(150, 226, 214, 0.1), transparent 70%);
    content: '';
    opacity: 0.55;
    mix-blend-mode: soft-light;
    pointer-events: none;
}
#dive .split-section { position: relative; }

#dive .dive-media { position: relative; }
#dive .dive-media::before {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(230, 210, 174, 0.55);
    border-radius: var(--mv-arch);
    content: '';
    pointer-events: none;
    transform: translate(18px, 18px);
}
#dive .split-section > .dive-media > img {
    position: relative;
    z-index: 1;
    border-radius: var(--mv-arch);
    box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
}

#dive .quote {
    margin: 40px 0 0;
    padding: 0.9em 0 0;
    border-left: 0;
    font-size: clamp(1.6rem, 2.5vw, 2.15rem);
    line-height: 1.26;
}
#dive .quote::before {
    position: absolute;
    top: -0.32em;
    left: -0.08em;
    z-index: -1;
    color: var(--gold-light, #e6d2ae);
    content: '\201C';
    content: '\201C' / '';
    font-size: 4.2em;
    line-height: 1;
    opacity: 0.28;
    pointer-events: none;
}
#dive .quote::after {
    display: block;
    width: 56px;
    height: 1px;
    margin-top: 26px;
    background: linear-gradient(90deg, var(--gold-light, #e6d2ae), transparent);
    content: '';
}

/* --------------------------------------------------------------------------
   Attractions: numbered editorial index with travel-time dots
   -------------------------------------------------------------------------- */
#attractions .attractions-list li {
    display: grid;
    grid-template-columns: minmax(0, 1fr) clamp(72px, 14vw, 180px) auto;
    align-items: center;
    column-gap: clamp(16px, 3vw, 40px);
    counter-increment: attraction;
    transition: opacity var(--motion-slow) var(--ease) var(--mv-d, 0s), translate 1.1s var(--ease) var(--mv-d, 0s), filter var(--motion-slow) var(--ease) var(--mv-d, 0s);
}
#attractions .attractions-list li:nth-child(2) { --mv-d: 90ms; }
#attractions .attractions-list li:nth-child(3) { --mv-d: 180ms; }
#attractions .attractions-list li:nth-child(4) { --mv-d: 270ms; }
#attractions .attractions-list li:nth-child(n+5) { --mv-d: 360ms; }
#attractions .attractions-list strong {
    display: flex;
    align-items: baseline;
    gap: clamp(14px, 2vw, 26px);
    font-size: clamp(1.35rem, 1.9vw, 1.6rem);
    transition: transform var(--motion-base) var(--mv-ease, var(--ease));
}
#attractions .attractions-list strong::before {
    flex: 0 0 auto;
    min-width: 34px;
    color: var(--gold-deep, #8e6c3a);
    content: counter(attraction, decimal-leading-zero);
    font-family: 'Montserrat', sans-serif;
    font-size: 0.68rem;
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.2em;
    font-variant-numeric: tabular-nums;
}
/* Track from the villa (open ring) to the place (brass dot); --mv-pct set by the inline script. */
#attractions .attractions-list li::after {
    order: 1;
    height: 10px;
    background:
        radial-gradient(circle, var(--gold, #b8935a) 0 3px, transparent 3.5px) calc(var(--mv-pct, 0) * 100%) 50% / 10px 10px no-repeat,
        radial-gradient(circle, transparent 0 2.5px, var(--gold, #b8935a) 3px 3.6px, transparent 4px) 0 50% / 10px 10px no-repeat,
        linear-gradient(90deg, var(--gold, #b8935a), rgba(184, 147, 90, 0.5)) 5px 50% / calc(var(--mv-pct, 0) * (100% - 10px)) 1px no-repeat,
        repeating-linear-gradient(90deg, var(--line) 0 3px, transparent 3px 7px) 0 50% / 100% 1px no-repeat;
    content: '';
    transform-origin: left center;
    transition: transform 1.2s var(--mv-ease, var(--ease)) calc(var(--mv-d, 0s) + 0.3s);
}
#attractions .attractions-list li.reveal:not(.is-visible)::after { transform: scaleX(0); }
#attractions .attractions-list span {
    order: 2;
    justify-self: end;
    background: var(--paper, #fbf8f2);
    border-color: rgba(184, 147, 90, 0.38);
    font-variant-numeric: tabular-nums;
}
@media (hover: hover) and (pointer: fine) {
    #attractions .attractions-list li:hover { padding-left: 8px; padding-right: 8px; }
    #attractions .attractions-list li:hover strong { transform: translateX(10px); }
}

/* --------------------------------------------------------------------------
   Contact: icon-led details, framed duotone map card
   -------------------------------------------------------------------------- */
#contact {
    background:
        radial-gradient(60% 50% at 8% 40%, rgba(230, 210, 174, 0.28), transparent 70%),
        linear-gradient(180deg, var(--cream) 0%, var(--paper) 16%, var(--paper) 84%, var(--cream) 100%);
}
/* Beside the map the heading sits on two lines. */
@media (min-width: 701px) {
    #contact .section-title { font-size: clamp(2.2rem, 4.4vw, 4rem); }
}
#contact .contact-details li {
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 64px;
    padding: 10px 0;
}
#contact .contact-details li::before {
    flex: 0 0 40px;
    height: 40px;
    border: 1px solid rgba(184, 147, 90, 0.4);
    border-radius: 50%;
    background: rgba(230, 210, 174, 0.2) center / 18px 18px no-repeat;
    content: '';
    transition: transform var(--motion-base) var(--mv-ease, var(--ease));
}
#contact .contact-details .contact-address::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e6c3a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 21s-7-6.2-7-11.5a7 7 0 0 1 14 0C19 14.8 12 21 12 21z'/%3E%3Ccircle cx='12' cy='9.5' r='2.5'/%3E%3C/svg%3E");
}
#contact .contact-details .contact-email::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e6c3a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Cpath d='m3.5 6.5 8.5 6.5 8.5-6.5'/%3E%3C/svg%3E");
}
#contact .contact-details .contact-whatsapp::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238e6c3a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 11.5a8 8 0 0 1-11.8 7L4 20l1.5-4A8 8 0 1 1 20 11.5z'/%3E%3C/svg%3E");
}
#contact .contact-details a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    overflow-wrap: anywhere;
    text-decoration-thickness: 1px;
    text-underline-offset: 6px;
}
#contact .contact-details a::after {
    margin-left: 10px;
    color: var(--gold-deep, #8e6c3a);
    content: '\2192';
    content: '\2192' / '';
    opacity: 0;
    transform: translateX(-6px);
    transition: opacity var(--motion-fast) ease, transform var(--motion-base) var(--mv-ease, var(--ease));
}
#contact .contact-details a:hover::after,
#contact .contact-details a:focus-visible::after { opacity: 1; transform: none; }
#contact .contact-details li:hover::before { transform: scale(1.08); }

/* Map card: paper mat, offset brass outline (hollow via paper-on-gold shadows), teal-brass duotone until hover. */
#contact .map-embed {
    overflow: visible;
    padding: 10px;
    border: 1px solid rgba(184, 147, 90, 0.26);
    border-radius: calc(var(--radius-lg) + 10px);
    background: var(--paper);
    box-shadow:
        18px 18px 0 -1px var(--paper),
        18px 18px 0 0 rgba(184, 147, 90, 0.5),
        var(--mv-shadow-lg, var(--shadow));
}
#contact .map-embed iframe {
    height: 100%;
    border-radius: var(--radius-lg);
}
#contact .map-embed::after {
    position: absolute;
    inset: 10px;
    z-index: 0;
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, rgba(31, 87, 84, 0.7), rgba(184, 147, 90, 0.45));
    content: '';
    mix-blend-mode: color;
    pointer-events: none;
    transition: opacity var(--motion-slow) var(--ease);
}
#contact .map-embed:hover::after { opacity: 0; }
#contact .map-link { right: 26px; bottom: 26px; }

/* --------------------------------------------------------------------------
   Motion (transform/opacity only; off for reduced motion)
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: no-preference) {
    #dive::after {
        animation: mv-caustic-drift 26s ease-in-out infinite alternate;
        will-change: transform;
    }
}
@keyframes mv-caustic-drift {
    from { transform: translate3d(-3%, -2%, 0) rotate(0deg) scale(1); }
    to { transform: translate3d(3%, 2.5%, 0) rotate(3deg) scale(1.06); }
}
@supports (animation-timeline: view()) {
    @media (prefers-reduced-motion: no-preference) and (min-width: 701px) {
        #dive .dive-media::before {
            animation: mv-outline-settle linear both;
            animation-timeline: view();
            animation-range: entry 10% cover 55%;
        }
    }
}
@keyframes mv-outline-settle {
    from { transform: translate(34px, 34px); opacity: 0; }
    to { transform: translate(18px, 18px); opacity: 1; }
}

/* --------------------------------------------------------------------------
   Mobile
   -------------------------------------------------------------------------- */
@media (max-width: 700px) {
    #dive { --mv-arch: 50% 50% var(--radius-lg) var(--radius-lg) / 26% 26% var(--radius-lg) var(--radius-lg); }
    #dive .dive-media { margin-right: 10px; }
    #dive .dive-media::before { transform: translate(10px, 10px); }
    #dive .quote { margin-top: 30px; }

    #attractions .attractions-list li {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        row-gap: 12px;
        padding: 20px 0;
    }
    #attractions .attractions-list strong { grid-column: 1 / -1; gap: 12px; font-size: 1.25rem; }
    #attractions .attractions-list li::after { margin-left: 46px; }

    #contact .map-embed { order: 0; margin-right: 12px; box-shadow: 12px 12px 0 -1px var(--paper), 12px 12px 0 0 rgba(184, 147, 90, 0.5), var(--shadow); }
    #contact .map-link { right: 20px; bottom: 20px; display: inline-flex; align-items: center; min-height: 44px; }
    #contact .button-row .btn { width: 100%; justify-content: center; }
}
