/* Place Image Gallery Styles */

/* Desktop: 50/50 split layout */
.place-images-gallery {
    display: flex;
    gap: 0.5rem;
    border-radius: 0.8rem;
    overflow: hidden;
    height: 500px;
    margin-bottom: 2rem;
}

.main-image {
    flex: 1;
    overflow: hidden;
    background-color: #f0f0f0;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.image-grid {
    flex: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 0.5rem;
}

.grid-image {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
}

.grid-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Round corners for the grid images */
.image-grid .grid-image:first-child {
    border-radius: 0;
}

.image-grid .grid-image:nth-child(2) {
    border-radius: 0 0.8rem 0 0;
}

.image-grid .grid-image:nth-child(3) {
    border-radius: 0;
}

.image-grid .grid-image:nth-child(4) {
    border-radius: 0 0 0.8rem 0;
}

.grid-image-placeholder {
    background-color: #f0f0f0;
}

/* Placeholder for no images */
.place-images-placeholder {
    height: 500px;
    background-color: #f8f9fa;
    border-radius: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.placeholder-content {
    text-align: center;
}

/* Metadata row styling */
.metadata-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.open {
    background-color: #d1fae5;
    color: #065f46;
}

.status-badge.open::before {
    content: '';
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #10b981;
    border-radius: 50%;
}

.status-badge.closed {
    background-color: #fee2e2;
    color: #991b1b;
}

.status-badge.closed::before {
    content: '';
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    background-color: #ef4444;
    border-radius: 50%;
}

.separator {
    color: #9ca3af;
    font-weight: 400;
}

.business-type {
    font-size: 0.875rem;
    color: #6b7280;
}

.rating {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.rating i {
    color: #fbbf24;
}

.review-count {
    color: #6b7280;
    font-weight: 400;
}

/* Mobile: horizontal scroll gallery */
@media (max-width: 767px) {
    .place-images-gallery {
        display: flex;
        grid-template-columns: none;
        overflow-x: auto;
        height: 14rem;
        gap: 0.5rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0;
    }
    
    .main-image {
        grid-row: auto;
        min-width: 85vw;
        height: 14rem;
        scroll-snap-align: start;
    }
    
    .image-grid {
        display: contents; /* Flatten the grid on mobile */
    }
    
    .grid-image {
        min-width: 85vw;
        height: 14rem;
        scroll-snap-align: start;
    }
    
    .grid-image-placeholder {
        display: none; /* Hide placeholders on mobile */
    }
    
    .place-images-placeholder {
        height: 14rem;
    }
    
    .metadata-row {
        font-size: 0.8125rem;
    }
}

/* Tablet adjustments */
@media (min-width: 768px) and (max-width: 991px) {
    .place-images-gallery {
        height: 24rem;
    }
}


