:root {
    --primary: #007bff;
    --primary-dark: #0056b3;
    --text-dark: #1a1a2e;
    --text-gray: #71717a;
    --bg-gray: #f7f7f7;
    --white: #ffffff;
    --border: #e5e5e5;
    --shadow: 0 4px 20px rgba(0,0,0,0.08);
    --success: #16a34a;
    --danger: #dc2626;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-gray);
    color: var(--text-dark);
    line-height: 1.6;
}

/* ========== HEADER ========== */
.page-header {
    background: var(--white);
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: var(--text-dark);
}

.logo img {
    height: 40px;
    width: auto;
}

.logo-text {
    font-size: 1.1rem;
    font-weight: 700;
}

.back-link {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s;
    padding: 0.5rem 1rem;
    border-radius: 8px;
}

.back-link:hover {
    background: #f0f8ff;
    gap: 0.8rem;
}

/* ========== LAYOUT ========== */
.package-detail-container {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 3rem;
}

/* ========== GALLERY ========== */
.package-gallery {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.gallery-main {
    width: 100%;
    height: 450px;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    background: var(--bg-gray);
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-main:hover img {
    transform: scale(1.02);
}

.no-image {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0077b6, #00b4d8);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 5rem;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-thumb {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    height: 120px;
    border-radius: 12px;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.gallery-thumb:hover img {
    transform: scale(1.05);
}

.view-all-btn {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background: white;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.8rem;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    display: flex;
    align-items: center;
    gap: 5px;
    transition: 0.2s;
}

.view-all-btn:hover {
    background: var(--primary);
    color: white;
}

.last-thumb::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.25);
    pointer-events: none;
}

/* ========== PACKAGE INFO ========== */
.package-info-section h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.package-meta-info {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-gray);
    flex-wrap: wrap;
}

.package-meta-info span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.rating-section {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
}

.stars {
    color: #ffc107;
    font-size: 1.1rem;
}

.rating-number {
    font-weight: 600;
    color: var(--text-dark);
}

.section {
    margin-bottom: 3rem;
}

.section h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.section p {
    line-height: 1.8;
    color: var(--text-gray);
}

.feature-list {
    list-style: none;
    padding: 0;
}

.feature-list li {
    padding: 1rem 0;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    border-bottom: 1px solid var(--border);
}

.feature-list li:last-child {
    border-bottom: none;
}

.feature-icon {
    color: var(--primary);
    font-size: 1.3rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.feature-text {
    flex: 1;
}

.feature-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.feature-desc {
    font-size: 0.85rem;
    color: var(--text-gray);
}

/* ========== BOOKING CARD ========== */
.booking-card {
    background: var(--white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px;
}

.price-display {
    margin-bottom: 1.5rem;
    text-align: center;
    padding: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
}

.price-original {
    font-size: 1rem;
    text-decoration: line-through;
    color: var(--text-gray);
    display: block;
    margin-bottom: 0.25rem;
}

.price-current {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--danger);
    display: block;
}

.price-per-person {
    color: var(--text-gray);
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--text-dark);
}

.form-control {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 2px solid var(--border);
    border-radius: 10px;
    font-size: 1rem;
    font-family: inherit;
    background: white;
    cursor: pointer;
    transition: all 0.3s;
}

.form-control:hover {
    border-color: var(--primary);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(0,123,255,0.1);
}

.btn-check-availability {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: 1rem;
    box-shadow: 0 4px 15px rgba(0,123,255,0.3);
}

.btn-check-availability:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,123,255,0.4);
}

.btn-check-availability:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.btn-add-to-cart {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--success), #15803d);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 4px 15px rgba(22,163,74,0.3);
}

.btn-add-to-cart:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(22,163,74,0.4);
}

.benefits-list {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* ========== LIGHTBOX ========== */
#gallery-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

#gallery-lightbox.active {
    display: flex;
}

#lb-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

#lb-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1rem;
    background: rgba(0,0,0,0.5);
    padding: 8px 20px;
    border-radius: 20px;
}

.lb-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    z-index: 10;
    transition: 0.3s;
}

.lb-close:hover {
    color: var(--primary);
    transform: scale(1.1);
}

.lb-prev,
.lb-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
}

.lb-prev:hover,
.lb-next:hover {
    background: rgba(255,255,255,0.3);
}

.lb-prev {
    left: 20px;
}

.lb-next {
    right: 20px;
}

/* ========== FOOTER ========== */
footer {
    background: var(--white);
    padding: 2rem;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    color: var(--text-gray);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 968px) {
    .package-detail-container {
        grid-template-columns: 1fr;
    }

    .booking-card {
        position: static;
    }

    .gallery-main {
        height: 300px;
    }

    .gallery-thumbs {
        grid-template-columns: repeat(2, 1fr);
    }

    .gallery-thumb {
        height: 100px;
    }

    .package-info-section h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 768px) {
    .page-header {
        padding: 1rem;
    }

    .logo-text {
        font-size: 0.9rem;
    }

    .package-detail-container {
        padding: 0 1rem;
    }

    .package-meta-info {
        gap: 1rem;
        font-size: 0.85rem;
    }

    .section h2 {
        font-size: 1.2rem;
    }

    .price-current {
        font-size: 1.8rem;
    }
}