/* Cartes plein écran façon Navily (port à flot, port à sec, carénage,
   hivernage) : la carte à gauche, le panneau recherche + liste à droite.
   La hauteur du menu arrive par --pb-menu (assets/js/carte-navily.js). */
:root { --primary: #022E51; --accent: #00aaff; }
body { background: #f2f4f7; font-family: Arial, sans-serif; padding-top: 80px; margin: 0; }
/* Plein écran sous le menu, comme Navily : la carte à gauche, le panneau
   (recherche + ports de la zone visible) à droite. */
.map-search-block { display: flex; height: calc(100vh - var(--pb-menu, 80px)); }
#maCarte { flex: 1; min-width: 0; height: 100%; display: block; z-index: 1; position: relative; }
.pb-panneau { flex: 0 0 440px; height: 100%; overflow-y: auto; background: #fff;
              border-left: 1px solid #e3e8ef; display: flex; flex-direction: column; }

.pb-liste-entete { padding: 12px 16px 6px; font-size: .8rem; font-weight: 700; color: #6b7a8c;
                   text-transform: uppercase; letter-spacing: .4px; }
.pb-liste { padding: 0 8px 16px; }
.pb-zoom-liste { margin: 30px 20px; text-align: center; color: #6b7a8c; font-size: .9rem; }
.pb-zoom-liste i { display: block; font-size: 2rem; color: #c3ccd7; margin-bottom: 10px; }
.pb-fiche { display: flex; gap: 14px; align-items: flex-start; padding: 12px 8px; border-bottom: 1px solid #eef1f5;
            color: inherit; text-decoration: none; border-radius: 8px; }
.pb-fiche:hover, .pb-fiche.on { background: #f3f8fd; }
.pb-fiche img { width: 104px; height: 104px; object-fit: cover; border-radius: 8px; flex: none; background: #eef1f5; }
.pb-fiche-txt { flex: 1; min-width: 0; }
.pb-fiche-txt strong { display: block; color: #022E51; font-size: 1rem; line-height: 1.25; margin-bottom: 4px; }
.pb-etoiles { color: #f5b301; font-size: .95rem; letter-spacing: 1px; }
.pb-etoiles span { color: #d0d5dd; }
.pb-etoiles small { color: #6b7a8c; letter-spacing: 0; font-size: .8rem; margin-left: 3px; }
.pb-fiche-lieu { display: block; color: #6b7a8c; font-size: .8rem; margin-top: 6px; }
.pb-badge { display: inline-block; margin-top: 8px; background: #00A9DB; color: #fff; border-radius: 4px;
            padding: 2px 8px; font-size: .72rem; font-weight: 700; }
.pb-badge-club { background: #E8731A; }
.pb-fiche-ic { flex: none; }
.pb-fiche-ic .pb-rond { display: inline-block; }

.location-button {
    position: absolute; top: 90px; right: 10px; z-index: 1000;
    background: #fff; border: 2px solid #ddd; padding: 10px 12px;
    border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,.2);
    cursor: pointer; font-size: 18px; transition: all 0.3s;
}
.location-button:hover { background: #0d6efd; color: white; transform: scale(1.1); }

.search-float { flex: none; position: relative; }
.search-card { background: #fff; border-bottom: 1px solid #e3e8ef; }

/* Panneau étroit : deux champs par ligne, le bouton sur toute la largeur. */
.search-main { display: flex; flex-wrap: wrap; align-items: stretch; }
.s-field {
    flex: 1 1 calc(50% - 1px); min-width: 0; display: flex; align-items: center; gap: 10px;
    padding: 0 16px; height: 48px; border-right: 1px solid #eef; border-bottom: 1px solid #eef;
}
.s-field:first-child { flex-basis: 100%; border-right: none; }
.s-field i { color: #bbb; font-size: 0.85rem; flex-shrink: 0; }
.s-field input, .s-field select {
    border: none; outline: none; font-size: 0.88rem;
    width: 100%; background: transparent; color: #222;
}
.s-field input::placeholder { color: #bbb; }
.s-field select { cursor: pointer; }
.s-field.sm { flex: 1 1 calc(50% - 1px); }
.btn-search {
    background: linear-gradient(135deg, #00aaff, #006ecc);
    color: #fff; border: none; padding: 12px 26px; width: 100%; justify-content: center;
    font-weight: 700; font-size: 0.88rem; cursor: pointer;
    display: flex; align-items: center; gap: 8px;
    transition: background 0.2s; white-space: nowrap; flex-shrink: 0;
}
.btn-search:hover { background: linear-gradient(135deg, #22bbff, #0088ee); }

.services-row {
    padding: 9px 16px; display: flex; align-items: center;
    gap: 6px; flex-wrap: wrap;
    border-top: 1px solid #f0f0f0; background: #fafbfc;
}
.srv-label { font-size: 0.7rem; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: 0.5px; margin-right: 2px; white-space: nowrap; }
.chip-wrap input[type=checkbox] { display: none; }
.chip {
    display: inline-flex; align-items: center; gap: 5px;
    border: 1.5px solid #e0e4ea; border-radius: 50px;
    padding: 3px 11px; font-size: 0.75rem; color: #555;
    background: #fff; cursor: pointer; user-select: none;
    transition: all 0.15s; white-space: nowrap;
}
.chip i { font-size: 0.65rem; }
.chip-wrap input:checked + .chip { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip-wrap input:checked + .chip i { color: var(--accent); }

.active-tags-row {
    padding: 7px 16px; display: flex; align-items: center;
    gap: 5px; flex-wrap: wrap; border-top: 1px solid #f0f0f0;
}
.tag-lbl { font-size: 0.7rem; color: #bbb; }
.filter-tag {
    display: inline-flex; align-items: center; gap: 4px;
    background: #e8f4ff; border: 1px solid #b3d9f7;
    border-radius: 50px; padding: 2px 8px 2px 10px;
    font-size: 0.72rem; font-weight: 600; color: var(--primary); text-decoration: none;
}
.tag-x {
    width: 14px; height: 14px; background: rgba(0,0,0,0.1);
    border-radius: 50%; display: inline-flex; align-items: center;
    justify-content: center; font-size: 0.55rem; color: #666; transition: background 0.15s;
}
.tag-x:hover { background: #f88; color: #fff; }
.clear-all { font-size: 0.7rem; color: #e55; text-decoration: none; font-weight: 600; margin-left: 2px; }

.result-bar {
    padding: 6px 16px; background: #f5f8ff; border-top: 1px solid #eef;
    font-size: 0.75rem; color: #888; display: flex; justify-content: space-between;
}
.result-bar strong { color: var(--primary); }

@media (max-width: 768px) {
    body { padding-top: 70px; }
    /* Sur téléphone : la carte en haut, le panneau en dessous. */
    .map-search-block { flex-direction: column; height: auto; }
    #maCarte { flex: none; height: 65vh; }
    .pb-panneau { flex: none; height: auto; overflow: visible; border-left: none; }
    /* Services en bandeau qui défile, plutôt que sur trois lignes. */
    .services-row { padding: 8px 12px; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .chip { font-size: 0.7rem; padding: 3px 8px; }
}

@media (max-width: 480px) {
    .s-field { flex: 1 1 100%; border-right: none; border-bottom: 1px solid #eef; }
    .s-field:last-of-type { border-bottom: none; }
}
