﻿/* =========================================================
   HAJJ PACKAGES SECTION
========================================================= */

.hajj-packages-section {
    width: 100%;
    max-width: 1450px;
    margin: 0 auto;
    padding: 35px 20px 60px;
    font-family: "Poppins", Arial, sans-serif;
    box-sizing: border-box;
    overflow: hidden;
}


    /* =========================================================
   HEADING
========================================================= */

    .hajj-packages-section .packages-heading {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 15px;
        margin-bottom: 28px;
        padding: 0;
        box-sizing: border-box;
    }

        .hajj-packages-section .packages-heading span {
            display: block;
            width: 55px;
            height: 2px;
            background: #168b4b;
        }

        .hajj-packages-section .packages-heading h2 {
            margin: 0;
            padding: 0;
            color: #17365c;
            font-size: 27px;
            font-weight: 700;
            text-align: center;
        }


/* =========================================================
   CAROUSEL WRAPPER
========================================================= */

.hajj-carousel-wrapper {
    position: relative;
    width: 100%;
    padding: 0 30px;
    box-sizing: border-box;
}


/* =========================================================
   VIEWPORT
========================================================= */


.hajj-carousel-viewport {
    /*width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;*/
    /* Allow horizontal finger movement */
    /*touch-action: pan-x;
    scrollbar-width: none;
    -ms-overflow-style: none;
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    box-sizing: border-box;*/

    width: 100%;
    padding: 50px 0;
    background: #ffffff;
    overflow: hidden;
}
/*
    .hajj-carousel-viewport::-webkit-scrollbar {
        display: none;
    }

    .hajj-carousel-viewport.is-dragging {
        cursor: grabbing;
    }*/


/* =========================================================
   TRACK

   IMPORTANT:
   100% width + flex items allows exactly 4 cards
   on desktop.
========================================================= */

.hajj-carousel-track {
    width: 100%;
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 20px;
    box-sizing: border-box;
}


/* =========================================================
   CARD

   DESKTOP = 4 CARDS
========================================================= */

.hajj-package-card {
    flex: 0 0 calc((100% - 60px) / 4);
    width: calc((100% - 60px) / 4);
    min-width: calc((100% - 60px) / 4);
    min-height: 505px;
    background: #ffffff;
    border: 1px solid #e2eaf2;
    border-radius: 0 0 25px 25px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    scroll-snap-align: start;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

    .hajj-package-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.09);
    }


/* =========================================================
   TOP
========================================================= */

.hajj-card-top {
    padding: 4px 10px 0;
    box-sizing: border-box;
}


/* =========================================================
   MONTH
========================================================= */

.hajj-month-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 11px;
    background: #ff9d00;
    color: #111111;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    box-shadow: 0 4px 10px rgba(255, 157, 0, 0.18);
}


/* =========================================================
   TITLE + IMAGE
========================================================= */

.hajj-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    margin-top: 12px;
    min-height: 70px;
    box-sizing: border-box;
}

.hajj-title {
    flex: 1;
    min-width: 0;
    color: #142b48;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
}


/* MUALLIM */
.hajj-package-type {
    margin-top: 7px;
    color: #e28b16;
    font-size: 13px;
    font-weight: 700;
}


/* =========================================================
   IMAGE
========================================================= */

.hajj-package-image {
    width: 82px;
    height: 68px;
    flex: 0 0 82px;
    object-fit: cover;
    border-radius: 11px;
    display: block;
    background: #eeeeee;
}


/* =========================================================
   DURATION
========================================================= */

.hajj-duration {
    display: inline-flex;
    align-items: center;
    margin-top: 3px;
    padding: 5px 9px;
    background: #f0f3ff;
    color: #5664e8;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
}


/* =========================================================
   DIVIDER
========================================================= */

.hajj-divider {
    width: calc(100% - 20px);
    height: 1px;
    margin: 15px auto;
    background: #dce2e8;
    flex-shrink: 0;
}


/* =========================================================
   HOTELS
========================================================= */

.hajj-hotels-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 10px;
    min-height: 66px;
    box-sizing: border-box;
}

.hajj-hotel {
    min-width: 0;
}

.hajj-hotel-heading {
    margin-bottom: 7px;
    color: #93a1b3;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.hajj-hotel-name {
    color: #293b50;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.45;
}


/* =========================================================
   DEPARTURE
========================================================= */

.hajj-departure {
    padding: 0 10px;
    min-height: 62px;
}

.hajj-departure-heading {
    margin-bottom: 9px;
    color: #7d8b9c;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.3px;
}


/* =========================================================
   DATES
========================================================= */

.hajj-date-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.hajj-sold-date,
.hajj-available-date {
    position: relative;
    display: inline-flex;
    align-items: center;
    min-height: 31px;
    padding: 7px 9px 5px;
    border-radius: 7px;
    font-size: 9px;
    font-weight: 600;
    white-space: nowrap;
}

.hajj-sold-date {
    color: #394250;
    background: #fff1f3;
    border: 1px solid #ffc6cd;
}

.hajj-available-date {
    color: #394250;
    background: #ecfff6;
    border: 1px solid #9ce7c3;
}

    .hajj-sold-date span,
    .hajj-available-date span {
        position: absolute;
        top: -9px;
        left: 5px;
        padding: 2px 5px;
        border-radius: 3px;
        color: #ffffff;
        font-size: 6px;
        font-weight: 700;
        line-height: 1.2;
    }

.hajj-sold-date span {
    background: #f04b67;
}

.hajj-available-date span {
    background: #13b87a;
}


/* =========================================================
   UPGRADE
========================================================= */

.hajj-upgrade {
    margin: 0 10px;
    padding: 8px 10px;
    background: #ffcb55;
    color: #594514;
    border-radius: 7px;
    font-size: 9px;
    font-weight: 600;
    line-height: 1.3;
    box-sizing: border-box;
}


/* =========================================================
   FOOTER
========================================================= */

.hajj-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    padding: 0 10px 12px;
    margin-top: auto;
    box-sizing: border-box;
}


/* =========================================================
   PRICE
========================================================= */

.hajj-price-area {
    flex: 1;
    min-width: 0;
}

.hajj-starting {
    color: #9aa8b9;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.hajj-price {
    margin-top: 3px;
    color: #07965d;
    font-size: 21px;
    font-weight: 800;
    line-height: 1.1;
    white-space: nowrap;
}

.hajj-per-person {
    margin-top: 3px;
    color: #9aaabd;
    font-size: 8px;
    font-weight: 500;
}


/* =========================================================
   BUTTONS
========================================================= */

.hajj-buttons {
    width: 115px;
    flex: 0 0 115px;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.hajj-view-btn,
.hajj-book-btn {
    width: 100%;
    height: 36px;
    border-radius: 10px;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.hajj-view-btn {
    background: #ffffff;
    color: #168b4b;
    border: 1px solid #168b4b;
}

    .hajj-view-btn:hover {
        background: #168b4b;
        color: #ffffff;
    }

    .hajj-view-btn span {
        margin-left: 3px;
        font-size: 14px;
    }

.hajj-book-btn {
    background: #0960ee;
    color: #ffffff;
    border: 1px solid #0960ee;
}

    .hajj-book-btn:hover {
        background: #034fc9;
        border-color: #034fc9;
    }


/* =========================================================
   ARROWS
========================================================= */

.hajj-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #dce4ee;
    border-radius: 50%;
    background: #ffffff;
    color: #1460d9;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    font-size: 21px;
    line-height: 1;
    cursor: pointer;
    pointer-events: auto !important;
    user-select: none;
    -webkit-user-select: none;
    touch-action: manipulation;
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

    .hajj-carousel-arrow:hover {
        background: #1460d9;
        color: #ffffff;
    }

    .hajj-carousel-arrow:active {
        transform: translateY(-50%) scale(0.92);
    }

.hajj-arrow-left {
    left: -3px;
}

.hajj-arrow-right {
    right: -3px;
}


/* =========================================================
   TABLET
   2 CARDS
========================================================= */

@media (max-width: 1100px) {

    .hajj-package-card {
        flex: 0 0 calc((100% - 20px) / 2);
        width: calc((100% - 20px) / 2);
        min-width: calc((100% - 20px) / 2);
    }

    .hajj-title {
        font-size: 14px;
    }

    .hajj-package-image {
        width: 90px;
        height: 70px;
        flex-basis: 90px;
    }
}


/* =========================================================
   MOBILE
   1 CARD
========================================================= */

@media (max-width: 767px) {

    .hajj-packages-section {
        padding: 30px 10px 50px;
    }

        .hajj-packages-section .packages-heading {
            gap: 10px;
            margin-bottom: 25px;
        }

            .hajj-packages-section .packages-heading span {
                width: 30px;
            }

            .hajj-packages-section .packages-heading h2 {
                font-size: 21px;
            }

    .hajj-carousel-wrapper {
        padding: 0 18px;
    }

    .hajj-package-card {
        flex: 0 0 100%;
        width: 100%;
        min-width: 100%;
        min-height: 490px;
    }

    .hajj-title {
        font-size: 14px;
    }

    .hajj-package-image {
        width: 90px;
        height: 70px;
        flex-basis: 90px;
    }

    .hajj-carousel-arrow {
        width: 37px;
        height: 37px;
        font-size: 18px;
    }

    .hajj-arrow-left {
        left: -2px;
    }

    .hajj-arrow-right {
        right: -2px;
    }

    .hajj-price {
        font-size: 23px;
    }

    .hajj-buttons {
        width: 125px;
        flex-basis: 125px;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .hajj-packages-section {
        padding-left: 6px;
        padding-right: 6px;
    }

    .hajj-carousel-wrapper {
        padding: 0 17px;
    }

    .hajj-package-card {
        min-height: 500px;
    }

    .hajj-title {
        font-size: 13px;
    }

    .hajj-hotels-row {
        gap: 8px;
    }

    .hajj-hotel-name {
        font-size: 9px;
    }

    .hajj-buttons {
        width: 115px;
        flex-basis: 115px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    .hajj-card-footer {
        flex-direction: column;
        align-items: stretch;
    }

    .hajj-buttons {
        width: 100%;
        flex-basis: auto;
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .hajj-package-card {
        min-height: auto;
    }
}


/* =========================================================
   FORCE BOX SIZING
========================================================= */

.hajj-packages-section *,
.hajj-packages-section *::before,
.hajj-packages-section *::after {
    box-sizing: border-box;
}

.hajj-packages-section img {
    max-width: 100%;
}
