/* ========================================
   FROM tour.css - TOUR PACKAGE PAGE STYLES
   ======================================== */

/* Main packages container */
body:not(.admin-page) .packages-container {
    .front-page {
        width: 100%;
        background: url('../../uploads/bicol/raw/18F2AE0E-BEB8-4C5B-87EB-ABCF0FC1D23F.jpg');
        background-position: center;
        background-size: cover;
        height: 60vh;
        position: relative;

        h1 {
            width: 90%;
            color: white;
            position: absolute;
            top: 50%;
            left: 50%;
            font-size: 5rem;
            transform: translateX(-50%);
        }
    }

    .container-package {
        width: 90%;
        margin: auto;
        background: gainsboro;
        position: relative;
        top: -5rem;
        border-radius: 10px 10px 0 0;
        box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);

        .tab-container {
            max-width: 100%;
            display: flex;
            overflow: auto;
            white-space: nowrap;
            scrollbar-width: none;

            .button, button {
                width: auto;
                background: none;
                padding: 20px;
                font-weight: 500;
                border: none;
                border-radius: 10px 10px 0 0;
            }

            .button {
                margin-right: 5px;
            }
            
            button.active, .button {
                background: #FFBC00;
            }
        }

        .packages-block {
            background: white;
            padding: 20px;

            .package {
                margin-bottom: 30px;
                display: flex;
                align-items: center;
                gap: 10px;

                .code-rate {
                    display: flex;
                    align-items: start;
                    gap: 10px;
                }

                /* Simplified package actions container */
                .package-actions {
                    display: flex;
                    flex-direction: column;
                    gap: 15px;
                    align-items: flex-end;
                }

                .package-price {
                    font-size: 2rem;

                    .price {
                        color: #ff8e2a;
                        display: flex;
                        align-items: center;
                        gap: 10px;
                    }

                    span {
                        font-size: 1.5rem;
                        color: #7D7D7D;
                    }

                    .slash {
                        font-size: 3rem;
                    }
                }
            }

            h4 {
                color: #070707;
            }

            .packages-information {
                padding: 20px 0;

                p {
                    margin: 0;
                    padding-left: 20px;
                }
            }

            /* Package content styling for Summernote content */
            .package-content {
                padding-left: 20px;
                line-height: 1.6;

                /* Reset margins for lists */
                ul,
                ol {
                    margin: 10px 0;
                    padding-left: 40px;
                }

                li {
                    margin: 5px 0;
                }

                /* Headings styling */
                h1,
                h2,
                h3,
                h4,
                h5,
                h6 {
                    margin: 15px 0 10px 0;
                    color: #333;
                }

                /* Paragraph spacing */
                p {
                    margin: 10px 0;
                    padding-left: 0;
                }

                /* Bold and italic text */
                strong,
                b {
                    font-weight: bold;
                }

                em,
                i {
                    font-style: italic;
                }

                /* Links styling */
                a {
                    color: #ff8e2a;
                    text-decoration: none;
                }

                a:hover {
                    text-decoration: underline;
                }

                /* Tables styling */
                table {
                    width: 100%;
                    border-collapse: collapse;
                    margin: 15px 0;
                }

                table th,
                table td {
                    border: 1px solid #ddd;
                    padding: 8px;
                    text-align: left;
                }

                table th {
                    background-color: #f8f9fa;
                    font-weight: bold;
                }

                /* Blockquotes */
                blockquote {
                    border-left: 4px solid #ff8e2a;
                    margin: 15px 0;
                    padding: 10px 20px;
                    background-color: #f8f9fa;
                    font-style: italic;
                }

                /* Code blocks */
                code {
                    background-color: #f1f1f1;
                    padding: 2px 4px;
                    border-radius: 3px;
                }

                pre {
                    background-color: #f8f9fa;
                    border: 1px solid #ddd;
                    border-radius: 4px;
                    padding: 10px;
                    overflow-x: auto;
                    margin: 15px 0;
                }

                /* Images */
                img {
                    max-width: 100%;
                    height: auto;
                    margin: 10px 0;
                    border-radius: 4px;
                }
            }

            .gallery {
                margin-top: 30px;
                position: relative;

                .icon-img {
                    width: 300px;
                    height: 300px;
                    object-fit: contain;
                    position: absolute;
                    top: 50%;
                    right: 0;
                    transform: translateY(-50%);
                }

                h1 {
                    font-size: 3rem;
                    color: #181E4B;
                }

                .img-container {
                    width: 50%;
                    display: flex;
                    align-items: center;
                    flex-direction: column;
                    gap: 30px;

                    .img-block {
                        display: flex;
                        gap: 20px;
                        flex-wrap: wrap;

                        img {
                            width: 200px;
                            height: 200px;
                            object-fit: cover;
                        }
                    }

                    button {
                        background: none;
                        border: none;
                        font-weight: bold;
                    }
                }

                @media (max-width: 720px) {
                    .img-container {
                        gap: 10px;

                        .img-block {
                            width: 100%;
                            display: grid;
                            grid-template-columns: repeat(2, 1fr);

                            img {
                                max-width: 150px;
                                height: 150px;
                                width: 100%;
                            }
                        }
                    }
                }
            }
        }
    }
}

/* FRONTEND BOOKING CTA */
body:not(.admin-page) .booking-cta {
    background: linear-gradient(135deg, #ff8e2a, #fb9339);
    color: white;
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    margin: 30px 0;
}

body:not(.admin-page) .contact-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

body:not(.admin-page) .contact-buttons .btn {
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

body:not(.admin-page) .contact-buttons .btn-primary {
    background: white;
    color: #ff8e2a;
    border: 2px solid white;
}

body:not(.admin-page) .contact-buttons .btn-success {
    background: #28a745;
    color: white;
    border: 2px solid #28a745;
}

/* FRONTEND RESPONSIVE */
@media (max-width: 1200px) {
    body:not(.admin-page) .packages-container {
        .container-package {
            .packages-block {
                .package {
                    position: relative;
                    flex-direction: column-reverse;
                }
            }
        }

        .promo-indicator {
            top: 50%;
        }
    }
}
@media (max-width: 992px) {
    body:not(.admin-page) .packages-container {
        .container-package {
            .packages-block {
                .gallery {
                    .icon-img {
                        display: none;
                    }
                    
                    .img-container {
                        width: 100%;
                    }
                }
            }
        }
    }
}
@media (max-width: 450px) {
    body:not(.admin-page) .packages-container {
        .container-package {
            .packages-block {
                .package {
                    justify-content: center;
                    align-items: center;
                }
            }
        }

        .promo-indicator {
            position: absolute;
            top: 60%;
            right: 0;
        }
    }
}

@media (max-width: 768px) {
    body:not(.admin-page) .packages-container .container-package .packages-block .package {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }

    body:not(.admin-page) .packages-container .container-package .packages-block .package .package-actions {
        align-items: center;
        width: 100%;
    }

    body:not(.admin-page) .contact-buttons {
        flex-direction: column;
        align-items: center;
    }

    body:not(.admin-page) .packages-container .front-page h1 {
        font-size: 3rem;
    }

    body:not(.admin-page) .packages-container .container-package .packages-block .gallery .img-container {
        width: 100%;
    }
}

/* Promotional Popup */
.pop-up-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    backdrop-filter: blur(3px);
}

.pop-up {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    border-radius: 15px;
    padding: 2rem;
    max-width: 450px;
    width: 90%;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    animation: popupAppear 0.5s ease-out;
}

@keyframes popupAppear {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.pop-up .close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2rem;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    z-index: 1;
    transition: color 0.3s ease;
}

.pop-up .close-btn:hover {
    color: #ff0000;
}

.pop-up header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.pop-up .heading {
    margin-bottom: 1rem;
}

.pop-up .heading p {
    font-size: 1.5rem;
    font-weight: bold;
    color: #ff0000;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.pop-up .heading i {
    font-size: 1.8rem;
    color: #0066cc;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.pop-up .duration {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.countdown-item {
    text-align: center;
}

.countdown-item h2 {
    font-size: 2rem;
    font-weight: bold;
    color: #ff0000;
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.countdown-item p {
    font-size: 0.8rem;
    color: #333;
    margin: 0;
    font-weight: bold;
}

.pop-up .content {
    text-align: center;
}

.pop-up .group {
    margin-bottom: 1rem;
}

.pop-up .group p {
    font-size: 0.9rem;
    color: #0066cc;
    margin: 0;
    font-weight: bold;
}

.pop-up .group h4 {
    font-size: 1.1rem;
    color: #333;
    margin: 0.5rem 0;
    font-weight: bold;
}

.pop-up .content h1 {
    font-size: 2.5rem;
    color: #ff0000;
    font-weight: bold;
    margin: 1rem 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    font-style: italic;
}

.pop-up .content h5 {
    font-size: 1rem;
    color: #333;
    margin: 1rem 0;
    font-weight: bold;
}

.pop-up .content button {
    background: linear-gradient(45deg, #ff6b35, #ff8c42);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
    font-weight: bold;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pop-up .content button:hover {
    background: linear-gradient(45deg, #ff8c42, #ffa726);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Package Cards with Promo Indicators */
.card.promo-card {
    position: relative;
    border: 2px solid #ff8c42;
    box-shadow: 0 4px 15px rgba(255, 140, 66, 0.2);
    overflow: hidden;
}

.card.promo-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent 0%, rgba(255, 140, 66, 0.1) 100%);
    pointer-events: none;
    z-index: 1;
}

.promo-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(45deg, #ff6b35, #ff8c42);
    color: white;
    padding: 0.5rem;
    border-radius: 8px;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
    animation: promoPulse 2s infinite;
}

@keyframes promoPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.promo-badge .promo-text {
    display: block;
    font-size: 0.8rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.25rem;
}

.promo-badge .discount-text {
    display: block;
    font-size: 0.7rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 0.1rem 0.3rem;
}

.price-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.price-info .original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.9rem;
}

.price-info .promo-price {
    color: #ff8c42;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .pop-up {
        margin: 1rem;
        padding: 1.5rem;
    }

    .pop-up .duration {
        gap: 0.5rem;
    }

    .countdown-item h2 {
        font-size: 1.5rem;
    }

    .pop-up .content h1 {
        font-size: 2rem;
    }

    .promo-badge {
        top: 5px;
        right: 5px;
        padding: 0.3rem;
    }

    .promo-badge .promo-text {
        font-size: 0.7rem;
    }
}

.tour-package-promo-banner {
    padding: 1rem;
    background: linear-gradient(135deg, #ff8c42, #ffa726);
    color: white;
    border-radius: 10px;
    text-align: center;
    overflow: hidden;
    position: relative;
}

.tour-package-promo-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.1) 10px,
            rgba(255, 255, 255, 0.1)    20px);
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* ========================================
   FROM card_tour.css - TOUR CARD STYLES
   ======================================== */

.tour-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.card-img {
    width: 430px;
    height: 430px;
    object-fit: cover;
    border-radius: 10px;
    display: block;
    transition: transform 0.3s ease-in-out;
}

.card-overlay {
    position: absolute;
    bottom: 0;
    width: 100%;
    color: white;
    text-align: center;
    padding: 15px;
    border-radius: 0 0 10px 10px;
    z-index: 2;
    background: rgba(26, 26, 26, 0.678);
    transition: opacity 0.3s ease-in-out;
    cursor: pointer;
}

.tour-card:hover .card-overlay h4 {
    opacity: 0;
}

.card-hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    border-radius: 10px;
    transition: background 0.3s ease-in-out;
    z-index: 1;
}

.hover-text {
    position: absolute;
    top: 15px;
    left: 15px;
    color: white;
    font-size: 20px;
    font-weight: bold;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.tour-card:hover .card-hover-overlay {
    background: rgba(0, 0, 0, 0.5);
    cursor: pointer;
}

.tour-card:hover .hover-text {
    opacity: 1;
}

.tour-card:hover .card-img {
    transform: scale(1.05);
}

.duration {
    background: rgba(255, 255, 255, 0.9);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    color: #333;
    display: inline-block;
    margin-top: 5px;
}

.city {
    font-weight: bold;
    margin-bottom: 5px;
}

.package-info {
    font-size: 14px;
    line-height: 1.4;
}

/* No Image Placeholder Styles */
.package-img-placeholder {
    width: 100%;
    height: 200px;
    /* Adjust to match your card image height */
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    border-radius: 8px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.package-img-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.package-img-placeholder span {
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

/* Hover effects */
.card:hover .package-img-placeholder {
    background: #e9ecef;
    border-color: #adb5bd;
    color: #495057;
}

.card:hover .package-img-placeholder i {
    transform: scale(1.1);
    opacity: 0.9;
}

/* Coming Soon variant */
.package-img-placeholder.coming-soon {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-color: #ced4da;
}

.package-img-placeholder.coming-soon i {
    color: #28a745;
    animation: pulse 2s infinite;
}

.package-img-placeholder.coming-soon span {
    color: #28a745;
}

/* Pulse animation for coming soon */
@keyframes pulse {
    0% {
        opacity: 0.7;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.05);
    }

    100% {
        opacity: 0.7;
        transform: scale(1);
    }
}

/* Ensure placeholder has same dimensions as regular images */
.card img,
.card .package-img-placeholder {
    width: 100%;
    height: 200px;
    /* Adjust based on your existing card design */
    border-radius: 8px 8px 0 0;
    /* Adjust based on your card design */
}

.card img {
    object-fit: cover;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .package-img-placeholder {
        height: 150px;
    }

    .package-img-placeholder i {
        font-size: 2rem;
    }

    .package-img-placeholder span {
        font-size: 0.8rem;
    }

    .card img,
    .card .package-img-placeholder {
        height: 150px;
    }
}

@media (max-width: 480px) {
    .package-img-placeholder {
        height: 120px;
    }

    .package-img-placeholder i {
        font-size: 1.5rem;
    }

    .package-img-placeholder span {
        font-size: 0.75rem;
    }

    .card img,
    .card .package-img-placeholder {
        height: 120px;
    }
}

/* ========================================
   FROM tour_package.php <style> SECTION
   ======================================== */

.tour-package-promo-banner {
    background: linear-gradient(135deg, #ff8c42, #ffa726);
    color: white;
    padding: 1.5rem;
    border-radius: 10px;
    margin-bottom: 2rem;
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(255, 140, 66, 0.3);
}

.tour-package-promo-banner::before {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(45deg,
            transparent,
            transparent 10px,
            rgba(255, 255, 255, 0.1) 10px,
            rgba(255, 255, 255, 0.1) 20px);
    animation: shimmer 3s linear infinite;
}

@keyframes shimmer {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

.promo-banner-content {
    position: relative;
    z-index: 1;
}

.promo-banner-title {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.promo-banner-subtitle {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.promo-banner-price {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.promo-banner-original-price {
    text-decoration: line-through;
    font-size: 1.2rem;
    opacity: 0.7;
}

.promo-banner-sale-price {
    font-size: 2.2rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.promo-banner-discount {
    background: rgba(255, 255, 255, 0.2);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: bold;
    backdrop-filter: blur(10px);
}

.promo-banner-cta {
    margin-top: 1rem;
}

.promo-banner-cta .btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 0.75rem 2rem;
    font-weight: bold;
    border-radius: 25px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.promo-banner-cta .btn:hover {
    background: white;
    color: #ff8c42;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

.promo-indicator {
    position: absolute;
    top: 20px;
    right: 15px;
    background: linear-gradient(45deg, #ff6b35, #ff8c42);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.3);
    animation: promoPulse 2s infinite;
}

@keyframes promoPulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

.price-comparison {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
}

.price-comparison .original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 1.1rem;
}

.price-comparison .promo-price {
    color: #ff8c42;
    font-weight: bold;
    font-size: 1.5rem;
}

.price-comparison .savings {
    background: #28a745;
    color: white;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: bold;
}

@media (max-width: 768px) {
    .tour-package-promo-banner {
        padding: 1rem;
    }

    .promo-banner-title {
        font-size: 1.4rem;
    }

    .promo-banner-sale-price {
        font-size: 1.8rem;
    }

    .price-comparison {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}