﻿/* =========================================================
   MAIN SECTION
========================================================= */

.umrah-packages-section {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 35px 24px 50px;
    box-sizing: border-box;
    overflow: hidden;
    font-family: "Poppins", Arial, sans-serif;
    margin-top: -84px;
}


/* =========================================================
   HEADER
========================================================= */

.packages-header {
    text-align: center;
    margin-bottom: 28px;
}

.packages-year {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 18px;
    background: #edf4ff;
    color: #1769e0;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}

.packages-header h2 {
    margin: 0;
    color: #10203b;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(28px, 3vw, 42px);
    font-weight: 500;
    letter-spacing: .2px;
    font-size:32px;
}

.packages-header p {
    margin: 8px auto 0;
    max-width: 720px;
    color: #687589;
    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   TABS
========================================================= */

.package-tabs-wrapper {
    width: 100%;
    margin-bottom: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

    .package-tabs-wrapper::-webkit-scrollbar {
        display: none;
    }

.package-tabs {
    width: max-content;
    min-width: 100%;
    display: grid;
    grid-template-columns: repeat(6, minmax(150px, 1fr));
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 7px 24px rgba(25, 48, 80, .08);
    padding: 5px;
}


/* TAB */

.package-tab {
    position: relative;
    min-height: 68px;
    border: 0;
    background: transparent;
    color: #6d7d96;
    padding: 12px 10px;
    border-radius: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 14px;
    font-weight: 600;
    transition: background .25s ease, color .25s ease, transform .2s ease;
}

    .package-tab i {
        font-size: 19px;
    }

    .package-tab:hover {
        color: #1769e0;
    }

    .package-tab.active {
        background: #e5f0ff;
        color: #1769e0;
    }

        .package-tab.active::before {
            content: "";
            position: absolute;
            top: 0;
            left: 12px;
            right: 12px;
            height: 4px;
            background: #1769e0;
            border-radius: 0 0 5px 5px;
        }


/* =========================================================
   CAROUSEL
========================================================= */

.packages-carousel-container {
    position: relative;
    width: 100%;
    padding: 0 0;
}


/* =========================================================
   VIEWPORT
========================================================= */

.packages-viewport {
    width: 100%;
    overflow: hidden;
    padding: 0 0 8px;
}


/* =========================================================
   TRACK
========================================================= */

.packages-track {
    display: flex;
    gap: 20px;
    width: 100%;
    transform: translate3d(0, 0, 0);
    transition: transform .55s cubic-bezier(.4, 0, .2, 1);
    will-change: transform;
    align-items: stretch;
}


/* =========================================================
   CARD
========================================================= */

.package-card {
    /*
       4 CARDS ON DESKTOP

       viewport width
       - 3 gaps
       divided by 4
    */

    flex: 0 0 calc((100% - 60px) / 4);
    min-width: 0;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e2e8ef;
    border-radius: 0 0 26px 26px;
    box-shadow: 0 7px 18px rgba(24, 43, 69, .07);
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease;
    margin-top: 5px;
}

    .package-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 12px 25px rgba(24, 43, 69, .11);
    }


/* =========================================================
   CARD INNER
========================================================= */

.package-card-inner {
    height: 100%;
    min-height: 585px;
    padding: 18px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    margin-top:-42px;
}


/* =========================================================
   MONTH
========================================================= */

.package-month-row {
    margin-bottom: 12px;
}

.package-month {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #ff9d00;
    color: #111827;
    padding: 7px 13px;
    border-radius: 9px;
    font-size: 12px;
    font-weight: 800;
}

    .package-month i {
        font-size: 12px;
    }


/* =========================================================
   MAIN INFO
========================================================= */

.package-main-info {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 108px;
    gap: 12px;
    align-items: start;
    min-height: 142px;
}

.package-title-area {
    min-width: 0;
}

.package-title {
    margin: 5px 0 8px;
    color: #253744;
    font-size: 11px;
    line-height: 1.25;
    font-weight: 700;
    word-break: normal;
}

.package-muallim {
    color: #ec8300;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 9px;
}

.package-days {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 12px;
    border-radius: 8px;
    background: #eef3ff;
    color: #526ce5;
    font-size: 13px;
    font-weight: 600;
}

    .package-days i {
        color: #ff9500;
    }


/* =========================================================
   IMAGE
========================================================= */

.package-image {
    width: 108px;
    height: 82px;
    object-fit: cover;
    border-radius: 13px;
    box-shadow: 0 5px 12px rgba(0, 0, 0, .12);
}


/* =========================================================
   DIVIDER
========================================================= */

.package-divider {
    height: 1px;
    width: 100%;
    background: #dce3ea;
    margin: 14px 0;
}


/* =========================================================
   HOTELS
========================================================= */

.hotel-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    min-height: 145px;
}

.hotel-column {
    min-width: 0;
    text-align: left;
}

.hotel-heading {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #8a9aae;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    line-height: 1.35;
    margin-bottom: 9px;
    margin-top:-30px;
}

    .hotel-heading i {
        color: #304b66;
    }

.hotel-column:nth-child(2)
.hotel-heading i {
    color: #219653;
}

.hotel-name {
    color: #304052;
    font-size: 12px;
    line-height: 1.45;
    min-height: 35px;
}

.hotel-stars {
    margin-top: 4px;
    color: #25354b;
    font-size: 11px;
    letter-spacing: 1px;
}

.hotel-extra {
    color: #536173;
    font-size: 11px;
    line-height: 1.45;
}


/* =========================================================
   DEPARTURE
========================================================= */

.departure-area {
    min-height: 118px;
    margin-top: -87px;
}

.departure-label {
    color: #8090a4;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 8px;
}

    .departure-label::before {
        content: "";
        display: inline-block;
        width: 6px;
        height: 6px;
        background: #718096;
        margin-right: 5px;
    }

.departure-status {
    display: table;
    margin: 0 auto 5px;
    padding: 4px 8px;
    border-radius: 4px;
    color: white;
    font-size: 9px;
    font-weight: 800;
}

    .departure-status.available {
        background: #12a66a;
    }

    .departure-status.soldout {
        background: #fa526a;
    }

.departure-date {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 8px;
    text-align: center;
    border: 1px solid;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 600;
    margin-bottom: 11px;
}

    .departure-date.available {
        color: #405c54;
        border-color: #6edbb5;
        background: #f2fff9;
    }

    .departure-date.soldout {
        color: #59636e;
        border-color: #ffb8c2;
        background: #fff5f6;
    }


/* =========================================================
   UPGRADE
========================================================= */

.upgrade-bar {
    width: 100%;
    box-sizing: border-box;
    padding: 9px 10px;
    border-radius: 8px;
    background: #ffc84b;
    color: #604b17;
    font-size: 10px;
    line-height: 1.3;
    font-weight: 700;
    text-align: center;
}


/* =========================================================
   BOTTOM SECTION
========================================================= */

/*
   IMPORTANT FIX:
   Price gets its own column.
   Buttons get their own fixed-width column.
*/

.package-bottom {
    margin-top: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 132px;
    gap: 12px;
    align-items: end;
    min-height: 92px;
}


/* =========================================================
   PRICE
========================================================= */

.starting-from {
    min-width: 0;
    overflow: hidden;
}

.starting-label {
    color: #8492a5;
    font-size: 9px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 3px;
}

.package-price {
    color: #079b68;
    font-size: clamp(22px, 2vw, 28px);
    line-height: 1.1;
    font-weight: 800;
    white-space: nowrap;
    letter-spacing: -.4px;
    font-size:21px;
}

.price-person {
    color: #97a2b0;
    font-size: 9px;
    margin-top: 4px;
}


/* =========================================================
   BUTTONS
========================================================= */

.package-actions {
    width: 132px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: stretch;
}

.package-btn {
    width: 132px;
    min-height: 43px;
    padding: 9px 8px;
    box-sizing: border-box;
    border-radius: 10px;
    cursor: pointer;
    font-family: "Poppins", Arial, sans-serif;
    font-size: 11px;
    font-weight: 700;
    transition: transform .2s ease, box-shadow .2s ease;
}

    .package-btn:hover {
        transform: translateY(-1px);
    }


/* VIEW DETAILS */

.view-details-btn {
    background: #ffffff;
    color: #079b68;
    border: 1px solid #16ad76;
}

    .view-details-btn span {
        margin-left: 5px;
        font-size: 14px;
    }


/* BOOK NOW */

.book-now-btn {
    background: #1764e8;
    color: #ffffff;
    border: 1px solid #1764e8;
    box-shadow: 0 5px 12px rgba(23, 100, 232, .18);
}


/* =========================================================
   ARROWS
========================================================= */

.carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 1px solid #e0e7ef;
    background: #ffffff;
    color: #1769e0;
    box-shadow: 0 5px 18px rgba(27, 48, 76, .13);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 21px;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}

    .carousel-arrow:hover {
        background: #1769e0;
        color: #ffffff;
        transform: translateY(-50%) scale(1.05);
    }

.carousel-prev {
    left: -22px;
}

.carousel-next {
    right: -22px;
}


/* =========================================================
   DOTS
========================================================= */

.package-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
}

.package-dot {
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #cbd5e1;
    cursor: pointer;
    transition: width .25s ease, background .25s ease;
}

    .package-dot.active {
        width: 22px;
        border-radius: 10px;
        background: #1769e0;
    }


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1200px) {

    .umrah-packages-section {
        padding-left: 42px;
        padding-right: 42px;
    }

    .package-tabs {
        grid-template-columns: repeat(3, minmax(190px, 1fr));
    }

    .package-card {
        /*
           2 CARDS
        */

        flex-basis: calc((100% - 20px) / 2);
    }

    .carousel-prev {
        left: -35px;
    }

    .carousel-next {
        right: -35px;
    }
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .umrah-packages-section {
        padding: 25px 16px 40px;
    }


    .packages-header {
        margin-bottom: 20px;
    }

        .packages-header h2 {
            font-size: 27px;
            line-height: 1.25;
        }

        .packages-header p {
            font-size: 13px;
            line-height: 1.5;
        }


    /* -----------------------------------------
       MOBILE TABS
    ----------------------------------------- */

    .package-tabs-wrapper {
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .package-tabs {
        grid-template-columns: repeat(6, 170px);
        min-width: auto;
    }

    .package-tab {
        min-height: 58px;
        font-size: 12px;
    }


    /* -----------------------------------------
       ONE CARD
    ----------------------------------------- */

    .package-card {
        flex-basis: 100%;
        width: 100%;
    }


    .package-card-inner {
        min-height: 620px;
        padding: 17px;
    }


    /* -----------------------------------------
       CARD HEADER
    ----------------------------------------- */

    .package-main-info {
        grid-template-columns: minmax(0, 1fr) 100px;
        min-height: 130px;
    }

    .package-title {
        font-size: 20px;
    }

    .package-image {
        width: 100px;
        height: 78px;
    }


    /* -----------------------------------------
       HOTELS
    ----------------------------------------- */

    .hotel-columns {
        gap: 13px;
    }


    /* -----------------------------------------
       BOTTOM FIX
    ----------------------------------------- */

    .package-bottom {
        grid-template-columns: minmax(0, 1fr) 125px;
        gap: 8px;
    }

    .package-actions {
        width: 125px;
    }

    .package-btn {
        width: 125px;
        font-size: 10px;
    }

    .package-price {
        font-size: 23px;
    }


    /* -----------------------------------------
       ARROWS
    ----------------------------------------- */

    .carousel-arrow {
        width: 38px;
        height: 38px;
        font-size: 17px;
    }

    .carousel-prev {
        left: -8px;
    }

    .carousel-next {
        right: -8px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 390px) {

    .package-card-inner {
        padding: 14px;
        min-height: 630px;
    }

    .package-main-info {
        grid-template-columns: minmax(0, 1fr) 88px;
    }

    .package-image {
        width: 88px;
        height: 72px;
    }

    .package-title {
        font-size: 18px;
    }

    .package-bottom {
        grid-template-columns: minmax(0, 1fr) 116px;
    }

    .package-actions,
    .package-btn {
        width: 116px;
    }

    .package-price {
        font-size: 20px;
    }

    .package-btn {
        font-size: 9px;
        padding-left: 5px;
        padding-right: 5px;
    }
}

/* =========================================
   BOOK NOW MODAL
========================================= */

.book-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

    .book-modal.active {
        display: flex;
    }

.book-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(3px);
}

.book-modal-content {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 500px;
    background: #fff;
    border-radius: 10px;
    padding: 28px 30px 32px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.20);
    animation: bookModalShow 0.25s ease;
}

@keyframes bookModalShow {
    from {
        opacity: 0;
        transform: translateY(25px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Close button */

.book-modal-close {
    position: absolute;
    right: 16px;
    top: 14px;
    width: 35px;
    height: 35px;
    border: 0;
    background: transparent;
    font-size: 32px;
    font-weight: 300;
    line-height: 1;
    color: #888;
    cursor: pointer;
    transition: 0.2s ease;
}

    .book-modal-close:hover {
        color: #222;
        transform: rotate(90deg);
    }

/* Price */

.book-price-section {
    text-align: right;
    margin-bottom: 26px;
    padding-right: 5px;
}

.book-price-label {
    font-size: 20px;
    font-weight: 600;
    color: #14518c;
    margin-bottom: 3px;
}

.book-price {
    color: #07983c;
    font-size: 28px;
    font-weight: 700;
}

    .book-price small {
        font-size: 15px;
        font-weight: 500;
        color: #174e82;
    }

/* Inputs */

.book-input {
    width: 100%;
    height: 56px;
    border: 1px solid #d7d7d7;
    border-radius: 9px;
    padding: 0 18px;
    margin-bottom: 21px;
    font-size: 15px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

    .book-input::placeholder {
        color: #aaa;
    }

    .book-input:focus {
        border-color: #1262a3;
        box-shadow: 0 0 0 2px rgba(18, 98, 163, 0.08);
    }

/* Package field */

#popupPackage {
    background: #fafafa;
    color: #444;
}

/* Privacy */

.privacy-text {
    margin: 2px 0 20px;
    font-size: 15px;
    color: #333;
}

/* Submit */

.submit-enquiry-btn {
    width: 100%;
    height: 57px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient( 90deg, #ffc52c, #ffdb28 );
    color: #006fc9;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
}

    .submit-enquiry-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 7px 18px rgba(255, 197, 44, 0.3);
    }

/* Prevent page scroll */

body.book-modal-open {
    overflow: hidden;
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 576px) {

    .book-modal {
        padding: 12px;
    }

    .book-modal-content {
        padding: 25px 20px 25px;
        border-radius: 9px;
    }

    .book-price-section {
        margin-bottom: 22px;
    }

    .book-price-label {
        font-size: 17px;
    }

    .book-price {
        font-size: 25px;
    }

        .book-price small {
            font-size: 13px;
        }

    .book-input {
        height: 53px;
        margin-bottom: 17px;
    }

    .privacy-text {
        font-size: 14px;
    }

    .submit-enquiry-btn {
        height: 54px;
        font-size: 17px;
    }
}
