/**
 * Tour Gallery v2 - Modern Design
 * Inspired by Airbnb/GetYourGuide
 */

/* ================================================
   HERO SECTION V2
   ================================================ */
.bc-hero-section-v2 {
    background: #fff;
    padding: 24px 0 32px;
}

/* Dark mode */
[data-theme="dark"] .bc-hero-section-v2 {
    background: #1a1a1a;
}

/* ================================================
   TOUR HEADER
   ================================================ */
.bc-tour-header {
    margin-bottom: 20px;
}

.bc-tour-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a2b48;
    line-height: 1.3;
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

[data-theme="dark"] .bc-tour-title {
    color: #f5f5f5;
}

@media (max-width: 768px) {
    .bc-tour-title {
        font-size: 22px;
        margin-bottom: 12px;
    }
}

/* Tour Meta */
.bc-tour-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 16px;
}

@media (max-width: 768px) {
    .bc-tour-meta {
        gap: 12px;
    }
}

/* Rating Badge */
.bc-rating-badge {
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #5191FA 0%, #3d7be0 100%);
    padding: 8px 14px;
    border-radius: 10px;
    color: #fff;
}

.bc-rating-badge .rating-value {
    font-size: 18px;
    font-weight: 700;
}

.bc-rating-badge .rating-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bc-rating-badge .rating-stars {
    display: flex;
    gap: 2px;
}

.bc-rating-badge .rating-stars i {
    font-size: 11px;
    color: rgba(255,255,255,0.4);
}

.bc-rating-badge .rating-stars i.active {
    color: #FFD60A;
}

.bc-rating-badge .rating-count {
    font-size: 12px;
    opacity: 0.9;
}

/* Location Badge */
.bc-location-badge,
.bc-duration-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5E6D77;
    font-size: 14px;
}

.bc-location-badge i,
.bc-duration-badge i {
    color: #5191FA;
    font-size: 16px;
}

[data-theme="dark"] .bc-location-badge,
[data-theme="dark"] .bc-duration-badge {
    color: #b0b0b0;
}

/* Quick Tags */
.bc-quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.bc-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #f3f4f6;
    border-radius: 20px;
    font-size: 13px;
    color: #5E6D77;
    white-space: nowrap;
}

.bc-tag i {
    font-size: 12px;
}

.bc-tag-success {
    background: #D1FAE5;
    color: #059669;
}

.bc-tag-category {
    background: #EBF3FF;
    color: #5191FA;
}

[data-theme="dark"] .bc-tag {
    background: #2a2a2a;
    color: #b0b0b0;
}

[data-theme="dark"] .bc-tag-success {
    background: rgba(16, 185, 129, 0.2);
    color: #4ADE80;
}

[data-theme="dark"] .bc-tag-category {
    background: rgba(81, 145, 250, 0.2);
    color: #5191FA;
}

@media (max-width: 768px) {
    .bc-tag {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* ================================================
   GALLERY CONTAINER
   ================================================ */
.bc-gallery-container {
    position: relative;
}

/* Gallery Grid - Base */
.bc-gallery-grid {
    display: grid;
    gap: 8px;
    border-radius: 16px;
    overflow: hidden;
}

/* 5+ Photos Layout */
.bc-gallery-5 {
    grid-template-columns: 2fr 1fr;
    height: 480px;
}

.bc-gallery-5 .bc-gallery-main {
    height: 100%;
}

.bc-gallery-5 .bc-gallery-side {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    height: 100%;
}

/* 3-4 Photos Layout */
.bc-gallery-3 {
    grid-template-columns: 2fr 1fr;
    height: 400px;
}

.bc-gallery-3 .bc-gallery-main {
    height: 100%;
}

.bc-gallery-3 .bc-gallery-side {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    gap: 8px;
    height: 100%;
}

/* Single Photo Layout */
.bc-gallery-single {
    height: 450px;
}

/* Gallery Item */
.bc-gallery-item {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    cursor: pointer;
}

.bc-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.bc-gallery-item:hover img {
    transform: scale(1.05);
}

.bc-gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.3) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.bc-gallery-item:hover .bc-gallery-overlay {
    opacity: 1;
}

/* More Count Overlay */
.bc-more-count {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.5);
    color: #fff;
    font-weight: 600;
    backdrop-filter: blur(2px);
}

.bc-more-count i {
    font-size: 28px;
    margin-bottom: 8px;
}

.bc-more-count span {
    font-size: 18px;
}

/* Buttons */
.bc-btn-all-photos {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #1a2b48;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.bc-btn-all-photos:hover {
    background: #f3f4f6;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.bc-btn-all-photos i {
    font-size: 16px;
}

.bc-btn-video {
    position: absolute;
    bottom: 16px;
    left: 180px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    background: #1a2b48;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: all 0.2s ease;
}

.bc-btn-video:hover {
    background: #2a3b58;
    transform: translateY(-2px);
}

.bc-btn-video i {
    font-size: 18px;
}

/* Gallery Actions */
.bc-gallery-actions {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    gap: 8px;
}

.bc-action-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: none;
    border-radius: 50%;
    color: #1a2b48;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.2s ease;
}

.bc-action-btn:hover {
    background: #f3f4f6;
    transform: scale(1.1);
}

.bc-action-btn i {
    font-size: 16px;
}

.bc-action-btn.active i,
.service-wishlist.active i {
    color: #EF4444;
}

/* ================================================
   MOBILE RESPONSIVE
   ================================================ */
@media (max-width: 992px) {
    .bc-gallery-5,
    .bc-gallery-3 {
        height: 380px;
    }
    
    .bc-gallery-single {
        height: 350px;
    }
}

@media (max-width: 768px) {
    .bc-hero-section-v2 {
        padding: 16px 0 24px;
    }
    
    .bc-gallery-grid {
        border-radius: 12px;
    }
    
    /* Mobile: 2 columns for 5+ photos */
    .bc-gallery-5 {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .bc-gallery-5 .bc-gallery-main {
        height: 250px;
    }
    
    .bc-gallery-5 .bc-gallery-side {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: 1fr;
        height: 80px;
    }
    
    /* Mobile: Stack for 3-4 photos */
    .bc-gallery-3 {
        grid-template-columns: 1fr;
        height: auto;
    }
    
    .bc-gallery-3 .bc-gallery-main {
        height: 220px;
    }
    
    .bc-gallery-3 .bc-gallery-side {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: 1fr;
        height: 100px;
    }
    
    .bc-gallery-single {
        height: 280px;
    }
    
    /* Buttons repositioning */
    .bc-btn-all-photos {
        bottom: 12px;
        left: 12px;
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .bc-btn-video {
        bottom: 12px;
        left: auto;
        right: 60px;
        padding: 8px 12px;
        font-size: 13px;
    }
    
    .bc-gallery-actions {
        top: 12px;
        right: 12px;
    }
    
    .bc-action-btn {
        width: 36px;
        height: 36px;
    }
    
    .bc-more-count i {
        font-size: 20px;
        margin-bottom: 4px;
    }
    
    .bc-more-count span {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .bc-gallery-5 .bc-gallery-main {
        height: 200px;
    }
    
    .bc-gallery-5 .bc-gallery-side {
        height: 60px;
    }
    
    .bc-gallery-3 .bc-gallery-main {
        height: 180px;
    }
    
    .bc-gallery-3 .bc-gallery-side {
        height: 80px;
    }
    
    .bc-gallery-single {
        height: 220px;
    }
    
    .bc-btn-all-photos span,
    .bc-btn-video span {
        display: none;
    }
    
    .bc-btn-all-photos,
    .bc-btn-video {
        width: 40px;
        height: 40px;
        padding: 0;
        justify-content: center;
        border-radius: 50%;
    }
    
    .bc-btn-video {
        right: 12px;
        left: auto;
    }
}
