:root {
    --primary-color: #022b42;
    /* Deep ocean blue */
    --accent-color: #00b4d8;
    /* Vibrant cyan */
    --accent-glow: rgba(0, 180, 216, 0.4);
    --text-main: #1a202c;
    --text-light: #718096;
    --bg-color: #f7fafc;
    --bg-white: #ffffff;

    /* Premium Glassmorphism variables */
    --glass-bg: rgba(255, 255, 255, 0.85);
    --glass-border: rgba(255, 255, 255, 0.6);
    --glass-shadow: 0 8px 32px 0 rgba(2, 43, 66, 0.08);

    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --border-radius-sm: 8px;

    --transition-fast: all 0.2s ease-out;
    --transition-smooth: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.packages-custom-page-wrapper * {
    box-sizing: border-box;
}

.packages-custom-page-wrapper {
    font-family: 'Inter', sans-serif;
    color: var(--text-main);
    line-height: 1.6;
}

.packages-custom-page-wrapper h1,
.packages-custom-page-wrapper h2,
.packages-custom-page-wrapper h3,
.packages-custom-page-wrapper h4,
.packages-custom-page-wrapper h5,
.packages-custom-page-wrapper h6 {
    font-family: 'Playfair Display', serif;
    color: var(--primary-color);
    font-weight: 700;
}

/* Header Styles */
.main-header {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--glass-border);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo h1 {
    font-size: 2rem;
    letter-spacing: 1px;
    background: linear-gradient(45deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.logo span {
    display: block;
    font-size: 0.75rem;
    font-family: 'Inter', sans-serif;
    color: var(--text-light);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-weight: 600;
}

.top-nav a {
    text-decoration: none;
    color: var(--text-main);
    font-weight: 600;
    font-size: 0.95rem;
    margin: 0 1.5rem;
    position: relative;
    transition: var(--transition-fast);
}

.top-nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent-color);
    transition: var(--transition-fast);
}

.top-nav a:hover::after,
.top-nav a.active::after {
    width: 100%;
}

.top-nav a:hover,
.top-nav a.active {
    color: var(--accent-color);
}

.btn-quote {
    background: linear-gradient(135deg, var(--primary-color), #0a4061);
    color: var(--bg-white);
    border: none;
    padding: 0.9rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(2, 43, 66, 0.3);
    transition: var(--transition-smooth);
}

.btn-quote:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(2, 43, 66, 0.4);
}

/* Main Layout container */
.pkg-container {
    display: flex;
    max-width: 1500px;
    margin: 3rem auto;
    padding: 0 2rem;
    gap: 3rem;
    align-items: flex-start;
}

/* Sidebar Styles (Glassmorphism) */
.sidebar {
    width: 300px;
    flex-shrink: 0;
    background: var(--glass-bg);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    padding: 2rem 1.5rem;
    box-shadow: var(--glass-shadow);
    position: sticky;
    top: 100px;
    /* Sticks slightly below header */
}

.sidebar h2 {
    font-size: 1.6rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar h2::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 24px;
    background: var(--accent-color);
    border-radius: 4px;
}

#destination-list {
    list-style: none;
}

#destination-list li {
    padding: 1.2rem 1.5rem;
    margin-bottom: 0.8rem;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    font-weight: 600;
    font-size: 1.05rem;
    color: var(--text-light);
    transition: var(--transition-smooth);
    background: transparent;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#destination-list li::after {
    content: '→';
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition-smooth);
    color: var(--accent-color);
}

#destination-list li:hover {
    color: var(--primary-color);
    background-color: var(--bg-white);
    box-shadow: var(--shadow-sm);
    transform: translateX(5px);
}

#destination-list li:hover::after {
    opacity: 1;
    transform: translateX(0);
}

#destination-list li.active {
    color: var(--bg-white);
    background: linear-gradient(135deg, var(--primary-color), #0a4061);
    box-shadow: 0 8px 20px rgba(2, 43, 66, 0.25);
    transform: translateX(5px);
}

#destination-list li.active::after {
    opacity: 1;
    transform: translateX(0);
    color: var(--accent-color);
}

/* Main Content Styles */
.content {
    flex-grow: 1;
    min-width: 0;
}

.content-header {
    margin-bottom: 2.5rem;
    animation: fadeInDown 0.6s ease-out forwards;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.content-header h2 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.content-header p {
    color: var(--text-light);
    font-size: 1.2rem;
    font-weight: 300;
}

/* Horizontal Packages Container */
.packages-wrapper {
    position: relative;
    width: 100%;
    padding: 0 60px;
    /* Make sure there's enough space for buttons inside */
}

.nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-white);
    border: 1px solid #cbd5e1;
    color: var(--primary-color);
    font-size: 1.5rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
    z-index: 10;
}

.nav-btn:hover {
    background: var(--primary-color);
    color: var(--bg-white);
    box-shadow: var(--shadow-md);
}

.prev-btn {
    left: 8px;
}

.next-btn {
    right: 38px;
}

.packages-container {
    display: flex;
    gap: 2.5rem;
    overflow-x: auto;
    padding: 1rem 1rem 3rem 1rem;
    /* Extra bottom padding for shadow and hover */
    margin: -1rem;
    /* Compensate for padding */
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;

    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.packages-container::-webkit-scrollbar {
    display: none;
    /* Hide scrollbar for Chrome */
}

/* Individual Package Card */
.package-card {
    /* 3 cards visible: 100% width minus two 2.5rem gaps */
    flex: 0 0 calc((100% - 5rem) / 3);
    background: var(--bg-white);
    border: 1px solid #e2e8f0;
    box-shadow: none;
    transition: var(--transition-fast);
    display: flex;
    flex-direction: column;
    scroll-snap-align: start;
    position: relative;
    animation: fadeInUp 0.6s ease-out backwards;
}

@media (max-width: 1300px) {
    .package-card {
        /* 2 cards visible */
        flex: 0 0 calc((100% - 2.5rem) / 2);
    }
}

@media (max-width: 800px) {
    .package-card {
        /* 1 card visible */
        flex: 0 0 100%;
    }
}

.package-card:nth-child(2) {
    animation-delay: 0.1s;
}

.package-card:nth-child(3) {
    animation-delay: 0.2s;
}

.package-card:nth-child(4) {
    animation-delay: 0.3s;
}

.package-card:nth-child(5) {
    animation-delay: 0.4s;
}

.package-card:hover {
    box-shadow: var(--shadow-md);
}

.package-img-container {
    overflow: hidden;
    position: relative;
    height: 240px;
    border-bottom: 1px solid #e2e8f0;
}

.package-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.package-card:hover .package-image {
    transform: scale(1.05);
}

.package-details {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    background: var(--bg-white);
}

.package-category {
    color: var(--accent-color);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.5rem;
}

.package-title {
    font-size: 1.3rem;
    margin-bottom: 0.8rem;
    line-height: 1.3;
    color: var(--primary-color);
    font-weight: 600;
}

.package-route {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.package-route strong {
    color: var(--text-main);
}

.package-divider {
    border-top: 1px dotted #cbd5e1;
    margin: 1rem 0;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
}

.package-features li {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.8rem;
    position: relative;
    padding-left: 1rem;
    line-height: 1.5;
}

.package-features li::before {
    content: '♦';
    color: var(--accent-color);
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.7rem;
}

.package-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
}

.customizable-badge {
    font-size: 0.8rem;
    color: var(--accent-color);
    font-weight: 700;
}

.btn-customize {
    background: var(--primary-color);
    color: var(--bg-white);
    border: none;
    padding: 0.7rem 1.2rem;
    font-weight: 700;
    font-size: 0.75rem;
    cursor: default;
    transition: var(--transition-fast);
    text-transform: uppercase;
}

/* Modal styles - Glassmorphism */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(2, 43, 66, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
}

.modal-content {
    background: var(--bg-white);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    width: 90%;
    max-width: 600px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: scale(0.95) translateY(20px);
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.modal.show .modal-content {
    transform: scale(1) translateY(0);
}

.close-btn {
    position: absolute;
    right: 25px;
    top: 20px;
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-btn:hover {
    background: #e2e8f0;
    color: var(--primary-color);
    transform: rotate(90deg);
}

.modal-body h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.modal-body p {
    font-size: 1.1rem;
    color: var(--text-light);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Custom hints for scrolling */
.scroll-hint {
    position: absolute;
    right: -20px;
    top: 50%;
    transform: translateY(-50%);
    width: 60px;
    height: 60px;
    background: var(--bg-white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 10;
    cursor: pointer;
    opacity: 0;
    transition: var(--transition-smooth);
    color: var(--primary-color);
}

.packages-wrapper:hover .scroll-hint {
    opacity: 1;
    right: 10px;
}

/* Responsive */
@media (max-width: 1024px) {
    .pkg-container {
        flex-direction: column;
        padding: 0 1rem;
    }

    .sidebar {
        width: 100%;
        position: static;
        padding: 1.5rem;
    }

    #destination-list {
        display: flex;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 1rem;
        -ms-overflow-style: none;
        scrollbar-width: none;
    }

    #destination-list::-webkit-scrollbar {
        display: none;
    }

    #destination-list li {
        margin-bottom: 0;
        white-space: nowrap;
        flex-shrink: 0;
    }

    .package-card {
        min-width: 320px;
        max-width: 320px;
    }
}