/*
Theme Name:  Wilddale Child Theme
Description: Child theme for the Wilddale theme
Author:      ThemetechMount
Author URI:  https://www.themetechmount.com/
Template:    Wilddale
Version:     0.1
Tags:        light, white, two-columns, three-columns, four-columns, right-sidebar, left-sidebar, responsive, retina
*/


/* NOTE: Main theme's style.css file is already added in head tag. /*

/* =Theme customization starts here
-------------------------------------------------------------- */

/* ==========================================================================
   Section : Établissements à proximité (Hôtels & Restaurants liés via ACF)
   ========================================================================== */

.loisir-proximite-section {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid #e2e8f0;
    clear: both; /* Sécurise la mise en page si des éléments flottants précèdent */
}

.proximite-section-title {
    font-size: 1.8rem;
    color: #1e293b;
    margin-bottom: 6px;
    font-weight: 700;
}

.proximite-section-subtitle {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Grille flexible responsive */
.proximite-flex-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
}

@media (min-width: 640px) {
    .proximite-flex-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 colonnes sur tablette */
    }
}

@media (min-width: 1024px) {
    .proximite-flex-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 colonnes sur grand écran */
    }
}

/* --------------------------------------------------------------------------
   Design de la Carte Recommandation (Item Card)
   -------------------------------------------------------------------------- */
.proximite-item-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.proximite-item-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 20px -5px rgba(0, 0, 0, 0.06);
}

/* Bloc Médias (Image + Badge) */
.proximite-card-media {
    position: relative;
    padding-top: 55%; /* Ratio hauteur/largeur */
    background: #f1f5f9;
    overflow: hidden;
}

.proximite-card-media img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.proximite-item-card:hover .proximite-card-media img {
    transform: scale(1.04);
}

/* Badges d'identification sémantiques (Hôtel vs Restaurant) */
.proximite-type-tag {
    position: absolute;
    top: 12px;
    left: 12px;
    color: #ffffff;
    padding: 5px 12px;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 6px;
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Couleur bleue pour l'Hébergement */
.badge-is-hotel {
    background: #3182ce;
}

/* Couleur orange/rouge pour la Restauration */
.badge-is-restaurant {
    background: #dd6b20;
}

/* Zone d'information sous l'image */
.proximite-card-details {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.proximite-item-title {
    font-size: 1.15rem;
    margin: 0 0 10px 0;
    line-height: 1.4;
    font-weight: 700;
}

.proximite-item-title a {
    color: #1e293b;
    text-decoration: none;
    transition: color 0.2s;
}

.proximite-item-card:hover .proximite-item-title a {
    color: #27ae60; /* Utilise la couleur principale verte de votre site */
}

/* Géolocalisation de la structure recommandée */
.proximite-item-geo {
    font-size: 0.85rem;
    color: #64748b;
    margin-top: auto; /* Aligne toujours la localisation au plus bas de la carte */
    display: flex;
    align-items: center;
    gap: 4px;
}

.proximite-item-geo .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    color: #94a3b8;
}

.proximite-item-geo a {
    color: #64748b;
    text-decoration: none;
}

.proximite-item-geo a:hover {
    color: #27ae60;
    text-decoration: underline;
}

