/**
 * Chota Rangit Tari - Banner & Gallery Redesign Styles
 * Premium, modern, responsive aesthetics without affecting other page sections.
 */

/* ==========================================================================
   1. EDITORIAL SPLIT-SCREEN HERO BANNER REDESIGN
   ========================================================================== */

.hero-editorial {
    position: relative;
    background: linear-gradient(165deg, #FAF8F5 0%, #F5F1E8 45%, #EBF2EC 100%);
    overflow: hidden;
    padding-top: calc(var(--header-h, 80px) + 38px);
    padding-bottom: 74px;
    border-bottom: 1px solid rgba(18, 99, 46, 0.08);
}

/* Ambient glows for soft mountain light depth */
.hero-editorial-ambient {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.ambient-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.75;
}

.ambient-glow-1 {
    top: -100px;
    right: -80px;
    width: 650px;
    height: 650px;
    background: radial-gradient(circle, rgba(18, 99, 46, 0.09) 0%, transparent 70%);
}

.ambient-glow-2 {
    bottom: -80px;
    left: -60px;
    width: 520px;
    height: 520px;
    background: radial-gradient(circle, rgba(212, 163, 115, 0.14) 0%, transparent 70%);
}

.hero-editorial-container {
    position: relative;
    z-index: 1;
}

/* --- Left Editorial Column --- */

.hero-editorial-left {
    padding-right: 20px;
}

.editorial-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(18, 99, 46, 0.08);
    color: #12632E;
    border: 1px solid rgba(18, 99, 46, 0.18);
    padding: 7px 16px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    margin-bottom: 22px;
}

.editorial-badge .badge-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #12632E;
    box-shadow: 0 0 8px rgba(18, 99, 46, 0.6);
    display: inline-block;
    animation: editorialPulse 2.2s infinite;
}

@keyframes editorialPulse {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(1.3);
    }
}

.editorial-headline {
    font-family: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(2.5rem, 4.3vw, 3.85rem);
    font-weight: 700;
    line-height: 1.12;
    color: #123A76;
    letter-spacing: -0.015em;
    margin-bottom: 20px;
}

.editorial-headline .headline-serif-italic {
    font-style: italic;
    font-weight: 400;
    color: #2D6A4F;
}

.editorial-headline .headline-accent {
    display: block;
    color: #12632E;
}

.editorial-lead {
    font-size: clamp(1.02rem, 1.3vw, 1.15rem);
    line-height: 1.68;
    color: #4A5568;
    margin-bottom: 26px;
    max-width: 540px;
}

/* Value perks */
.editorial-perks {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 30px;
}

.perk-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.86rem;
    font-weight: 600;
    color: #2D3748;
    background: #ffffff;
    padding: 7px 14px;
    border-radius: 9999px;
    border: 1px solid rgba(0, 0, 0, 0.07);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
}

.perk-item i {
    color: #12632E;
}

/* Action button hierarchy */
.editorial-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 32px;
}

.btn-editorial-primary {
    background: #12632E;
    color: #ffffff !important;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 9999px;
    box-shadow: 0 8px 24px rgba(18, 99, 46, 0.28);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-editorial-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(18, 99, 46, 0.42);
    background: #0E4E24;
}

.btn-editorial-wa {
    background: #25D366;
    color: #ffffff !important;
    font-weight: 600;
    padding: 14px 24px;
    border-radius: 9999px;
    box-shadow: 0 8px 20px rgba(37, 211, 102, 0.28);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-editorial-wa:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(37, 211, 102, 0.40);
    background: #20BD5A;
}

.btn-editorial-ghost {
    background: transparent;
    color: #123A76 !important;
    font-weight: 600;
    padding: 12px 18px;
    border-radius: 9999px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
}

.btn-editorial-ghost:hover {
    color: #12632E !important;
    transform: translateX(4px);
}

/* Trust Accreditation pill */
.editorial-trust {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    padding: 11px 18px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(18, 99, 46, 0.16);
    border-radius: 14px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}

.editorial-trust .trust-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #E9F4EC;
    color: #12632E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    flex-shrink: 0;
}

.editorial-trust .trust-text {
    display: flex;
    flex-direction: column;
    font-size: 0.84rem;
    line-height: 1.35;
    color: #2D3748;
}

.editorial-trust .trust-text strong {
    color: #123A76;
    font-weight: 700;
}

.editorial-trust .trust-text span {
    color: #718096;
    font-size: 0.78rem;
}

/* --- Right Visual Composition Area --- */

.hero-editorial-right {
    display: flex;
    justify-content: center;
}

.visual-composition-wrapper {
    position: relative;
    width: 100%;
    max-width: 560px;
    padding: 24px 20px 30px 10px;
}

.visual-main-frame {
    position: relative;
    border-radius: 28px;
    overflow: hidden;
    aspect-ratio: 4 / 3.3;
    box-shadow: 0 24px 50px rgba(18, 58, 118, 0.14), 0 8px 20px rgba(0, 0, 0, 0.06);
    border: 5px solid #ffffff;
    background: #E2E8F0;
}

.visual-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 45%;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    display: block;
}

.visual-main-frame:hover .visual-main-img {
    transform: scale(1.04);
}

.visual-frame-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 65%, rgba(14, 36, 26, 0.40) 100%);
    pointer-events: none;
}

/* Inset Co-Photo showing architecture */
.visual-inset-frame {
    position: absolute;
    bottom: 0px;
    left: -12px;
    width: 175px;
    height: 130px;
    border-radius: 18px;
    overflow: hidden;
    border: 4px solid #ffffff;
    box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
    z-index: 3;
    background: #ffffff;
    transition: transform 0.3s ease;
}

.visual-inset-frame:hover {
    transform: translateY(-3px) scale(1.02);
}

.visual-inset-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.visual-inset-frame .inset-caption {
    position: absolute;
    bottom: 6px;
    left: 8px;
    right: 8px;
    background: rgba(14, 36, 26, 0.75);
    color: #ffffff;
    font-size: 0.72rem;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

/* Floating Glassmorphic Contextual Cards */
.hero-float-card {
    position: absolute;
    z-index: 4;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 16px;
    box-shadow: 0 16px 36px rgba(18, 35, 26, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-float-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 40px rgba(18, 35, 26, 0.18);
}

/* Card 1: Mountain View */
.hero-float-card.card-view {
    top: 6px;
    left: -18px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
}

.float-card-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #E9F4EC;
    color: #12632E;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.float-card-label {
    display: block;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #718096;
    font-weight: 600;
}

.float-card-title {
    display: block;
    font-size: 0.92rem;
    color: #123A76;
    font-weight: 700;
}

/* Card 2: Price / Rating Badge */
.hero-float-card.card-pricing {
    bottom: 12px;
    right: 0px;
    padding: 14px 20px;
    text-align: left;
}

.float-card-stars {
    color: #F59E0B;
    font-size: 0.76rem;
    margin-bottom: 4px;
    display: flex;
    gap: 3px;
}

.pricing-figure {
    display: flex;
    align-items: baseline;
    gap: 4px;
    line-height: 1;
}

.price-val {
    font-size: 1.45rem;
    font-weight: 800;
    color: #12632E;
}

.price-period {
    font-size: 0.8rem;
    color: #718096;
}

.pricing-note {
    display: block;
    font-size: 0.74rem;
    color: #4A5568;
    margin-top: 4px;
    font-weight: 500;
}

/* Card 3: Experience Pill */
.hero-float-card.card-experience {
    top: -8px;
    right: 24px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 18px;
    border-radius: 9999px;
    background: #123A76;
    color: #ffffff;
    font-size: 0.82rem;
    font-weight: 600;
    box-shadow: 0 10px 24px rgba(18, 58, 118, 0.25);
    border: 2px solid #ffffff;
}

.hero-float-card.card-experience i {
    color: #F59E0B;
}

/* Responsive adjustments for editorial hero */
@media (max-width: 991px) {
    .hero-editorial {
        padding-top: calc(var(--header-h, 80px) + 24px);
        padding-bottom: 50px;
    }

    .hero-editorial-left {
        /* padding-right: 0; */
        text-align: center;
    }

    .editorial-badge {
        margin-left: auto;
        margin-right: auto;
    }

    .editorial-lead {
        margin-left: auto;
        margin-right: auto;
    }

    .editorial-perks {
        justify-content: center;
    }

    .editorial-actions {
        justify-content: center;
    }

    .editorial-trust {
        margin: 0 auto;
    }

    .visual-composition-wrapper {
        margin: 30px auto 0;
        max-width: 500px;
        padding: 16px 10px 24px;
    }

    .hero-float-card.card-view {
        left: 0px;
    }

    .visual-inset-frame {
        left: 0px;
    }
}

@media (max-width: 640px) {
    .editorial-headline {
        font-size: 2.15rem;
    }

    .editorial-actions {
        flex-direction: column;
        width: 100%;
    }

    .editorial-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .visual-composition-wrapper {
        padding: 10px 0 20px;
    }

    .visual-main-frame {
        border-radius: 20px;
    }

    .visual-inset-frame {
        width: 130px;
        height: 95px;
        bottom: -8px;
        left: -4px;
    }

    .hero-float-card.card-view {
        top: 0px;
        left: -4px;
        padding: 8px 12px;
    }

    .hero-float-card.card-pricing {
        bottom: 0px;
        right: -4px;
        padding: 10px 14px;
    }

    .hero-float-card.card-experience {
        right: 10px;
        font-size: 0.74rem;
        padding: 6px 12px;
    }
}

/* ==========================================================================
   2. MODERN EXPANDABLE GALLERY REDESIGN
   ========================================================================== */

.gallery-grid-redesign {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 28px;
}

.gallery-card {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #14281E;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    aspect-ratio: 4 / 3;
}

.gallery-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
}

.gallery-card a {
    display: block;
    width: 100%;
    height: 100%;
    position: relative;
    text-decoration: none;
    cursor: zoom-in;
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.gallery-card:hover img {
    transform: scale(1.07);
    filter: brightness(1.05);
}

.gallery-card-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(14, 36, 26, 0.85) 0%, rgba(14, 36, 26, 0.2) 50%, transparent 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: #ffffff;
    pointer-events: none;
}

.gallery-card:hover .gallery-card-overlay {
    opacity: 1;
}

.gallery-card-caption {
    font-size: 0.92rem;
    font-weight: 500;
    color: #ffffff;
    line-height: 1.4;
    transform: translateY(12px);
    transition: transform 0.35s ease;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.gallery-card:hover .gallery-card-caption {
    transform: translateY(0);
}

.gallery-card-zoom-icon {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    color: var(--mountain, #1A3628);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .gallery-card-zoom-icon {
    opacity: 1;
    transform: scale(1);
}

/* Progressive Reveal Items */
.gallery-item-extra,
.masonry-item.gallery-item-extra {
    display: none !important;
    opacity: 0;
}

.gallery-item-extra.is-revealed,
.masonry-item.gallery-item-extra.is-revealed {
    display: block !important;
    animation: galleryFadeUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes galleryFadeUp {
    from {
        opacity: 0;
        transform: translateY(28px) scale(0.96);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* View More / Show Less Button */
.gallery-action-wrapper {
    text-align: center;
    margin-top: 42px;
}

.btn-gallery-toggle {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    background: #ffffff;
    color: var(--mountain, #1A3628);
    border: 1.5px solid var(--mountain, #1A3628);
    padding: 13px 32px;
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: 9999px;
    box-shadow: 0 4px 16px rgba(26, 54, 40, 0.08);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-gallery-toggle:hover {
    background: var(--mountain, #1A3628);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(26, 54, 40, 0.22);
}

.btn-gallery-toggle .badge-count {
    background: rgba(26, 54, 40, 0.1);
    color: var(--mountain, #1A3628);
    padding: 3px 9px;
    border-radius: 9999px;
    font-size: 0.82rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-gallery-toggle:hover .badge-count {
    background: rgba(255, 255, 255, 0.25);
    color: #ffffff;
}

/* ==========================================================================
   3. RESPONSIVE DESIGN (Desktop, Tablet, Mobile)
   ========================================================================== */

/* Tablet (max-width: 991px) */
@media (max-width: 991.98px) {
    .hero-redesign {
        min-height: auto;
        padding-top: calc(var(--header-h, 76px) + 30px);
        padding-bottom: 70px;
    }

    .gallery-grid-redesign {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .hero-highlights-strip {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (max-width: 640px) */
@media (max-width: 640px) {
    .hero-redesign {
        padding-top: calc(var(--header-h, 76px) + 20px);
        padding-bottom: 60px;
    }

    .hero-badge-pill {
        font-size: 0.78rem;
        padding: 6px 14px;
        margin-bottom: 18px;
    }

    .hero-redesign h1 {
        font-size: 2.35rem;
        line-height: 1.15;
    }

    .hero-lead-redesign {
        font-size: 1.0rem;
        line-height: 1.55;
        margin-bottom: 26px;
    }

    .hero-actions-redesign {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .hero-actions-redesign .btn {
        width: 100%;
        justify-content: center;
    }

    .hero-highlights-strip {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .gallery-grid-redesign {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .btn-gallery-toggle {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
    }
}