.spot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.spot-card {
    background: var(--white);
    border-radius: var(--radius-card);
    border: 1px solid var(--border-color);
    overflow: hidden;
    position: relative;
    transition: var(--transition);
    height: 380px;
}

.spot-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-app);
}

/* Image de fond en plein écran dans la carte */
.spot-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Overlay dégradé pour la lisibilité du texte */
.spot-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60%;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    color: white;
}

.spot-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.spot-location {
    font-size: 0.85rem;
    opacity: 0.9;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* Filtres de catégorie (Scroll horizontal comme les chaînes TV) */
.spot-filter-shell {
    position: relative;
    margin: 22px 0 12px;
}

.filter-scroll {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    padding: 10px 2px 18px;
}

.filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 9px 18px;
    white-space: nowrap;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 0.9rem;
    font-weight: 650;
    text-decoration: none;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.04);
    transition: var(--transition);
}

.filter-btn.active, .filter-btn:hover {
    border-color: var(--primary-color);
    background: var(--primary-color);
    color: white;
    box-shadow: 0 7px 18px rgba(172, 13, 13, 0.2);
}

.filter-btn:focus-visible {
    outline: 3px solid rgba(172, 13, 13, 0.25);
    outline-offset: 3px;
}

@media (max-width: 767px) {
    .spot-filter-shell::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 8px;
        width: 38px;
        z-index: 2;
        pointer-events: none;
        background: linear-gradient(to right, transparent, var(--white));
    }

    .filter-scroll {
        flex-wrap: nowrap;
        justify-content: flex-start;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-behavior: smooth;
        scroll-snap-type: inline proximity;
        scrollbar-color: rgba(172, 13, 13, 0.4) transparent;
        scrollbar-width: thin;
        padding-right: 42px;
        -webkit-overflow-scrolling: touch;
    }

    .filter-scroll::-webkit-scrollbar {
        height: 4px;
    }

    .filter-scroll::-webkit-scrollbar-thumb {
        border-radius: 999px;
        background: rgba(172, 13, 13, 0.4);
    }

    .filter-scroll::-webkit-scrollbar-track {
        background: transparent;
    }

    .filter-btn {
        flex: 0 0 auto;
        scroll-snap-align: start;
    }
}
.spot-tags-container {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 3;
    display: flex;
    flex-direction: column; /* Les tags s'empilent verticalement */
    align-items: flex-end;
    gap: 5px;
}

.spot-category {
    background: rgba(172, 13, 13, 0.9); /* Ton rouge #AC0D0D */
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
    backdrop-filter: blur(4px);
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.commune-spots-heading {
    margin: 48px 0 26px;
}

.commune-spots-heading > span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    color: var(--primary-color);
    font-size: 0.82rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.commune-spots-heading h1 {
    margin-bottom: 8px;
    color: var(--text-dark);
    font-size: clamp(1.8rem, 4vw, 2.5rem);
    font-weight: 850;
}

.commune-spots-heading p {
    margin: 0;
    color: var(--text-secondary);
}

.commune-spot-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.spot-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 36px 0;
}

.spot-pagination > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: #fff;
    font-weight: 800;
}

.spot-empty-state {
    grid-column: 1 / -1;
    width: 100%;
}

/* Fiche d'un lieu */
.spot-detail-hero {
    min-height: 500px;
    background-position: center;
    background-size: cover;
    color: #fff;
}

.spot-detail-hero > .container {
    min-height: inherit;
}

.spot-detail-heading {
    position: absolute;
    right: 12px;
    bottom: 58px;
    left: 12px;
    max-width: 850px;
}

.spot-detail-heading h1 {
    margin: 10px 0 16px;
    color: #fff;
    font-size: clamp(2.1rem, 6vw, 4.2rem);
    font-weight: 850;
    line-height: 1.04;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.35);
}

.spot-detail-kicker,
.spot-detail-tags span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.38);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 700;
    backdrop-filter: blur(8px);
}

.spot-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.spot-detail-layout {
    position: relative;
    margin-top: 28px;
}

.spot-detail-card,
.spot-practical-card {
    margin-bottom: 24px;
    padding: clamp(22px, 4vw, 38px);
    border: 1px solid var(--border-color);
    border-radius: 26px;
    background: var(--white);
    box-shadow: 0 10px 32px rgba(0, 0, 0, 0.06);
}

.place-detail-layout .place-summary-card {
    margin-bottom: 24px;
}

.place-summary-card > .d-flex {
    margin-bottom: 0 !important;
}

.place-summary-description {
    max-width: 760px;
    margin: 0 0 20px;
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.7;
}

.place-summary-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.place-summary-tags span {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border: 1px solid rgba(var(--primary-rgb, 0, 128, 112), 0.16);
    border-radius: 999px;
    background: rgba(var(--primary-rgb, 0, 128, 112), 0.08);
    color: var(--primary-color);
    font-size: 0.8rem;
    font-weight: 750;
}

.spot-detail-lead {
    margin-bottom: 30px;
    color: var(--text-dark);
    font-size: 1.15rem;
    font-weight: 650;
    line-height: 1.8;
}

.spot-detail-content {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.85;
}

.spot-detail-content h2,
.spot-practical-card h2,
.spot-related-section h2 {
    margin-bottom: 20px;
    color: var(--text-dark);
    font-weight: 800;
}

.spot-detail-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 32px;
}

.spot-detail-gallery a {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1;
    border-radius: 16px;
    cursor: zoom-in;
}

.spot-detail-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.spot-detail-gallery a:hover img {
    transform: scale(1.05);
}

.spot-gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.28);
    color: #fff;
    font-size: 1.7rem;
    opacity: 0;
    transition: opacity 0.25s ease;
}

.spot-gallery-item:hover .spot-gallery-overlay,
.spot-gallery-item:focus-visible .spot-gallery-overlay {
    opacity: 1;
}

.spot-gallery-missing {
    margin-top: 32px;
    padding: 28px;
    border: 1px dashed var(--border-color);
    border-radius: 16px;
    background: var(--bg-light, #f8f9fa);
    text-align: center;
}

.spot-gallery-missing i {
    font-size: 1.6rem;
    color: var(--text-secondary);
}

.spot-gallery-missing p {
    margin: 10px 0 6px;
    color: var(--text-secondary);
}

.spot-gallery-missing a {
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: underline;
}

.spot-gallery-modal .modal-dialog {
    max-width: min(1200px, calc(100vw - 28px));
}

.spot-gallery-modal .modal-content {
    overflow: hidden;
    border: 0;
    border-radius: 22px;
    background: #101010;
    color: #fff;
}

.spot-gallery-modal .modal-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 3;
    justify-content: space-between;
    border: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.68), transparent);
}

.spot-gallery-modal .modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: min(78vh, 780px);
    padding: 0;
}

.spot-gallery-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: min(78vh, 780px);
}

.spot-gallery-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.spot-gallery-control {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 68px;
    border: 0;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.42);
    color: #fff;
    font-size: 1.35rem;
    transform: translateY(-50%);
    transition: background 0.2s ease;
}

.spot-gallery-control:hover {
    background: rgba(0, 0, 0, 0.72);
}

.spot-gallery-control[hidden] {
    display: none;
}

.spot-gallery-prev {
    left: 18px;
}

.spot-gallery-next {
    right: 18px;
}

.spot-gallery-modal .modal-footer {
    min-height: 48px;
    justify-content: center;
    border: 0;
    background: #101010;
    color: rgba(255, 255, 255, 0.72);
}

.spot-gallery-counter {
    font-weight: 700;
}

.spot-practical-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.spot-practical-item {
    display: flex;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    background: var(--background-light, #f7f7f7);
}

.spot-practical-item > i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.spot-practical-item strong,
.spot-practical-item span,
.spot-practical-item a {
    display: block;
}

.spot-practical-item strong {
    margin-bottom: 5px;
    color: var(--text-dark);
}

.spot-related-section {
    margin: 55px 0 30px;
}

.spot-related-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.spot-related-card {
    position: relative;
    overflow: hidden;
    min-height: 280px;
    border-radius: 24px;
    color: #fff;
}

.spot-related-card img {
    position: absolute;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.spot-related-card > span {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    display: flex;
    flex-direction: column;
    padding: 70px 22px 22px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
}

.spot-related-card strong {
    margin-top: 5px;
    color: #fff;
    font-size: 1.25rem;
}

.spot-related-card:hover {
    color: #fff;
}

.spot-related-card:hover img {
    transform: scale(1.04);
}

@media (max-width: 767px) {
    .commune-spot-grid {
        grid-template-columns: 1fr;
    }

    .spot-detail-hero {
        min-height: 420px;
    }

    .spot-detail-heading {
        bottom: 34px;
    }

    .spot-detail-gallery,
    .spot-practical-grid,
    .spot-related-grid {
        grid-template-columns: 1fr;
    }

    .spot-detail-gallery {
        grid-template-columns: repeat(2, 1fr);
    }

    .spot-gallery-modal .modal-dialog {
        max-width: 100%;
        height: 100%;
        margin: 0;
    }

    .spot-gallery-modal .modal-content {
        height: 100%;
        border-radius: 0;
    }

    .spot-gallery-modal .modal-body {
        flex: 1;
        min-height: 0;
    }

    .spot-gallery-content {
        height: 100%;
    }

    .spot-gallery-modal .modal-footer {
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 3;
        background: linear-gradient(to top, rgba(0, 0, 0, 0.72), transparent);
    }

    .spot-gallery-control {
        width: 42px;
        height: 58px;
    }

    .spot-gallery-prev {
        left: 8px;
    }

    .spot-gallery-next {
        right: 8px;
    }
}
