.detail-panel {
    position: fixed;
    top: 80px;
    left: 480px;
    width: 420px;
    height: calc(100vh - 80px);
    background: #ffffff;
    box-shadow: 4px 0 16px rgba(8, 20, 24, 0.12);
    border-radius: 0 16px 16px 0;
    z-index: 1100;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transform: translateY(10px);
    opacity: 0;
    pointer-events: none;
    transition:
        transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
        opacity 0.24s ease-out,
        left 0.3s ease;
}

.detail-panel.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}

.detail-panel--sidebar-collapsed {
    left: 0;
}

.detail-panel__scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #0e1f24 transparent;
}

.detail-panel__scroll::-webkit-scrollbar { width: 10px; }
.detail-panel__scroll::-webkit-scrollbar-track { background: transparent; }
.detail-panel__scroll::-webkit-scrollbar-thumb { background: #0e1f24; border-radius: 0; }

.detail-panel__close {
    position: absolute;
    top: 16px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 8px rgba(8, 20, 24, 0.18);
    border: none;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #163239;
    transition: background 0.15s ease, transform 0.1s ease;
}

.detail-panel__close:hover {
    background: #ffffff;
}

.detail-panel__close:active {
    transform: scale(0.95);
}

.detail-panel__close:focus-visible {
    outline: 2px solid #28a3b3;
    outline-offset: 2px;
}

.detail-panel [hidden] { display: none !important; }

.detail-panel__hero {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 0;
    overflow: hidden;
    background: #e3f1f2;
}

.detail-panel__carousel {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.detail-panel__carousel::-webkit-scrollbar { display: none; }

.detail-panel__slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    background-size: cover;
    background-position: center;
    background-color: #e3f1f2;
}

.detail-panel__count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(8, 20, 24, 0.62);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 9px;
    border-radius: 9999px;
    z-index: 2;
}

.detail-panel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 2px 8px rgba(8, 20, 24, 0.22);
    color: #004b58;
    font-size: 14px;
    cursor: pointer;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease;
}

.detail-panel__nav:hover { background: #ffffff; }
.detail-panel__nav--prev { left: 10px; }
.detail-panel__nav--next { right: 10px; }

.detail-panel__body {
    padding: 20px 24px 30px;
    color: #163239;
}

.detail-panel__title {
    margin: 0 0 8px;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    color: #004b58;
}

.detail-panel__rating {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.detail-panel__stars {
    color: #f4b942;
    letter-spacing: 2px;
}

.detail-panel__reviews {
    color: #5f7479;
}

.detail-panel__category {
    display: none;
}

.detail-panel__actions {
    display: flex;
    gap: 10px;
    margin-bottom: 22px;
}

.detail-panel__action {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 8px;
    background: #eef7f8;
    border: none;
    border-radius: 12px;
    color: #004b58;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.1s ease;
}

.detail-panel__action:hover {
    background: #e0f0f2;
    text-decoration: none;
    color: #004b58;
}

.detail-panel__action:active {
    transform: scale(0.97);
}

.detail-panel__action i {
    font-size: 18px;
    color: #28a3b3;
}

.detail-panel__info {
    margin-bottom: 20px;
}

.detail-panel__info-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 0;
    font-size: 14px;
    color: #163239;
}

.detail-panel__info-row i {
    color: #28a3b3;
    margin-top: 2px;
    flex-shrink: 0;
}

.detail-panel__hours {
    margin-bottom: 20px;
}

.detail-panel__hours-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 0;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #163239;
}

.detail-panel__hours-toggle > .far { color: #28a3b3; }

.detail-panel__status { font-weight: 600; }
.detail-panel__status.is-open { color: #1f8a5b; }
.detail-panel__status.is-closed { color: #cf5a39; }

.detail-panel__hours-caret {
    margin-left: auto;
    font-size: 12px;
    color: #9bb0b4;
    transition: transform 0.2s ease;
}

.detail-panel__hours.is-expanded .detail-panel__hours-caret { transform: rotate(180deg); }

.detail-panel__hours-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease;
}

.detail-panel__hours.is-expanded .detail-panel__hours-list {
    max-height: 360px;
    margin-top: 12px;
}

.detail-panel__hours-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 5px 0;
    font-size: 13.5px;
    color: #5f7479;
}

.detail-panel__hours-row.is-today {
    color: #004b58;
    font-weight: 600;
}

.detail-panel__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
}

.detail-panel__chip {
    padding: 7px 14px;
    background: #e7f4f5;
    border-radius: 9999px;
    font-size: 13px;
    font-weight: 500;
    color: #00606f;
}

.detail-panel__tarifs { margin-bottom: 24px; }

.detail-panel__block-title {
    margin: 0 0 10px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    color: #5f7479;
}

.detail-panel__tarifs-list { list-style: none; margin: 0; padding: 0; }

.detail-panel__tarif-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 7px 0;
    font-size: 14px;
    color: #163239;
}

.detail-panel__tarif-row span:last-child {
    flex-shrink: 0;
    font-weight: 700;
    color: #004b58;
    text-align: right;
}

.detail-panel__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px;
    background: #28a3b3;
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: background 0.15s ease;
}

.detail-panel__cta:hover {
    background: #004b58;
    color: #ffffff;
    text-decoration: none;
}

@media (max-width: 768px) {
    .detail-panel {
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 80vh;
        border-radius: 16px 16px 0 0;
        transform: translateY(100%);
        transition:
            transform 0.32s cubic-bezier(0.16, 1, 0.3, 1),
            opacity 0.32s ease-out;
    }

    .detail-panel.is-open {
        transform: translateY(0);
    }

    .detail-panel--sidebar-collapsed {
        left: 0;
    }

    .detail-panel::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: #ccc;
        border-radius: 2px;
        z-index: 3;
    }

    .detail-panel__close {
        top: 20px;
    }
}
