/* ================================================
   PACKAGE DETAILS PAGE STYLES
   ================================================ */

:root {
    --primary: #2596be;
    --secondary: #fd9909;
    --dark: #1a1a1a;
    --light: #f5f7fa;
    --gray: #666;
    --border: #e9ecef;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    font-family: 'Poppins', sans-serif;
    color: var(--dark);
    background: #fff;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ================================================
   HERO SECTION
   ================================================ */

.package-hero {
    min-height: auto;
    background: #ffffff;
    color: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    margin-top: 0;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    flex-wrap: wrap;
    gap: 2rem;
}

.package-hero::before,
.hero-overlay {
    display: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    color: #1a1a1a;
    animation: slideUp 0.6s ease-out;
    flex: 1;
    min-width: 200px;
}

.hero-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    color: #1a1a1a;
}

.hero-location {
    font-size: 1rem;
    color: #555;
    font-weight: 500;
}

.hero-info {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex: 1;
    min-width: 280px;
}

.hero-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.hero-label {
    font-size: 0.8rem;
    color: #888;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-value {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
}

/* ================================================
   HERO GALLERY CONTAINER (Side-by-side on desktop)
   ================================================ */

.hero-gallery-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    padding: 0 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.hero-gallery-container .package-hero {
    padding: 0;
    border-bottom: none;
    margin-top: 0;
}

.hero-gallery-container .gallery-section {
    padding: 0;
    margin-bottom: 0;
}

/* ================================================
   MOBILE BOOK BUTTON (only visible on mobile/tablet)
   ================================================ */

.mobile-book-button {
    display: none;
    padding: 1rem 2rem;
    background: white;
    border-top: 1px solid var(--border);
    position: sticky;
    bottom: 0;
    z-index: 50;
}

.btn-mobile-book {
    display: block;
    width: 100%;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), #1e7a9e);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-mobile-book:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 150, 190, 0.3);
    background: linear-gradient(135deg, var(--secondary), #ff7f00);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ================================================
   PACKAGE SECTION
   ================================================ */

.package-section {
    padding: 4rem 0;
    background: #fff;
}

/* ================================================
   GALLERY SECTION
   ================================================ */

.gallery-section {
    margin-bottom: 4rem;
    padding: 1.5rem 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: 2rem;
    position: relative;
    padding-bottom: 1rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    border-radius: 2px;
}

.gallery-wrapper {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.main-gallery {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.image-slider {
    position: relative;
    width: 100%;
    height: 500px;
    background: linear-gradient(135deg, #e0e0e0, #f0f0f0);
}

.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.5s ease;
    opacity: 0;
}

.image-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
    opacity: 1;
}

.placeholder-content {
    font-size: 4rem;
}

.slider-prev,
.slider-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(37, 150, 190, 0.85);
    color: white;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    transition: all 0.3s ease;
    opacity: 0;
    z-index: 10;
    font-weight: bold;
}

.main-gallery:hover .slider-prev,
.main-gallery:hover .slider-next {
    opacity: 1;
}

.slider-prev:hover,
.slider-next:hover {
    background: var(--secondary);
    transform: translateY(-50%) scale(1.15);
}

.slider-prev {
    left: 20px;
}

.slider-next {
    right: 20px;
}

.image-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    backdrop-filter: blur(5px);
    z-index: 10;
}

/* THUMBNAIL GALLERY */
.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    opacity: 0.6;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: var(--primary);
    opacity: 1;
    box-shadow: 0 4px 15px rgba(37, 150, 190, 0.3);
}

/* ================================================
   CONTENT GRID
   ================================================ */

.content-grid {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 3rem;
    margin-bottom: 3rem;
    padding: 0 2rem;
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 2rem;
}

.main-content {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.content-section {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    border: 1px solid var(--border);
    transition: all 0.3s ease;
}

.content-section:hover {
    box-shadow: var(--shadow);
}

.section-text {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray);
    margin: 1rem 0;
}

.itinerary-content {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--gray);
    white-space: pre-wrap;
    word-wrap: break-word;
}

.terms-content {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--gray);
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* DATES LIST */
.dates-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.date-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(37, 150, 190, 0.1), rgba(253, 153, 9, 0.1));
    border: 1px solid var(--primary);
    color: var(--primary);
    padding: 0.8rem 1.2rem;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.date-badge:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
    transform: translateY(-2px);
}

/* SIDEBAR */
.sidebar {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* BOOKING CARD */

.booking-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.booking-card:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.card-header {
    background: linear-gradient(135deg, var(--primary), #1e7a9e);
    color: white;
    padding: 1.5rem;
    text-align: center;
}

.card-header h3 {
    margin: 0;
    font-size: 1.3rem;
}

.card-body {
    padding: 2rem;
}

.price-box {
    text-align: center;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.price-label {
    font-size: 0.85rem;
    color: var(--gray);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--secondary), #ff7f00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.3rem;
}

.price-note {
    font-size: 0.9rem;
    color: var(--gray);
}

.package-details-box {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid var(--border);
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.8rem;
    padding: 0.6rem 0;
}

.detail-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
}

.detail-value {
    color: var(--primary);
    font-weight: 600;
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--primary), #1e7a9e);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(37, 150, 190, 0.3);
    background: linear-gradient(135deg, var(--secondary), #ff7f00);
}

.features-box {
    background: rgba(37, 150, 190, 0.05);
    border: 1px solid rgba(37, 150, 190, 0.2);
    border-radius: 8px;
    padding: 1.5rem;
}

.feature-item {
    font-size: 0.9rem;
    color: var(--dark);
    margin-bottom: 0.8rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.feature-item:last-child {
    margin-bottom: 0;
}

/* CONTACT CARD */
.contact-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
}

.contact-card h3 {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
    color: var(--dark);
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem;
    background: var(--light);
    border-radius: 8px;
    text-decoration: none;
    color: var(--primary);
    transition: all 0.3s ease;
}

.contact-item:hover {
    background: linear-gradient(135deg, rgba(37, 150, 190, 0.1), rgba(253, 153, 9, 0.1));
    transform: translateX(5px);
}

.contact-icon {
    font-size: 1.5rem;
}

/* ================================================
   BOOKING MODAL
   ================================================ */

.booking-modal {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.7);
    background: white;
    border-radius: 15px;
    max-height: 90vh;
    overflow-y: auto;
    max-width: 600px;
    width: 90%;
    z-index: 2000;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.booking-modal.show {
    display: block;
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1999;
}

.modal-overlay.show {
    display: block;
}

.modal-content {
    padding: 2.5rem;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--gray);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--dark);
}

.modal-content h2 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.modal-subtitle {
    color: var(--gray);
    margin-bottom: 2rem;
    font-size: 0.95rem;
}

.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    font-size: 1.1rem;
    color: var(--dark);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 150, 190, 0.1);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

/* ================================================
   ANIMATIONS
   ================================================ */

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-alert {
    border-left: 5px solid #28a745;
    background: linear-gradient(135deg, #2b9f67, #2dcc72);
    color: #ffffff;
    padding: 0.85rem 1rem;
    border-radius: 8px;
    box-shadow: 0 16px 24px rgba(0,0,0,0.18);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    max-width: 360px;
}

.custom-alert.error {
    border-left-color: #e74c3c;
    background: linear-gradient(135deg, #d64541, #e74c3c);
}

.custom-alert.show {
    display: block;
}

/* ================================================
   RESPONSIVE DESIGN
   ================================================ */

@media (max-width: 768px) {
    .hero-gallery-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }

    .hero-gallery-container .package-hero {
        padding: 1.5rem 2rem;
        border-bottom: 1px solid var(--border);
    }

    .hero-gallery-container .gallery-section {
        padding: 1.5rem 2rem;
        margin-bottom: 0;
    }

    .mobile-book-button {
        display: block;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-location {
        font-size: 1rem;
    }

    .hero-info {
        gap: 1.5rem;
        min-width: auto;
    }

    .hero-info-item {
        flex: 1;
        min-width: 100px;
    }

    .image-slider {
        height: 300px;
    }

    .content-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 2rem;
        padding-bottom: 20px;
    }

    .booking-card {
        display: none;
    }

    .booking-modal {
        width: 95%;
        max-width: 500px;
    }

    .modal-content {
        padding: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .content-section {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-gallery-container {
        gap: 0;
        padding: 0;
    }

    .hero-gallery-container .package-hero {
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
        min-height: auto;
    }

    .hero-gallery-container .gallery-section {
        padding: 1rem;
    }

    .mobile-book-button {
        padding: 0.8rem 1rem;
    }

    .btn-mobile-book {
        padding: 0.85rem 1.5rem;
        font-size: 0.9rem;
    }

    .package-hero {
        min-height: auto;
        padding: 1rem;
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .hero-title {
        font-size: 1.6rem;
    }

    .hero-location {
        font-size: 0.9rem;
    }

    .hero-info {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
        width: 100%;
    }

    .hero-info-item {
        gap: 0.2rem;
    }

    .hero-label {
        font-size: 0.75rem;
    }

    .hero-value {
        font-size: 1rem;
    }

    .image-slider {
        height: 200px;
    }

    .section-title {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }

    .thumbnail-gallery {
        grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    }

    .modal-content {
        padding: 1rem;
    }

    .form-section h3 {
        font-size: 1rem;
    }

    .content-section {
        padding: 1rem;
        margin-bottom: 1rem;
        border-radius: 8px;
    }

    .content-section h2 {
        font-size: 1.4rem;
    }

    .content-section p,
    .content-section div {
        font-size: 0.9rem;
        line-height: 1.6;
    }

    .dates-list {
        display: flex;
        flex-wrap: wrap;
        gap: 0.5rem;
    }

    .date-badge {
        font-size: 0.8rem;
        padding: 0.4rem 0.8rem;
    }

    .gallery-section {
        padding: 1rem;
    }

    .content-grid {
        padding: 0 1rem;
    }
}

/* ================================================
   LOADING ANIMATION FOR BOOKING BUTTON
   ================================================ */

.btn.loading,
.btn.loading:hover {
    transform: none;
    cursor: not-allowed;
    opacity: 0.85;
}

.btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}