/**
 * Tour Packages Template CSS - ENHANCED VERSION
 * Features: Image gallery, 300px images, card expansion, bigger buttons
 */

/* Root Variables */
:root {
    --primary-purple: #edc43f;
    --secondary-purple: #f5d563;
    --orange-accent: #ff6b35;
    --muted-text: #4b3b5a;
    --text-dark: #1b1430;
    --card-shadow: 0 10px 40px rgba(237, 196, 63, 0.15);
    --transition-smooth: all 0.3s ease;
}

/* Main Wrapper */
.hjn-tour-packages-wrapper {
    font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    background: linear-gradient(180deg, #fdfbf7, #faf7f0);
    min-height: 100vh;
    padding: 20px 0;
    position: relative;
}

.hjn-tour-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 18px;
}

/* Mobile: Reduced padding for more space */
@media (max-width: 767px) {
    .hjn-tour-container {
        padding: 0 10px;
    }
}

/* Wider container for 4-column layout on large screens */
@media (min-width: 1024px) {
    .hjn-tour-container {
        max-width: 1400px;
    }
}

@media (min-width: 1536px) {
    .hjn-tour-container {
        max-width: 1600px;
    }
}

/* Header Section */
.hjn-tour-header {
    text-align: center;
    margin-bottom: 40px;
}

.hjn-tour-main-title {
    font-weight: 900;
    color: var(--primary-purple);
    font-size: 24px;
    margin: 0 0 10px 0;
    line-height: 1.2;
}

.hjn-tour-description {
    margin: 0 0 25px 0;
    color: #6b5d47;
    font-size: 14px;
    line-height: 1.6;
}

/* Filter Buttons */
.hjn-filter-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

.hjn-filter-btn {
    padding: 12px 24px;
    border: 2px solid transparent;
    border-radius: 50px;
    background: #fff;
    color: var(--primary-purple);
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 12px rgba(237, 196, 63, 0.12);
    position: relative;
    overflow: hidden;
}

.hjn-filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--primary-purple), var(--secondary-purple));
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.hjn-filter-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(237, 196, 63, 0.18);
}

.hjn-filter-btn.active {
    background: linear-gradient(90deg, var(--primary-purple), var(--secondary-purple));
    color: #fff;
    border-color: var(--primary-purple);
    box-shadow: 0 8px 24px rgba(237, 196, 63, 0.28);
}

.hjn-filter-btn.active::before {
    opacity: 1;
}

/* Packages Grid - Mobile First */
.hjn-packages-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 30px;
    overflow: visible;
    align-items: start; /* CRITICAL: Prevents cards from stretching to match tallest card in row */
}

/* Larger gap for tablet and above */
@media (min-width: 768px) {
    .hjn-packages-grid {
        gap: 20px;
    }
}

/* Tablet: 3 columns */
@media (min-width: 768px) {
    .hjn-packages-grid {
        grid-template-columns: repeat(3, 1fr);
        align-items: start; /* Keeps cards at their natural height */
    }
}

/* Desktop (PC/Laptop): 4 columns */
@media (min-width: 1024px) {
    .hjn-packages-grid {
        grid-template-columns: repeat(4, 1fr);
        align-items: start; /* Keeps cards at their natural height */
        gap: 18px; /* Slightly reduced gap for 4 columns */
    }
}

/* Package Card */
.hjn-package-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    opacity: 1;
    cursor: pointer;
    z-index: 1;
    min-height: 500px;
    width: 100%;
}

.hjn-package-card:hover {
    box-shadow: 0 15px 50px rgba(237, 196, 63, 0.25);
}

/* Expanded Card State - Highlighted when modal is open */
.hjn-package-card.expanded {
    position: relative;
    z-index: 998;
    box-shadow: 0 0 0 3px var(--primary-purple), 0 25px 70px rgba(237, 196, 63, 0.3);
    transition: all 0.4s ease;
    transform: scale(1.02);
}

/* Show full itinerary when expanded */
.hjn-package-card.expanded .hjn-package-itinerary {
    max-height: none;
}

.hjn-package-card.expanded .hjn-card-close {
    display: block;
}

/* Mobile */
@media (max-width: 767px) {
    .hjn-package-card.expanded {
        min-height: 600px;
    }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 1023px) {
    .hjn-package-card.expanded {
        min-height: 620px;
    }
}

.hjn-package-card.expanded .hjn-package-itinerary {
    max-height: none;
    overflow: visible;
}

.hjn-package-card.expanded .hjn-card-close {
    display: block;
}

/* Close Button */
.hjn-card-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    background: rgba(220, 53, 69, 0.95);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    display: none;
    z-index: 1000;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.hjn-card-close:hover {
    background: #c82333;
    transform: rotate(90deg);
}

/* Package Media - Reduced height for compact cards */
.hjn-package-media {
    position: relative;
    height: 220px; /* Reduced from 300px to match reference proportions */
    overflow: hidden;
}

/* Mobile: Adjusted height for smaller screens */
@media (max-width: 767px) {
    .hjn-package-card {
        min-height: 400px;
    }

    .hjn-package-media {
        height: 160px;
    }

    .hjn-package-title {
        font-size: 13px;
        line-height: 1.2;
    }

    .hjn-package-duration {
        font-size: 10px;
        padding: 4px 7px;
    }

    .hjn-package-short-desc {
        font-size: 11px;
        line-height: 1.4;
    }

    .hjn-package-tag {
        font-size: 9px;
        padding: 4px 7px;
    }

    .hjn-package-itinerary {
        font-size: 11px;
        line-height: 1.4;
        max-height: 70px;
    }

    .hjn-package-price {
        font-size: 9px;
    }

    .hjn-package-cta {
        font-size: 6px;
        padding: 4px 8px;
        letter-spacing: 0;
        font-weight: 900;
        text-transform: uppercase;
        white-space: normal;
        line-height: 1.2;
        text-align: center;
        word-break: break-word;
    }

    .hjn-package-body {
        padding: 8px 10px;
        gap: 6px;
    }

    /* Smaller slider controls on mobile */
    .hjn-slider-prev,
    .hjn-slider-next {
        width: 28px;
        height: 28px;
        font-size: 18px;
    }

    .hjn-slider-prev {
        left: 5px;
    }

    .hjn-slider-next {
        right: 5px;
    }

    .hjn-dot {
        width: 7px;
        height: 7px;
    }

    .hjn-dot.active {
        width: 9px;
        height: 9px;
    }

    .hjn-package-badge {
        padding: 5px 10px;
        font-size: 10px;
    }
}

/* Image Slider */
.hjn-image-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hjn-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.hjn-slide.active {
    opacity: 1;
    pointer-events: auto;
}

.hjn-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.9s ease;
}

.hjn-package-card:hover .hjn-slide.active img {
    transform: scale(1.08);
}

/* Slider Navigation Buttons */
.hjn-slider-prev,
.hjn-slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-purple);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0;
}

.hjn-package-card:hover .hjn-slider-prev,
.hjn-package-card:hover .hjn-slider-next {
    opacity: 1;
}

.hjn-slider-prev:hover,
.hjn-slider-next:hover {
    background: var(--primary-purple);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.hjn-slider-prev {
    left: 10px;
}

.hjn-slider-next {
    right: 10px;
}

/* Slider Dots */
.hjn-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hjn-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.hjn-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.hjn-dot.active {
    background: #fff;
    width: 12px;
    height: 12px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Badge */
.hjn-package-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 8px 14px;
    border-radius: 999px;
    font-weight: 900;
    font-size: 12px;
    color: #fff;
    background: linear-gradient(90deg, #00b4d8, #0096c7);
    box-shadow: 0 12px 36px rgba(0, 180, 216, 0.35);
    animation: floatBadge 4s ease-in-out infinite;
    z-index: 10;
}

@keyframes floatBadge {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

/* Animated Gradient Bar */
.hjn-package-bar {
    height: 6px;
    width: 100%;
    background: linear-gradient(90deg, var(--primary-purple), var(--secondary-purple));
    background-size: 200% 100%;
    animation: slideGrad 3.2s linear infinite;
}

@keyframes slideGrad {
    0% { background-position: 0%; }
    100% { background-position: 200%; }
}

/* Package Body */
.hjn-package-body {
    padding: 14px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Mobile: Reduced padding */
@media (max-width: 767px) {
    .hjn-package-body {
        padding: 10px 12px;
        gap: 8px;
    }
}

/* When card is taller, distribute content evenly */
.hjn-package-card {
    background: #fff;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--card-shadow);
    display: flex;
    flex-direction: column;
    transition: all 0.4s ease;
    opacity: 1;
    cursor: pointer;
    z-index: 1;
    min-height: 500px;
}

.hjn-package-top {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.hjn-package-title {
    font-size: 16px;
    font-weight: 900;
    margin: 0;
    color: #2a1636;
    flex: 1;
    line-height: 1.3;
}

.hjn-package-duration {
    font-weight: 800;
    font-size: 12px;
    padding: 6px 10px;
    border-radius: 8px;
    background: linear-gradient(90deg, #fff4d9, #fffbeb);
    color: #b8860b;
    white-space: nowrap;
    border: 1px solid rgba(237, 196, 63, 0.3);
}

.hjn-package-short-desc {
    margin: 0;
    color: var(--muted-text);
    font-size: 13px;
    line-height: 1.5;
}

/* Mobile: Limit description to 2 lines with ellipsis */
@media (max-width: 767px) {
    .hjn-package-card:not(.expanded) .hjn-package-short-desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Tags */
.hjn-package-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.hjn-package-tag {
    font-size: 11px;
    padding: 6px 10px;
    border-radius: 8px;
    background: linear-gradient(90deg, #f8f4ff, #fff);
    border: 1px solid rgba(120, 80, 200, 0.08);
    color: var(--muted-text);
}

/* Mobile: Show only first 2 tags side by side */
@media (max-width: 767px) {
    .hjn-package-tags {
        gap: 6px;
    }

    .hjn-package-card:not(.expanded) .hjn-package-tag:nth-child(n+3) {
        display: none;
    }

    .hjn-package-card:not(.expanded) .hjn-package-tags {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

/* Modal: Always show all tags */
.hjn-modal-card .hjn-package-tag {
    display: inline-block !important;
}

/* Itinerary - Shows 3 lines normally, all when expanded */
.hjn-package-itinerary {
    font-size: 13px;
    color: #2c2138;
    margin: 0;
    padding: 0 0 0 20px;
    line-height: 1.5;
    max-height: 90px;
    overflow: hidden;
    position: relative;
    transition: max-height 0.4s ease;
}

.hjn-package-itinerary li {
    margin-bottom: 6px;
}

/* Add fade effect at bottom when collapsed */
.hjn-package-card:not(.expanded) .hjn-package-itinerary::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 30px;
    background: linear-gradient(to bottom, transparent, #fff);
}

.hjn-package-card.expanded .hjn-package-itinerary::after {
    display: none;
}

/* Footer with Book Now button - Narrower footer with gradient */
.hjn-package-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: linear-gradient(90deg, var(--primary-purple), var(--secondary-purple));
    padding: 14px 18px;
    border-radius: 12px;
    margin: 14px 58px; /* Desktop: narrow footer */
    box-shadow: 0 4px 12px rgba(237, 196, 63, 0.28);
}

/* Responsive footer margins */
@media (max-width: 767px) {
    .hjn-package-footer {
        margin: 8px 8px; /* Mobile: reduced side margins for better fit */
        padding: 8px 10px;
        gap: 4px;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    .hjn-package-price {
        font-size: 10px;
        flex-shrink: 0;
        white-space: nowrap;
        text-align: center;
    }

    .hjn-package-cta {
        font-size: 9px;
        padding: 5px 12px;
        flex-shrink: 0;
        min-width: auto;
        letter-spacing: 0;
        font-weight: 900;
        text-transform: uppercase;
        white-space: nowrap;
        text-align: center;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hjn-package-footer {
        margin: 12px 30px; /* Tablet: medium margin */
    }
}

.hjn-package-price {
    font-weight: 900;
    color: #fff;
    font-size: 19.4px; /* Reduced by 3% from 20px (20 * 0.97 = 19.4) */
    margin: 0;
}

/* Book Now Button - Orange background */
.hjn-package-cta {
    padding: 11px 22px;
    border-radius: 10px;
    background: var(--orange-accent);
    color: #fff;
    text-decoration: none;
    font-weight: 900;
    font-size: 13.58px; /* Reduced by 3% from 14px (14 * 0.97 = 13.58) */
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
    transition: var(--transition-smooth);
    display: inline-block;
    white-space: nowrap;
}

.hjn-package-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.45);
    background: #ff5722;
    color: #fff;
    text-decoration: none;
}

/* Decorative Plane Icon */
.hjn-package-plane {
    position: absolute;
    width: 44px;
    height: 44px;
    right: 12px;
    top: 180px; /* Adjusted for 220px image height */
    opacity: 0.7;
    pointer-events: none;
    animation: planeMove 6s linear infinite;
}

@keyframes planeMove {
    0%, 100% { transform: translateX(-6px) rotate(-8deg); }
    50% { transform: translateX(6px) rotate(8deg); }
}

/* No Packages Message */
.hjn-no-packages {
    text-align: center;
    font-size: 16px;
    color: var(--muted-text);
    padding: 40px 20px;
    grid-column: 1 / -1;
}

/* Responsive Adjustments */
@media (min-width: 640px) {
    .hjn-tour-main-title {
        font-size: 32px;
    }
    
    .hjn-tour-description {
        font-size: 15px;
    }
    
    .hjn-filter-btn {
        font-size: 15px;
        padding: 13px 28px;
    }
    
    .hjn-package-title {
        font-size: 17px;
    }
    
    .hjn-package-short-desc {
        font-size: 14px;
    }
    
    .hjn-package-tag {
        font-size: 12px;
    }
    
    .hjn-package-price {
        font-size: 21.34px; /* Reduced by 3% from 22px (22 * 0.97 = 21.34) */
    }
    
    .hjn-package-cta {
        font-size: 14.55px; /* Reduced by 3% from 15px (15 * 0.97 = 14.55) */
    }
}

@media (min-width: 1024px) {
    .hjn-tour-main-title {
        font-size: 36px;
    }
    
    .hjn-tour-description {
        font-size: 16px;
    }
}

/* Focus States for Accessibility */
.hjn-filter-btn:focus,
.hjn-package-cta:focus {
    outline: 3px solid var(--secondary-purple);
    outline-offset: 2px;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* ===========================
   HORIZONTAL POPUP MODAL
   =========================== */

/* Modal Overlay - Dark background */
.hjn-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.hjn-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Side Modal - Horizontal expansion from card */
.hjn-side-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scaleX(0.3);
    width: 85%;
    max-width: 800px;
    max-height: 85vh;
    background: transparent;
    z-index: 9999;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow-y: auto;
    box-shadow: none;
    border-radius: 16px;
    opacity: 0;
    visibility: hidden;
    padding: 0;
}

.hjn-side-modal.active {
    transform: translate(-50%, -50%) scaleX(1);
    opacity: 1;
    visibility: visible;
}

/* Modal Close Button */
.hjn-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #ff4757, #ff6348);
    color: #fff;
    border: none;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    z-index: 10000;
    transition: all 0.3s ease;
    box-shadow: 0 3px 10px rgba(255, 71, 87, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hjn-modal-close:hover {
    transform: rotate(90deg) scale(1.1);
    background: linear-gradient(135deg, #ff6348, #ff4757);
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.6);
}

/* Modal Content */
.hjn-modal-content {
    padding: 15px;
    position: relative;
}

@media (max-width: 767px) {
    .hjn-modal-content {
        padding: 5px;
    }
}

/* Modal Card - Full card design inside modal */
.hjn-modal-card {
    background: #fff;
    border-radius: 16px;
    overflow: visible;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    position: relative;
    padding-bottom: 80px;
}

/* Modal footer sticky at bottom on mobile */
@media (max-width: 767px) {
    .hjn-modal-card .hjn-package-footer {
        position: sticky;
        bottom: 0;
        z-index: 100;
        margin: 0;
        border-radius: 0;
        width: 100%;
    }
}

/* PC Modal: Compact footer in bottom right corner */
@media (min-width: 768px) {
    .hjn-modal-card .hjn-package-footer {
        position: absolute;
        bottom: 20px;
        right: 20px;
        width: auto;
        margin: 0;
        border-radius: 12px;
        padding: 12px 16px;
    }
}

/* Remove arrow since modal is centered now */

/* Full itinerary display in modal */
.hjn-modal-card .hjn-package-itinerary {
    max-height: none !important;
    overflow: visible !important;
}

.hjn-modal-card .hjn-package-itinerary::after {
    display: none !important;
}

/* Fix image slider in modal */
.hjn-modal-card .hjn-package-media {
    position: relative;
    height: 300px;
    overflow: hidden;
}

@media (max-width: 767px) {
    .hjn-modal-card .hjn-package-media {
        height: 180px;
    }
}

.hjn-modal-card .hjn-image-slider {
    position: relative;
    width: 100%;
    height: 100%;
}

.hjn-modal-card .hjn-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
}

.hjn-modal-card .hjn-slide.active {
    opacity: 1 !important;
    z-index: 1;
}

.hjn-modal-card .hjn-slide:not(.active) {
    opacity: 0 !important;
    z-index: 0;
}

.hjn-modal-card .hjn-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Slider controls in modal - always visible */
.hjn-modal-card .hjn-slider-prev,
.hjn-modal-card .hjn-slider-next {
    opacity: 1;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary-purple);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.hjn-modal-card .hjn-slider-prev:hover,
.hjn-modal-card .hjn-slider-next:hover {
    background: var(--primary-purple);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.hjn-modal-card .hjn-slider-prev {
    left: 10px;
}

.hjn-modal-card .hjn-slider-next {
    right: 10px;
}

/* Slider dots in modal */
.hjn-modal-card .hjn-slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.hjn-modal-card .hjn-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.hjn-modal-card .hjn-dot:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: scale(1.2);
}

.hjn-modal-card .hjn-dot.active {
    background: #fff;
    width: 12px;
    height: 12px;
    box-shadow: 0 0 8px rgba(255, 255, 255, 0.6);
}

/* Responsive Modal */
@media (max-width: 640px) {
    .hjn-side-modal {
        /* Width set by JavaScript to match card */
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .hjn-side-modal {
        /* Width set by JavaScript to match card */
    }
}

/* Loading State */
.hjn-package-card[style*="display: none"] {
    pointer-events: none;
}

/* ===========================
   CUSTOM ENQUIRY CTA SECTION
   =========================== */

.hjn-cta-section {
    margin-top: 60px;
    padding: 50px 40px;
    background: linear-gradient(135deg, var(--primary-purple), var(--secondary-purple));
    border-radius: 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(237, 196, 63, 0.3);
}

.hjn-cta-content {
    position: relative;
    z-index: 2;
}

.hjn-cta-icon {
    width: 90px;
    height: 90px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    color: #fff;
    animation: floatCta 4s ease-in-out infinite;
}

@keyframes floatCta {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.hjn-cta-title {
    font-size: 28px;
    font-weight: 900;
    color: #fff;
    margin: 0 0 15px 0;
    line-height: 1.3;
}

.hjn-cta-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0 auto 30px;
    max-width: 500px;
    line-height: 1.6;
}

.hjn-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 40px;
    background: var(--orange-accent);
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 17px;
    font-weight: 800;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.4);
}

.hjn-cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.5);
    background: #ff5722;
    color: #fff;
    text-decoration: none;
}

.hjn-cta-button svg {
    transition: transform 0.3s ease;
}

.hjn-cta-button:hover svg {
    transform: translateX(5px);
}

.hjn-cta-decoration {
    position: absolute;
    right: -50px;
    bottom: -50px;
    opacity: 0.5;
    pointer-events: none;
    animation: rotateSlow 20s linear infinite;
}

@keyframes rotateSlow {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* CTA Responsive */
@media (max-width: 767px) {
    .hjn-cta-section {
        margin-top: 40px;
        padding: 35px 25px;
        border-radius: 16px;
    }

    .hjn-cta-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 20px;
    }

    .hjn-cta-icon svg {
        width: 35px;
        height: 35px;
    }

    .hjn-cta-title {
        font-size: 22px;
    }

    .hjn-cta-description {
        font-size: 14px;
        margin-bottom: 25px;
    }

    .hjn-cta-button {
        padding: 14px 30px;
        font-size: 15px;
        width: 100%;
        justify-content: center;
    }

    .hjn-cta-decoration {
        display: none;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .hjn-cta-section {
        margin-top: 50px;
        padding: 45px 35px;
    }
}

/* Print Styles */
@media print {
    .hjn-filter-buttons {
        display: none;
    }
    
    .hjn-package-card {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    
    .hjn-package-card.expanded {
        transform: none !important;
    }
}