/* Ezy Tours Booking v2.0 - Enhanced Frontend Styles */

/* DESKTOP DEFAULT: 3 COLUMNS */
.etb-tours-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin: 30px 0;
}

/* Override Elementor settings - force 3 columns on desktop */
.etb-cols-2, .etb-cols-3, .etb-cols-4 {
    grid-template-columns: repeat(3, 1fr) !important;
}

/* Tablet: 2 columns */
@media (max-width: 1024px) {
    .etb-tours-grid,
    .etb-cols-2, .etb-cols-3, .etb-cols-4 {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Mobile: 1 column */
@media (max-width: 768px) {
    .etb-tours-grid,
    .etb-cols-2, .etb-cols-3, .etb-cols-4 {
        grid-template-columns: 1fr !important;
    }
}

/* Tour Card - Enhanced */
.etb-tour-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    position: relative;
}

.etb-tour-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.etb-tour-image {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.etb-tour-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.etb-tour-card:hover .etb-tour-image img {
    transform: scale(1.1);
}

/* Badges */
.etb-tour-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    z-index: 2;
}

.etb-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

.etb-badge-bestseller {
    background: rgba(251, 146, 60, 0.95);
    color: white;
}

.etb-badge-new {
    background: rgba(16, 185, 129, 0.95);
    color: white;
}

.etb-badge-discount {
    background: rgba(239, 68, 68, 0.95);
    color: white;
}

/* Wishlist Button */
.etb-wishlist-btn {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 3;
}

.etb-wishlist-btn:hover {
    transform: scale(1.1);
    background: #FEE2E2;
}

.etb-wishlist-btn.active {
    background: #EF4444;
    color: white;
}

.etb-wishlist-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Tour Content */
.etb-tour-content {
    padding: 24px;
}

.etb-tour-title {
    margin: 0 0 12px 0;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

.etb-tour-title a {
    color: #1F2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.etb-tour-title a:hover {
    color: #3B82F6;
}

/* Tour Meta - Enhanced */
.etb-tour-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 13px;
    color: #6B7280;
}

.etb-tour-meta span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.etb-tour-meta svg,
.etb-tour-meta i {
    width: 16px;
    height: 16px;
    color: #3B82F6;
}

/* Rating Stars */
.etb-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
}

.etb-stars {
    display: flex;
    gap: 2px;
    color: #FBBF24;
}

.etb-rating-count {
    color: #6B7280;
    font-size: 12px;
}

/* Tour Footer - Enhanced */
.etb-tour-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #E5E7EB;
    gap: 15px;
}

.etb-tour-price {
    display: flex;
    flex-direction: column;
}

.etb-price-label {
    font-size: 12px;
    color: #9CA3AF;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.etb-price-amount {
    font-size: 28px;
    font-weight: 800;
    color: #3B82F6;
    line-height: 1;
}

.etb-price-old {
    font-size: 18px;
    color: #9CA3AF;
    text-decoration: line-through;
    margin-left: 8px;
}

/* Buttons - Enhanced */
.etb-book-now-btn {
    background: linear-gradient(135deg, #3B82F6 0%, #2563EB 100%);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.etb-book-now-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
}

/* Availability Badge */
.etb-availability-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 15px;
}

.etb-availability-badge.available {
    background: #D1FAE5;
    color: #047857;
}

.etb-availability-badge.limited {
    background: #FEF3C7;
    color: #B45309;
}

.etb-availability-badge.sold-out {
    background: #FEE2E2;
    color: #DC2626;
}

.etb-availability-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Search & Filter Bar */
.etb-filter-bar {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
    align-items: center;
}

.etb-filter-bar select,
.etb-filter-bar input {
    padding: 10px 15px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.etb-filter-bar select:focus,
.etb-filter-bar input:focus {
    outline: none;
    border-color: #3B82F6;
}

/* Pickup Location Selector in Modal */
.etb-pickup-locations {
    display: grid;
    gap: 12px;
}

.etb-pickup-option {
    display: flex;
    align-items: flex-start;
    padding: 15px;
    border: 2px solid #E5E7EB;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.etb-pickup-option:hover {
    border-color: #3B82F6;
    background: #F0F9FF;
}

.etb-pickup-option.selected {
    border-color: #3B82F6;
    background: #DBEAFE;
}

.etb-pickup-option input[type="radio"] {
    margin-right: 12px;
    margin-top: 2px;
}

.etb-pickup-info h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
    font-weight: 600;
}

.etb-pickup-address {
    font-size: 13px;
    color: #6B7280;
    margin-bottom: 5px;
}

.etb-pickup-cost {
    font-size: 14px;
    font-weight: 600;
    color: #3B82F6;
}

/* Add-ons Section in Modal */
.etb-addons-list {
    display: grid;
    gap: 12px;
}

.etb-addon-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: #F9FAFB;
    border-radius: 8px;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.etb-addon-item:hover {
    border-color: #3B82F6;
}

.etb-addon-info h4 {
    margin: 0 0 5px 0;
    font-size: 15px;
    font-weight: 600;
}

.etb-addon-description {
    font-size: 13px;
    color: #6B7280;
}

.etb-addon-controls {
    display: flex;
    align-items: center;
    gap: 10px;
}

.etb-addon-price {
    font-weight: 700;
    color: #3B82F6;
    margin-right: 10px;
}

/* Responsive Enhancements */
@media (max-width: 640px) {
    .etb-tour-footer {
        flex-direction: column;
        align-items: stretch;
    }
    
    .etb-book-now-btn {
        width: 100%;
        padding: 14px;
    }
    
    .etb-price-amount {
        font-size: 24px;
    }
}

/* Loading States */
.etb-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.6;
}

.etb-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border: 3px solid #E5E7EB;
    border-top-color: #3B82F6;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}
