/* Chardham Yatra Packages Tier Selection Section - Horizontal Catalog Banners */

:root {
    --std-color: #cd7f32;
    --dlx-color: #fd5056;
    --prm-color: #b8860b;
}

.chardham-tiers-section {
    padding: 80px 0;
    background-color: #ffffff;
    position: relative;
}

/* Container width & typography matching page style */
.chardham-tiers-section .section-title {
    margin-bottom: 50px;
}

.chardham-tiers-section .section-title h2 {
    font-size: 32px;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 15px;
}

.chardham-tiers-section .section-title p {
    font-size: 18px;
    color: #606f7b;
    line-height: 1.6;
}

/* Catalog Wrapper */
.cd-catalog-wrapper {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
}

/* Catalog Banner Row */
.cd-catalog-banner {
    display: flex;
    align-items: stretch;
    border: 3px solid transparent;
    border-radius: 24px;
    background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(135deg, #fd5056 0%, #d4af37 100%);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.03);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    text-decoration: none;
    color: inherit;
}

.cd-catalog-banner:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(253, 80, 86, 0.1);
    background-image: linear-gradient(#ffffff, #ffffff), linear-gradient(135deg, #d4af37 0%, #fd5056 100%);
}

/* Specific Accent Variable per Tier */
.cd-catalog-banner.tier-standard {
    --tier-accent: var(--std-color);
    --tier-bg-light: rgba(205, 127, 50, 0.04);
}
.cd-catalog-banner.tier-deluxe {
    --tier-accent: var(--dlx-color);
    --tier-bg-light: rgba(253, 80, 86, 0.04);
}
.cd-catalog-banner.tier-premium {
    --tier-accent: var(--prm-color);
    --tier-bg-light: rgba(184, 134, 11, 0.04);
}

/* Column 1: Image Wrap */
.cd-cat-image-wrap {
    flex: 0 0 280px;
    width: 280px;
    position: relative;
    overflow: hidden;
    min-height: 240px;
}

.cd-cat-image {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.cd-catalog-banner:hover .cd-cat-image {
    transform: scale(1.06);
}

/* Column 2: Details Content */
.cd-cat-details {
    flex: 1;
    padding: 35px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0; /* Prevents overflow pushing action column */
}

.cd-cat-label {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 8px;
    color: var(--tier-accent);
}

.cd-cat-details h3 {
    font-size: 1.6rem;
    font-weight: 800;
    color: #1a202c;
    margin: 0 0 10px;
}

.cd-cat-desc {
    font-size: 0.95rem;
    color: #718096;
    line-height: 1.6;
    margin-bottom: 20px;
    max-width: 580px;
}

/* Feature tags / horizontal badges */
.cd-cat-tags {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 4px;

    /* Hide scrollbars but keep scrolling working */
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
    -webkit-overflow-scrolling: touch; /* Momentum scroll on iOS */
}

.cd-cat-tags::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.cd-cat-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 30px;
    background-color: #f7f9fc;
    color: #4a5568;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
    flex: 0 0 auto; /* Prevent shrinking */
    white-space: nowrap; /* Prevent inner text wrapping */
}

.cd-cat-tag i {
    color: var(--tier-accent);
    font-size: 0.9rem;
}

.cd-catalog-banner:hover .cd-cat-tag {
    background-color: #ffffff;
    border-color: #e2e8f0;
}

/* Column 3: Actions & Pricing Panel */
.cd-cat-actions {
    flex: 0 0 260px;
    width: 260px;
    padding: 35px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-left: 1px solid #eef2f6;
    background-color: #fafbfc;
    transition: background-color 0.4s ease;
    text-align: center;
}

.cd-catalog-banner:hover .cd-cat-actions {
    background-color: var(--tier-bg-light);
}

.cd-cat-price-label {
    font-size: 0.8rem;
    color: #718096;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

.cd-cat-price {
    font-size: 1.85rem;
    font-weight: 900;
    color: #1a202c;
    margin-bottom: 20px;
    white-space: nowrap; /* Prevents wrapping of / person */
}

.cd-cat-price small {
    font-size: 0.85rem;
    font-weight: 500;
    color: #718096;
}

/* Pill CTA Button */
.cd-cat-btn {
    width: 100%;
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 800;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: all 0.35s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    color: #ffffff;
}

.tier-standard .cd-cat-btn {
    background-color: var(--std-color);
    border: 1.5px solid var(--std-color);
}

.tier-deluxe .cd-cat-btn {
    background-color: var(--dlx-color);
    border: 1.5px solid var(--dlx-color);
}

.tier-premium .cd-cat-btn {
    background-color: var(--prm-color);
    border: 1.5px solid var(--prm-color);
}

.cd-cat-btn i {
    font-size: 0.95rem;
    transition: transform 0.3s ease;
}

/* Hover effects inside button */
.cd-catalog-banner.tier-standard:hover .cd-cat-btn {
    background-color: #b36b24; /* darker bronze */
    border-color: #b36b24;
    box-shadow: 0 6px 20px rgba(205, 127, 50, 0.45);
}

.cd-catalog-banner.tier-deluxe:hover .cd-cat-btn {
    background-color: #e03b41; /* darker red */
    border-color: #e03b41;
    box-shadow: 0 6px 20px rgba(253, 80, 86, 0.45);
}

.cd-catalog-banner.tier-premium:hover .cd-cat-btn {
    background-color: #966f07; /* darker gold */
    border-color: #966f07;
    box-shadow: 0 6px 20px rgba(184, 134, 11, 0.45);
}

.cd-catalog-banner:hover .cd-cat-btn i {
    transform: translateX(4px);
}

/* Responsive Media Queries */

/* Collapse to Vertical Layout on Mobile & Tablet */
@media (max-width: 991px) {
    .cd-catalog-banner {
        flex-direction: column;
    }

    .cd-cat-image-wrap {
        flex: none;
        width: 100%;
        height: 240px;
    }

    .cd-cat-details {
        padding: 30px 25px;
    }

    .cd-cat-actions {
        flex: none;
        width: 100%;
        border-left: none;
        border-top: 1px solid #eef2f6;
        padding: 25px;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        text-align: left;
    }

    .cd-cat-price {
        margin-bottom: 0;
        font-size: 1.6rem;
    }

    .cd-cat-btn {
        width: auto;
        padding: 10px 24px;
    }
}

@media (max-width: 575px) {
    .chardham-tiers-section {
        padding: 50px 0;
    }

    .chardham-tiers-section .section-title h2 {
        font-size: 26px;
    }

    .cd-cat-details h3 {
        font-size: 1.4rem;
    }

    .cd-cat-actions {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }

    .cd-cat-btn {
        width: 100%;
    }
}
