/* Filter pill styles: style.css (.panorama-filters / .panorama-filter) */

.panorama-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.panorama-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    overflow: hidden;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.panorama-card:hover {
    border-color: var(--primary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.panorama-card.is-hidden {
    display: none;
}

.panorama-card__preview {
    position: relative;
    display: block;
    aspect-ratio: 2 / 1;
    overflow: hidden;
    background: var(--bg-alt);
}

.panorama-card__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.panorama-card__badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(10, 46, 34, 0.82);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.06em;
}

.panorama-card__title {
    padding: 0 14px 14px;
    color: var(--primary);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
}

.panorama-feature {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--bg);
    box-shadow: var(--shadow);
}

.panorama-feature__preview {
    position: relative;
    aspect-ratio: 21 / 9;
    overflow: hidden;
}

.panorama-feature__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.panorama-feature__overlay {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    background: linear-gradient(180deg, transparent, rgba(10, 46, 34, 0.88));
    color: #fff;
}

.panorama-feature__overlay strong {
    display: block;
    font-size: 1rem;
}

.panorama-feature__overlay span {
    font-size: 0.78rem;
    opacity: 0.85;
}

body.panorama-modal-open {
    overflow: hidden;
}

.panorama-modal[hidden] {
    display: none;
}

.panorama-modal {
    position: fixed;
    inset: 0;
    z-index: 12000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.panorama-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 20, 16, 0.78);
}

.panorama-modal__dialog {
    position: relative;
    width: min(1120px, 100%);
    max-height: calc(100vh - 32px);
    display: flex;
    flex-direction: column;
    border-radius: calc(var(--radius) + 4px);
    overflow: hidden;
    background: #0a2e22;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.panorama-modal__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.panorama-modal__toolbar h3 {
    font-size: 0.95rem;
    font-weight: 700;
}

.panorama-modal__actions {
    display: flex;
    gap: 8px;
}

.panorama-modal__nav,
.panorama-modal__close {
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
}

.panorama-modal__close {
    font-size: 1.35rem;
    line-height: 1;
}

.panorama-viewer {
    width: 100%;
    height: min(68vh, 620px);
    min-height: 280px;
    background: #000;
}

.panorama-modal__hint {
    padding: 10px 16px 14px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.75rem;
    text-align: center;
}

@media (max-width: 1024px) {
    .panorama-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .panorama-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .panorama-modal {
        padding: 0;
    }

    .panorama-modal__dialog {
        width: 100%;
        max-height: 100vh;
        height: 100vh;
        border-radius: 0;
    }

    .panorama-viewer {
        height: calc(100vh - 112px);
        max-height: none;
    }
}

@media (max-width: 640px) {
    .panorama-grid {
        grid-template-columns: 1fr;
    }
}
