/* ============================================
   BONNIE'S CABIN — HOMEPAGE
   ============================================ */

/* ===== HERO ===== */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero__bg img,
.hero__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
    /* Hide iOS Safari native play button overlay */
    -webkit-media-controls: none;
    -webkit-media-controls-panel: none;
    -webkit-media-controls-play-button: none;
    -webkit-media-controls-start-playback-button: none;
}

/* Remove iOS native video controls completely */
.hero__video::-webkit-media-controls {
    display: none !important;
}

.hero__video::-webkit-media-controls-start-playback-button {
    display: none !important;
    -webkit-appearance: none;
}

.hero__gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg,
            rgba(15, 15, 26, 0.3) 0%,
            rgba(15, 15, 26, 0.2) 30%,
            rgba(15, 15, 26, 0.6) 60%,
            rgba(15, 15, 26, 1) 95%);
    z-index: 1;
}

.hero__content {
    position: relative;
    z-index: 2;
    padding-bottom: var(--space-3xl);
    max-width: 700px;
}

.hero__badge {
    margin-bottom: var(--space-md);
}

.hero__title {
    font-size: var(--fs-hero);
    font-weight: 700;
    line-height: 1.05;
    margin-bottom: var(--space-md);
    color: var(--white);
}

.hero__title span {
    color: var(--accent);
}

.hero__subtitle {
    font-size: clamp(1.05rem, 1.5vw, 1.25rem);
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    max-width: 50ch;
}

.hero__actions {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.hero__scroll-hint {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.5;
    animation: float 3s ease-in-out infinite;
}

.hero__scroll-hint span {
    font-family: var(--font-accent);
    font-size: var(--fs-label);
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--text-muted);
}

.hero__scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, var(--accent), transparent);
}

/* Floating particles */
.hero__particles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background: var(--accent);
    border-radius: 50%;
    opacity: 0.3;
}

/* ===== TRUST BAR ===== */
.trust-bar {
    position: relative;
    margin-top: -60px;
    z-index: 3;
}

.trust-bar__inner {
    background: var(--gradient-card);
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-xl) var(--space-lg);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

/* ===== ABOUT ===== */
.about {
    overflow: hidden;
}

.about__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
}

.about__content {
    max-width: 520px;
}

.about__text {
    margin-bottom: var(--space-lg);
    font-size: var(--fs-body);
    line-height: 1.9;
}

.about__features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-sm);
    margin-top: var(--space-lg);
}

.about__feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: var(--fs-small);
    color: var(--text-secondary);
}

.about__feature-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: rgba(201, 169, 110, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.about__images {
    position: relative;
    height: 500px;
}

.about__img-main {
    position: absolute;
    top: 0;
    right: 0;
    width: 75%;
    height: 80%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--glass-shadow);
}

.about__img-secondary {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: 55%;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 3px solid var(--primary);
    box-shadow: var(--glass-shadow);
}

.about__img-main img,
.about__img-secondary img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about__exp-badge {
    position: absolute;
    bottom: 30%;
    left: 35%;
    background: var(--gradient-accent);
    color: var(--primary);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    z-index: 2;
}

.about__exp-number {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1;
}

.about__exp-text {
    font-family: var(--font-accent);
    font-size: var(--fs-label);
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--primary);
}

/* ===== PROPERTIES GRID ===== */
.properties__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

.properties__header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.properties__header .section-subtitle {
    margin: 0 auto;
}

/* ===== TESTIMONIALS ===== */
.testimonials {
    overflow: hidden;
}

.testimonials__header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.testimonials__wrapper {
    overflow: hidden;
    margin: 0 calc(var(--container-padding) * -1);
    padding: var(--space-sm) var(--container-padding);
    padding-bottom: var(--space-xl);
    /* extra padding for hover */
    /* Add a subtle mask to fade out the edges */
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent);
}

.testimonial-track {
    display: flex;
    gap: var(--space-lg);
    width: max-content;
    animation: scroll-testimonials 40s linear infinite;
    /* Pause animation on hover */
}

.testimonial-track:hover {
    animation-play-state: paused;
}

@keyframes scroll-testimonials {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-50% - (var(--space-lg) / 2)));
    }
}

.testimonials__airbnb-link {
    display: flex;
    justify-content: center;
    margin-top: var(--space-xl);
}

/* ===== CTA BANNER ===== */
.cta-banner {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-xl);
    padding: var(--space-3xl) var(--space-xl);
    text-align: center;
}

.cta-banner__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.cta-banner__bg img.cta-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
    animation-play-state: paused;
}

.cta-banner__bg img.cta-slide--active {
    opacity: 1;
    animation-play-state: running;
}

.cta-banner__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
            rgba(15, 15, 26, 0.85) 0%,
            rgba(26, 26, 46, 0.7) 100%);
    z-index: 1;
}

.cta-banner__content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    margin: 0 auto;
}

.cta-banner__title {
    font-size: var(--fs-h1);
    margin-bottom: var(--space-md);
    color: var(--white);
}

.cta-banner__text {
    font-size: var(--fs-body);
    color: var(--text-secondary);
    margin: 0 auto var(--space-xl);
    max-width: 45ch;
}

.cta-banner__actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .properties__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .about__grid {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .about__images {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 600px;
    }

    .hero__content {
        padding-bottom: calc(var(--space-2xl) + 80px);
    }

    .hero__actions {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero__scroll-hint {
        display: none;
    }

    .properties__grid {
        grid-template-columns: 1fr;
        max-width: 600px;
        margin: 0 auto;
    }

    .about__images {
        height: 350px;
    }

    .cta-banner {
        padding: var(--space-2xl) var(--space-md);
        border-radius: var(--radius-lg);
    }

    .cta-banner__actions {
        flex-direction: column;
        align-items: center;
    }

    .cta-banner__actions .btn {
        width: 100%;
        text-align: center;
        justify-content: center;
    }
}

@media (max-width: 480px) {

    /* Trust bar — reduce negative margin so stats don't clip at top */
    .trust-bar {
        margin-top: 0;
    }

    .trust-bar__inner {
        padding: var(--space-md);
    }

    /* Stats numbers smaller on tiny screens */
    .stat__number {
        font-size: 2rem;
    }

    /* About section photos stack taller */
    .about__images {
        height: 280px;
    }
}