/* ============================================
   SO VIEUX LYON - GeoDirectory Single Place
   Style calqué sur le layout Bridge/WP Job Manager
   
   À ajouter dans le style.css du thème enfant bridge-child
   OU via Apparence > Personnaliser > CSS additionnel
   ============================================ */

/* --- LAYOUT PRINCIPAL --- */
.svl-single-place {
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0 60px;
}

/* --- GALERIE BANDEAU (images côte à côte, pleine largeur) --- */
.svl-gallery {
    width: 100%;
    display: flex;
    flex-direction: row;
    overflow: hidden;
    height: 500px;
    gap: 3px;
    background: #000;
    margin-bottom: 0;
}

.svl-gallery-cell {
    overflow: hidden;
    height: 100%;
}

.svl-gallery-cell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    cursor: default;
}

.svl-gallery-cell:hover img {
    transform: scale(1.03);
}

/* 1 image = pleine largeur */
.svl-gallery-1 .svl-gallery-cell {
    width: 100%;
}

/* 2 images = 50/50 */
.svl-gallery-2 .svl-gallery-cell {
    width: 50%;
}

/* 3 images = 33/33/33 */
.svl-gallery-3 .svl-gallery-cell {
    width: 33.333%;
}

/* --- CONTENT + SIDEBAR LAYOUT --- */
.svl-content-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.svl-main-content {
    flex: 1;
    min-width: 0;
}

.svl-sidebar {
    flex: 0 0 320px;
    position: sticky;
    top: 120px;
}

/* --- TITRE ET CATÉGORIES --- */
.svl-title-block {
    margin-bottom: 30px;
    padding: 30px 0 20px;
    border-bottom: 1px solid #eee;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.svl-title-block h1 {
    font-size: 42px;
    font-weight: 700;
    margin: 0 0 12px;
    color: #222;
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.svl-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
}

.svl-category-badge {
    display: inline-block;
    padding: 4px 14px;
    background: #f0ebe2;
    color: #8a7350;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    transition: background 0.2s;
}

.svl-category-badge:hover {
    background: #e2d9ca;
    color: #6b5838;
    text-decoration: none;
}

.svl-date {
    color: #999;
    font-size: 13px;
}

/* --- DESCRIPTION / CONTENU --- */
.svl-description {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-bottom: 40px;
}

.svl-description h2,
.svl-description h3,
.svl-description h4 {
    color: #333;
    margin-top: 25px;
    margin-bottom: 10px;
}

.svl-description h4 {
    font-size: 18px;
}

.svl-description h6 {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #999;
    margin-bottom: 5px;
}

.svl-description ul {
    padding-left: 20px;
}

.svl-description ul li {
    margin-bottom: 5px;
}

.svl-description strong {
    color: #333;
}

/* --- HORAIRES --- */
.svl-hours {
    margin-bottom: 40px;
    padding: 20px;
    background: #faf8f5;
    border-radius: 6px;
}

.svl-hours h3 {
    font-size: 18px;
    margin: 0 0 15px;
    color: #333;
}

/* --- REVIEWS --- */
.svl-reviews-section {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #eee;
}

.svl-reviews-section h3 {
    font-size: 20px;
    margin: 0 0 20px;
}

/* --- SIDEBAR CONTACT --- */
.svl-contact-card {
    background: #faf8f5;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #ede8df;
    overflow: hidden;
    max-width: 100%;
}

.svl-contact-card h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #333;
    padding-bottom: 12px;
    border-bottom: 1px solid #ede8df;
}

.svl-contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
    font-size: 14px;
    overflow: hidden;
    max-width: 100%;
}

.svl-contact-item:last-child {
    margin-bottom: 0;
}

.svl-contact-item span,
.svl-contact-item a {
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 250px;
}

.svl-contact-item a {
    white-space: nowrap;
}

.svl-address span {
    white-space: normal;
    word-break: break-word;
}

.svl-icon {
    font-size: 18px;
    width: 24px;
    text-align: center;
    flex-shrink: 0;
}

.svl-contact-item a {
    color: #c19a5b;
    text-decoration: none;
    transition: color 0.2s;
    word-break: break-all;
}

.svl-contact-item a:hover {
    color: #a07d42;
}

/* --- SIDEBAR BLOCKS --- */
.svl-sidebar-block {
    background: #fff;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
    border: 1px solid #eee;
}

.svl-sidebar-block h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px;
    color: #333;
}

.svl-related-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.svl-related-item {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.svl-related-item:last-child {
    border-bottom: none;
}

.svl-related-item a {
    text-decoration: none;
    display: block;
}

.svl-related-item h5 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 3px;
    transition: color 0.2s;
}

.svl-related-item a:hover h5 {
    color: #c19a5b;
}

.svl-related-date {
    font-size: 12px;
    color: #999;
}

.svl-see-all {
    display: inline-block;
    margin-top: 12px;
    font-size: 13px;
    color: #c19a5b;
    text-decoration: none;
    font-weight: 600;
}

.svl-see-all:hover {
    text-decoration: underline;
}

/* --- RELATED GRID (bas de page) --- */
.svl-related-grid-section {
    margin-top: 50px;
    padding-top: 40px;
    border-top: 1px solid #eee;
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 20px;
    padding-right: 20px;
}

.svl-related-grid-section h3 {
    font-size: 22px;
    margin: 0 0 25px;
    color: #333;
}

.svl-related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.svl-related-card {
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    border: 1px solid #eee;
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.svl-related-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.svl-related-card a {
    text-decoration: none;
    display: block;
}

.svl-related-card-img {
    width: 100%;
    height: 160px;
    overflow: hidden;
}

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

.svl-related-card:hover .svl-related-card-img img {
    transform: scale(1.05);
}

.svl-related-card-info {
    padding: 14px;
}

.svl-related-card-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px;
    line-height: 1.3;
}

.svl-related-card .svl-related-author {
    font-size: 12px;
    color: #999;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .svl-content-wrapper {
        flex-direction: column;
    }
    
    .svl-sidebar {
        flex: none;
        width: 100%;
        position: static;
    }
    
    .svl-related-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .svl-gallery {
        height: 300px;
    }
    
    .svl-title-block h1 {
        font-size: 28px;
    }
    
    .svl-related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .svl-gallery {
        height: 200px;
    }
    
    .svl-related-grid {
        grid-template-columns: 1fr;
    }
    
    .svl-title-block h1 {
        font-size: 24px;
    }
}
