/* ============================================================
   VILLAS PAGE (villas.html) — PAGE-SPECIFIC STYLES
   Global styles are in styles.css
============================================================ */

/* HERO */
.villas-hero {
    position: relative;
    height: 62vh;
    min-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.villas-hero-bg {
    position: absolute;
    inset: 0;
    background: url('../ass/img/treetop_villas/deluxe_villa.png') center 40% / cover no-repeat;
    animation: hero-zoom 14s ease forwards;
}

@keyframes hero-zoom {
    from {
        transform: scale(1.08);
    }

    to {
        transform: scale(1.0);
    }
}

.villas-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(4, 28, 18, 0.42) 0%, rgba(4, 28, 18, 0.74) 100%);
}

.villas-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 700px;
    padding: 0 5%;
}

.hero-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.10);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
    padding: 7px 20px;
    border-radius: 50px;
    font-size: 0.72rem;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.88);
    margin-bottom: 20px;
}

.villas-hero-content h1 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2.6rem, 5.5vw, 4.5rem);
    color: #fff;
    line-height: 1.1;
    margin-bottom: 14px;
}

.villas-hero-content>p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.75;
    max-width: 480px;
    margin: 0 auto;
}

/* FILTER BAR */
.filter-row {
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    padding: 24px 6%;
    border-bottom: 1px solid #e8f3ed;
    position: sticky;
    top: 0;
    z-index: 90;
    box-shadow: 0 2px 16px rgba(11, 74, 52, 0.06);
}

.filter-pill {
    padding: 9px 24px;
    border-radius: 50px;
    border: 1.5px solid #c8e3d0;
    background: transparent;
    color: #0B4A34;
    font-size: 0.83rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.22s;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.2px;
}

.filter-pill:hover,
.filter-pill.active {
    background: #0B4A34;
    color: #fff;
    border-color: #0B4A34;
}

/* LISTING SECTION */
.villas-list-section {
    background: #f3f8f5;
    padding: 70px 5% 90px;
}

.section-head {
    text-align: center;
    margin-bottom: 52px;
}

.section-head .eyebrow {
    display: block;
    font-size: 0.68rem;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #147252;
    font-weight: 700;
    margin-bottom: 10px;
}

.section-head h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(1.9rem, 3.2vw, 2.8rem);
    color: #062D1F;
    line-height: 1.2;
}

/* VILLA CARD LIST */
.villa-cards-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 1100px;
    margin: 0 auto;
}

/* Single card */
.vc {
    background: #ffffff;
    border: 1px solid #e1e7e4;
    border-radius: 20px;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding: 24px;
    align-items: stretch;
    box-shadow: 0 4px 20px rgba(11, 74, 52, 0.03);
    transition: box-shadow 0.4s ease, transform 0.4s ease;
}

.vc:hover {
    box-shadow: 0 12px 36px rgba(11, 74, 52, 0.08);
    transform: translateY(-4px);
}

/* Image pane */
.vc-img {
    position: relative;
    overflow: hidden;
    height: 100%;
    min-height: 440px;
    width: 100%;
    border-radius: 12px;
    flex-shrink: 0;
}

.vc-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.vc:hover .vc-img img {
    transform: scale(1.06);
}

.vc-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: #0B4A34;
    color: #fff;
    font-size: 0.65rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    padding: 5px 12px;
    border-radius: 50px;
    font-weight: 600;
    z-index: 2;
}

.vc-badge.gold {
    background: #C9A227;
    color: #1a0e00;
}

/* Content pane */
.vc-body {
    padding: 10px 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Alternating order rules for 50/50 split */
.vc:nth-child(even) .vc-img {
    order: 2;
}

.vc:nth-child(even) .vc-body {
    order: 1;
}

.vc-tag {
    font-size: 0.64rem;
    text-transform: uppercase;
    letter-spacing: 3.5px;
    color: #147252;
    font-weight: 700;
    margin-bottom: 6px;
    display: block;
}

.vc-body h2 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.8rem;
    color: #062D1F;
    line-height: 1.15;
    margin-bottom: 10px;
}

/* Specs Bar */
.vc-specs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 8px 0;
}

.vc-spec-item {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.74rem;
    color: #3d6650;
    font-weight: 600;
    background: #edf8f2;
    padding: 5px 12px;
    border-radius: 30px;
    border: 1px solid #d5ece0;
    transition: transform 0.2s ease, background 0.2s ease;
}

.vc-spec-item:hover {
    transform: translateY(-1px);
    background: #e1f3e7;
}

.vc-spec-item strong {
    color: #0B4A34;
    font-weight: 700;
}

/* Divider */
.vc-divider {
    height: 1px;
    background: #e5f0ea;
    margin: 12px 0;
}

/* Description */
.vc-desc {
    font-size: 0.86rem;
    color: #4d6e5c;
    line-height: 1.72;
    margin-bottom: 12px;
}

/* Details Grid (Facilities & Amenities) */
.vc-details-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.vc-details-block h4 {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #0B4A34;
    font-weight: 700;
    margin-bottom: 8px;
    font-family: 'Inter', sans-serif;
    display: flex;
    align-items: center;
    gap: 5px;
}

.vc-facilities-list,
.vc-amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.vc-tag-pill {
    font-size: 0.7rem;
    color: #4d6e5c;
    font-weight: 500;
    background: #f4fbf7;
    border: 1px solid #e1f3e7;
    padding: 4px 10px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.vc-tag-pill:hover {
    background: #e8f7ee;
    border-color: #ccefd6;
    color: #0B4A34;
}

/* Booking inline block */
.vc-booking-inline {
    margin-top: 24px;
    padding: 16px 20px;
    background: #f4fbf7;
    border: 1px dashed #cde3d6;
    border-radius: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.vc-booking-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.vc-booking-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.15rem;
    color: #0B4A34;
    line-height: 1.1;
    margin-bottom: 0;
}

.vc-booking-info {
    font-size: 0.72rem;
    color: #5a7a68;
    line-height: 1.4;
}

/* CTA */
.vc-btn-book {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: #0B4A34;
    color: #ffffff;
    padding: 11px 28px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    width: auto;
    box-shadow: 0 4px 15px rgba(11, 74, 52, 0.12);
}

.vc-btn-book:hover {
    background: #147252;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(11, 74, 52, 0.22);
}

/* PARALLAX */
.villas-parallax {
    position: relative;
    height: 52vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.villas-parallax-bg {
    position: absolute;
    inset: 0;
    background: url('../ass/img/treetop_villas/treetop_superior.png') center center / cover no-repeat;
    background-attachment: fixed;
}

.villas-parallax-overlay {
    position: absolute;
    inset: 0;
    background: rgba(4, 22, 13, 0.70);
}

.villas-parallax-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 660px;
    padding: 0 5%;
}

.villas-parallax-content h2 {
    font-family: 'DM Serif Display', serif;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    color: #fff;
    margin-bottom: 14px;
    line-height: 1.2;
}

.villas-parallax-content p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 32px;
    line-height: 1.8;
}

.btn-white-outline {
    display: inline-block;
    border: 2px solid rgba(255, 255, 255, 0.6);
    color: #fff;
    padding: 13px 36px;
    border-radius: 50px;
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 1px;
    text-decoration: none;
    transition: background 0.3s, border-color 0.3s;
}

.btn-white-outline:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: #fff;
}

/* POLICY STRIP */
.policy-strip {
    background: #fff;
    padding: 58px 6%;
    border-top: 1px solid #e5f0ea;
}

.policy-inner {
    max-width: 1080px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 36px;
}

.policy-item {
    text-align: center;
}

.policy-icon {
    font-size: 2rem;
    margin-bottom: 10px;
}

.policy-item h4 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.05rem;
    color: #0B4A34;
    margin-bottom: 6px;
}

.policy-item p {
    font-size: 0.82rem;
    color: #5a7a68;
    line-height: 1.6;
}

/* RESPONSIVE */
@media (max-width: 940px) {
    .vc {
        gap: 24px;
        padding: 20px;
    }

    .vc-img {
        min-height: 380px;
    }

    .vc-booking-inline {
        padding: 12px 16px;
        gap: 12px;
    }

    .policy-inner {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .vc {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 16px;
    }

    .vc-img {
        height: 260px;
        min-height: auto;
        order: 1 !important;
    }

    .vc-body {
        order: 2 !important;
        padding: 0;
    }

    .vc-booking-inline {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }

    .vc-btn-book {
        width: 100%;
    }

    .policy-inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 580px) {
    .villas-hero {
        height: 54vh;
    }
}

/* Filter hide */
.villa-filter-item.hidden {
    display: none;
}

/* iOS Safari: background-attachment:fixed causes blank sections */
@media (max-width: 768px) {
    .villas-parallax-bg {
        background-attachment: scroll;
    }

    .filter-row {
        padding: 16px 5%;
        gap: 8px;
    }

    .filter-pill {
        padding: 7px 16px;
        font-size: 0.78rem;
    }

    .villas-list-section {
        padding: 50px 5% 70px;
    }
}

/* FLOATING QUICK CONTACT WIDGET */
.floating-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    z-index: 1000;
}

.float-btn {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 20px rgba(11, 74, 52, 0.2);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    background: #0B4A34;
}

.float-btn svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.float-btn:hover {
    transform: scale(1.1) translateY(-3px);
    box-shadow: 0 8px 24px rgba(11, 74, 52, 0.35);
}

.float-btn.whatsapp {
    background: #25D366;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
}

.float-btn.whatsapp:hover {
    background: #20ba59;
    box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}

@media (max-width: 580px) {
    .floating-contact {
        bottom: 20px;
        right: 20px;
        gap: 10px;
    }

    .float-btn {
        width: 48px;
        height: 48px;
    }

    .float-btn svg {
        width: 20px;
        height: 20px;
    }
}