/* Excursions Page Styles */

/* Hero Section */
.excursions-hero {
    background: linear-gradient(135deg, rgba(220, 167, 58, 0.9) 0%, rgba(244, 200, 66, 0.8) 100%), url('/images/excursions-hero-bg.jpg') center/cover;
    min-height: 400px;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.95;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Filter Section */
.filter-section {
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.filter-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(220, 167, 58, 0.1);
}

.filter-title {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 0;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    padding: 0.8rem 1.5rem;
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid rgba(220, 167, 58, 0.2);
    border-radius: 25px;
    color: #555;
    font-weight: 600;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    backdrop-filter: blur(10px);
}

    .filter-btn:hover {
        background: rgba(220, 167, 58, 0.1);
        border-color: rgba(220, 167, 58, 0.4);
        color: #333;
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(220, 167, 58, 0.2);
    }

    .filter-btn.active {
        background: linear-gradient(135deg, #dca73a 0%, #f4c842 100%);
        border-color: rgba(255, 255, 255, 0.3);
        color: white;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
        box-shadow: 0 4px 15px rgba(220, 167, 58, 0.3);
    }

    .filter-btn i {
        margin-right: 0.5rem;
        font-size: 1rem;
    }

/* Loading Spinner */
.spinner {
    width: 70px;
    text-align: center;
}

    .spinner > div {
        width: 18px;
        height: 18px;
        background-color: #dca73a;
        border-radius: 100%;
        display: inline-block;
        animation: sk-bouncedelay 1.4s infinite ease-in-out both;
    }

    .spinner .bounce1 {
        animation-delay: -0.32s;
    }

    .spinner .bounce2 {
        animation-delay: -0.16s;
    }

@keyframes sk-bouncedelay {
    0%, 80%, 100% {
        transform: scale(0);
    }

    40% {
        transform: scale(1.0);
    }
}

.loading-text {
    color: #666;
    font-weight: 500;
}

/* Excursion Cards */
.excursion-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(220, 167, 58, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

    .excursion-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 25px rgba(220, 167, 58, 0.15);
        border-color: rgba(220, 167, 58, 0.2);
    }

.excursion_item_img {
    position: relative;
    height: 130px !important; /* Maximum height set to 130px */
    max-height: 130px !important;
    overflow: hidden;
    background: #f8f9fa;
}

.excursion-images {
    width: 100%;
    height: 100%;
    position: relative;
}

    .excursion-images .imgs-grid {
        width: 100%;
        height: 100%;
    }

        /* Fixed height and uniform sizing for images - Max 130px */
        .excursion-images .imgs-grid img {
            width: 100%;
            height: 130px !important; /* Force uniform height at max 130px */
            max-height: 130px !important;
            object-fit: cover !important; /* Maintain aspect ratio while filling container */
            object-position: center center; /* Center the image */
            transition: transform 0.3s ease;
            display: block;
        }

        /* For image grid layouts - ensure all images have same height */
        .excursion-images .imgs-grid .imgs-grid-image {
            height: 130px !important;
            max-height: 130px !important;
            overflow: hidden;
        }

            .excursion-images .imgs-grid .imgs-grid-image .image-wrap {
                width: 100%;
                height: 100%;
                overflow: hidden;
            }

                .excursion-images .imgs-grid .imgs-grid-image .image-wrap img {
                    width: 100%;
                    height: 100% !important;
                    max-height: 130px !important;
                    object-fit: cover !important;
                    object-position: center center;
                    margin: 0;
                    padding: 0;
                }

        /* For single image display */
        .excursion-images .imgs-grid.imgs-grid-1 .imgs-grid-image {
            height: 130px !important;
            max-height: 130px !important;
        }

        /* For 2-image grid */
        .excursion-images .imgs-grid.imgs-grid-2 .imgs-grid-image {
            height: 65px !important; /* Half height for 2x2 grid */
            max-height: 65px !important;
        }

        /* For 3+ images grid */
        .excursion-images .imgs-grid.imgs-grid-3 .imgs-grid-image,
        .excursion-images .imgs-grid.imgs-grid-4 .imgs-grid-image,
        .excursion-images .imgs-grid.imgs-grid-5 .imgs-grid-image,
        .excursion-images .imgs-grid.imgs-grid-6 .imgs-grid-image {
            height: 65px !important; /* Smaller height for multi-image grid */
            max-height: 65px !important;
        }

/* No image placeholder styling - Enhanced */
.no-image-placeholder {
    height: 130px !important;
    max-height: 130px !important;
    width: 100% !important;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
    border: 2px dashed #dee2e6 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    position: relative;
    overflow: hidden;
}

    .no-image-placeholder::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: repeating-linear-gradient( 45deg, transparent, transparent 10px, rgba(0, 0, 0, 0.03) 10px, rgba(0, 0, 0, 0.03) 20px );
        pointer-events: none;
    }

    .no-image-placeholder .placeholder-content {
        text-align: center;
        z-index: 1;
        position: relative;
        padding: 1rem;
    }

    .no-image-placeholder .text-muted {
        color: #6c757d !important;
        margin: 0;
    }

    .no-image-placeholder i {
        opacity: 0.6 !important;
        font-size: 2rem !important;
        color: #adb5bd !important;
        margin-bottom: 0.5rem;
        display: block;
    }

    .no-image-placeholder p {
        margin: 0.5rem 0 0 0 !important;
        font-size: 0.8rem !important;
        font-weight: 500 !important;
        color: #6c757d !important;
        line-height: 1.2;
    }

    /* Hover effect for no-image placeholder */
    .no-image-placeholder:hover {
        background: linear-gradient(135deg, #e9ecef 0%, #dee2e6 100%) !important;
        border-color: #adb5bd !important;
        transform: scale(1.01);
        transition: all 0.3s ease;
    }

        .no-image-placeholder:hover i {
            opacity: 0.8 !important;
            color: #868e96 !important;
        }

.excursion-images:hover .imgs-grid img {
    transform: scale(1.02);
}

.img_badge {
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    z-index: 2;
}

.category-badge {
    display: inline-flex;
    align-items: center;
    background: rgba(220, 167, 58, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

    .category-badge i {
        margin-right: 4px;
        font-size: 0.8rem;
    }

.price-badge {
    background: rgba(40, 167, 69, 0.9);
    color: white;
    padding: 6px 10px;
    border-radius: 15px;
    text-align: center;
    backdrop-filter: blur(10px);
    min-width: 70px;
}

    .price-badge h3 {
        margin: 0;
        font-size: 0.9rem;
        font-weight: 700;
        line-height: 1.2;
    }

    .price-badge p {
        margin: 0;
        font-size: 0.65rem;
        opacity: 0.9;
        line-height: 1;
    }

.excursion-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 1rem;
}

.card-title {
    color: #2c3e50;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    line-height: 1.3;
}

/* Card description with expandable functionality */
.card-description-wrapper {
    margin-bottom: 1rem;
}

.card-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 0.2rem; /* Reduced from 0.5rem */
    transition: all 0.3s ease;
    white-space: pre-wrap; /* Preserve line breaks and formatting */
}

    .card-description.truncated {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .card-description.expanded {
        display: block;
        -webkit-line-clamp: unset;
        overflow: visible;
    }

.read-more-link,
.read-less-link {
    color: #dca73a !important;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    margin-top: 0.1rem; /* Reduced from 0.3rem */
}

    .read-more-link:hover,
    .read-less-link:hover {
        color: #f4c842 !important;
        text-decoration: none;
        transform: translateX(2px);
    }

    .read-more-link::after {
        content: " ?";
        margin-left: 0.3rem;
        font-size: 0.7rem;
        transition: transform 0.3s ease;
    }

    .read-less-link::after {
        content: " ?";
        margin-left: 0.3rem;
        font-size: 0.7rem;
        transition: transform 0.3s ease;
    }

    .read-more-link:hover::after,
    .read-less-link:hover::after {
        transform: translateY(-1px);
    }

.excursion-details {
    margin-bottom: 1rem;
}

.detail-item {
    display: flex;
    align-items: center;
    margin-bottom: 0.6rem;
    color: #555;
    font-size: 0.85rem;
}

    .detail-item i {
        color: #dca73a;
        width: 16px;
        margin-right: 8px;
        font-size: 0.8rem;
    }

/* Location and collecting point clickable items */
.detail-item .location-item-link,
.detail-item .collecting-point-item-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #555;
    transition: all 0.3s ease;
    padding: 4px 8px;
    border-radius: 8px;
    margin: -4px -8px;
    cursor: pointer;
}

.detail-item .location-item-link:hover,
.detail-item .collecting-point-item-link:hover {
    background: rgba(220, 167, 58, 0.1);
    color: #333;
    text-decoration: none;
    transform: translateX(2px);
}

.detail-item .location-item-link i,
.detail-item .collecting-point-item-link i {
    color: #dca73a;
    width: 16px;
    margin-right: 8px;
    font-size: 0.8rem;
    transition: all 0.3s ease;
}

.detail-item .location-item-link:hover i {
    color: #dc3545;
    transform: scale(1.1);
}

.detail-item .collecting-point-item-link:hover i {
    color: #28a745;
    transform: scale(1.1);
}

.detail-item .location-item-link span,
.detail-item .collecting-point-item-link span {
    font-weight: 500;
    transition: all 0.3s ease;
}

.detail-item .location-item-link:hover span,
.detail-item .collecting-point-item-link:hover span {
    font-weight: 600;
}

.availability-days {
    margin-bottom: 1rem;
}

.days-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-top: 0.4rem;
}

.day-badge {
    background: rgba(220, 167, 58, 0.1);
    color: #dca73a;
    padding: 0.2rem 0.5rem;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 600;
    border: 1px solid rgba(220, 167, 58, 0.2);
}

.pricing-info {
    margin-top: auto;
}

.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.4rem;
}

.price-label {
    color: #666;
    font-size: 0.85rem;
    font-weight: 500;
}

.price-value {
    color: #2c3e50;
    font-weight: 700;
    font-size: 0.9rem;
}

.book-now-btn {
    background: linear-gradient(135deg, #dca73a 0%, #f4c842 100%);
    border: none;
    color: white;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(220, 167, 58, 0.3);
}

    .book-now-btn:hover {
        background: linear-gradient(135deg, #f4c842 0%, #dca73a 100%);
        transform: translateY(-1px);
        box-shadow: 0 4px 12px rgba(220, 167, 58, 0.4);
        color: white;
    }

    .book-now-btn i {
        margin-right: 0.4rem;
    }

.whatsapp-btn {
    background: linear-gradient(135deg, #25d366 0%, #128c7e 100%) !important;
    border: 2px solid #25d366 !important;
    color: white !important;
    font-weight: 700 !important;
    font-size: 1.1rem !important; /* Slightly larger since it's the main CTA */
    text-decoration: none !important;
    border-radius: 12px;
    padding: 15px 20px !important; /* More padding since it's the primary button */
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin-top: 1rem !important;
}

    .whatsapp-btn:hover {
        background: linear-gradient(135deg, #128c7e 0%, #0d6e63 100%) !important;
        border-color: #128c7e !important;
        color: white !important;
        transform: translateY(-3px) scale(1.02);
        box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
        text-decoration: none !important;
    }

    .whatsapp-btn i {
        margin-right: 10px !important; /* More spacing for prominence */
        font-size: 1.4rem !important; /* Larger icon since it's the main action */
        vertical-align: middle;
        animation: pulse 2s infinite;
    }

    .whatsapp-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
        transition: left 0.6s;
    }

    .whatsapp-btn:hover::before {
        left: 100%;
    }

/* Enhanced WhatsApp icon pulse animation */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
    }
}

/* Add a subtle glow effect */
.whatsapp-btn:focus,
.whatsapp-btn:active {
    outline: none;
    box-shadow: 0 0 0 3px rgba(37, 211, 102, 0.3);
}

/* Discount Banner */
.discount-banner {
    background: linear-gradient(135deg, #dca73a 0%, #f4c842 100%) !important; /* Golden gradient to match site theme */
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    text-align: center;
    margin-bottom: 1rem;
    font-weight: 700;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 10px rgba(220, 167, 58, 0.3); /* Golden shadow */
    animation: pulse-gold 2s infinite; /* New golden pulse animation */
}

    .discount-banner i {
        margin-right: 0.5rem;
        animation: wiggle 1s ease-in-out infinite;
    }

/* Discount placeholder to maintain consistent spacing */
.discount-placeholder {
    height: 2.8rem; /* Same height as discount-banner */
    margin-bottom: 1rem;
    visibility: hidden; /* Reserve space but don't show anything */
}

/* Discount section wrapper */
.discount-section {
    min-height: 3.8rem; /* Ensure consistent height */
}

/* New golden pulse animation for discount */
@keyframes pulse-gold {
    0% {
        box-shadow: 0 2px 10px rgba(220, 167, 58, 0.3);
    }

    50% {
        box-shadow: 0 4px 20px rgba(220, 167, 58, 0.6);
    }

    100% {
        box-shadow: 0 2px 10px rgba(220, 167, 58, 0.3);
    }
}

@keyframes wiggle {
    0%, 7% {
        transform: rotateZ(0);
    }

    15% {
        transform: rotateZ(-15deg);
    }

    20% {
        transform: rotateZ(10deg);
    }

    25% {
        transform: rotateZ(-10deg);
    }

    30% {
        transform: rotateZ(6deg);
    }

    35% {
        transform: rotateZ(-4deg);
    }

    40%, 100% {
        transform: rotateZ(0);
    }
}

/* No Data Message */
.no-data-icon {
    color: #dca73a;
    opacity: 0.6;
}

.no-data-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
}

.no-data-text {
    color: #666;
    font-size: 1.1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }

    .filter-container {
        padding: 1.5rem;
    }

    .filter-buttons {
        justify-content: center;
    }

    .filter-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .card-header {
        padding: 1rem;
    }

    .price-badge {
        position: relative;
        top: auto;
        right: auto;
        margin-top: 1rem;
        display: inline-block;
    }

    .card-body {
        padding: 1rem;
    }

    .card-footer {
        padding: 1rem;
    }

    /* Adjust image heights for mobile - maintain 130px max */
    .excursion_item_img,
    .excursion-images,
    .excursion-images .imgs-grid img,
    .excursion-images .imgs-grid .imgs-grid-image,
    .excursion-images .imgs-grid.imgs-grid-1 .imgs-grid-image,
    .no-image-placeholder {
        height: 120px !important;
        max-height: 120px !important;
    }

        .excursion-images .imgs-grid.imgs-grid-2 .imgs-grid-image,
        .excursion-images .imgs-grid.imgs-grid-3 .imgs-grid-image,
        .excursion-images .imgs-grid.imgs-grid-4 .imgs-grid-image,
        .excursion-images .imgs-grid.imgs-grid-5 .imgs-grid-image,
        .excursion-images .imgs-grid.imgs-grid-6 .imgs-grid-image {
            height: 60px !important;
            max-height: 60px !important;
        }

    .excursion-info {
        padding: 0.8rem;
    }
}

@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
    }

    .filter-container {
        padding: 1rem;
    }

    .excursion-card {
        margin-bottom: 1.5rem;
    }

    /* Further adjust image heights for small mobile - maintain max constraints */
    .excursion_item_img,
    .excursion-images,
    .excursion-images .imgs-grid img,
    .excursion-images .imgs-grid .imgs-grid-image,
    .excursion-images .imgs-grid.imgs-grid-1 .imgs-grid-image,
    .no-image-placeholder {
        height: 110px !important;
        max-height: 110px !important;
    }

        .excursion-images .imgs-grid.imgs-grid-2 .imgs-grid-image,
        .excursion-images .imgs-grid.imgs-grid-3 .imgs-grid-image,
        .excursion-images .imgs-grid.imgs-grid-4 .imgs-grid-image,
        .excursion-images .imgs-grid.imgs-grid-5 .imgs-grid-image,
        .excursion-images .imgs-grid.imgs-grid-6 .imgs-grid-image {
            height: 55px !important;
            max-height: 55px !important;
        }

    .excursion-info {
        padding: 0.7rem;
    }

    .no-image-placeholder i {
        font-size: 1.5rem !important;
    }

    .no-image-placeholder p {
        font-size: 0.75rem !important;
    }

    /* WhatsApp button mobile adjustments */
    .whatsapp-btn {
        font-size: 1rem !important;
        padding: 12px 15px !important;
    }

        .whatsapp-btn i {
            font-size: 1.3rem !important;
            margin-right: 8px !important;
        }
}
