/* ===== BUSINESS LISTING PAGE - NEW DESIGN ===== */

/* Root Variables */
:root {
    --primary: #1d2a40;
    --primary-hover: #2c4e6d;
    --secondary: #ffd700;
    --secondary-hover: #fbbf24;
    --success: #34a853;
    --warning: #fbbc04;
    --danger: #ea4335;
    --background: #f8f9fa;
    --surface: #ffffff;
    --text-primary: #1d2a40;
    --text-secondary: #6c757d;
    --border: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1);
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
}

/* ===== PART 3.1: HEADER & PHOTO GALLERY ===== */
.business-header-gallery {
    margin-bottom: 2rem;
}

.gallery-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1rem;
    height: 500px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Main Hero Image */
.main-hero-image {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg) 0 0 var(--radius-lg);
}

.hero-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.main-hero-image:hover .hero-img {
    transform: scale(1.05);
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    padding: 2rem;
    color: white;
}

.hero-content {
    text-align: left;
}

.business-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    color: white;
}

.business-category {
    font-size: 1.1rem;
    color: var(--secondary);
    margin-bottom: 1rem;
    font-weight: 600;
}

.business-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1rem;
}

.business-rating .stars {
    color: var(--secondary);
}

.rating-text {
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

/* Thumbnail Gallery */
.thumbnail-gallery {
    display: grid;
    grid-template-rows: repeat(3, 1fr);
    gap: 1rem;
    padding: 1rem;
    background: var(--surface);
    border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}

.gallery-thumbnail {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gallery-thumbnail:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-thumbnail:hover .thumb-overlay {
    opacity: 1;
}

.thumb-overlay i {
    color: white;
    font-size: 1.5rem;
}

.view-more-thumb {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.view-more-content {
    text-align: center;
    color: white;
}

.view-more-content i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.view-more-content span {
    font-size: 0.9rem;
    font-weight: 600;
}

/* ===== MAIN CONTENT LAYOUT ===== */
.business-content-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* ===== PART 3.2: MAIN CONTENT COLUMN ===== */
.main-content-column {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.content-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.section-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border);
    display: flex;
    align-items: center;
}

.about-content .lead {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.about-details {
    color: var(--text-secondary);
    line-height: 1.6;
}

.services-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.location-content .address-text {
    font-size: 1.1rem;
    color: var(--text-primary);
    font-weight: 500;
}

.map-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* ===== PART 3.3: ACTION SIDEBAR ===== */
.action-sidebar {
    position: sticky;
    top: 2rem;
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    color: white;
    box-shadow: var(--shadow-lg);
}

.cta-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    text-align: center;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    border-radius: var(--radius-md);
    background: rgba(255,255,255,0.1);
    color: white;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.cta-btn:hover {
    background: rgba(255,255,255,0.2);
    transform: translateY(-2px);
    color: white;
    text-decoration: none;
}

.cta-btn.cta-phone:hover {
    background: var(--success);
    border-color: var(--success);
}

.cta-btn.cta-website:hover {
    background: var(--secondary);
    border-color: var(--secondary);
    color: var(--primary);
}

.cta-btn.cta-directions:hover {
    background: var(--danger);
    border-color: var(--danger);
}

/* Info Box */
.info-box {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.info-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border);
}

.info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border);
}

.info-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.info-icon {
    width: 40px;
    height: 40px;
    background: var(--background);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.info-content {
    flex: 1;
}

.info-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1rem;
    color: var(--text-primary);
    font-weight: 500;
    line-height: 1.4;
}

/* Hours Status */
.hours-status {
    margin-bottom: 1rem;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.open {
    background: var(--success);
    color: white;
}

.status-badge.closed {
    background: var(--danger);
    color: white;
}

.hours-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}

.hours-item.current-day {
    background: var(--background);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
    font-weight: 600;
}

.day-name {
    color: var(--text-primary);
    font-weight: 500;
}

.day-hours {
    color: var(--text-secondary);
}

.closed-text {
    color: var(--danger);
    font-weight: 500;
}

/* Features */
.features-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-badge {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-badge.elite {
    background: linear-gradient(135deg, var(--secondary) 0%, #fbbf24 100%);
    color: var(--primary);
}

.feature-badge.premium {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
    color: white;
}

.feature-badge.kosher {
    background: var(--success);
    color: white;
}

.feature-badge.delivery {
    background: var(--warning);
    color: var(--primary);
}

/* ===== PART 3.4: REVIEWS SECTION ===== */
.reviews-section {
    background: var(--background);
    padding: 3rem 0;
    margin-top: 2rem;
}

.reviews-content {
    max-width: 800px;
    margin: 0 auto;
}

.review-summary {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
    text-align: center;
}

.summary-header {
    margin-bottom: 2rem;
}

.rating-overview {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
}

.average-rating {
    text-align: center;
}

.rating-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.rating-stars {
    margin: 0.5rem 0;
}

.rating-stars .stars {
    font-size: 1.5rem;
}

.total-reviews {
    color: var(--text-secondary);
    font-size: 1rem;
}

.review-actions {
    margin-top: 1.5rem;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.review-card {
    background: var(--surface);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--background);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.avatar-placeholder {
    color: var(--text-secondary);
    font-size: 1.5rem;
}

.reviewer-details {
    display: flex;
    flex-direction: column;
}

.reviewer-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 1rem;
}

.review-date {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.review-rating .stars {
    color: var(--secondary);
}

.review-content {
    color: var(--text-secondary);
    line-height: 1.6;
}

.review-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.review-text {
    margin: 0;
}

/* No Reviews State */
.no-reviews-state {
    text-align: center;
    padding: 3rem 2rem;
    background: var(--surface);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}

.no-reviews-icon {
    font-size: 4rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.no-reviews-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.no-reviews-text {
    color: var(--text-secondary);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ===== LIGHTBOX MODAL ===== */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.lightbox-content {
    background: var(--surface);
    border-radius: var(--radius-lg);
    max-width: 90vw;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}

.lightbox-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.lightbox-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--background);
    color: var(--text-primary);
}

.lightbox-body {
    padding: 1.5rem;
    text-align: center;
}

.lightbox-img {
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: var(--radius-md);
}

.lightbox-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border);
}

.lightbox-nav {
    background: var(--background);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-primary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-nav:hover {
    background: var(--primary);
    color: white;
}

.lightbox-counter {
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .gallery-layout {
        height: 400px;
    }
    
    .business-title {
        font-size: 2rem;
    }
    
    .business-content-layout {
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .gallery-layout {
        grid-template-columns: 1fr;
        height: auto;
        gap: 0;
    }
    
    .main-hero-image {
        height: 300px;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    
    .thumbnail-gallery {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: 1fr;
        border-radius: 0 0 var(--radius-lg) var(--radius-lg);
        padding: 0.5rem;
    }
    
    .business-content-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .action-sidebar {
        position: static;
        order: -1;
    }
    
    .business-title {
        font-size: 1.75rem;
    }
    
    .content-card {
        padding: 1.5rem;
    }
    
    .cta-box,
    .info-box {
        padding: 1.25rem;
    }
    
    .rating-overview {
        flex-direction: column;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .hero-overlay {
        padding: 1.5rem;
    }
    
    .business-title {
        font-size: 1.5rem;
    }
    
    .business-category {
        font-size: 1rem;
    }
    
    .content-card {
        padding: 1rem;
    }
    
    .cta-box,
    .info-box {
        padding: 1rem;
    }
    
    .cta-buttons {
        gap: 0.5rem;
    }
    
    .cta-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.9rem;
    }
    
    .info-item {
        gap: 0.75rem;
    }
    
    .info-icon {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
} 