/* ==========================================================================
   1. GRILLE ET STRUCTURE COMMUNE
   ========================================================================== */
.home-destinations-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    column-gap: 25px !important;
    row-gap: 35px !important;
    width: 100% !important;
}

.sidebar-card {
    background-color: #0f2d6b;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    margin-bottom: 25px !important;
}

.sidebar-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

.sidebar-card .card-link {
    text-decoration: none !important;
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #ffffff !important;
}

.sidebar-card .dest-card-title,
.sidebar-card .dest-card-title a {
    color: #ffffff !important;
}

/* ==========================================================================
   2. IMAGES
   ========================================================================== */
.sidebar-card .v-image-box, 
.sidebar-card .hero-image-box {
    position: relative;
    height: 180px;
    overflow: hidden;
    flex-shrink: 0;
}

.sidebar-card.height-medium .v-image-box {
    height: 350px !important;
}

.sidebar-card .dest-thumb {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.sidebar-card .sidebar-price-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: #ff9800;
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 6px;
    font-weight: 800;
}

/* ==========================================================================
   3. CONTENU
   ========================================================================== */
.sidebar-card .v-content-box {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
    padding: 20px;
}

.sidebar-card .v-main-info {
    flex: 1;
}

.sidebar-card .parent-cat {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.8);
    margin-bottom: 10px;
}

.sidebar-card .icon-pin {
    width: 30px;
    height: 30px;
}

.sidebar-card .dest-card-title {
    font-size: 24px;
    font-weight: 900;
    margin: 0;
}

/* ==========================================================================
   4. COLONNE DROITE (ICÔNES)
   ========================================================================== */
.sidebar-card .v-tech-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-left: 1px solid rgba(255,255,255,0.3);
    padding-left: 15px;
}

.sidebar-card .tech-item {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* ==========================================================================
   5. HERO DESKTOP
   ========================================================================== */
@media (min-width: 900px) {
    .home-destinations-grid .height-high { 
        grid-column: span 3 !important; 
    }

    .sidebar-card .layout-hero {
        display: flex !important;
        flex-direction: row-reverse;
        height: 550px;
        width: 100%;
    }

    .sidebar-card .hero-content {
        width: 40% !important;
        padding: 50px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        background-color: #0f2d6b;
    }

    .sidebar-card .hero-image-box { 
        width: 60% !important; 
        height: 100% !important;
    }

    .sidebar-card.height-high .dest-card-title { 
        font-size: 45px !important; 
        margin-bottom: 20px !important;
    }

    .sidebar-card .hero-tech-bottom {
        flex-direction: row !important;
        gap: 30px;
        border-left: none !important;
        padding: 25px 0 0 0 !important;
        margin: 0 !important;
    }

    .sidebar-card .card-short-description {
        margin-top: 20px;
        font-size: 16px;
        color: rgba(255,255,255,0.8);
        line-height: 1.6;
    }
}

/* ==========================================================================
   6. MOBILE
   ========================================================================== */
@media (max-width: 899px) {
    .home-destinations-grid { 
        grid-template-columns: 1fr !important; 
    }

    .sidebar-card .v-content-box {
        flex-direction: column;
    }

    .sidebar-card .v-tech-info {
        border-left: none;
        padding-left: 0;
        flex-direction: row;
        gap: 15px;
        margin-top: 10px;
    }

    .sidebar-card .hero-text-top {
        flex-direction: column;
    }

    .sidebar-card .hero-tech-bottom {
        flex-direction: row;
        border-left: none;
        padding-left: 0;
        gap: 15px;
        margin-top: 10px;
    }
}

.sidebar-card .layout-hero {
    min-height: 450px;
    height: auto;
}
.cf-flag {
    position: absolute;
    top: 10px;
    right: 10px;
    max-width: 50px;
    height: auto;
    z-index: 10; /* au-dessus de l'image */
    border: 1px solid #fff; /* optionnel : contour pour mieux voir */
    border-radius: 3px;     /* léger arrondi */
    box-shadow: 0 1px 4px rgba(0,0,0,0.3); /* optionnel : relief */
}

.category-flag-overlay img.cf-flag {
    width: 100%;
    height: 100%;
    object-fit: contain; /* garde le ratio original */
    border: none;         /* supprime la bordure */
    border-radius: 0;     /* supprime l'arrondi */
    box-shadow: none;     /* supprime l'ombre si tu ne veux pas */
}