/* ========== PACKAGES PAGE CSS ========== */

/* AP Hero - Common styles for packages page banner */
.ap-hero {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    padding: 75px 20px 60px;
}
.ap-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: apHeroZoom 12s ease-in-out infinite alternate;
}
@keyframes apHeroZoom { from { transform: scale(1.05); } to { transform: scale(1.12); } }
.ap-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(160deg, rgba(10,61,145,0.85) 0%, rgba(6,19,37,0.92) 60%, rgba(243,105,32,0.4) 100%);
}
.ap-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    max-width: 1000px;
}
.ap-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(247,186,0,0.18);
    border: 1px solid rgba(247,186,0,0.55);
    color: #f7ba00;
    padding: 7px 20px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 22px;
    backdrop-filter: blur(8px);
}
.ap-hero-content h1 {
    font-size: clamp(2.8rem, 6vw, 4.5rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.1;
    margin-bottom: 18px;
    text-shadow: 0 4px 20px rgba(0,0,0,0.4);
}
.ap-highlight { color: var(--primary-orange); }
.ap-hero-content p {
    font-size: clamp(1rem, 2vw, 1.2rem);
    color: rgba(255,255,255,0.85);
    max-width: 850px;
    margin: 0 auto 0;
    line-height: 1.7;
}

/* Packages Section */
.pk-section {
    padding: 85px 5%;
    background-color: var(--bg-light);
}
.pk-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Premium Filter Buttons */
.pk-filter-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}
.pk-filter-btn {
    border: none;
    outline: none;
    background: #ffffff;
    color: #555555;
    padding: 10px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0,0,0,0.03);
    border: 1px solid #eef2f6;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.pk-filter-btn:hover {
    color: var(--primary-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(10,61,145,0.08);
}
.pk-filter-btn.active {
    background: linear-gradient(135deg, var(--primary-blue), #174baf);
    color: #ffffff;
    border-color: transparent;
    box-shadow: 0 8px 25px rgba(10,61,145,0.25);
}

/* Packages Grid */
.pk-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* Package Card */
.pk-card {
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid #f0f4f9;
    box-shadow: 0 10px 30px rgba(10,61,145,0.03);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}
.pk-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10,61,145,0.08);
}

/* Card Image Area */
.pk-card-image-wrapper {
    position: relative;
    height: 190px;
    overflow: hidden;
}
.pk-card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}
.pk-card:hover .pk-card-image-wrapper img {
    transform: scale(1.08);
}

/* New Category Badge at Top Left */
.pk-badge-category {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #0A3D91;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    padding: 6px 14px;
    border-radius: 50px;
    box-shadow: 0 4px 12px rgba(10,61,145,0.3);
}

/* Card Content Area */
.pk-card-content {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Card Meta Section (Duration & Rating) */
.pk-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}
.pk-duration {
    color: #555555;
    font-size: 13.5px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.pk-duration i {
    color: #f36920;
    font-size: 14px;
}
.pk-rating {
    color: #222222;
    font-size: 13.5px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.pk-rating i {
    color: #f7ba00;
    font-size: 14px;
}

/* Title Styles */
.pk-card-title {
    font-size: 20px;
    font-weight: 800;
    color: #0A3D91;
    line-height: 1.35;
    margin: 8px 0 12px;
}
.pk-card-title span {
    transition: color 0.3s;
}
.pk-card:hover .pk-card-title span {
    color: #174baf;
}

/* Description text */
.pk-card-desc {
    font-size: 13.5px;
    color: #666666;
    line-height: 1.6;
    min-height: 65px;
    margin-bottom: 15px;
}

/* Thin Divider Line */
.pk-divider {
    height: 1px;
    background-color: #f2f5fa;
    margin: 15px 0;
}

/* Footer Section */
.pk-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}
.pk-price-box {
    display: flex;
    flex-direction: column;
}
.pk-price-label {
    font-size: 10px;
    font-weight: 700;
    color: #888888;
    letter-spacing: 0.8px;
    margin-bottom: 3px;
}
.pk-price-val {
    font-size: 20px;
    font-weight: 800;
    color: #f36920;
    line-height: 1;
}

/* Enquire Outline Button */
.btn-pk-enquire {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #F7BA00;
    color: #F7BA00;
    background: transparent;
    padding: 8px 24px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}
.btn-pk-enquire:hover {
    background-color: #F7BA00;
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(247, 186, 0, 0.25);
    transform: translateY(-2px);
}

/* Filter Animation */
.pk-card.fade-out {
    opacity: 0;
    transform: scale(0.9);
    pointer-events: none;
}
.pk-card.fade-in {
    animation: pkFadeIn 0.4s ease forwards;
}
@keyframes pkFadeIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .pk-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    .pk-section {
        padding: 60px 4%;
    }
}
@media (max-width: 768px) {
    .ap-hero {
        min-height: auto !important;
        padding: 25px 5% 20px !important;
    }
    .ap-hero-content {
        padding: 0;
        max-width: 100%;
        width: 100%;
    }
    .ap-hero-badge {
        font-size: 10px;
        padding: 6px 14px;
        margin-bottom: 8px;
        white-space: nowrap;
        max-width: 90%;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .ap-hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
        margin-bottom: 15px;
    }
    .ap-hero-content p {
        font-size: 13.5px;
        line-height: 1.6;
        margin-bottom: 0;
        max-width: 100%;
        padding: 0 10px;
    }
    .pk-section {
        padding: 35px 4%;
    }
    .pk-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .pk-filter-container {
        gap: 6px;
        margin-bottom: 20px;
    }
    .pk-filter-btn {
        padding: 6px 12px;
        font-size: 11.5px;
    }
    .pk-card {
        border-radius: 20px;
        box-shadow: 0 12px 30px rgba(10, 61, 145, 0.08);
        border-top: 4px solid #F7BA00;
        border-left: 1px solid #f0f4f9;
        border-right: 1px solid #f0f4f9;
        border-bottom: 1px solid #f0f4f9;
    }
    .pk-card-image-wrapper {
        height: 190px;
    }
    .pk-card-content {
        padding: 20px;
    }
    .pk-card-meta {
        margin-bottom: 6px;
    }
    .pk-duration, .pk-rating {
        font-size: 12px;
    }
    .pk-card-title {
        font-size: 18px;
        margin: 4px 0 8px;
    }
    .pk-card-desc {
        font-size: 13px;
        line-height: 1.5;
        min-height: unset; /* No alignment needed on 1-column mobile layout */
        margin-bottom: 12px;
    }
    .pk-divider {
        margin: 12px 0;
    }
    .btn-pk-enquire {
        background: linear-gradient(135deg, #F7BA00, #F36920);
        color: #ffffff;
        border: none;
        padding: 8px 20px;
        font-size: 13px;
        box-shadow: 0 6px 15px rgba(247, 186, 0, 0.35);
    }
    .pk-price-val {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .pk-section {
        padding: 25px 3%;
    }
    .pk-filter-container {
        gap: 5px;
        margin-bottom: 15px;
    }
    .pk-filter-btn {
        padding: 5px 10px;
        font-size: 10.5px;
    }
    .pk-card-image-wrapper {
        height: 160px;
    }
    .pk-card-content {
        padding: 14px;
    }
    .pk-card-title {
        font-size: 15px;
    }
    .pk-card-desc {
        font-size: 12px;
    }
}
