@import url("./kedarnath-temple.css");

/* Trimbakeshwar approved-style bridge */
@media (max-width: 767.98px) {
    html:has(body.trimbakeshwar-page),
    body.trimbakeshwar-page {
        scroll-padding-top: 140px;
    }

    body.trimbakeshwar-page.has-floating-darshan-btn {
        padding-bottom: 0 !important;
    }

    body.trimbakeshwar-page :is(
        section[id],
        .temple-section[id],
        .detail-section[id],
        .section-anchor,
        [id^="trimbakeshwar-"],
        #darshan-process,
        #timings,
        #how-to-reach,
        #pooja-booking,
        #tips,
        #faq
    ) {
        scroll-margin-top: 140px !important;
    }

    body[data-temple-slug="trimbakeshwar"] .scrollToTop {
        width: 42px;
        height: 42px;
        right: 14px;
        bottom: calc(84px + env(safe-area-inset-bottom));
        line-height: 42px;
        opacity: 0.85;
    }

    body[data-temple-slug="trimbakeshwar"].has-floating-darshan-btn .scrollToTop {
        right: 14px;
        margin-bottom: 0;
    }

    body[data-temple-slug="trimbakeshwar"] .event.event-single.temple-detail-page > .container > .section__wrapper {
        padding-bottom: calc(24px + 90px + env(safe-area-inset-bottom));
    }

    body.trimbakeshwar-page .temple-footer {
        margin-bottom: 0 !important;
    }

    body.trimbakeshwar-page .temple-footer__top {
        padding-bottom: 34px;
    }

    body.trimbakeshwar-page .temple-footer__bottom {
        padding: 18px 0 calc(56px + env(safe-area-inset-bottom));
        margin-bottom: 0 !important;
    }

    body.trimbakeshwar-page .temple-footer__bottom-bar {
        gap: 12px;
    }

    /* Keep compact labels intact instead of breaking single words like ACCESS. */
    body.trimbakeshwar-page .temple-keyinfo-card .temple-info-row {
        gap: 12px;
    }

    body.trimbakeshwar-page .temple-keyinfo-card .temple-info-row span {
        flex: 0 0 clamp(92px, 36%, 108px);
        min-width: 92px;
        word-break: normal;
        overflow-wrap: normal;
        hyphens: none;
        white-space: normal;
    }

    body.trimbakeshwar-page .temple-keyinfo-card .temple-info-row strong {
        flex: 1 1 0;
        min-width: 0;
    }
}

body.trimbakeshwar-page .temple-keyinfo-card .temple-info-row span {
    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

body.trimbakeshwar-page .temple-keyinfo-card .temple-info-row strong {
    min-width: 0;
}

@media (min-width: 992px) and (max-width: 1399.98px) {
    body.trimbakeshwar-page .temple-detail__dress-section .temple-detail__guidance-grid {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(20px, 1.8vw, 24px);
        margin: 0;
    }

    body.trimbakeshwar-page .temple-detail__dress-section .temple-detail__guidance-grid > [class*="col-"] {
        width: auto;
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }

    body.trimbakeshwar-page .temple-detail__dress-section .temple-detail__guidance-grid > [class*="col-"]:last-child {
        grid-column: 1 / -1;
        width: min(100%, 520px);
        justify-self: center;
    }

    body.trimbakeshwar-page .temple-detail__season-section .row.g-4 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: clamp(20px, 1.8vw, 24px);
        margin: 0;
    }

    body.trimbakeshwar-page .temple-detail__season-section .row.g-4 > [class*="col-"] {
        width: auto;
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (min-width: 1400px) {
    body.trimbakeshwar-page .temple-detail__dress-section .temple-detail__guidance-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: clamp(20px, 1.6vw, 24px);
        margin: 0;
    }

    body.trimbakeshwar-page .temple-detail__dress-section .temple-detail__guidance-grid > [class*="col-"] {
        width: auto;
        max-width: none;
        padding-left: 0;
        padding-right: 0;
    }
}

@media (min-width: 992px) {
    body.trimbakeshwar-page .temple-detail-page :is(
        .premium-reach-section .reach-step-intro,
        .premium-reach-section .reach-mini-content p,
        .premium-reach-section .reach-mini-content span,
        .reach-bottom-note span:last-child,
        .reach-bottom-highlight span:last-child,
        .reach-master-note-left div,
        .temple-detail__timings-section .temple-detail__timings-status-note,
        .temple-detail__timings-section .temple-detail__timings-highlight-meta,
        .temple-detail__timings-section .temple-detail__timings-row-label,
        .temple-detail__timings-section .temple-detail__timings-row-value,
        .temple-detail__booking-section .temple-detail__booking-card p:not(.temple-detail__info-label),
        .temple-detail__booking-section .temple-detail__booking-list span,
        .temple-detail__booking-section .temple-detail__booking-list strong,
        .temple-detail__circuit-section .temple-detail__nearby-reason,
        .temple-detail__dress-section .temple-detail__guidance-card p:not(.temple-detail__info-label),
        .temple-detail__dress-section .temple-detail__guidance-list li span:last-child,
        .temple-detail__stay-card p:not(.temple-detail__info-label),
        .temple-detail__official-card p:not(.temple-detail__info-label)
    ) {
        color: var(--kedarnath-text);
        font-size: clamp(1rem, 0.99rem + 0.05vw, 1.015rem);
        line-height: 1.72;
    }

    body.trimbakeshwar-page :is(
        .temple-detail__timings-panel,
        .temple-detail__booking-card,
        .temple-detail__guidance-card,
        .temple-detail__stay-card,
        .temple-detail__official-card
    ) {
        padding: 31px 28px 27px;
    }

    body.trimbakeshwar-page .reach-step-card {
        padding: 36px 22px 22px;
    }

    body.trimbakeshwar-page .reach-mini-card {
        padding: 18px 16px;
    }

    body.trimbakeshwar-page .reach-mini-content h4 {
        font-size: 1.06rem;
        line-height: 1.34;
    }

    body.trimbakeshwar-page .temple-detail__timings-panel h5 {
        font-size: clamp(1.22rem, 1.08rem + 0.24vw, 1.4rem);
    }

    body.trimbakeshwar-page :is(
        .temple-detail__timings-row-label,
        .temple-detail__timings-row-value
    ) {
        font-size: 1.03rem;
        line-height: 1.58;
    }

    body.trimbakeshwar-page .temple-detail__nearby-body {
        padding: 24px 22px 22px;
    }

    body.trimbakeshwar-page .temple-detail__nearby-body h5 {
        font-size: 1.1rem;
        line-height: 1.36;
    }
}

@media (max-width: 767.98px) {
    body[data-temple-slug="trimbakeshwar"] .scrollToTop {
        right: 14px;
        bottom: calc(84px + env(safe-area-inset-bottom));
        width: 42px;
        height: 42px;
        line-height: 42px;
        opacity: 0.85;
    }

    body[data-temple-slug="trimbakeshwar"].has-floating-darshan-btn .scrollToTop {
        right: 14px;
        bottom: calc(84px + env(safe-area-inset-bottom));
        margin-bottom: 0;
    }
}

@media (min-width: 1200px) {
    body.trimbakeshwar-page .header__bottom.header__bottom-fiexd.site-header-enter,
    body.trimbakeshwar-page .header__bottom.header__bottom-fiexd.site-header-sticky.site-header-enter {
        -webkit-animation: none !important;
        animation: none !important;
        transform: translate3d(0, 0, 0) !important;
        will-change: auto;
    }
}
