/* ============================================================
   EDIT POI MODAL — Styles communs Marché / Restaurant
   ============================================================ */
:root {
    --cmz-teal: #0b4f4a;
    --cmz-teal-hover: #14655f;
}

/* ---- Modal header stamp ---- */
.content_right_side_body_jheo_js .poi-stamp,
.edit-poi-modal .poi-stamp {
    width: 38px; height: 38px; border-radius: 50%;
    background: rgba(11,79,74,.1); color: var(--cmz-teal);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; margin-right: 14px; flex-shrink: 0;
}
.content_right_side_body_jheo_js .modal-title-eyebrow,
.edit-poi-modal .modal-title-eyebrow {
    display: block; font-size: .72rem; font-weight: 500;
    color: #6c757d; margin-bottom: 1px;
}

/* ---- Position card ---- */
.position-card {
    background: #fff; border: 1px solid #dee2e6; border-radius: 14px;
    padding: 18px 22px; margin-bottom: 24px;
    display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.position-card .position-pin {
    width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
    background: rgba(11,79,74,.1); color: var(--cmz-teal);
    display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.position-card .position-info { flex: 1 1 200px; }
.position-card .position-label {
    font-size: .75rem; font-weight: 600; color: #6c757d;
    text-transform: uppercase; letter-spacing: .4px;
}
.position-card .position-coords { font-size: .9rem; margin-top: 2px; }
.position-card .position-coords input {
    border: none; background: transparent; width: 110px; padding: 0;
    display: inline-block; font-size: .9rem;
}
.position-card .position-hint { flex-basis: 100%; font-size: .78rem; color: #6c757d; }

/* ---- Form sections ---- */
.form-section {
    background: #fff; border: 1px solid #dee2e6; border-radius: 14px;
    padding: 22px 24px; margin-bottom: 20px;
}
.form-section-title {
    display: flex; align-items: center; gap: 8px;
    font-size: .95rem; font-weight: 600;
    margin-bottom: 16px; padding-bottom: 12px;
    border-bottom: 1px solid #dee2e6;
}
.form-section-title i { color: var(--cmz-teal); font-size: .85rem; }

/* ---- Toggle chips (restaurant types) ---- */
.content_right_side_body_jheo_js .btn-check + label.toggle-chip,
.edit-poi-modal .btn-check + label.toggle-chip {
    border-radius: 20px; border: 1px solid #dee2e6; color: #6c757d;
    background: #fff; padding: 4px 14px; font-size: .78rem; font-weight: 600;
    cursor: pointer; user-select: none;
}
.content_right_side_body_jheo_js .btn-check:checked + label.toggle-chip,
.edit-poi-modal .btn-check:checked + label.toggle-chip {
    background: var(--cmz-teal); border-color: var(--cmz-teal); color: #fff;
}

/* ---- Buttons ---- */
.content_right_side_body_jheo_js .btn-primary,
.edit-poi-modal .btn-primary {
    background: var(--cmz-teal); border-color: var(--cmz-teal);
}
.content_right_side_body_jheo_js .btn-primary:hover,
.edit-poi-modal .btn-primary:hover {
    background: var(--cmz-teal-hover); border-color: var(--cmz-teal-hover);
}

/* ---- Libellé "Nouvelle position / Nouvelle adresse" ---- */
.new-word { color: #065f46; font-weight: 700; }

/* ---- Statut de géocodage automatique ---- */
.geocode-status {
    display: none; align-items: center; gap: 6px;
    font-size: .78rem; font-weight: 600; flex-basis: 100%;
}
.geocode-status.loading  { color: #075985; }
.geocode-status.success  { color: #065f46; }
.geocode-status.notfound { color: #991b1b; }
.geocode-status.error    { color: #991b1b; }

/* ---- Bouton "Voir sur la carte" (retiré) ---- */

/* ---- Bandeau "Aperçu du nouvel emplacement" (retiré) ---- */

/* ---- Halo temporaire (retiré) ---- */

/* ---- Scrollable modal body ---- */
.edit-poi-modal .modal-body {
    /* Scroll indicator: subtle shadows when content overflows */
    background:
        /* Cover shadow at top (visible when scrolled down) */
        linear-gradient(to bottom, rgba(255,255,255,1) 20%, rgba(255,255,255,0)),
        /* Cover shadow at bottom (visible when not at end) */
        linear-gradient(to top, rgba(255,255,255,1) 20%, rgba(255,255,255,0)) 0 100%,
        /* Shadow at top */
        radial-gradient(farthest-side at 50% 0, rgba(0,0,0,.15), rgba(0,0,0,0)),
        /* Shadow at bottom */
        radial-gradient(farthest-side at 50% 100%, rgba(0,0,0,.15), rgba(0,0,0,0)) 0 100%;
    background-repeat: no-repeat;
    background-size: 100% 10px, 100% 10px, 100% 5px, 100% 5px;
    background-attachment: local, local, scroll, scroll;
}

/* ---- Responsive ---- */
@media (max-width: 767.98px) {
    .position-card { padding: 14px 16px; gap: 12px; }
    .position-card .position-pin { width: 36px; height: 36px; font-size: .95rem; }
    .form-section { padding: 16px 18px; }
}

/* ════════════════════════════════════════════════════════════
   Styles spécifiques au panneau droit (content_legende_jheo_js)
   ════════════════════════════════════════════════════════════ */

/* Permettre le scroll dans le panneau droit */
.content_right_side_body_jheo_js {
    overflow-y: auto;
    padding: 0 8px;
}

/* ════════════════════════════════════════════════════════════
   Header du panneau droit — mode édition
   ════════════════════════════════════════════════════════════ */

.content_header_right_side.header-edit-mode {
    margin-top: 20px !important;
    height: auto !important;
    padding: 12px 44px 12px 16px;
    background: linear-gradient(135deg, #0b4f4a 0%, #14655f 100%);
    border-radius: 0;
    display: flex !important;
    align-items: center;
    gap: 12px;
    position: relative;
}

.content_header_right_side.header-edit-mode .content_logo_right_side {
    position: static !important;
    display: flex;
    align-items: center;
}

.content_header_right_side.header-edit-mode .logo_right_side {
    font-size: 1.3rem !important;
    color: #fff;
    display: flex;
    align-items: center;
}

.content_header_right_side.header-edit-mode .header_right_side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.content_header_right_side.header-edit-mode .title_right_side {
    font-size: .95rem !important;
    color: #fff !important;
    font-weight: 600;
    line-height: 1.2;
}

.content_header_right_side.header-edit-mode .close_right_side {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,.85);
    font-size: 1.2rem;
    cursor: pointer;
    display: flex !important;
    align-items: center;
}

.content_header_right_side.header-edit-mode .close_right_side:hover {
    color: #fff;
}

.content_header_right_side.header-edit-mode + hr {
    display: none;
}

/* ════════════════════════════════════════════════════════════
   Footer — boutons Annuler / Enregistrer en pleine largeur
   ════════════════════════════════════════════════════════════ */

.content_right_side_body_jheo_js .modal-footer {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 10px;
    padding: 12px 0;
    margin-top: 16px;
    border-top: 1px solid #dee2e6;
    background: #fff;
    position: sticky;
    bottom: 0;
}

.content_right_side_body_jheo_js .modal-footer > * {
    margin: 0 !important;
}

.content_right_side_body_jheo_js .modal-footer .btn {
    flex: 1 1 0;
    min-width: 0;
    white-space: nowrap;
    padding: 8px 12px;
    font-size: .88rem;
}

/* ════════════════════════════════════════════════════════════
   Responsive — section Adresse (N° / Type / Nom de voie)
   ════════════════════════════════════════════════════════════ */

@media (max-width: 767.98px) {
    /* Réduire les labels pour éviter le chevauchement */
    .content_right_side_body_jheo_js .form-section .form-label {
        font-size: .75rem;
        margin-bottom: 2px;
    }

    /* Empiler proprement N° + Type voie + Nom voie */
    .content_right_side_body_jheo_js .row.g-2 > [class*="col-"] {
        margin-bottom: 8px;
    }

    /* Réduire les inputs pour gagner de la place */
    .content_right_side_body_jheo_js .form-control {
        font-size: .82rem;
        padding: 6px 10px;
    }
}

