.package-detail-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    /* margin-top: 100px; */
}

.package-header {
    background: var(--primary-gradient);
    color: var(--heading-color-mode);
    padding: 2.5rem;
    border-radius: 16px;
    margin-bottom: 2.5rem;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), 0.3);
}

.package-header-copy {
    min-width: 0;
}

.package-about-image {
    display: block;
    width: 100%;
    max-height: 420px;
    aspect-ratio: 16 / 9;
    margin-bottom: 1.25rem;
    border-radius: 8px;
    object-fit: cover;
}

.package-header h1 {
    margin: 0 0 0.75rem 0;
    font-size: 1.8rem;
    font-weight: 700;
}

.package-header-copy > p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.95;
}

.package-meta {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.package-meta-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    font-weight: 500;
}

.package-meta-item i {
    font-size: 1rem;
}

.package-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2.5rem;
}

.package-section {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    margin-bottom: 2rem;
    border: 1px solid #e8e8e8;
}

.package-section h2 {
    color: #333;
    border-bottom: 3px solid #667eea;
    padding-bottom: 0.75rem;
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    font-weight: 700;
}

.package-section p {
    line-height: 1.8;
    color: #555;
    font-size: 1.05rem;
}

.package-seo-content {
    color: #374151;
    line-height: 1.85;
}

.package-seo-content > :first-child {
    margin-top: 0;
}

.package-seo-content > :last-child {
    margin-bottom: 0;
}

.package-seo-content p,
.package-seo-content li,
.package-seo-content td,
.package-seo-content th {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
}

.package-seo-content h1,
.package-seo-content h2,
.package-seo-content h3,
.package-seo-content h4,
.package-seo-content h5,
.package-seo-content h6 {
    color: #1f2937;
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.package-seo-content h2 {
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 0.5rem;
}

.package-seo-content ul,
.package-seo-content ol {
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.package-seo-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 1.25rem 0;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08);
}

.package-seo-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    border: 1px solid #e5e7eb;
    background: #fff;
}

.package-seo-content table th,
.package-seo-content table td {
    border: 1px solid #e5e7eb;
    padding: 0.85rem 0.9rem;
    text-align: left;
    vertical-align: top;
}

.package-seo-content table th {
    background: #f8fafc;
    color: #1f2937;
    font-weight: 700;
}

.package-seo-content blockquote {
    border-left: 4px solid #667eea;
    margin: 1.5rem 0;
    padding: 0.8rem 1rem 0.8rem 1.25rem;
    background: #f8f9ff;
    color: #475569;
    border-radius: 0 8px 8px 0;
}

.package-seo-content a {
    color: #3b82f6;
    text-decoration: underline;
}

.itinerary-timeline {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.itinerary-day {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.6rem;
}

.itinerary-arrow {
    color: #667eea;
    font-size: 1rem;
    line-height: 1.5;
    font-weight: 700;
}

.itinerary-day h3 {
    color: #667eea;
    margin: 0 0 0.25rem;
    font-size: 0.95rem;
    font-weight: 700;
}

.itinerary-day p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: #666;
}

.pricing-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.25rem;
    border: 1px solid #e0e0e0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.pricing-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.pricing-card-header span:first-child {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
}

.pricing-card-price {
    font-size: 1.35rem;
    font-weight: 800;
    color: #667eea;
}

.pricing-card small {
    display: block;
    margin-top: 0.5rem;
    color: #666;
    font-size: 0.78rem;
}

.package-inclusions-exclusions {
    color: #666;
    font-size: 0.85rem;
    line-height: 1.55;
}

.package-inclusions-exclusions p {
    margin: 0 0 0.5rem;
}

.package-inclusions-exclusions p:last-child {
    margin-bottom: 0;
}

.package-inclusions-exclusions strong {
    color: #333;
}

.book-btn {
    display: block;
    width: 100%;
    padding: 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.book-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.5);
}

.custom-tour-whatsapp {
    display: flex;
    width: 100%;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    background: #25d366;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.custom-tour-whatsapp:hover {
    background: #1fb85a;
    color: #fff;
}

.tour-categories-section {
    margin-top: 2.5rem;
    padding: 1rem 0 0.5rem;
}

.tour-categories-header {
    text-align: center;
    margin-bottom: 1.8rem;
}

.tour-categories-header h2 {
    margin: 0 0 0.8rem;
    font-size: clamp(2rem, 4vw, 3.1rem);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.04em;
    color: #4f46e5;
}

.tour-categories-header p {
    margin: 0;
    font-size: clamp(0.95rem, 1.8vw, 1.35rem);
    color: #5f6b7a;
    line-height: 1.6;
    font-weight: 500;
}

.tour-carousel-shell {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tour-carousel-nav {
    position: relative;
    z-index: 2;
    width: 3.2rem;
    height: 3.2rem;
    border: 1px solid rgba(79, 70, 229, 0.2);
    background: rgba(255, 255, 255, 0.9);
    color: #444;
    border-radius: 50%;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.25s ease;
    flex-shrink: 0;
}

.tour-carousel-nav:hover {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: #fff;
    transform: translateY(-2px);
}

.related-carousel {
    flex: 1;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: minmax(235px, 1fr);
    gap: 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 0.5rem 0.5rem 0.9rem;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.related-carousel::-webkit-scrollbar {
    display: none;
}

.related-card {
    position: relative;
    min-height: 370px;
    border-radius: 24px;
    overflow: hidden;
    scroll-snap-align: start;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 0 14px 24px rgba(15, 23, 42, 0.08);
    background: #fff;
}

.related-card-media {
    position: absolute;
    inset: 0;
}

.related-card-media img,
.related-card-media .related-card-placeholder {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.related-card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0.18) 0%, rgba(17, 24, 39, 0.58) 56%, rgba(15, 23, 42, 0.8) 100%);
}

.related-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #c7d2fe, #f5f3ff);
    color: #4f46e5;
    font-size: 4rem;
}

.related-card-overlay {
    position: absolute;
    inset: auto 0 0 0;
    z-index: 2;
    padding: 1.15rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.related-card-body {
    color: #fff;
}

.related-card-body h3 {
    margin: 0 0 0.75rem;
    font-size: clamp(1.2rem, 1.6vw, 1.7rem);
    line-height: 1.2;
    font-weight: 700;
    color: #fff;
}

.related-card-body p {
    margin: 0 0 0.9rem;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
    min-height: 3.2em;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-meta {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    font-size: 0.76rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 0.75rem;
}

.related-meta span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.related-price {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
}

.related-card-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex-wrap: wrap;
}

.related-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 2.6rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.82rem;
    padding: 0.7rem 0.8rem;
    transition: transform 0.2s ease, filter 0.2s ease;
}

.related-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.related-btn-primary {
    background: rgba(255, 255, 255, 0.9);
    color: #1f2937;
    flex: 1.2;
}

.related-btn-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: #1f2937;
    flex: 1.2;
}

.related-btn-success {
    background: linear-gradient(135deg, #2ecc71, #1abf6b);
    color: #fff;
    width: 2.8rem;
    min-width: 2.8rem;
    padding: 0.7rem 0;
}

@media (max-width: 1024px) {
    .related-carousel {
        grid-auto-columns: minmax(220px, 1fr);
    }

    .related-card {
        min-height: 330px;
    }
}

@media (max-width: 768px) {
    .package-detail-container {
        padding: 1.5rem 1rem;
    }

    .package-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .package-header {
        padding: 2rem 1.5rem;
        border-radius: 12px;
    }

    .package-header h1 {
        font-size: 1.45rem;
    }

    .package-header-copy > p {
        font-size: 0.9rem;
    }

    .package-meta-item {
        font-size: 0.85rem;
    }

    .package-meta-item i {
        font-size: 0.95rem;
    }

    .package-meta {
        flex-direction: column;
        gap: 1rem;
    }

    .package-section {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .package-section h2 {
        font-size: 1.2rem;
    }

    .pricing-card-price {
        font-size: 1.25rem;
    }

    .tour-carousel-shell {
        gap: 0.5rem;
    }

    .tour-carousel-nav {
        display: none;
    }

    .related-carousel {
        grid-auto-columns: 82%;
        gap: 0.9rem;
    }

    .related-card {
        min-height: 415px;
    }

    .related-card-overlay {
        padding: 0.9rem;
    }

    .related-card-body h3 {
        font-size: 1.5rem;
    }

    .related-card-actions {
        gap: 0.45rem;
    }

    .related-btn {
        font-size: 0.72rem;
        min-height: 2.4rem;
        padding: 0.6rem 0.7rem;
    }
}
