/* ===============================
   PACKAGES SECTION
================================ */

.packages-section {
    width: 100%;
    padding: 90px 20px;
    background: #f7f9fc;
    overflow: hidden;
}

.packages-container {
    width: 100%;
    max-width: 1250px;
    margin: auto;
}

/* HEADING */

.packages-heading {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 50px;
}

.packages-heading span {
    display: inline-block;
    color: #d4a017;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.packages-heading h2 {
    margin: 0;
    font-size: 42px;
    color: #14213d;
    font-weight: 800;
}

.packages-heading h2 strong {
    color: #d4a017;
}

.packages-heading p {
    margin-top: 15px;
    color: #697386;
    line-height: 1.7;
    font-size: 15px;
}

/* GRID */

.packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* CARD */

.package-card {
    background: #fff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 12px 35px rgba(20, 33, 61, 0.08);
    transition: 0.35s ease;
}

.package-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 45px rgba(20, 33, 61, 0.15);
}

/* IMAGE */

.package-image {
    height: 235px;
    position: relative;
    overflow: hidden;
}

.package-image img {
    object-position: top;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.5s ease;
}

.package-card:hover .package-image img {
    transform: scale(1.08);
}

.package-badge {
    position: absolute;
    left: 15px;
    bottom: 15px;
    background: rgba(20, 33, 61, 0.92);
    color: #fff;
    padding: 8px 13px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 700;
}

/* CONTENT */

.package-content {
    padding: 20px;
}

.package-location {
    color: #d4a017;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 9px;
}

.package-content h3 {
    color: #14213d;
    font-size: 21px;
    margin: 0 0 20px;
}

.package-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.package-price {
    display: flex;
    flex-direction: column;
}

.package-price small {
    color: #8a93a3;
    font-size: 11px;
}

.package-price strong {
    color: #14213d;
    font-size: 20px;
    margin-top: 2px;
}

/* BUTTON */

.view-details-btn {
    border: none;
    background: #14213d;
    color: #fff;
    padding: 11px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    transition: 0.3s;
}

.view-details-btn:hover {
    background: #d4a017;
    color: #fff;
}


/* ===============================
   MODAL
================================ */

.package-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.package-modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 18, 35, 0.78);
    backdrop-filter: blur(5px);
}

.package-modal-box {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 900px;
    max-height: 92vh;
    overflow-y: auto;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.3);
    animation: modalOpen 0.3s ease;
}

@keyframes modalOpen {

    from {
        opacity: 0;
        transform: translateY(30px) scale(0.97);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    right: 18px;
    top: 18px;
    z-index: 5;
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    color: #fff;
    font-size: 25px;
    cursor: pointer;
}

/* MODAL IMAGE */

.modal-image {
    width: 100%;
    height: 300px;
}

.modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* MODAL CONTENT */

.modal-content {
    padding: 30px;
}

.modal-location {
    color: #d4a017;
    font-weight: 700;
    font-size: 14px;
}

.modal-content h2 {
    color: #14213d;
    font-size: 32px;
    margin: 8px 0 15px;
}

.modal-meta {
    display: flex;
    gap: 25px;
    padding-bottom: 22px;
    border-bottom: 1px solid #e8ebf0;
}

.modal-meta span {
    color: #687286;
    font-size: 14px;
}

.modal-meta b {
    color: #14213d;
}

.modal-section {
    margin-top: 25px;
}

.modal-section h3 {
    color: #14213d;
    font-size: 18px;
    margin-bottom: 9px;
}

.modal-section p {
    color: #697386;
    font-size: 14px;
    line-height: 1.7;
}

/* FEATURES */

.trip-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 25px;
}

.trip-feature {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #f7f9fc;
    border-radius: 12px;
}

.trip-feature > span {
    font-size: 24px;
}

.trip-feature small {
    display: block;
    color: #8a93a3;
    font-size: 11px;
    margin-bottom: 4px;
}

.trip-feature strong {
    display: block;
    color: #14213d;
    font-size: 13px;
    line-height: 1.4;
}

/* INCLUSION COLUMNS */

.modal-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e8ebf0;
}

.modal-columns h3 {
    font-size: 17px;
}

.included-title {
    color: #15803d;
}

.excluded-title {
    color: #dc2626;
}

.modal-columns ul {
    padding: 0;
    margin: 12px 0 0;
    list-style: none;
}

.modal-columns li {
    color: #697386;
    font-size: 13px;
    margin-bottom: 9px;
    line-height: 1.4;
}

.modal-columns li::before {
    content: "•";
    margin-right: 8px;
}

/* BOOK */

.modal-book {
    margin-top: 30px;
    padding: 20px;
    background: #14213d;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.modal-book small {
    display: block;
    color: #b8c0ce;
    font-size: 11px;
}

.modal-book strong {
    display: block;
    color: #fff;
    font-size: 25px;
    margin-top: 3px;
}

.book-now-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 25px;
    background: #d4a017;
    color: #fff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 800;
    transition: 0.3s;
}

.book-now-btn:hover {
    background: #b8890f;
    transform: translateY(-2px);
}


/* ===============================
   RESPONSIVE
================================ */

@media (max-width: 1000px) {

    .packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 700px) {

    .packages-section {
        padding: 65px 15px;
    }

    .packages-heading h2 {
        font-size: 32px;
    }

    .packages-grid {
        grid-template-columns: 1fr;
        max-width: 450px;
        margin: auto;
    }

    .package-image {
        height: 220px;
    }

    .package-modal {
        padding: 10px;
    }

    .package-modal-box {
        max-height: 95vh;
        border-radius: 15px;
    }

    .modal-image {
        height: 210px;
    }

    .modal-content {
        padding: 22px 18px;
    }

    .modal-content h2 {
        font-size: 25px;
    }

    .trip-features {
        grid-template-columns: 1fr;
    }

    .modal-columns {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .modal-book {
        flex-direction: column;
        align-items: stretch;
    }

    .book-now-btn {
        width: 100%;
    }

}

@media (max-width: 400px) {

    .package-bottom {
        flex-direction: column;
        align-items: stretch;
    }

    .view-details-btn {
        width: 100%;
    }

    .modal-meta {
        flex-direction: column;
        gap: 8px;
    }

}