/* ============================================================
   Maa Pithad Dham — How to Reach Page
   Namespace: htr-
   Design system vars inherited from custom.css
   ============================================================ */

/* ── Banner ─────────────────────────────────────────────── */
.how-to-reach .kd-about-trust-content {
    background: linear-gradient(135deg, #FBF4E9 0%, #f5e6cc 60%, #eedabf 100%);
    border-bottom: 3px solid var(--mp-gold, #C99A3F);
    padding: 52px 0 42px;
    position: relative;
}

.how-to-reach .kd-about-trust-content::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 80% 50%, rgba(200,150,60,0.08) 0%, transparent 60%);
    pointer-events: none;
}

.how-to-reach .kd-about-trust-heading h1 {
    font-family: var(--mp-font-display);
    color: var(--mp-maroon, #6E1E1E);
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 400;
    letter-spacing: 0.03em;
    margin-bottom: 10px;
}

.how-to-reach .kd-breadcrumb {
    color: var(--mp-ink, #2A1A12);
    opacity: 0.65;
    font-size: 0.9rem;
    margin-top: 8px;
}

.how-to-reach .kd-breadcrumb a {
    color: var(--mp-saffron, #E8820C);
    text-decoration: none;
}

.how-to-reach .kd-breadcrumb a:hover {
    text-decoration: underline;
}

/* ── Section eyebrow placed above the h1 ────────────────── */
.htr-banner-eyebrow {
    font-family: var(--mp-font-display);
    font-size: 0.8rem;
    color: var(--mp-saffron, #E8820C);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 10px;
    display: block;
}

/* ── Transport mode heading ──────────────────────────────── */
.htr-section-title {
    font-family: var(--mp-font-display);
    color: var(--mp-maroon, #6E1E1E);
    font-size: clamp(1.4rem, 2.5vw, 1.9rem);
    font-weight: 400;
    margin-bottom: 28px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--mp-line, rgba(110,30,30,0.12));
    position: relative;
}

.htr-section-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 56px;
    height: 2px;
    background: var(--mp-saffron, #E8820C);
}

/* ── FAQ / Transport Cards ───────────────────────────────── */
#faqs.faqs {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Wrapper card around each toggle */
.htr-transport-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 14px 34px -18px rgba(42, 12, 12, 0.30);
    overflow: hidden;
    border: 1px solid var(--mp-line, rgba(110,30,30,0.12));
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.htr-transport-card:hover {
    box-shadow: 0 20px 40px -14px rgba(110, 30, 30, 0.22);
    transform: translateY(-4px);
}

/* Restyle the existing .togglet (accordion header) */
.htr-transport-card .togglet {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 22px;
    background: var(--mp-cream, #FBF4E9);
    font-family: var(--mp-font-display);
    font-size: 1.1rem;
    color: var(--mp-maroon, #6E1E1E);
    cursor: pointer;
    border-bottom: 1px solid var(--mp-line, rgba(110,30,30,0.12));
    transition: background 0.2s ease;
    user-select: none;
}

.htr-transport-card .togglet:hover {
    background: #f2e4cc;
}

/* Mode icon */
.htr-transport-card .togglet img {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    filter: hue-rotate(0deg) saturate(1.4);
}

/* Saffron accent bar on left of active header */
.htr-transport-card .togglet.active,
.htr-transport-card .toggle.active .togglet {
    border-left: 4px solid var(--mp-saffron, #E8820C);
    padding-left: 18px;
}

/* Chevron indicator */
.htr-transport-card .togglet::after {
    content: '▾';
    margin-left: auto;
    font-size: 1rem;
    color: var(--mp-saffron, #E8820C);
    transition: transform 0.25s ease;
    flex-shrink: 0;
}

.htr-transport-card.htr-open .togglet::after {
    transform: rotate(180deg);
}

/* Accordion body */
.htr-transport-card .togglec {
    padding: 24px 22px;
    background: #fff;
}

.htr-transport-card .togglec img {
    width: 100%;
    border-radius: 10px;
    object-fit: cover;
    aspect-ratio: 4/3;
}

.htr-transport-card .togglec p {
    color: var(--mp-ink, #2A1A12);
    line-height: 1.75;
    margin: 0;
    font-size: 0.97rem;
}

/* ── Sidebar ─────────────────────────────────────────────── */
.htr-sidebar-card {
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 14px 34px -18px rgba(42, 12, 12, 0.25);
    border: 1px solid var(--mp-line, rgba(110,30,30,0.12));
    overflow: hidden;
    padding: 0 0 22px;
}

/* Sidebar section headings */
.htr-sidebar-title {
    font-family: var(--mp-font-display);
    color: var(--mp-maroon, #6E1E1E);
    font-size: 1.05rem;
    font-weight: 400;
    padding: 16px 18px 12px;
    border-bottom: 1px solid var(--mp-line, rgba(110,30,30,0.12));
    margin: 0;
}

/* Map iframe */
.htr-map-wrap {
    width: 100%;
    overflow: hidden;
}

.htr-map-wrap iframe {
    display: block;
    width: 100% !important;
    max-width: 100%;
    height: 240px;
    border: 0;
}

/* Get Directions button */
.htr-directions-btn-wrap {
    padding: 14px 18px 0;
}

/* Override old .button.button-rounded — mp-btn already handles most */
.mp-btn.mp-btn-primary.htr-directions-btn {
    width: 100%;
    display: block;
    text-align: center;
    font-size: 0.9rem;
    padding: 10px 18px;
}

/* ── Pilgrim's Route Distance Chart ─────────────────────── */
.htr-distance-section {
    padding: 18px 18px 8px;
}

.htr-distance-eyebrow {
    font-family: var(--mp-font-display);
    font-size: 0.78rem;
    color: var(--mp-maroon, #6E1E1E);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    display: block;
    margin-bottom: 16px;
}

.htr-distance-chart {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.htr-distance-row {
    display: grid;
    grid-template-columns: 90px 1fr 46px;
    align-items: center;
    gap: 8px;
}

.htr-city-label {
    font-size: 0.82rem;
    color: var(--mp-ink, #2A1A12);
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.htr-bar-track {
    background: rgba(110, 30, 30, 0.08);
    border-radius: 100px;
    height: 8px;
    overflow: hidden;
}

.htr-bar-fill {
    height: 100%;
    border-radius: 100px;
    background: linear-gradient(90deg, var(--mp-saffron, #E8820C) 0%, var(--mp-saffron-deep, #C76A05) 100%);
    transition: width 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Highlight the farthest city */
.htr-distance-row.htr-row-max .htr-bar-fill {
    background: linear-gradient(90deg, var(--mp-maroon, #6E1E1E) 0%, #9b3030 100%);
}

.htr-km-label {
    font-size: 0.78rem;
    color: var(--mp-saffron-deep, #C76A05);
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.htr-distance-row.htr-row-max .htr-km-label {
    color: var(--mp-maroon, #6E1E1E);
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 991px) {
    .how-to-reach .kd-about-trust-content {
        padding: 36px 0 28px;
    }

    .htr-sidebar-card {
        margin-top: 36px;
    }

    .htr-transport-card .togglec img {
        margin-bottom: 16px;
    }

    .htr-distance-row {
        grid-template-columns: 84px 1fr 42px;
        gap: 6px;
    }
}

@media (max-width: 576px) {
    .htr-distance-row {
        grid-template-columns: 76px 1fr 38px;
        gap: 5px;
    }

    .htr-city-label {
        font-size: 0.77rem;
    }

    .htr-km-label {
        font-size: 0.73rem;
    }
}
