/* ==========================================
   LALITH TOURS AND TRAVELS
   RESPONSIVE TOUR PACKAGES
   Desktop: 3 cards
   Tablet:  2 cards
   Mobile:  1 card
   ========================================== */

* {
    box-sizing: border-box;
}

/* Main package sections */

.packages-section,
.dhanurmasa-section {
    width: 100%;
    padding: 60px 20px;
    overflow-x: clip;
}

.packages-section {
    background: #f2f8f8;
}

.dhanurmasa-section {
    background: #ffffff;
}

/* Containers */

.packages-container,
.dhanurmasa-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

/* Section headings */

.section-heading,
.packages-header,
.dhanurmasa-header {
    max-width: 800px;
    margin: 0 auto 35px;
    text-align: center;
}

.section-heading h2,
.packages-header h1,
.packages-header h2,
.dhanurmasa-header h2 {
    margin: 0 0 14px;
    color: #075F64;
    font-size: clamp(27px, 3.5vw, 40px);
    font-weight: 700;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.section-heading p,
.packages-header p,
.dhanurmasa-header p {
    margin: 0;
    color: #647579;
    font-size: 15px;
    line-height: 1.8;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 10px;
    color: #FF7867;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
}

/* ==========================================
   PACKAGE GRIDS
   Supports both classes used in your HTML
   ========================================== */

.packages-grid,
.package-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 25px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-width: 0;
}

/* ==========================================
   PACKAGE CARDS
   ========================================== */

.package-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;

    background: #ffffff;
    border: 1px solid #dceaea;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(7, 95, 100, 0.07);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}

.package-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(7, 95, 100, 0.13);
}

/* Prevent hidden filtered cards from occupying space */

.package-card[hidden] {
    display: none !important;
}

/* ==========================================
   PACKAGE IMAGES
   ========================================== */

.package-image {
    position: relative;
    display: block;
    width: 100%;
    height: 230px;
    min-width: 0;
    flex-shrink: 0;
    overflow: hidden;
    background-color: #e8f0f0;
}

/* Actual images inside package image wrappers */

.package-image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    margin: 0;
    object-fit: cover;
    object-position: center;
}

/* Dhanurmasa images */

.dhanurmasa-grid .package-image img {
    width: 100%;
    height: 100% !important;
    object-fit: cover;
}

/* ==========================================
   PACKAGE CONTENT
   ========================================== */

.package-info {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    padding: 22px;
}

.package-info h3 {
    margin: 0 0 12px;
    color: #075F64;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.4;
    overflow-wrap: anywhere;
}

.package-info p {
    margin: 0 0 18px;
    color: #647579;
    font-size: 14px;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

/* Seasonal tour badge */

.dhanurmasa-badge {
    display: inline-block;
    align-self: flex-start;
    max-width: 100%;
    margin-bottom: 12px;
    padding: 6px 10px;

    border-radius: 20px;
    background: #fff0ed;
    color: #b94f42;

    font-size: 11px;
    font-weight: 700;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

/* Special schedule note */

.dhanurmasa-note {
    padding: 10px 12px;
    border-left: 3px solid #FF7867;
    background: #fff7f5;
    color: #75463f !important;
    font-size: 13px !important;
}

/* ==========================================
   BOOKING BUTTONS
   ========================================== */

.package-bottom {
    display: flex;
    width: 100%;
    margin-top: auto;
    padding-top: 5px;
}

.package-whatsapp-btn {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;

    width: 100%;
    min-width: 0;
    min-height: 46px;
    padding: 12px 14px;

    border: 1px solid #075F64;
    border-radius: 9px;
    background: #075F64;
    color: #ffffff;

    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    overflow-wrap: anywhere;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.package-whatsapp-btn:hover {
    border-color: #FF7867;
    background: #FF7867;
    color: #ffffff;
}

.package-whatsapp-btn span:first-child {
    min-width: 0;
}

.package-btn-arrow {
    flex-shrink: 0;
    font-size: 16px;
}

/* ==========================================
   TABLET
   2 CARDS PER ROW
   ========================================== */

@media (min-width: 601px) and (max-width: 1024px) {

    .packages-section,
    .dhanurmasa-section {
        padding: 50px 22px;
    }

    .packages-grid,
    .package-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px;
    }

    .package-image {
        height: 220px;
    }

    .package-info {
        padding: 19px;
    }

    .package-info h3 {
        font-size: 20px;
    }
}

/* ==========================================
   MOBILE
   EXACTLY 1 CARD PER ROW
   ========================================== */

@media (max-width: 600px) {

    .packages-section,
    .dhanurmasa-section {
        padding: 35px 14px;
    }

    .section-heading,
    .packages-header,
    .dhanurmasa-header {
        margin-bottom: 25px;
    }

    .section-heading h2,
    .packages-header h1,
    .packages-header h2,
    .dhanurmasa-header h2 {
        font-size: 27px;
        line-height: 1.35;
    }

    .section-heading p,
    .packages-header p,
    .dhanurmasa-header p {
        font-size: 14px;
        line-height: 1.7;
    }

    /* One full-width card per row */

    .packages-grid,
    .package-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 20px;
        width: 100%;
    }

    .package-card {
        width: 100%;
        min-width: 0;
        height: auto;
        border-radius: 14px;
    }

    /* Larger image for mobile cards */

    .package-image {
        width: 100%;
        height: 220px;
    }

    .package-image img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .package-info {
        width: 100%;
        padding: 18px;
    }

    .package-info h3 {
        margin-bottom: 10px;
        font-size: 19px;
        line-height: 1.45;
    }

    .package-info p {
        margin-bottom: 15px;
        font-size: 14px;
        line-height: 1.7;
    }

    .dhanurmasa-badge {
        font-size: 11px;
    }

    .package-whatsapp-btn {
        min-height: 46px;
        padding: 12px;
        font-size: 13px;
    }
}

/* ==========================================
   SMALL MOBILE
   ========================================== */

@media (max-width: 360px) {

    .packages-section,
    .dhanurmasa-section {
        padding: 30px 10px;
    }

    .packages-grid,
    .package-grid {
        grid-template-columns: minmax(0, 1fr) !important;
        gap: 16px;
    }

    .package-image {
        height: 190px;
    }

    .package-info {
        padding: 15px;
    }

    .package-info h3 {
        font-size: 18px;
    }

    .package-info p {
        font-size: 13px;
    }
}

/* ==========================================
   ACCESSIBILITY
   ========================================== */

@media (prefers-reduced-motion: reduce) {
    .package-card,
    .package-whatsapp-btn {
        transition: none;
    }

    .package-card:hover {
        transform: none;
    }
}