/* 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;
    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 {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.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;
}

.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;
}

/* Discount Banner */
.discount-banner {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    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(40, 167, 69, 0.3);
    animation: pulse-green 2s infinite;
}

.discount-banner i {
    margin-right: 0.5rem;
    animation: wiggle 1s ease-in-out infinite;
}

@keyframes pulse-green {
    0% {
        box-shadow: 0 2px 10px rgba(40, 167, 69, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(40, 167, 69, 0.6);
    }
    100% {
        box-shadow: 0 2px 10px rgba(40, 167, 69, 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;
    }
}