/* ==========================================================================
   SPIITZ — Lieux V2
   Une carte par ligne, texte posé sur la photo (comme les membres).
   Chrome via design-v2-chrome.css. Le mode carte n'est pas touché.
   ========================================================================== */

body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-main {
    padding:
        calc(var(--nav-h, 68px) + env(safe-area-inset-top, 0px) + 6px)
        0
        calc(104px + env(safe-area-inset-bottom, 0px));
}

body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-content-wrapper {
    padding: 0 14px;
}

body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-search-section {
    position: relative;
    top: auto;
    z-index: 40;
    margin: 0 0 10px;
    padding: 0;
    background: none;
}

body.page-lieux-v2 .global-search-container {
    max-width: none !important;
    margin: 0 !important;
}

body.page-lieux-v2 .global-search-wrapper:focus-within,
body.page-lieux-v2 .global-search-wrapper:hover {
    box-shadow: none !important;
}

body.page-lieux-v2 .global-search-btn.global-location-btn {
    background: var(--dv2-glass-strong, rgba(255, 255, 255, 0.13)) !important;
    border: 1px solid var(--dv2-line, rgba(255, 255, 255, 0.11)) !important;
    color: #fff !important;
}

body.page-lieux-v2 .lieux-filters-section {
    margin-bottom: 12px;
}

body.page-lieux-v2 .lieux-view-toggle-btn {
    display: none !important;
}

body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-places-grid {
    position: relative;
    z-index: 1;
    isolation: isolate;
    grid-template-columns: 1fr;
    gap: 22px;
}

body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-places-grid .lieux-place-card {
    position: relative;
    aspect-ratio: 16 / 10;
    background: #101014 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 18px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
    overflow: hidden;
}

body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-places-grid .lieux-place-card:hover {
    transform: translateY(-2px);
    border-color: transparent !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55);
}

body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-places-grid .lieux-place-card > a {
    display: block !important;
    height: 100%;
    position: relative;
    grid-template-columns: none !important;
}

body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-places-grid .lieux-place-image {
    position: absolute !important;
    inset: 0 !important;
    aspect-ratio: auto !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    background: linear-gradient(160deg, #191922 0%, #0b0b0f 100%);
}

body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-places-grid .lieux-place-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-places-grid .lieux-place-image:not(:has(img)),
body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-places-grid .lieux-place-image--no-media {
    background: linear-gradient(160deg, #4a4a58 0%, #2a2a34 55%, #16161c 100%) !important;
}

body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-places-grid .lieux-place-image:not(:has(img)) > i,
body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-places-grid .lieux-place-image--no-media > i {
    color: rgba(255, 255, 255, 0.42);
    font-size: 2.6rem;
}

/* Titre + ville en bas, distance calée à droite de la ville */
body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-places-grid .lieux-place-info-card {
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    height: auto !important;
    z-index: 6;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        "title title"
        "city dist";
    align-items: end;
    column-gap: 8px;
    row-gap: 2px;
    padding: 40px 12px 8px !important;
    background: linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.9) 0%,
        rgba(0, 0, 0, 0.62) 38%,
        rgba(0, 0, 0, 0) 100%
    );
}

body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-places-grid .lieux-place-title-row {
    grid-area: title;
    align-items: flex-end;
}

body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-places-grid .lieux-place-city {
    grid-area: city;
    min-width: 0;
}

body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-places-grid .lieux-place-title-row,
body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-places-grid .lieux-place-name,
body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-places-grid .lieux-place-city {
    margin: 0 !important;
    padding: 0 !important;
}

body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-places-grid .lieux-place-meta-row {
    grid-area: dist;
    display: flex !important;
    align-items: center;
    justify-content: flex-end;
    margin: 0 !important;
    min-height: 0 !important;
}

body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-places-grid .lieux-place-meta-row:not(:has(.lieux-place-distance)) {
    display: none !important;
}

body.page-lieux-v2 .lieux-place-name {
    color: #fff;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

body.page-lieux-v2 .lieux-place-city {
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-weight: 600;
}

body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-places-grid .lieux-place-announcements {
    display: none;
}

body.page-lieux-v2 .lieux-place-distance,
body.page-lieux-v2 .lieux-place-meta-row .lieux-place-distance,
body.page-lieux-v2 .lieux-place-city .lieux-place-distance {
    background: rgba(8, 8, 11, 0.58) !important;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #fff !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

body.page-lieux-v2 .lieux-place-city i,
body.page-lieux-v2 .lieux-place-announcements i {
    color: rgba(255, 255, 255, 0.5);
}

body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-places-grid .lieux-place-type {
    top: 10px;
    left: 10px;
    right: auto;
    bottom: auto;
    z-index: 8;
    width: auto;
    max-width: calc(100% - 88px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(8, 8, 11, 0.62);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
}

body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-places-grid .lieux-place-ads-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
    padding-left: 7px;
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    color: #fff;
    font-weight: 800;
}

body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-places-grid .lieux-place-top-meta {
    display: flex !important;
    align-items: center;
    gap: 6px;
    position: absolute;
    top: 8px;
    right: 8px;
    left: auto;
    z-index: 9;
    pointer-events: none;
}

body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-places-grid .lieux-place-rating-card--photo {
    display: inline-flex !important;
    align-items: center;
    gap: 2px;
    position: static;
    top: auto;
    right: auto;
    left: auto;
    z-index: auto;
    margin: 0;
    padding: 2px 6px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    background: rgba(8, 8, 11, 0.62);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fcd34d !important;
    font-size: 0.58rem !important;
    font-weight: 700;
    line-height: 1;
}

body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-places-grid .lieux-place-rating-card--photo .star {
    font-size: 0.52rem !important;
}

body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-places-grid .lieux-place-title-row .lieux-place-rating-card,
body.page-lieux-v2 .lieux-place-title-row .lieux-place-rating-card {
    display: none !important;
}

body.page-lieux-v2 .lieux-place-rating-card .star {
    color: #fcd34d;
}

body.page-lieux-v2 .lieux-partner-badge {
    display: inline-flex;
    position: static;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    padding: 4px 9px;
    border: 0;
    background: linear-gradient(135deg, var(--brand, #ff385c), #7c3aed);
    box-shadow: 0 4px 12px rgba(255, 56, 92, 0.28);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 800;
    z-index: auto;
}

body.page-lieux-v2 .lieux-premium-badge,
body.page-lieux-v2 .lieux-pending-badge {
    top: 44px;
    left: 10px;
    right: auto;
    width: max-content;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(8, 8, 11, 0.62);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #fff;
}

body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-places-grid .lieux-place-card.lieu-partenaire {
    background:
        linear-gradient(#101014, #101014) padding-box,
        linear-gradient(135deg, #ff385c, #7c3aed) border-box !important;
    border: 2px solid transparent !important;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42);
}

body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-places-grid .lieux-place-card.lieu-partenaire:hover {
    background:
        linear-gradient(#101014, #101014) padding-box,
        linear-gradient(135deg, #ff385c, #7c3aed) border-box !important;
    border: 2px solid transparent !important;
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55);
}

body.page-lieux-v2 .lieux-place-card.lieu-premium {
    background: #101014 !important;
}

body.page-lieux-v2 .lieux-place-card.lieu-closed {
    background: #141418 !important;
}

body.page-lieux-v2 .lieux-place-card.lieu-closed .lieux-place-name,
body.page-lieux-v2 .lieux-place-card.lieu-closed .lieux-place-city {
    color: rgba(255, 255, 255, 0.7);
}

body.page-lieux-v2 .lieux-list-status {
    color: rgba(255, 255, 255, 0.5);
}

body.page-lieux-v2 .lieux-fab-mobile {
    background: linear-gradient(180deg, #ff4d70 0%, #e62e55 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.28) !important;
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4) !important;
}

body.page-lieux-v2 .lieux-mode-fab {
    background: #16161c !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    color: #fff;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.4) !important;
}

body.page-lieux-v2 .lieux-filters-modal-content,
body.page-lieux-v2 .lieux-map-filters-sheet {
    background: #12121a !important;
    border-color: rgba(255, 255, 255, 0.11);
    color: #fff;
}

body.page-lieux-v2 .lieux-filters-modal-header,
body.page-lieux-v2 .lieux-filters-modal-footer {
    background: transparent !important;
    border-color: rgba(255, 255, 255, 0.11) !important;
}

body.page-lieux-v2.page-lieux--map-mode #lieuxMap.leaflet-container {
    background: #0b0b10;
}

body.page-lieux-v2.page-lieux--map-mode .lieux-map-controls {
    top: calc(var(--nav-h, 68px) + env(safe-area-inset-top, 0px) + 10px);
    left: 50%;
    right: auto;
    width: max-content;
    max-width: calc(100% - 24px);
    transform: translateX(-50%);
    justify-content: center;
    gap: 8px;
}

body.page-lieux-v2.page-lieux--map-mode .lieux-map-controls .leaflet-control-zoom {
    position: static;
    display: flex;
    flex-direction: row;
    margin: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    overflow: hidden;
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

body.page-lieux-v2.page-lieux--map-mode .lieux-map-controls .leaflet-control-zoom a {
    width: 40px;
    height: 40px;
    line-height: 40px;
    border: 0 !important;
    border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
    background: rgba(8, 8, 11, 0.82) !important;
    color: #fff !important;
}

body.page-lieux-v2.page-lieux--map-mode .lieux-map-controls .leaflet-control-zoom a:last-child {
    border-right: 0 !important;
}

body.page-lieux-v2 .leaflet-control-zoom a {
    background: rgba(8, 8, 11, 0.82) !important;
    color: #fff !important;
    border-color: rgba(255, 255, 255, 0.16) !important;
}

body.page-lieux-v2 .leaflet-control-attribution {
    background: rgba(8, 8, 11, 0.62);
    color: rgba(255, 255, 255, 0.42);
}

body.page-lieux-v2 .leaflet-control-attribution a {
    color: rgba(255, 255, 255, 0.55);
}

body.page-lieux-v2 .leaflet-popup-content-wrapper,
body.page-lieux-v2 .custom-popup .leaflet-popup-content-wrapper {
    background: #121218 !important;
    color: #f3f3f5 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55) !important;
}

body.page-lieux-v2 .leaflet-popup-tip,
body.page-lieux-v2 .custom-popup .leaflet-popup-tip {
    background: #121218 !important;
    box-shadow: none !important;
}

body.page-lieux-v2 .custom-popup .leaflet-popup-close-button {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #fff !important;
    box-shadow: none !important;
}

body.page-lieux-v2 .custom-popup .leaflet-popup-close-button:hover {
    background: rgba(255, 255, 255, 0.16) !important;
    color: #fff !important;
}

body.page-lieux-v2 a.lieux-map-popup,
body.page-lieux-v2 a.lieux-map-popup:hover {
    background: transparent !important;
    color: #f3f3f5 !important;
}

body.page-lieux-v2 .lieux-map-popup__title {
    color: #fff !important;
}

body.page-lieux-v2 .lieux-map-popup__type,
body.page-lieux-v2 .lieux-map-popup__addr,
body.page-lieux-v2 .lieux-map-popup__ads {
    color: rgba(255, 255, 255, 0.62) !important;
}

@media (min-width: 769px) {
    body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-main {
        padding: calc(var(--nav-h, 68px) + 22px) 0 48px;
    }

    body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-content-wrapper {
        padding: 0 24px;
    }

    body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-search-section {
        margin: 0 0 12px;
        padding: 0;
    }

    body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-places-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        max-width: none;
        margin: 0;
        gap: 32px;
    }
}

/* Sans photo : teinte très légère, même famille que les filtres lieux */
body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-place-card[data-type-group="club-sauna"] .lieux-place-image:not(:has(img)),
body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-place-card[data-type-group="club-sauna"] .lieux-place-image--no-media {
    background: linear-gradient(160deg, rgba(255, 56, 92, 0.16) 0%, #161218 78%) !important;
}
body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-place-card[data-type-group="sex-shop"] .lieux-place-image:not(:has(img)),
body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-place-card[data-type-group="sex-shop"] .lieux-place-image--no-media {
    background: linear-gradient(160deg, rgba(124, 58, 237, 0.16) 0%, #16141c 78%) !important;
}
body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-place-card[data-type-group="forest"] .lieux-place-image:not(:has(img)),
body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-place-card[data-type-group="forest"] .lieux-place-image--no-media {
    background: linear-gradient(160deg, rgba(16, 185, 129, 0.14) 0%, #141a16 78%) !important;
}
body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-place-card[data-type-group="park"] .lieux-place-image:not(:has(img)),
body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-place-card[data-type-group="park"] .lieux-place-image--no-media {
    background: linear-gradient(160deg, rgba(34, 197, 94, 0.14) 0%, #141a16 78%) !important;
}
body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-place-card[data-type-group="beach"] .lieux-place-image:not(:has(img)),
body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-place-card[data-type-group="beach"] .lieux-place-image--no-media {
    background: linear-gradient(160deg, rgba(56, 189, 248, 0.16) 0%, #14181c 78%) !important;
}
body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-place-card[data-type-group="parking"] .lieux-place-image:not(:has(img)),
body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-place-card[data-type-group="parking"] .lieux-place-image--no-media {
    background: linear-gradient(160deg, rgba(251, 191, 36, 0.16) 0%, #1a1814 78%) !important;
}
body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-place-card[data-type-group="rest-area"] .lieux-place-image:not(:has(img)),
body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-place-card[data-type-group="rest-area"] .lieux-place-image--no-media {
    background: linear-gradient(160deg, rgba(249, 115, 22, 0.16) 0%, #1a1614 78%) !important;
}
body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-place-card[data-type-group="toilet"] .lieux-place-image:not(:has(img)),
body.page-lieux-v2:not(.page-lieux--map-mode) .lieux-place-card[data-type-group="toilet"] .lieux-place-image--no-media {
    background: linear-gradient(160deg, rgba(148, 163, 184, 0.16) 0%, #16181c 78%) !important;
}
