/**
 * Grilles Bento — layout modulaire pour les vues desktop SpotShare.
 */
.bento-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: minmax(7rem, auto);
    gap: 1rem;
}

.bento-card {
    background: var(--ui-bg-component);
    border: 1px solid var(--ui-border-base);
    border-radius: var(--ui-radius-lg);
    box-shadow: var(--ui-shadow-elevation-card);
    padding: 1.25rem;
    min-height: 0;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

.bento-card:hover {
    box-shadow: var(--ui-shadow-elevation-card-hover);
}

.bento-card__eyebrow {
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ui-fg-muted);
    margin-bottom: 0.375rem;
}

.bento-card__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.bento-card__head-main {
    min-width: 0;
    flex: 1;
}

.bento-card__head .bento-card__title {
    margin-top: 0;
}

.desktop-place-nav-slot:empty {
    display: none;
}

.desktop-place-nav {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    flex-shrink: 0;
    padding-top: 0.125rem;
}

.desktop-place-nav__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: var(--ui-radius-md);
    border: 1px solid var(--ui-border-base);
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

.desktop-place-nav__btn:hover {
    transform: translateY(-1px);
    box-shadow: var(--ui-shadow-elevation-card-hover);
}

.desktop-place-nav__btn svg {
    width: 1.125rem;
    height: 1.125rem;
    display: block;
}

.desktop-place-nav__btn--google {
    background: #fff;
}

.desktop-place-nav__btn--waze {
    background: #33ccff;
    border-color: #2eb8e6;
}

.desktop-place-nav__btn--apple {
    background: #1d1d1f;
    border-color: #1d1d1f;
}

.bento-card__title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ui-fg-base);
    line-height: 1.35;
}

.bento-card__body {
    flex: 1;
    min-height: 0;
    margin-top: 0.75rem;
    font-size: 0.8125rem;
    color: var(--ui-fg-subtle);
    line-height: 1.5;
}

.bento-card__head + .bento-card__body {
    margin-top: 0.625rem;
}

.bento-card__body--scroll {
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 0.25rem;
}

.desktop-place-detail__meta .ui-badge {
    font-size: 0.8125rem;
    padding: 0.3125rem 0.625rem;
    line-height: 1.2;
}

.desktop-place-detail__meta [class*="type-badge-"] {
    font-size: 0.8125rem;
    padding: 0.3125rem 0.625rem;
}

/* ——— Fiche lieu (desktop) ——— */
.desktop-place-detail {
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

.desktop-place-detail__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem 0.5rem;
}

.desktop-place-detail__location {
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--ui-border-base);
}

.desktop-place-detail__address-row {
    display: flex;
    align-items: flex-start;
    gap: 0.375rem;
}

.desktop-place-detail__address {
    margin: 0;
    flex: 1;
    min-width: 0;
    font-size: 0.8125rem;
    color: var(--ui-fg-base);
    line-height: 1.45;
}

.desktop-place-detail__copy {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 1.625rem;
    height: 1.625rem;
    margin-top: 0.05rem;
    padding: 0;
    border: 1px solid transparent;
    border-radius: var(--ui-radius-sm);
    background: transparent;
    color: var(--ui-fg-muted);
    cursor: pointer;
    transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
}

.desktop-place-detail__copy:hover {
    background: var(--ui-bg-subtle-hover);
    border-color: var(--ui-border-base);
    color: var(--ui-fg-interactive);
}

.desktop-place-detail__copy:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--ui-fg-interactive) 45%, transparent);
    outline-offset: 1px;
}

.desktop-place-detail__geo {
    margin: 0.25rem 0 0;
    font-size: 0.75rem;
    color: var(--ui-fg-muted);
}

.desktop-place-detail__notice {
    padding: 0.625rem 0.75rem;
    border-radius: var(--ui-radius-md);
    background: var(--ui-bg-subtle);
    border: 1px solid var(--ui-border-base);
}

.desktop-place-detail__notice p {
    margin: 0;
    font-size: 0.75rem;
    color: var(--ui-fg-subtle);
    line-height: 1.45;
}

.desktop-place-detail__notice--info {
    background: color-mix(in srgb, var(--ui-bg-interactive) 6%, var(--ui-bg-subtle));
    border-color: color-mix(in srgb, var(--ui-border-interactive) 35%, var(--ui-border-base));
}

.desktop-place-detail__gallery-strip {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding: 0.125rem 0;
}

.desktop-place-detail__gallery-strip .photo-lightbox-trigger {
    width: 5.5rem;
    height: 5.5rem;
    flex-shrink: 0;
    border-radius: var(--ui-radius-md);
    overflow: hidden;
    border: 1px solid var(--ui-border-base);
    padding: 0;
    background: var(--ui-bg-subtle);
    cursor: zoom-in;
    transition: border-color 0.12s ease, box-shadow 0.12s ease, transform 0.12s ease;
}

.desktop-place-detail__gallery-strip .photo-lightbox-trigger:hover {
    border-color: var(--ui-border-interactive);
    box-shadow: var(--ui-shadow-elevation-card-hover);
    transform: translateY(-1px);
}

.desktop-place-detail__gallery-strip img,
.desktop-place-detail__photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.desktop-place-detail .photo-attributions {
    margin-top: 0.375rem;
    font-size: 0.6875rem;
    color: var(--ui-fg-muted);
    line-height: 1.4;
}

.desktop-place-detail .photo-attribution-sep {
    opacity: 0.6;
}

.desktop-place-detail__extras .place-attrs-detail,
.desktop-place-detail__extras .motorhome-detail {
    gap: 0.625rem;
}

.desktop-place-detail__extras .bg-slate-50,
.desktop-place-detail__extras .bg-indigo-50\/60 {
    background: var(--ui-bg-subtle);
    border: 1px solid var(--ui-border-base);
    border-radius: var(--ui-radius-md);
    padding: 0.75rem;
}

.desktop-place-detail__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
}

.desktop-place-detail__coords {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.375rem 0.5rem;
    font-size: 0.6875rem;
    color: var(--ui-fg-muted);
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.desktop-place-detail__coords .desktop-place-detail__copy {
    margin-top: 0;
    margin-left: 0.125rem;
}

.desktop-place-detail__coords-sep {
    opacity: 0.45;
}

.desktop-place-detail__panel {
    padding-top: 0.75rem;
    border-top: 1px solid var(--ui-border-base);
}

.desktop-place-detail__panel-title {
    margin: 0 0 0.5rem;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ui-fg-muted);
}

.desktop-place-detail__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.375rem;
    font-size: 0.75rem;
    color: var(--ui-fg-subtle);
}

.desktop-place-detail__chips > span,
.desktop-place-detail__chips > .desktop-place-detail__status {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 999px;
    background: var(--ui-bg-subtle);
    border: 1px solid var(--ui-border-base);
}

.desktop-place-detail__status--open {
    color: #047857;
    border-color: color-mix(in srgb, #047857 25%, var(--ui-border-base));
}

.desktop-place-detail__status--closed {
    color: #b91c1c;
    border-color: color-mix(in srgb, #b91c1c 25%, var(--ui-border-base));
}

.desktop-place-detail__summary {
    margin: 0.5rem 0 0;
    font-size: 0.8125rem;
    color: var(--ui-fg-base);
    line-height: 1.5;
}

.desktop-place-detail__contact {
    margin: 0.375rem 0 0;
    font-size: 0.8125rem;
}

.desktop-place-detail__contact a {
    color: var(--ui-fg-interactive);
    text-decoration: none;
}

.desktop-place-detail__contact a:hover {
    text-decoration: underline;
}

.desktop-place-detail__hours {
    margin-top: 0.5rem;
    font-size: 0.8125rem;
}

.desktop-place-detail__hours summary {
    cursor: pointer;
    color: var(--ui-fg-interactive);
    font-weight: 500;
    list-style: none;
}

.desktop-place-detail__hours summary::-webkit-details-marker {
    display: none;
}

.desktop-place-detail__hours ul {
    margin: 0.375rem 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.75rem;
    color: var(--ui-fg-subtle);
}

.desktop-place-detail__hours li + li {
    margin-top: 0.125rem;
}

.desktop-place-detail .place-attrs-detail {
    font-size: 0.8125rem;
}

.desktop-place-detail .nav-apps a {
    font-size: 0.75rem;
    padding: 0.5rem 0.35rem;
}

.bento-card__footer {
    margin-top: auto;
    padding-top: 0.875rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.bento-card__footer.hidden {
    display: none;
}

.bento-1x1 { grid-column: span 1; grid-row: span 1; }
.bento-2x1 { grid-column: span 2; grid-row: span 1; }
.bento-1x2 { grid-column: span 1; grid-row: span 2; }
.bento-2x2 { grid-column: span 2; grid-row: span 2; }
.bento-3x1 { grid-column: span 3; grid-row: span 1; }
.bento-4x1 { grid-column: 1 / -1; grid-row: span 1; }
.bento-4x2 { grid-column: 1 / -1; grid-row: span 2; }

@media (max-width: 1400px) {
    .bento-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .bento-3x1,
    .bento-4x1,
    .bento-4x2 {
        grid-column: 1 / -1;
    }
}
