/**
 * GetYourGuide-Inspired Card Design
 * Wonderland Penida V2
 */

/* Tours Grid - 4 Columns */
.tours-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 32px;
}

/* Modern Card Design */
.tour-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e7e7e7;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.tour-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    border-color: #d0d0d0;
}

/* Image Container */
.tour-image-container {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
    background: #f5f5f5;
}

.tour-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.tour-card:hover .tour-image {
    transform: scale(1.08);
}

/* Wishlist Heart Icon (top right) */
.tour-wishlist {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.2s ease;
}

.tour-wishlist:hover {
    background: #ffffff;
    transform: scale(1.1);
}

.tour-wishlist svg {
    width: 18px;
    height: 18px;
    stroke: #333;
    fill: none;
    stroke-width: 2;
}

.tour-wishlist.active svg {
    fill: #e74c3c;
    stroke: #e74c3c;
}

/* Certified Badge (top left) */
.tour-badge-certified {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #1a1a1a;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Badge Styles */
.tour-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Red Badge - Likely to Sell Out */
.tour-badge-red {
    background: #e74c3c;
}

/* Orange Badge - Must Try */
.tour-badge-orange {
    background: #ff8c42;
}

/* Blue Badge - Curated Pick */
.tour-badge-blue {
    background: #3498db;
}

/* Purple Badge - Premium Choice */
.tour-badge-purple {
    background: #9b59b6;
}

/* Legacy support */
.tour-badge-sellout {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e74c3c;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* Price Badge */
.tour-price-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    color: #333;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(8px);
}

/* Card Content */
.tour-content {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Category Label */
.tour-category {
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 8px;
    text-transform: capitalize;
}

/* Tour Title */
.tour-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.4;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 44px;
}

.tour-title:hover {
    color: #0066cc;
}

/* Tour Subtitle/Description */
.tour-subtitle {
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-grow: 1;
}

/* Tour Meta Info */
.tour-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 13px;
    color: #6b7280;
    flex-wrap: wrap;
}

.tour-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tour-meta-item svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
}

/* Tour Meta Info (duration + pickup) */
.tour-meta-info {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Tour Duration (old style - keep for compatibility) */
.tour-duration {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 12px;
}

.tour-duration svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

/* Rating */
.tour-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    margin-bottom: 0;
}

.tour-rating-stars {
    color: #fbbf24;
    font-weight: 600;
    font-size: 13px;
}

.tour-rating-score {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 13px;
}

.tour-rating-count {
    color: #6b7280;
    font-size: 12px;
}

/* Tour Footer */
.tour-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin-top: auto;
    padding-top: 12px;
    border-top: 1px solid #f3f4f6;
}

/* Price Display */
.tour-price-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    flex-shrink: 0;
    width: 100%;
}

.tour-price-from {
    font-size: 11px;
    color: #6b7280;
    line-height: 1;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tour-price-amount {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
    white-space: nowrap;
}

.tour-price-original {
    font-size: 12px;
    color: #9ca3af;
    text-decoration: line-through;
}

/* Book Button */
.tour-footer .btn {
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    white-space: nowrap;
}

/* Responsive */
@media (max-width: 1200px) {
    .tours-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .tours-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 640px) {
    .tours-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    /* Mobile: Horizontal card layout like GetYourGuide */
    .tour-card {
        display: grid;
        grid-template-columns: 120px 1fr;
        gap: 12px;
        height: auto;
    }
    
    .tour-image-container {
        padding-top: 0;
        height: 120px;
        border-radius: 12px;
        overflow: hidden;
    }
    
    .tour-image {
        position: relative;
        height: 100%;
    }
    
    .tour-content {
        padding: 0;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }
    
    .tour-category {
        font-size: 12px;
        margin-bottom: 4px;
    }
    
    .tour-title {
        font-size: 14px;
        font-weight: 700;
        margin-bottom: 4px;
        min-height: auto;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .tour-meta-info {
        font-size: 12px;
        margin-bottom: 6px;
    }
    
    .tour-footer {
        padding-top: 0;
        margin-top: 0;
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .tour-rating {
        font-size: 13px;
        margin-bottom: 0;
    }
    
    .tour-rating-stars {
        font-size: 14px;
    }
    
    .tour-rating-count {
        font-size: 12px;
    }
    
    .tour-price-display {
        flex-direction: row;
        align-items: baseline;
    }
    
    .tour-price-from {
        font-size: 12px;
    }
    
    .tour-price-amount {
        font-size: 16px;
        font-weight: 700;
    }
    
    /* Mobile: Adjust badges */
    .tour-badge-sellout,
    .tour-badge-certified {
        font-size: 10px;
        padding: 4px 8px;
        top: 8px;
        left: 8px;
    }
    
    .tour-wishlist {
        width: 32px;
        height: 32px;
        top: 8px;
        right: 8px;
    }
    
    .tour-wishlist svg {
        width: 16px;
        height: 16px;
    }
}

/* Section Improvements */
.section {
    padding: 60px 0;
}

.section-title {
    font-size: 32px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 18px;
    color: #6b7280;
    margin-bottom: 32px;
}

/* Filter Buttons - GetYourGuide Style */
.filter-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 24px;
}

.btn-filter {
    padding: 10px 20px;
    background: #ffffff;
    color: #1a1a1a;
    border: 1px solid #d1d5db;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-filter:hover {
    background: #f9fafb;
    border-color: #9ca3af;
}

.btn-filter.active {
    background: #1a1a1a;
    color: #ffffff;
    border-color: #1a1a1a;
}

/* Horizontal Scroll for Mobile Filters */
@media (max-width: 640px) {
    .filter-buttons {
        justify-content: flex-start;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
        padding-bottom: 8px;
    }
    
    .filter-buttons::-webkit-scrollbar {
        display: none;
    }
    
    .btn-filter {
        flex-shrink: 0;
    }

	.tour-badge {
	  top: 5px;
	  left: 5px;
	  padding: 4px 8px;
}
