/* ============================================================
   GdzieJade — Redesign 2026 (светлая современная тема по макету)
   Подключается последним и переопределяет предыдущие стили.
   ============================================================ */

:root {
    --sidebar-width: 440px;
    --details-width: 440px;
    --categories-height: 58px;
    --promo-strip-height: 104px;
    --footer-handle-height: 32px;
    --footer-expanded-height: 156px;
    --footer-height: var(--footer-handle-height);
    --bottom-zone: calc(var(--promo-strip-height) + var(--footer-height));

    --rd-green-dark: #0F3D2A;
    --rd-green: #1F6F43;
    --rd-green-soft: #E7F3EC;
    --rd-surface: #FFFFFF;
    --rd-bg: #F4F7F5;
    --rd-list-bg: #D2DDD6;
    --rd-border: #E6EBE7;
    --rd-text: #17251C;
    --rd-text-muted: #6B7A70;
    --rd-radius: 14px;
    --rd-shadow: 0 2px 10px rgba(15, 61, 42, 0.06);
}

/* ================= NAVBAR ================= */
body .navbar {
    background: var(--rd-list-bg) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(15, 61, 42, 0.10) !important;
    box-shadow: none !important;
}

body .nav-logo h2 {
    color: var(--rd-green-dark) !important;
    font-weight: 700;
    letter-spacing: -0.02em;
}

body .nav-container {
    grid-template-columns: auto minmax(320px, 540px) 1fr auto;
}

body .navbar .header-search-container {
    background: var(--rd-surface) !important;
    border: 1px solid rgba(15, 61, 42, 0.10) !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    gap: 0 !important;
    padding: 3px 4px 3px 2px !important;
    max-width: 520px !important;
    width: 100% !important;
}

body .header-search-input {
    background: transparent !important;
    color: var(--rd-text) !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    padding: 0.42rem 0.8rem !important;
    font-size: 0.78rem !important;
    -webkit-text-fill-color: var(--rd-text);
}

body .header-search-input::placeholder {
    color: var(--rd-text-muted) !important;
    opacity: 1 !important;
}

body .header-search-input:focus {
    outline: none !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

body .header-search-button,
body .header-show-all-button {
    background: transparent !important;
    color: var(--rd-green-dark) !important;
    border: none !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    width: 32px !important;
    height: 32px !important;
}

body .header-actions .header-action-btn {
    background: transparent !important;
    border: none !important;
    color: var(--rd-green-dark) !important;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    border-radius: 8px;
    padding: 0.4rem 0.65rem;
    transition: color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

body .header-actions .header-action-btn:hover:not(.login-btn):not(.header-fav-btn) {
    background: transparent !important;
    color: var(--rd-green) !important;
    box-shadow: inset 0 -2px 0 var(--rd-green);
}

body .header-actions .header-action-btn.login-btn {
    background: var(--rd-green-dark) !important;
    color: #fff !important;
    border-radius: 999px !important;
    overflow: hidden;
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 0.4rem 1.05rem;
}

body .header-actions .header-action-btn.login-btn::before {
    display: none;
}

body .header-actions .header-action-btn.login-btn:hover {
    background: var(--rd-green) !important;
    color: #fff !important;
    transform: none;
    box-shadow: none;
}

body .header-actions .login-btn i,
body .header-actions .login-btn span {
    color: #fff !important;
    margin: 0;
}

body .header-actions .login-btn.has-avatar {
    padding: 3px 12px 3px 3px;
}

body .header-actions .login-btn-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.18);
}

body .header-actions .header-fav-btn {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    border-radius: 50% !important;
    border: 1px solid rgba(15, 61, 42, 0.10) !important;
    color: var(--rd-green-dark) !important;
    background: var(--rd-surface) !important;
}

/* ================= ПАНЕЛЬ КАТЕГОРИЙ ================= */
@media (min-width: 993px) {
    body .categories-panel {
        position: fixed !important;
        top: var(--navbar-height) !important;
        left: var(--sidebar-width) !important;
        right: 0 !important;
        width: auto !important;
        height: var(--categories-height) !important;
        display: flex !important;
        align-items: center !important;
        gap: 0;
        padding: 8px 12px !important;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-bottom: none !important;
        box-shadow: none !important;
        z-index: 118;
        pointer-events: none;
    }

    body .categories-container {
        display: flex !important;
        justify-content: stretch;
        align-items: stretch;
        gap: 0;
        width: 100%;
        height: 46px;
        pointer-events: auto;
        background: rgba(247, 250, 248, 0.92) !important;
        backdrop-filter: blur(16px) saturate(140%);
        -webkit-backdrop-filter: blur(16px) saturate(140%);
        border: 1px solid rgba(15, 61, 42, 0.14);
        border-radius: 14px;
        box-shadow: 0 6px 20px rgba(15, 61, 42, 0.10);
        overflow: hidden;
    }

    body .category-item,
    body[data-explore-mode="routes"] .category-item {
        pointer-events: auto;
        flex: 1 1 0 !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 8px;
        width: auto !important;
        min-width: 0 !important;
        height: 100% !important;
        min-height: 0;
        padding: 0 8px !important;
        background: transparent !important;
        border: none !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        transform: none !important;
        cursor: pointer;
        position: relative;
    }

    body .category-item + .category-item {
        box-shadow: inset 1px 0 0 rgba(15, 61, 42, 0.10) !important;
    }

    body .category-item::before,
    body .category-item::after {
        display: none !important;
    }

    body .category-item:hover {
        background: rgba(31, 111, 67, 0.08) !important;
        border: none !important;
        transform: none !important;
        box-shadow: inset 1px 0 0 rgba(15, 61, 42, 0.10) !important;
    }

    body .category-item:first-child:hover,
    body .category-item:first-child.active {
        box-shadow: none !important;
    }

    body .category-item.active {
        background: var(--rd-green-soft) !important;
        border: none !important;
        outline: none;
        box-shadow: inset 1px 0 0 rgba(15, 61, 42, 0.10) !important;
        transform: none !important;
    }

    body .category-item .category-icon {
        width: 26px !important;
        height: 26px !important;
        min-width: 26px;
        margin: 0 !important;
        background: rgba(31, 111, 67, 0.12) !important;
        border: none !important;
        border-radius: 8px !important;
        box-shadow: none !important;
        color: var(--rd-green) !important;
        display: flex;
        align-items: center;
        justify-content: center;
        filter: none;
        flex-shrink: 0;
    }

    body .category-item .category-icon i {
        font-size: 0.82rem !important;
        color: var(--rd-green) !important;
        transform: none !important;
    }

    body .category-item.active .category-icon {
        background: var(--rd-green) !important;
    }

    body .category-item.active .category-icon i {
        color: #fff !important;
        transform: none !important;
    }

    body .category-item span {
        font-size: 0.7rem !important;
        line-height: 1.2 !important;
        color: var(--rd-text) !important;
        font-weight: 600;
        text-align: center !important;
        max-width: none;
        width: auto !important;
        min-height: 0 !important;
        max-height: none !important;
        white-space: normal;
        text-shadow: none;
    }

    body .category-item.active span {
        color: var(--rd-green-dark) !important;
        font-weight: 700;
    }

    body[data-explore-mode="routes"] .categories-container {
        justify-content: stretch;
    }

    body[data-explore-mode="routes"] .category-item span {
        white-space: nowrap;
    }

    /* Кнопка фильтров в панели категорий скрыта — её заменяет чип "Wszystkie filtry" в сайдбаре */
    body .filters-button-container {
        display: none !important;
    }

    body .filters-button {
        background: var(--rd-green-dark) !important;
        color: #fff !important;
        border: none !important;
        border-radius: 12px !important;
        padding: 0.55rem 1rem !important;
        box-shadow: var(--rd-shadow) !important;
        width: auto !important;
        height: 40px !important;
        font-size: 0.76rem !important;
        white-space: nowrap;
    }

    body .filters-button:hover {
        background: var(--rd-green) !important;
        transform: none !important;
    }
}

/* ================= САЙДБАР ================= */
@media (min-width: 993px) {
    body .main-content {
        background: var(--rd-bg) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-right: 1px solid var(--rd-border) !important;
        box-shadow: none !important;
        /* Сайдбар тянется до футера — промо-баннеры его не перекрывают */
        height: calc(100vh - var(--navbar-height) - var(--footer-height)) !important;
        transition: height 0.32s ease;
    }

    body .places-list {
        padding: 8px 12px 16px !important;
        background: var(--rd-list-bg);
    }

    /* Фильтры — белая полка, список — серая подложка */
    body .explore-mode-bar,
    body .quick-filters {
        background: var(--rd-surface);
    }

    body .explore-mode-bar {
        padding: 10px 12px 6px;
    }

    body .quick-filters {
        border-bottom: none;
        box-shadow: 0 8px 18px -6px rgba(15, 61, 42, 0.22);
        position: relative;
        z-index: 4;
        padding: 6px 12px 12px;
    }

    body .qf-chip {
        background: var(--rd-bg);
    }

    body .sidebar-list-header {
        padding-top: 12px;
        background: var(--rd-list-bg);
    }
}

/* ---- Быстрые фильтры: упорядоченные ряды чипов ---- */
.quick-filters {
    padding: 8px 12px 10px;
    border-bottom: 1px solid var(--rd-border);
    flex-shrink: 0;
}

.qf-row {
    display: flex;
    gap: 6px;
    margin-bottom: 5px;
}

.qf-row-selects {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.qf-row-toggles {
    flex-wrap: wrap;
}

#qfOpenNow,
#qfKids,
#qfPets,
.qf-row-toggles.qf-places-only,
body .filters-panel .filter-content[data-section="hours"],
body .filters-panel .filter-divider:has(+ .filter-content[data-section="hours"]) {
    display: none !important;
}

.qf-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 28px;
    padding: 0 10px;
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1;
    color: var(--rd-text);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.qf-chip i {
    color: var(--rd-green);
    font-size: 0.72rem;
}

.qf-chip:hover {
    border-color: var(--rd-green);
    background: var(--rd-green-soft);
}

.qf-chip.active {
    background: var(--rd-green-soft);
    border-color: var(--rd-green);
    color: var(--rd-green-dark);
}

.qf-voivodeship {
    flex: 1;
    width: 100%;
}

.qf-voivodeship .qf-dd-label {
    flex: 1;
    min-width: 0;
    text-align: left;
    overflow: hidden;
    text-overflow: ellipsis;
}

.qf-voivodeship .qf-dd-menu {
    max-height: min(280px, 50vh);
    overflow-y: auto;
}

.fp-voivodeship-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 6px 0 10px;
    margin: 0;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--rd-text-muted);
}

.fp-voivodeship-field select {
    height: 36px;
    border: 1px solid var(--rd-border);
    border-radius: 10px;
    background: var(--rd-surface);
    padding: 0 10px;
    font-family: inherit;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--rd-text);
    cursor: pointer;
}

.fp-voivodeship-field select:focus {
    outline: none;
    border-color: var(--rd-green);
}

.qf-near-me {
    flex: 1;
}

.qf-row-toggles .qf-chip {
    flex: 1;
    padding: 0 8px;
}

/* ---- Кастомные выпадающие меню ---- */
.qf-dropdown {
    position: relative;
}

.qf-distance {
    width: 92px;
    display: none;
}

.qf-distance.visible {
    display: block;
}

.qf-dd-toggle {
    width: 100%;
    justify-content: space-between;
}

.qf-dd-toggle i.fa-chevron-down {
    color: var(--rd-text-muted);
    font-size: 0.6rem;
    transition: transform 0.2s ease;
}

.qf-dropdown.open .qf-dd-toggle i.fa-chevron-down {
    transform: rotate(180deg);
}

.qf-dropdown.open .qf-dd-toggle {
    border-color: var(--rd-green);
    background: var(--rd-green-soft);
}

.qf-dd-menu {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 100%;
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 12px;
    box-shadow: 0 12px 32px rgba(15, 61, 42, 0.16);
    padding: 5px;
    z-index: 300;
    display: none;
    animation: qf-dd-in 0.15s ease;
}

@keyframes qf-dd-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.qf-dropdown.open .qf-dd-menu {
    display: block;
}

.qf-dd-menu button {
    display: block;
    width: 100%;
    text-align: left;
    padding: 8px 10px;
    background: none;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 500;
    color: var(--rd-text);
    cursor: pointer;
    transition: background 0.12s ease;
}

.qf-dd-menu button:hover {
    background: var(--rd-green-soft);
}

.qf-dd-menu button.selected {
    background: var(--rd-green-soft);
    color: var(--rd-green-dark);
    font-weight: 700;
}

/* ---- Кнопка полного фильтра на всю ширину ---- */
.qf-all-filters {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    height: 34px;
    background: var(--rd-green-dark);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease;
}

.qf-all-filters i {
    color: #A7F3D0;
}

.qf-all-filters:hover {
    background: var(--rd-green);
}

.qf-chip-count {
    min-width: 17px;
    height: 17px;
    border-radius: 999px;
    background: #4ADE80;
    color: #0F3D2A;
    font-size: 0.64rem;
    font-weight: 700;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
}

.qf-chip-count.visible {
    display: inline-flex;
}

/* ---- Заголовок списка ---- */
.sidebar-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 14px 6px;
    flex-shrink: 0;
}

.sidebar-list-header span {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--rd-text);
}

.sidebar-see-all {
    background: none;
    border: none;
    color: var(--rd-green);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px;
}

.sidebar-see-all:hover {
    text-decoration: underline;
}

@media (max-width: 992px) {
    .quick-filters,
    .sidebar-list-header {
        display: none;
    }
}

/* ================= КОМПАКТНЫЕ КАРТОЧКИ ================= */
body .place-card {
    position: relative;
    flex: 0 0 auto !important;
    min-height: 0 !important;
    max-height: none !important;
    height: auto !important;
    background: #fff !important;
    border: 1px solid var(--rd-border) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 10px rgba(15, 61, 42, 0.06) !important;
    overflow: hidden;
    margin-bottom: 4px;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

body .place-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(15, 61, 42, 0.12) !important;
}

a.place-card,
a.similar-place-card {
    text-decoration: none;
    color: inherit;
    display: block;
}

body .place-card .place-card-image {
    position: relative;
    height: 100px !important;
    min-height: 100px !important;
}

body .place-card .place-card-image img {
    height: 100% !important;
    width: 100%;
    object-fit: cover;
}

body .place-card-cat {
    position: absolute;
    left: 8px;
    bottom: 8px;
    z-index: 2;
    max-width: calc(100% - 48px);
    padding: 3px 8px;
    border-radius: 999px;
    background: var(--rd-green-soft);
    color: var(--rd-green-dark);
    font-size: 0.62rem;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body .place-card .place-card-badge {
    display: none !important;
}

body .place-card .place-polecane-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    right: auto;
    z-index: 3;
    font-size: 0.58rem;
}

body .place-card .place-card-favorite {
    top: 8px !important;
    right: 8px !important;
    left: auto !important;
    width: 28px !important;
    height: 28px !important;
    background: #fff !important;
    border: none !important;
    border-radius: 50% !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

body .place-card .place-card-favorite i {
    color: #8A9690 !important;
}

body .place-card .place-card-favorite.active {
    background: #fff !important;
}

body .place-card .place-card-favorite.active i {
    color: #E25555 !important;
}

body .place-card .place-card-content {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
    gap: 0;
    padding: 6px 8px !important;
}

body .place-card .place-card-content:not(:has(.place-card-facts)) {
    grid-template-columns: 1fr;
}

body .place-card-main {
    min-width: 0;
    padding-right: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

body .place-card .place-card-content h4 {
    font-size: 0.82rem !important;
    font-weight: 700;
    color: var(--rd-text) !important;
    margin: 0 !important;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body .place-card-location,
body .place-card-city {
    margin: 1px 0 0;
    font-size: 0.64rem;
    color: var(--rd-text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body .place-card .place-card-content > p,
body .place-card .place-card-options,
body .route-card .route-card-type {
    display: none !important;
}

body .place-card-facts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-width: 0;
    border-left: 1px solid var(--rd-border);
}

body .place-card-facts .stat {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2px 4px;
    border-right: 1px solid var(--rd-border);
}

body .place-card-facts .stat:last-child {
    border-right: none;
}

body .place-card-facts .stat-label {
    display: block;
    font-size: 0.5rem;
    font-weight: 650;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #8A9690;
    margin: 0;
    line-height: 1.1;
}

body .place-card-facts .stat strong {
    display: block;
    font-size: 0.66rem;
    font-weight: 700;
    color: var(--rd-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.15;
}

body .place-card-facts .stat.is-open strong {
    color: var(--rd-green);
}

body .place-card-stats,
body .place-card .place-card-meta,
body .place-card-meta .meta-dot {
    display: none !important;
}

/* ================= ПАНЕЛЬ ПОДРОБНЫХ ФИЛЬТРОВ (в левой колонке) ================= */
@media (min-width: 993px) {
    body .filters-panel {
        position: fixed !important;
        top: var(--navbar-height) !important;
        left: 0 !important;
        right: auto !important;
        bottom: var(--footer-height) !important;
        transition: bottom 0.32s ease;
        width: var(--sidebar-width) !important;
        max-width: var(--sidebar-width) !important;
        height: auto !important;
        max-height: none !important;
        border-radius: 0 !important;
        background: var(--rd-surface) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-right: 1px solid var(--rd-border) !important;
        box-shadow: none !important;
        display: flex;
        flex-direction: column;
        overflow: hidden !important;
        z-index: 125 !important;
    }

    body .filters-panel .filters-unified {
        flex: 1;
        overflow-y: auto;
        padding: 6px 14px 12px;
    }

    body .filters-panel .filter-actions {
        flex-shrink: 0;
        display: flex;
        flex-direction: column;
        gap: 6px;
        border-top: 1px solid var(--rd-border);
        padding: 12px 14px;
        background: var(--rd-surface);
    }

    /* --- Шапка панели (на десктопе используем "мобильную" шапку) --- */
    body .filters-panel .filters-mobile-header {
        display: flex !important;
        align-items: center;
        justify-content: space-between;
        padding: 14px 16px 12px;
        border-bottom: 1px solid var(--rd-border);
        flex-shrink: 0;
    }

    body .filters-panel .filters-mobile-title {
        font-size: 1rem;
        font-weight: 700;
        color: var(--rd-text);
    }

    body .filters-panel .filters-mobile-close {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        border: 1px solid var(--rd-border);
        background: var(--rd-surface);
        color: var(--rd-text);
        font-size: 0.85rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.15s ease;
    }

    body .filters-panel .filters-mobile-close:hover {
        background: var(--rd-green-soft);
    }

    /* --- Секции-аккордеоны --- */
    body .filters-panel .filter-divider {
        display: flex !important;
        align-items: center;
        gap: 9px;
        margin: 0 !important;
        padding: 9px 4px !important;
        background: none !important;
        border: none !important;
        border-bottom: none !important;
        color: var(--rd-text) !important;
        font-size: 0.8rem;
        font-weight: 700;
        cursor: pointer;
        user-select: none;
        border-radius: 10px;
        transition: background 0.15s ease;
    }

    body .filters-panel .filter-divider:hover {
        background: var(--rd-green-soft) !important;
    }

    body .filters-panel .filter-divider i {
        color: var(--rd-green) !important;
        font-size: 0.8rem;
        width: 18px;
        text-align: center;
    }

    body .filters-panel .filter-divider span {
        color: var(--rd-text) !important;
        font-size: 0.8rem !important;
        font-weight: 700 !important;
        flex: 1;
    }

    body .filters-panel .filter-divider .section-count {
        flex: 0 0 auto;
        min-width: 17px;
        height: 17px;
        border-radius: 999px;
        background: var(--rd-green);
        color: #fff;
        font-size: 0.62rem !important;
        font-weight: 700 !important;
        display: none;
        align-items: center;
        justify-content: center;
        padding: 0 5px;
    }

    body .filters-panel .filter-divider .section-count.visible {
        display: inline-flex;
    }

    body .filters-panel .filter-divider .section-chevron {
        color: var(--rd-text-muted) !important;
        font-size: 0.62rem !important;
        width: auto;
        transition: transform 0.2s ease;
    }

    body .filters-panel .filter-divider.open .section-chevron {
        transform: rotate(180deg);
    }

    body .filters-panel .filter-content.collapsed {
        display: none !important;
    }

    /* Единые отступы всех секций и строк */
    body .filters-panel .filter-content {
        margin: 0 !important;
        padding: 0 0 4px !important;
        gap: 0 !important;
    }

    body .filters-panel .filter-item {
        margin: 0 !important;
        padding: 0 !important;
    }

    /* --- Категории: строки с современным чекбоксом --- */
    body .filters-panel .filter-content[data-section="categories"] .filter-checkbox {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 8px 6px !important;
        margin: 0 !important;
        border-radius: 10px;
        font-size: 0.78rem !important;
        font-weight: 500;
        color: var(--rd-text) !important;
        cursor: pointer;
        transition: background 0.12s ease;
        transform: none !important;
    }

    body .filters-panel .filter-content[data-section="categories"] .filter-checkbox:hover {
        background: var(--rd-green-soft);
        transform: none !important;
    }

    body .filters-panel .filter-content[data-section="categories"] .filter-checkbox .category-icon {
        color: var(--rd-green) !important;
        font-size: 0.8rem;
        width: 17px;
        text-align: center;
    }

    body .filters-panel .filter-content[data-section="categories"] .filter-label {
        flex: 1;
        font-size: 0.78rem !important;
    }

    body .filters-panel .filter-content[data-section="categories"] .subcategory-indicator {
        color: var(--rd-text-muted) !important;
        font-size: 0.6rem;
    }

    /* Современный чекбокс (только в категориях и подкатегориях) */
    body .filters-panel .checkmark {
        width: 18px !important;
        height: 18px !important;
        min-width: 18px;
        border: 2px solid #C6D2CA !important;
        border-radius: 6px !important;
        background: var(--rd-surface) !important;
        position: relative !important;
        transition: background 0.15s ease, border-color 0.15s ease;
    }

    body .filters-panel input:checked ~ .checkmark {
        background: var(--rd-green) !important;
        border-color: var(--rd-green) !important;
    }

    body .filters-panel .checkmark::after {
        content: '' !important;
        position: absolute !important;
        display: none !important;
        left: 4.5px !important;
        top: 1px !important;
        width: 4px !important;
        height: 8px !important;
        border: solid #fff !important;
        border-width: 0 2px 2px 0 !important;
        transform: rotate(45deg) !important;
    }

    body .filters-panel input:checked ~ .checkmark::after {
        display: block !important;
    }

    /* --- Подкатегории: вертикальный список с отступом --- */
    body .filters-panel .subcategories {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        gap: 0 !important;
        /* Без вертикальных паддингов: свёрнутый блок (max-height: 0)
           не должен занимать место и ломать одинаковые отступы */
        padding: 0 0 0 25px !important;
        border-left: none !important;
        margin: 0 !important;
    }

    body .filters-panel .subcategories .filter-checkbox.sub {
        display: flex !important;
        align-items: center;
        width: auto !important;
        gap: 8px;
        margin: 0 !important;
        padding: 6px !important;
        background: none;
        border: none;
        border-radius: 8px;
        font-size: 0.74rem !important;
        font-weight: 500;
        color: var(--rd-text-muted) !important;
        cursor: pointer;
        transition: background 0.12s ease, color 0.12s ease;
        transform: none !important;
    }

    body .filters-panel .subcategories .filter-checkbox.sub:hover {
        background: var(--rd-green-soft);
        color: var(--rd-text) !important;
        transform: none !important;
    }

    body .filters-panel .subcategories .filter-checkbox.sub:has(input:checked) {
        color: var(--rd-green-dark) !important;
        font-weight: 600;
    }

    body .filters-panel .subcategories .filter-checkbox.sub .checkmark {
        width: 16px !important;
        height: 16px !important;
        min-width: 16px;
        border-radius: 5px !important;
    }

    body .filters-panel .subcategories .filter-checkbox.sub .checkmark::after {
        left: 3.5px !important;
        top: 0.5px !important;
    }

    /* --- Cena / Sezon: вертикальные списки, как категории --- */
    body .filters-panel .filter-content[data-section="price"],
    body .filters-panel .filter-content.season-content {
        display: flex !important;
        flex-direction: column !important;
        flex-wrap: nowrap !important;
        grid-template-columns: none !important;
        gap: 0 !important;
        padding: 0 0 4px !important;
    }

    body .filters-panel .filter-content[data-section="price"] .filter-checkbox,
    body .filters-panel .filter-content.season-content .filter-checkbox {
        display: flex !important;
        align-items: center;
        width: auto !important;
        gap: 9px;
        margin: 0 !important;
        padding: 8px 6px !important;
        background: none;
        border: none;
        border-radius: 10px;
        font-size: 0.78rem !important;
        font-weight: 500;
        color: var(--rd-text) !important;
        cursor: pointer;
        transition: background 0.12s ease;
        transform: none !important;
    }

    body .filters-panel .filter-content[data-section="price"] .filter-checkbox:hover,
    body .filters-panel .filter-content.season-content .filter-checkbox:hover {
        background: var(--rd-green-soft);
        transform: none !important;
    }

    /* --- Lokalizacja: воеводство + тумблер + слайдер --- */
    body .filters-panel .filter-content[data-section="location"] {
        padding: 0 0 4px !important;
    }

    body .filters-panel .fp-voivodeship-field {
        display: flex;
        flex-direction: column;
        gap: 6px;
        padding: 6px 6px 10px;
        margin: 0;
        font-size: 0.72rem;
        font-weight: 600;
        color: var(--rd-text-muted);
    }

    body .filters-panel .fp-voivodeship-field select {
        height: 36px;
        border: 1px solid var(--rd-border);
        border-radius: 10px;
        background: var(--rd-bg);
        padding: 0 10px;
        font-family: inherit;
        font-size: 0.82rem;
        font-weight: 600;
        color: var(--rd-text);
        cursor: pointer;
    }

    body .filters-panel .fp-voivodeship-field select:focus {
        outline: none;
        border-color: var(--rd-green);
    }

    body .filters-panel .filter-content[data-section="location"] > .filter-checkbox {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 8px 6px !important;
        margin: 0 !important;
        border-radius: 10px;
        font-size: 0.78rem !important;
        color: var(--rd-text) !important;
        cursor: pointer;
        transform: none !important;
    }

    body .filters-panel .filter-content[data-section="location"] > .filter-checkbox:hover {
        background: var(--rd-green-soft);
        transform: none !important;
    }

    /* Чекбокс "W pobliżu mnie" превращаем в тумблер */
    body .filters-panel .filter-content[data-section="location"] > .filter-checkbox .checkmark {
        order: 2;
        margin-left: auto;
        width: 34px !important;
        height: 20px !important;
        min-width: 34px;
        border: none !important;
        border-radius: 999px !important;
        background: #D4DDD6 !important;
        transition: background 0.2s ease;
    }

    body .filters-panel .filter-content[data-section="location"] > .filter-checkbox .checkmark::after {
        content: '' !important;
        display: block !important;
        position: absolute !important;
        top: 2px !important;
        left: 2px !important;
        width: 16px !important;
        height: 16px !important;
        border: none !important;
        border-radius: 50% !important;
        background: #fff !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
        transform: none !important;
        transition: left 0.2s ease;
    }

    body .filters-panel .filter-content[data-section="location"] > .filter-checkbox input:checked ~ .checkmark {
        background: var(--rd-green) !important;
    }

    body .filters-panel .filter-content[data-section="location"] > .filter-checkbox input:checked ~ .checkmark::after {
        left: 16px !important;
    }

    body .filters-panel .distance-slider {
        display: flex;
        align-items: center;
        gap: 10px;
        padding: 14px 6px 4px;
        font-size: 0.68rem;
        color: var(--rd-text-muted);
    }

    body .filters-panel .distance-slider .slider {
        flex: 1;
        accent-color: var(--rd-green);
        height: 4px;
    }

    body .filters-panel .distance-value {
        background: var(--rd-green-dark) !important;
        border-radius: 8px !important;
        font-size: 0.68rem !important;
        padding: 3px 8px !important;
        box-shadow: 0 4px 12px rgba(15, 61, 42, 0.25) !important;
    }

    /* --- Кнопки действий --- */
    body .filters-panel .apply-filters {
        width: 100%;
        height: 42px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        background: var(--rd-green-dark) !important;
        color: #fff !important;
        border: none !important;
        border-radius: 12px !important;
        font-family: inherit;
        font-size: 0.82rem !important;
        font-weight: 700 !important;
        cursor: pointer;
        transition: background 0.15s ease;
        box-shadow: none !important;
    }

    body .filters-panel .apply-filters:hover {
        background: var(--rd-green) !important;
    }

    /* Старый бейдж-счётчик не нужен — число вшито в текст кнопки */
    body .filters-panel .apply-filters .filter-count {
        display: none !important;
    }

    body .filters-panel .clear-filters {
        width: 100%;
        background: none !important;
        border: none !important;
        color: var(--rd-text-muted) !important;
        font-family: inherit;
        font-size: 0.74rem !important;
        font-weight: 600;
        cursor: pointer;
        padding: 6px !important;
        box-shadow: none !important;
    }

    body .filters-panel .clear-filters:hover {
        color: var(--rd-green-dark) !important;
        text-decoration: underline;
    }
}

/* ================= РЕКЛАМНЫЙ БАННЕР НАД КАРТОЙ ================= */
.map-ad-banner {
    position: fixed;
    top: calc(var(--navbar-height) + var(--categories-height) + 14px);
    left: calc(var(--sidebar-width) + (100vw - var(--sidebar-width)) / 2);
    transform: translateX(-50%);
    width: min(600px, calc(100vw - var(--sidebar-width) - 80px));
    transition: left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: linear-gradient(100deg, #10231A 0%, #1D3B2B 100%);
    color: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    padding: 16px 44px 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 115;
}

.map-ad-banner .ad-tag {
    position: absolute;
    top: 8px;
    left: 20px;
    font-size: 0.58rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

.map-ad-banner .ad-text {
    flex: 1;
}

.map-ad-banner .ad-text h4 {
    font-size: 0.98rem;
    font-weight: 700;
    margin: 6px 0 2px;
}

.map-ad-banner .ad-text p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.75);
    margin: 0;
}

.map-ad-banner .ad-cta {
    background: #4ADE80;
    color: #0F3D2A;
    border: none;
    border-radius: 10px;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
}

.map-ad-banner .ad-cta:hover {
    background: #34D399;
}

.map-ad-banner .ad-close {
    position: absolute;
    top: 8px;
    right: 10px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 4px;
}

.map-ad-banner .ad-close:hover {
    color: #fff;
}

@media (max-width: 992px) {
    .map-ad-banner {
        display: none;
    }
}

/* ================= ЧИПЫ НА КАРТЕ ================= */
.map-chips {
    position: fixed;
    right: 16px;
    bottom: calc(var(--bottom-zone) + 16px);
    display: flex;
    gap: 8px;
    z-index: 115;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.map-chip {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 999px;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--rd-text);
    cursor: pointer;
    box-shadow: var(--rd-shadow);
    transition: background 0.2s ease;
}

.map-chip i {
    color: var(--rd-green);
}

.map-chip:hover {
    background: var(--rd-green-soft);
}

@media (max-width: 992px) {
    .map-chips {
        display: none;
    }
}

/* ================= ПРОМО-БАННЕРЫ ПОД КАРТОЙ ================= */
.promo-strip {
    position: fixed;
    left: var(--sidebar-width);
    right: 0;
    bottom: var(--footer-height);
    height: var(--promo-strip-height);
    display: flex;
    gap: 12px;
    padding: 12px 16px;
    background: transparent;
    border-top: none;
    pointer-events: none;
    z-index: 121;
    transition: bottom 0.32s ease, right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.promo-banner {
    flex: 1;
    border-radius: var(--rd-radius);
    padding: 12px 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    overflow: hidden;
    position: relative;
    pointer-events: auto;
    box-shadow: 0 6px 18px rgba(15, 61, 42, 0.18);
}

.promo-banner h4 {
    font-size: 0.9rem;
    font-weight: 700;
    margin: 0;
}

.promo-banner p {
    font-size: 0.72rem;
    margin: 0;
    opacity: 0.85;
}

.promo-banner .promo-cta {
    align-self: flex-start;
    margin-top: 5px;
    border: none;
    border-radius: 8px;
    padding: 5px 12px;
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.2s ease;
}

.promo-banner .promo-cta:hover {
    filter: brightness(1.08);
}

.promo-banner.promo-dark {
    background: linear-gradient(100deg, #0F3D2A, #1F6F43);
    color: #fff;
}

.promo-banner.promo-dark .promo-cta {
    background: #4ADE80;
    color: #0F3D2A;
}

.promo-banner.promo-light {
    background: #E7F3EC;
    color: var(--rd-green-dark);
}

.promo-banner.promo-light .promo-cta {
    background: var(--rd-green-dark);
    color: #fff;
}

.promo-banner.promo-warm {
    background: #FDF0E0;
    color: #7C4A0B;
}

.promo-banner.promo-warm .promo-cta {
    background: #F59E0B;
    color: #fff;
}

@media (max-width: 992px) {
    .promo-strip {
        display: none;
    }
}

/* ================= ФУТЕР ================= */
body.footer-open {
    --footer-height: var(--footer-expanded-height);
}

.site-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    height: var(--footer-height);
    background: var(--rd-green-dark);
    color: #fff;
    z-index: 122;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    overflow: hidden;
    transition: height 0.32s ease;
}

.footer-toggle {
    flex: 0 0 var(--footer-handle-height);
    height: var(--footer-handle-height);
    width: 100%;
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.footer-toggle:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.06);
}

.footer-toggle i {
    font-size: 0.75rem;
    transition: transform 0.32s ease;
}

body.footer-open .footer-toggle i {
    transform: rotate(180deg);
}

.site-footer-container {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 0 24px 16px;
    flex: 1;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.25s ease, transform 0.25s ease;
}

body.footer-open .site-footer-container {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.site-footer-brand {
    min-width: 180px;
}

.site-footer-brand .footer-logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 700;
}

.site-footer-brand .footer-logo img {
    height: 24px;
    filter: brightness(0) invert(1);
}

.site-footer-brand p {
    font-size: 0.62rem;
    color: rgba(255, 255, 255, 0.6);
    margin: 4px 0 0;
    line-height: 1.4;
}

.site-footer-col {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.site-footer-col h5 {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 3px;
}

.site-footer-col a {
    font-size: 0.68rem;
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    cursor: pointer;
}

.site-footer-col a:hover {
    color: #fff;
}

.site-footer-social {
    display: flex;
    gap: 8px;
    margin-top: 4px;
}

.site-footer-social a {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    text-decoration: none;
    transition: background 0.2s ease;
}

.site-footer-social a:hover {
    background: rgba(255, 255, 255, 0.28);
}

.site-footer-newsletter {
    margin-left: auto;
    min-width: 220px;
}

.site-footer-newsletter h5 {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 6px;
    color: rgba(255, 255, 255, 0.85);
}

.site-footer-newsletter form {
    display: flex;
    gap: 6px;
}

.site-footer-newsletter input {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 7px 10px;
    font-family: inherit;
    font-size: 0.72rem;
    color: #fff;
    outline: none;
}

.site-footer-newsletter input::placeholder {
    color: rgba(255, 255, 255, 0.45);
}

.site-footer-newsletter button {
    background: #4ADE80;
    color: #0F3D2A;
    border: none;
    border-radius: 8px;
    padding: 7px 12px;
    cursor: pointer;
    font-size: 0.75rem;
}

.site-footer-newsletter button:hover {
    background: #34D399;
}

/* На мобильных вся нижняя зона скрыта — там свой интерфейс (мобильное меню) */
@media (max-width: 992px) {
    .site-footer {
        display: none;
    }
}

/* ================= КАРТА: элементы управления ================= */
@media (min-width: 993px) {
    body .map-zoom-controls {
        left: auto !important;
        right: 16px !important;
        top: auto !important;
        bottom: calc(var(--bottom-zone) + 70px) !important;
        transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }

    body .map-styles-button {
        left: calc(var(--sidebar-width) + 16px) !important;
        top: auto !important;
        bottom: calc(var(--bottom-zone) + 16px) !important;
    }

    body.place-details-open .categories-panel {
        right: var(--details-width) !important;
    }

    body.place-details-open .promo-strip {
        right: var(--details-width);
    }

    body.place-details-open .map-ad-banner {
        left: calc(var(--sidebar-width) + (100vw - var(--sidebar-width) - var(--details-width)) / 2);
        width: min(600px, calc(100vw - var(--sidebar-width) - var(--details-width) - 80px));
    }

    body.place-details-open .map-chips,
    body.place-details-open .map-zoom-controls {
        right: calc(var(--details-width) + 16px) !important;
    }
}

/* ================= ДЕТАЛЬНАЯ КАРТОЧКА СПРАВА ================= */
/* Шапка — белая полка, контент — та же серая подложка, что слева под карточками */
body .place-details {
    background: var(--rd-list-bg) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

body .place-details-header {
    background: var(--rd-surface) !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid var(--rd-border) !important;
    box-shadow: none !important;
    min-height: 44px !important;
    height: 44px !important;
    padding: 0 8px !important;
}

body .place-details .back-button {
    background: transparent !important;
    color: var(--rd-text) !important;
    border: none !important;
    box-shadow: none !important;
    padding: 6px 10px !important;
    border-radius: 10px !important;
    font-size: 0.8rem !important;
    font-weight: 650 !important;
    transform: none !important;
}

body .place-details .back-button:hover {
    background: var(--rd-green-soft) !important;
    color: var(--rd-green-dark) !important;
    transform: none !important;
    box-shadow: none !important;
}

body .place-details .pd-close-icon {
    display: none;
}

body .place-details .gallery-overlay-close,
body .place-details .gallery-overlay-actions {
    position: absolute;
    top: 10px;
    z-index: 12;
    display: flex;
    gap: 8px;
}

body .place-details .gallery-overlay-close {
    left: 10px;
    display: none;
}

body .place-details .gallery-overlay-actions {
    right: 10px;
}

body .place-details .place-gallery .header-action-btn {
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.94);
    color: var(--rd-text);
    box-shadow: 0 1px 6px rgba(15, 61, 42, 0.16);
    transform: none;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body .place-details .place-gallery .header-action-btn:hover {
    background: #fff;
    color: var(--rd-green-dark);
}

body .place-details .place-gallery .header-action-btn.active,
body .place-details .place-gallery .header-action-btn[aria-pressed="true"] {
    color: #E25555;
    background: #fff;
}

body .place-gallery {
    position: relative;
    height: 260px !important;
    background: #DCE6E0;
}

body .place-gallery.is-empty .gallery-container,
body .place-gallery.is-empty .gallery-nav,
body .place-gallery.is-empty .gallery-counter,
body .place-gallery.is-single .gallery-nav,
body .place-gallery.is-single .gallery-counter {
    display: none !important;
}

body .place-gallery:not(.is-empty) .gallery-empty {
    display: none !important;
}

body .gallery-empty {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, var(--rd-green), var(--rd-green-dark));
    color: #fff;
    font-size: 3.2rem;
    font-weight: 750;
    padding-bottom: 28px;
}

body .gallery-empty-hint {
    font-size: 0.78rem;
    font-weight: 650;
    letter-spacing: 0;
    opacity: 0.92;
}

body .place-details .gallery-nav {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--rd-text);
    box-shadow: 0 2px 10px rgba(15, 61, 42, 0.16);
    font-size: 0.8rem;
}

body .place-details .gallery-nav:hover {
    background: #fff;
    transform: translateY(-50%);
}

body .gallery-counter {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 12;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(15, 37, 28, 0.62);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 700;
}

body .gallery-add-photo {
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 12;
    height: 34px;
    padding: 0 10px 0 8px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--rd-green-dark);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 0.72rem;
    font-weight: 750;
    box-shadow: 0 1px 6px rgba(15, 61, 42, 0.18);
}

body .gallery-add-photo i {
    font-size: 0.78rem;
}

body .gallery-add-photo:hover {
    background: #fff;
}

body .place-gallery.is-empty .gallery-add-photo {
    left: 50%;
    right: auto;
    bottom: 14px;
    transform: translateX(-50%);
    height: 40px;
    padding: 0 14px;
    font-size: 0.8rem;
}

body .place-details .gallery-indicators,
body .place-details .photo-upload-btn,
body .place-details .add-review-btn,
body .place-details .add-photo-btn {
    display: none !important;
}

body .place-info-section,
body .place-header {
    padding: 14px 16px 4px !important;
}

body .place-title-section {
    margin-bottom: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
}

body .place-details .place-polecane-badge {
    font-size: 0.68rem;
    padding: 4px 10px;
}

body .place-details .place-title {
    flex: 1 0 100%;
    font-size: 1.28rem !important;
    font-weight: 750 !important;
    letter-spacing: -0.03em;
    color: var(--rd-text) !important;
    margin: 8px 0 0 !important;
    line-height: 1.25;
}

body .place-details .place-category {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--rd-green-soft);
    color: var(--rd-green-dark) !important;
    font-size: 0.72rem !important;
    font-weight: 650 !important;
    width: fit-content;
}

body .place-details .place-category i {
    font-size: 0.68rem;
}

body .place-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 12px;
}

body .place-fact {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 12px;
    min-width: 0;
}

body .place-fact-label {
    font-size: 0.58rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #8A9690;
}

body .place-fact strong {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--rd-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

body .place-fact.is-open strong {
    color: var(--rd-green);
}

body .place-fact.is-closed strong {
    color: #C44536;
}

body .place-details .place-description {
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--rd-text);
    margin: 8px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    line-clamp: 5;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body .place-details .place-description.is-expanded {
    display: block;
    -webkit-line-clamp: unset;
    overflow: visible;
}

body .place-text-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin: 6px 0 0;
    padding: 0;
    border: none;
    background: none;
    color: var(--rd-green-dark);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
}

body .place-text-btn:hover {
    color: var(--rd-green);
}

body .place-hours {
    margin: 12px 0 0;
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 12px;
    overflow: hidden;
}

body .place-hours-head {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px 6px;
    color: var(--rd-text);
    font-size: 0.8rem;
    font-weight: 650;
}

body .place-hours-head i {
    color: var(--rd-green);
    font-size: 0.72rem;
}

body .place-hours-head span {
    flex: 1;
    min-width: 0;
}

body .place-hours-days {
    display: grid;
    gap: 4px;
    padding: 0 12px 10px;
}

body .place-hours-days[hidden] {
    display: none !important;
}

body .place-hours-day {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.76rem;
    color: var(--rd-text-muted);
}

body .place-hours-day.is-today {
    color: var(--rd-text);
    font-weight: 700;
}

body .place-hours-specials {
    display: grid;
    gap: 4px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--rd-border);
}

body .place-hours-day.place-hours-special span:first-child {
    min-width: 0;
}

body .place-hours-special-more summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 2px 0;
    font-size: 0.72rem;
    font-weight: 650;
    color: var(--rd-green);
    user-select: none;
}

body .place-hours-special-more summary::-webkit-details-marker,
body .place-hours-special-more summary::marker {
    display: none;
    content: '';
}

body .place-hours-special-more summary::after {
    content: '';
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
    transition: transform 0.15s ease;
}

body .place-hours-special-more[open] summary::after {
    transform: rotate(180deg);
}

body .place-hours-special-list {
    display: grid;
    gap: 4px;
    margin-top: 4px;
    max-height: 220px;
    overflow: auto;
}

body .place-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 10px 0 0;
    padding: 10px 12px;
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--rd-text);
    line-height: 1.4;
}

body .place-address i {
    color: var(--rd-green);
    margin-top: 3px;
    font-size: 0.72rem;
}

body .place-address span {
    flex: 1;
    min-width: 0;
}

body .place-copy-addr {
    border: none;
    background: transparent;
    color: var(--rd-text-muted);
    cursor: pointer;
    padding: 2px;
}

body .place-copy-addr:hover {
    color: var(--rd-green-dark);
}

body .place-details .place-features {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 12px 0 0;
}

body .place-details .place-features:empty {
    display: none;
}

body .place-details .feature-tag {
    background: var(--rd-surface);
    color: var(--rd-text);
    border: 1px solid var(--rd-border);
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body .place-details .feature-tag i {
    color: var(--rd-green);
    font-size: 0.68rem;
}

body .place-contact[hidden],
body .place-contact-item[hidden] {
    display: none !important;
}

body .place-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 12px 0 4px;
}

body .place-contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 12px;
    font-size: 0.8rem;
    color: var(--rd-text);
}

body .place-contact-item i {
    color: var(--rd-green);
    font-size: 0.72rem;
    width: 14px;
    text-align: center;
}

body .place-contact-link {
    color: var(--rd-green-dark);
    font-weight: 650;
    text-decoration: none;
}

body .place-contact-reveal {
    margin-left: 8px;
    color: var(--rd-text-muted);
    font-size: 0.72rem;
}

body .place-sticky-cta {
    flex-shrink: 0;
    display: flex;
    gap: 8px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--rd-surface);
    border-top: 1px solid var(--rd-border);
}

body .place-details .action-btn {
    flex: 1;
    padding: 11px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
    box-shadow: none;
    transform: none;
}

body .place-details .action-btn:hover {
    transform: none;
    box-shadow: none;
}

body .place-details .action-btn.primary {
    background: var(--rd-green-dark);
    color: #fff;
}

body .place-details .action-btn.primary:hover {
    background: var(--rd-green);
}

body .place-details .action-btn.secondary {
    background: var(--rd-surface);
    color: var(--rd-green-dark);
    border: 1px solid var(--rd-border);
}

body .place-details .action-btn.secondary:hover {
    background: var(--rd-green-soft);
    border-color: transparent;
}

body .place-details .place-rating-section {
    margin: 8px 16px 0;
    padding: 14px;
    border: 1px solid var(--rd-border);
    border-radius: 14px;
    background: var(--rd-surface);
}

body .place-details .place-rating-section h4 {
    font-size: 0.88rem;
    color: var(--rd-text);
    margin: 0;
}

body .place-details .rating-score {
    font-size: 0.85rem;
    background: var(--rd-green-soft);
    color: var(--rd-green-dark);
    box-shadow: none;
    padding: 4px 10px;
    border-radius: 999px;
}

body .reviews-rate-label {
    margin: 10px 0 0;
    font-size: 0.72rem;
    font-weight: 650;
    color: var(--rd-text-muted);
}

body .place-details .rating-stars-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 4px 0 0;
    min-height: 28px;
}

body .place-details .rating-stars-interactive {
    margin: 0;
    flex: 0 0 auto;
}

body .place-details .rating-message {
    margin: 0;
    padding: 0;
    background: none;
    border-radius: 0;
    box-shadow: none;
    animation: none;
    color: var(--rd-green);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1.2;
    text-align: left;
}

body .place-details .rating-stars-interactive i {
    font-size: 1.15rem;
    color: #D9C27A;
}

body .place-details .reviews-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: visible;
    margin-top: 12px;
    padding-bottom: 0;
}

body .place-details .review-card {
    flex: none;
    width: 100%;
    max-height: none;
    border: 1px solid var(--rd-border);
    border-radius: 12px;
    box-shadow: none;
    background: var(--rd-surface);
    cursor: default;
    padding: 12px;
}

body .place-details .review-header,
body .reviews-modal .review-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin: 0 0 6px;
}

body .place-details .review-author,
body .reviews-modal .review-author {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--rd-text);
}

body .place-details .review-date,
body .reviews-modal .review-date {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--rd-text-muted);
}

body .place-details .review-stars,
body .reviews-modal .review-stars {
    margin: 0 0 6px;
    font-size: 0.82rem;
    color: #D9C27A;
    letter-spacing: 0.04em;
}

body .place-details .review-text,
body .reviews-modal .review-text {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.45;
    color: var(--rd-text);
    font-style: normal;
}

body .place-details .review-card:hover {
    transform: none;
    box-shadow: none;
}

body .place-details .review-card::after {
    display: none;
}

body .place-details .review-empty {
    margin: 8px 0 0;
    font-size: 0.78rem;
    color: var(--rd-text-muted);
}

body .reviews-actions {
    display: flex;
    gap: 16px;
    margin-top: 4px;
}

body .place-details .similar-places {
    padding: 16px 16px 20px;
}

body .place-details .similar-places h3 {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--rd-text);
    margin-bottom: 10px;
}

body .similar-place-card {
    position: relative;
    background: #fff;
    border: 1px solid var(--rd-border);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    min-width: 168px;
    max-width: 180px;
    flex-shrink: 0;
}

body .similar-place-card .place-polecane-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    font-size: 0.55rem;
}

body .similar-place-card:hover {
    transform: translateY(-2px);
}

body .similar-place-card img {
    width: 100%;
    height: 92px;
    object-fit: cover;
    display: block;
}

body .similar-place-card .similar-place-body {
    padding: 8px 10px 10px;
}

body .similar-place-card h4 {
    margin: 0;
    font-size: 0.78rem;
    color: var(--rd-text);
    line-height: 1.25;
}

body .similar-place-card p {
    margin: 4px 0 0;
    font-size: 0.68rem;
    color: var(--rd-text-muted);
}

.place-lightbox {
    position: fixed;
    inset: 0;
    z-index: 4000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(8, 18, 14, 0.88);
}

.place-lightbox[hidden] {
    display: none !important;
}

.place-lightbox img {
    max-width: min(92vw, 1100px);
    max-height: 86vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    border: none;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
}

.lightbox-close {
    top: 18px;
    right: 18px;
}

.lightbox-prev { left: 18px; }
.lightbox-next { right: 18px; }

.lightbox-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 650;
}

.place-confirm {
    position: fixed;
    inset: 0;
    z-index: 4200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(8, 18, 14, 0.45);
}

.place-confirm[hidden] {
    display: none !important;
}

.place-confirm-card {
    width: min(100%, 380px);
    padding: 20px 18px 16px;
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 16px;
}

.place-confirm-card h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-weight: 750;
    color: var(--rd-text);
}

.place-confirm-card p {
    margin: 0 0 16px;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--rd-text-muted);
}

.place-confirm-actions {
    display: flex;
    gap: 8px;
}

.place-confirm-actions .action-btn {
    flex: 1;
    padding: 10px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 700;
}

.place-confirm-actions .action-btn.secondary {
    background: var(--rd-bg);
    color: var(--rd-text);
    border: 1px solid var(--rd-border);
}

.place-confirm-actions .action-btn.primary {
    background: var(--rd-green-dark);
    color: #fff;
    border: none;
}

body .login-required-overlay,
body .login-required-overlay.show {
    display: none !important;
}

body .login-required-modal {
    position: fixed;
    inset: 0;
    z-index: 4300;
    display: none;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(8, 18, 14, 0.45);
    transform: none;
    max-width: none;
    width: auto;
    border-radius: 0;
    box-shadow: none;
    animation: none;
}

body .login-required-modal.show {
    display: flex;
}

body .login-required-card {
    width: 100%;
    padding: 20px 18px 18px;
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 18px 18px 0 0;
}

body .login-required-card h3,
body .login-required-modal .modal-header,
body .login-required-modal .modal-header h3 {
    margin: 0 0 8px;
    padding: 0;
    background: none;
    color: var(--rd-text);
    font-size: 1.08rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    text-align: left;
    border-radius: 0;
}

body .login-required-copy,
body .login-required-card p,
body .login-required-modal .modal-body,
body .login-required-modal .modal-body p {
    margin: 0 0 16px;
    padding: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--rd-text-muted);
    text-align: left;
}

body .login-required-copy p {
    margin: 0 0 10px;
}

body .login-required-copy p:last-child {
    margin-bottom: 0;
}

body .login-required-actions,
body .login-required-modal .modal-footer {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    justify-content: stretch;
}

body .login-required-actions .action-btn,
body .login-required-modal .btn-secondary,
body .login-required-modal .btn-primary {
    flex: 1;
    padding: 11px 8px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
}

body .login-required-actions .action-btn.secondary,
body .login-required-modal .btn-secondary {
    background: var(--rd-bg);
    color: var(--rd-text);
    border: 1px solid var(--rd-border);
}

body .login-required-actions .action-btn.primary,
body .login-required-modal .btn-primary {
    background: var(--rd-green-dark);
    color: #fff;
}

@media (min-width: 640px) {
    body .login-required-modal.show {
        align-items: center;
        padding: 16px;
    }

    body .login-required-card {
        width: min(100%, 400px);
        border-radius: 16px;
        box-shadow: 0 16px 48px rgba(15, 61, 42, 0.18);
    }
}

body .auth-modal-overlay,
body .auth-modal-overlay.active {
    display: none !important;
}

body .auth-modal {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 4401;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: auto;
    max-width: none;
    max-height: none;
    padding: 0;
    background: rgba(8, 18, 14, 0.45);
    border-radius: 0;
    box-shadow: none;
    transform: none;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    overflow: hidden;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

body .auth-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

body .auth-modal-content {
    width: 100%;
    max-height: 92vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 16px 16px 18px;
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 18px 18px 0 0;
    height: auto;
}

body .auth-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
    padding: 0;
    background: none;
    color: var(--rd-text);
    flex-shrink: 0;
}

body .auth-modal-header h2 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: var(--rd-text);
}

body .auth-modal-close,
body .auth-modal .close-modal-btn {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid var(--rd-border);
    border-radius: 50%;
    background: var(--rd-bg);
    color: var(--rd-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0.9rem;
}

body .auth-modal-close:hover,
body .auth-modal .close-modal-btn:hover {
    background: var(--rd-green-soft);
    color: var(--rd-green-dark);
}

body .auth-modal-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
}

body .auth-modal .form-group {
    margin: 0 0 12px;
}

body .auth-modal .form-group label {
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--rd-text);
}

body .auth-modal .form-group input[type="email"],
body .auth-modal .form-group input[type="password"],
body .auth-modal .form-group input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--rd-border);
    border-radius: 12px;
    background: var(--rd-bg);
    color: var(--rd-text);
    font-family: inherit;
    font-size: 0.9rem;
    box-shadow: none;
}

body .auth-modal .form-group input:focus {
    outline: none;
    border-color: var(--rd-green);
    background: #fff;
    box-shadow: none;
}

body .auth-modal .form-help {
    display: block;
    margin: 6px 0 0;
    font-size: 0.72rem;
    color: var(--rd-text-muted);
}

body .auth-modal .checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 0 0 14px;
}

body .auth-modal .checkbox-group input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    flex-shrink: 0;
    accent-color: var(--rd-green-dark);
}

body .auth-modal .checkbox-group label {
    margin: 0;
    font-size: 0.8rem;
    font-weight: 500;
    line-height: 1.35;
    color: var(--rd-text-muted);
}

body .auth-modal .auth-btn {
    width: 100%;
    margin: 0 0 10px;
    padding: 11px 12px;
    border-radius: 12px;
    font-size: 0.86rem;
    font-weight: 700;
    box-shadow: none;
    transform: none;
}

body .auth-modal .auth-btn.primary {
    background: var(--rd-green-dark);
    color: #fff;
    border: none;
}

body .auth-modal .auth-btn.primary:hover {
    background: var(--rd-green);
    transform: none;
    box-shadow: none;
}

body .auth-modal .auth-btn.google {
    background: var(--rd-surface);
    color: var(--rd-text);
    border: 1px solid var(--rd-border);
}

body .auth-modal .auth-btn.google:hover {
    background: var(--rd-bg);
    color: var(--rd-text);
}

body .auth-modal .auth-divider {
    margin: 4px 0 12px;
}

body .auth-modal .auth-divider::before {
    background: var(--rd-border);
}

body .auth-modal .auth-divider span {
    background: var(--rd-surface);
    color: var(--rd-text-muted);
    font-size: 0.74rem;
}

body .auth-modal .auth-switch {
    margin: 8px 0 0;
    font-size: 0.82rem;
    color: var(--rd-text-muted);
}

body .auth-modal .auth-switch a {
    color: var(--rd-green-dark);
    font-weight: 700;
    text-decoration: none;
}

@media (min-width: 640px) {
    body .auth-modal.active {
        align-items: center;
        padding: 16px;
    }

    body .auth-modal-content {
        width: min(100%, 400px);
        border-radius: 16px;
        box-shadow: 0 16px 48px rgba(15, 61, 42, 0.18);
    }
}

body .add-review-overlay,
body .add-review-overlay.show {
    display: none !important;
}

body .add-review-modal {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    z-index: 4300;
    display: none;
    align-items: flex-end;
    justify-content: center;
    width: auto;
    max-width: none;
    padding: 0;
    background: rgba(8, 18, 14, 0.45);
    border-radius: 0;
    box-shadow: none;
    transform: none;
    animation: none;
}

body .add-review-modal.show {
    display: flex;
}

body .add-review-card {
    width: 100%;
    max-height: 92vh;
    overflow: auto;
    padding: 16px 16px 18px;
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 18px 18px 0 0;
}

body .add-review-header,
body .add-review-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px;
    padding: 0;
    background: none;
    color: var(--rd-text);
    border-radius: 0;
}

body .add-review-header h3,
body .add-review-modal .modal-header h3 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: var(--rd-text);
}

body .add-review-close,
body .add-review-modal .close-btn {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid var(--rd-border);
    border-radius: 50%;
    background: var(--rd-bg);
    color: var(--rd-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0.9rem;
}

body .add-review-close:hover,
body .add-review-modal .close-btn:hover {
    background: var(--rd-green-soft);
    color: var(--rd-green-dark);
    transform: none;
}

body .add-review-hint {
    margin: 0 0 14px;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--rd-text-muted);
}

body .add-review-body,
body .add-review-modal .modal-body {
    padding: 0;
}

body .add-review-modal .review-form {
    gap: 0;
}

body .add-review-modal .form-group {
    margin: 0 0 12px;
    gap: 6px;
}

body .add-review-modal .form-group label,
body .add-review-modal .rating-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--rd-text);
}

body .add-review-modal .rating-stars {
    gap: 6px;
    margin: 0;
}

body .add-review-modal .rating-stars i {
    font-size: 1.35rem;
    color: #E4E0D4;
    transform: none;
}

body .add-review-modal .rating-stars i:hover,
body .add-review-modal .rating-stars i.active {
    color: #D9C27A;
    transform: none;
}

body .add-review-modal .rating-stars i:hover ~ i {
    color: #E4E0D4;
}

body .add-review-modal textarea,
body .add-review-modal input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--rd-border);
    border-radius: 12px;
    background: var(--rd-bg);
    color: var(--rd-text);
    font-family: inherit;
    font-size: 0.9rem;
    min-height: 0;
    box-shadow: none;
}

body .add-review-modal textarea {
    min-height: 110px;
    resize: vertical;
    line-height: 1.45;
}

body .add-review-modal textarea:focus,
body .add-review-modal input[type="text"]:focus {
    outline: none;
    border-color: var(--rd-green);
    background: #fff;
    box-shadow: none;
}

body .add-review-modal input[type="text"][readonly],
body .add-review-modal input[type="text"][readonly]:focus {
    background: var(--rd-bg);
    color: var(--rd-text-muted);
    border-color: var(--rd-border);
    box-shadow: none;
}

body .add-review-actions,
body .add-review-modal .modal-footer {
    display: flex;
    gap: 8px;
    margin: 4px 0 0;
    padding: 0;
    justify-content: stretch;
}

body .add-review-actions .action-btn,
body .add-review-modal .btn-secondary,
body .add-review-modal .btn-primary {
    flex: 1;
    padding: 11px 8px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    border: none;
    transform: none;
    box-shadow: none;
}

body .add-review-actions .action-btn.secondary,
body .add-review-modal .btn-secondary {
    background: var(--rd-bg);
    color: var(--rd-text);
    border: 1px solid var(--rd-border);
}

body .add-review-actions .action-btn.primary,
body .add-review-modal .btn-primary {
    background: var(--rd-green-dark);
    color: #fff;
}

@media (min-width: 640px) {
    body .add-review-modal.show {
        align-items: center;
        padding: 16px;
    }

    body .add-review-card {
        width: min(100%, 400px);
        border-radius: 16px;
        box-shadow: 0 16px 48px rgba(15, 61, 42, 0.18);
    }
}

body .reviews-overlay,
body .reviews-overlay.show {
    display: none !important;
}

body .reviews-modal {
    position: fixed;
    inset: 0;
    top: 0;
    left: 0;
    z-index: 4300;
    display: none;
    align-items: flex-end;
    justify-content: center;
    width: auto;
    max-width: none;
    max-height: none;
    padding: 0;
    background: rgba(8, 18, 14, 0.45);
    border-radius: 0;
    box-shadow: none;
    transform: none;
    animation: none;
}

body .reviews-modal.show {
    display: flex;
}

body .reviews-modal-card {
    width: 100%;
    max-height: 92vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    padding: 16px 16px 18px;
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 18px 18px 0 0;
}

body .reviews-modal-header,
body .reviews-modal .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
    padding: 0;
    background: none;
    color: var(--rd-text);
    border-radius: 0;
    flex-shrink: 0;
}

body .reviews-modal-header h3,
body .reviews-modal .modal-header h3 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 750;
    letter-spacing: -0.02em;
    color: var(--rd-text);
}

body .reviews-modal-close,
body .reviews-modal .close-btn {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid var(--rd-border);
    border-radius: 50%;
    background: var(--rd-bg);
    color: var(--rd-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 0.9rem;
}

body .reviews-modal-close:hover,
body .reviews-modal .close-btn:hover {
    background: var(--rd-green-soft);
    color: var(--rd-green-dark);
    transform: none;
}

body .reviews-modal-body,
body .reviews-modal .modal-body {
    padding: 0;
    overflow-y: auto;
    flex: 1;
    max-height: none;
}

body .reviews-modal .reviews-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body .reviews-modal .review-card,
body .reviews-list .review-card {
    width: 100%;
    max-height: none;
    padding: 12px;
    border: 1px solid var(--rd-border);
    border-radius: 12px;
    background: var(--rd-bg);
    box-shadow: none;
    cursor: default;
}

body .reviews-modal .review-card:hover,
body .reviews-list .review-card:hover {
    transform: none;
    box-shadow: none;
}

body .reviews-modal .review-card::after,
body .reviews-list .review-card::after {
    display: none;
}

body .reviews-modal .review-actions {
    display: flex;
    gap: 8px;
    margin: 10px 0 0;
    padding: 8px 0 0;
    border-top: 1px solid var(--rd-border);
}

body .reviews-modal .like-btn,
body .reviews-modal .dislike-btn {
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 999px;
    padding: 6px 10px;
    color: var(--rd-text-muted);
    font-size: 0.74rem;
    font-weight: 650;
    box-shadow: none;
    transform: none;
}

body .reviews-modal .like-btn:hover:not(:disabled),
body .reviews-modal .dislike-btn:hover:not(:disabled) {
    background: var(--rd-green-soft);
    color: var(--rd-green-dark);
    border-color: var(--rd-border);
    transform: none;
    box-shadow: none;
}

body .reviews-modal .review-empty {
    margin: 8px 0 0;
    font-size: 0.82rem;
    color: var(--rd-text-muted);
}

@media (min-width: 640px) {
    body .reviews-modal.show {
        align-items: center;
        padding: 16px;
    }

    body .reviews-modal-card {
        width: min(100%, 560px);
        border-radius: 16px;
        box-shadow: 0 16px 48px rgba(15, 61, 42, 0.18);
        max-height: 80vh;
    }
}

@media (min-width: 993px) {
    body .reviews-modal-card {
        width: min(100%, 720px);
        max-height: 84vh;
    }

    body .place-details .pd-back-icon,
    body .place-details .back-button span {
        display: none;
    }

    body .place-details .pd-close-icon {
        display: inline-block;
        font-size: 1rem;
    }

    /* Пустую шапку убираем: крестик на фото, высота уходит в галерею */
    body #placeDetails > .place-details-header {
        display: none !important;
    }

    body #placeDetails .gallery-overlay-close {
        display: flex;
    }

    body #placeDetails .place-gallery {
        height: 304px !important;
    }

    body .place-details,
    body .place-details.active {
        left: auto !important;
        right: 0 !important;
        top: var(--navbar-height) !important;
        width: var(--details-width) !important;
        max-width: var(--details-width) !important;
        height: calc(100vh - var(--navbar-height) - var(--footer-height)) !important;
        max-height: calc(100vh - var(--navbar-height) - var(--footer-height)) !important;
        border-left: 1px solid var(--rd-border);
        border-right: none !important;
        box-shadow: -10px 0 28px rgba(15, 61, 42, 0.10) !important;
        background: var(--rd-list-bg) !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border-radius: 0 !important;
        z-index: 123 !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                    opacity 0.3s ease,
                    visibility 0.3s ease,
                    height 0.32s ease,
                    max-height 0.32s ease !important;
    }

    body .place-details {
        transform: translateX(100%);
    }

    body .place-details.active {
        transform: translateX(0) !important;
    }

    body .main-content.hidden-by-details {
        display: flex !important;
        transform: translateX(0) !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        overflow: visible;
    }
}

@media (max-width: 992px) {
    body .place-gallery {
        height: 220px !important;
    }
}

/* ================= ПЕРЕКЛЮЧАТЕЛЬ MIEJSCA / TRASY ================= */
.explore-mode-bar {
    display: flex;
    align-items: center;
    padding: 8px 12px 2px;
    flex-shrink: 0;
}

.explore-mode-switch {
    display: flex;
    width: 100%;
    padding: 3px;
    background: var(--rd-bg);
    border: 1px solid var(--rd-border);
    border-radius: 999px;
    gap: 2px;
}

.explore-mode-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    height: 32px;
    padding: 0 10px;
    border: none;
    background: transparent;
    border-radius: 999px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 650;
    color: var(--rd-text-muted);
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.explore-mode-btn i {
    font-size: 0.72rem;
}

.explore-mode-btn:hover {
    color: var(--rd-green-dark);
}

.explore-mode-btn.is-active {
    background: var(--rd-surface);
    color: var(--rd-green-dark);
    box-shadow: 0 1px 4px rgba(15, 61, 42, 0.12);
}

body[data-explore-mode="places"] .fp-routes,
body[data-explore-mode="places"] .qf-routes-only {
    display: none !important;
}

body[data-explore-mode="routes"] .fp-places,
body[data-explore-mode="routes"] .qf-places-only {
    display: none !important;
}

.route-card-type {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 650;
    color: var(--rd-green);
    margin-bottom: 4px;
}

.route-diff {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
}

.route-diff.easy { background: #E7F3EC; color: #1F6F43; }
.route-diff.medium { background: #FFF4E0; color: #B7791F; }
.route-diff.hard { background: #FDECEC; color: #C44536; }

.route-card.active {
    outline: 2px solid var(--rd-green);
}

#routeDetails:not(.active) {
    display: none;
}

.route-endpoint {
    background: none !important;
    border: none !important;
}

.route-endpoint-dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border: 2px solid #fff;
    box-shadow: 0 1px 4px rgba(15, 61, 42, 0.35);
}

.route-details-hero {
    height: 180px;
    display: flex;
    align-items: flex-end;
    padding: 16px;
    color: #fff;
    background: linear-gradient(135deg, #1F6F43, #0F3D2A);
}

.route-details-hero.bike {
    background: linear-gradient(135deg, #0E8A8A, #0F3D2A);
}

.route-details-hero h2 {
    margin: 0;
    font-size: 1.25rem;
}

.route-details-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 16px;
}

.route-details-meta div {
    background: var(--rd-bg);
    border-radius: 12px;
    padding: 10px 12px;
}

.route-details-meta span {
    display: block;
    font-size: 0.68rem;
    color: var(--rd-text-muted);
    margin-bottom: 2px;
}

.route-details-meta strong {
    font-size: 0.9rem;
    color: var(--rd-text);
}

.route-details-desc {
    padding: 0 16px 20px;
    color: var(--rd-text-muted);
    font-size: 0.88rem;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .explore-mode-bar {
        padding: 8px 10px 4px;
    }

    .explore-mode-btn {
        height: 30px;
        padding: 0 8px;
        font-size: 0.72rem;
    }
}

/* ================= PHOTO UPLOAD MODAL ================= */
body .photo-upload-modal {
    position: fixed;
    inset: 0;
    z-index: 4300;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 0;
    background: rgba(8, 18, 14, 0.45);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

body .photo-upload-modal.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body .photo-upload-content {
    width: 100%;
    max-height: 92vh;
    overflow-y: auto;
    padding: 16px 16px 18px;
    background: var(--rd-surface);
    border: 1px solid var(--rd-border);
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -12px 40px rgba(15, 61, 42, 0.16);
}

body .photo-upload-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 8px;
    padding: 0;
    border: none;
}

body .photo-upload-header h2,
body .photo-upload-header #photoUploadTitle {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 750;
    color: var(--rd-text);
    letter-spacing: -0.02em;
}

body .photo-upload-place {
    margin: 3px 0 0;
    font-size: 0.8rem;
    color: var(--rd-text-muted);
    min-height: 1em;
}

body .photo-upload-place:empty {
    display: none;
}

body .photo-upload-close,
body .close-upload-btn {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    border: 1px solid var(--rd-border);
    border-radius: 50%;
    background: var(--rd-bg);
    color: var(--rd-text);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body .photo-upload-close:hover,
body .close-upload-btn:hover {
    background: var(--rd-green-soft);
    color: var(--rd-green-dark);
}

body .photo-upload-hint {
    margin: 0 0 12px;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--rd-text-muted);
}

body .upload-dropzone {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 132px;
    margin: 0 0 12px;
    padding: 22px 16px;
    border: 1.5px dashed #C9D6CE;
    border-radius: 14px;
    background: var(--rd-bg);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

body .upload-dropzone:hover,
body .upload-dropzone.dragover {
    border-color: var(--rd-green);
    background: var(--rd-green-soft);
    transform: none;
}

body .upload-dropzone i {
    font-size: 1.35rem;
    color: var(--rd-green);
    margin: 0 0 6px;
}

body .upload-dropzone strong,
body .upload-dropzone h3 {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--rd-text);
}

body .upload-dropzone span,
body .upload-dropzone p {
    margin: 0;
    font-size: 0.74rem;
    color: var(--rd-text-muted);
}

body .photo-upload-modal.has-file .upload-dropzone {
    display: none;
}

body .upload-preview {
    display: none;
    margin: 0 0 12px;
    position: relative;
}

body .photo-upload-modal.has-file .upload-preview,
body .upload-preview:not([hidden]) {
    display: block;
}

body .upload-preview img {
    display: block;
    width: 100%;
    max-height: 220px;
    object-fit: cover;
    border-radius: 14px;
    box-shadow: none;
    border: 1px solid var(--rd-border);
}

body .upload-change-btn {
    position: absolute;
    right: 10px;
    bottom: 10px;
    height: 32px;
    padding: 0 10px;
    border: none;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--rd-green-dark);
    font-size: 0.72rem;
    font-weight: 750;
    cursor: pointer;
    box-shadow: 0 1px 6px rgba(15, 61, 42, 0.16);
}

body .upload-description {
    margin: 0 0 14px;
}

body .upload-description label {
    display: block;
    margin: 0 0 6px;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--rd-text);
}

body .upload-description label span {
    font-weight: 500;
    color: var(--rd-text-muted);
}

body .upload-description textarea {
    width: 100%;
    min-height: 64px;
    padding: 10px 12px;
    border: 1px solid var(--rd-border);
    border-radius: 12px;
    background: var(--rd-bg);
    color: var(--rd-text);
    font-family: inherit;
    font-size: 0.84rem;
    line-height: 1.4;
    resize: vertical;
}

body .upload-description textarea:focus {
    outline: none;
    border-color: var(--rd-green);
    background: #fff;
}

body .upload-description small {
    display: block;
    margin: 6px 0 0;
    font-size: 0.72rem;
    line-height: 1.35;
    color: var(--rd-text-muted);
}

body .photo-upload-modal #uploadProgressContainer,
body #uploadProgressContainer {
    display: none;
    margin: 0 0 14px;
    padding: 0;
    min-width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    position: static;
    transform: none;
    text-align: left;
}

body .photo-upload-modal.is-uploading #uploadProgressContainer,
body #uploadProgressContainer.is-visible {
    display: block;
}

body .upload-progress-track {
    height: 6px;
    overflow: hidden;
    border-radius: 999px;
    background: var(--rd-bg);
    border: 1px solid var(--rd-border);
}

body .photo-upload-modal #uploadProgress,
body #uploadProgress {
    height: 100%;
    width: 0;
    background: var(--rd-green);
    border-radius: 999px;
    transition: width 0.2s ease;
}

body .photo-upload-modal #uploadProgress::before,
body #uploadProgress::before {
    display: none;
}

body #uploadProgressContainer .progress-text {
    display: block;
    margin-top: 6px;
    font-size: 0.74rem;
    color: var(--rd-text-muted);
}

body .upload-actions {
    display: flex;
    gap: 8px;
    margin: 0;
    justify-content: stretch;
}

body .photo-upload-modal .upload-actions .action-btn,
body .photo-upload-modal .upload-btn {
    flex: 1;
    padding: 11px 8px;
    border-radius: 12px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
}

body .photo-upload-modal .upload-actions .action-btn.secondary,
body .photo-upload-modal .upload-btn.secondary {
    background: var(--rd-bg);
    color: var(--rd-text);
    border: 1px solid var(--rd-border);
}

body .photo-upload-modal .upload-actions .action-btn.primary,
body .photo-upload-modal .upload-btn.primary {
    background: var(--rd-green-dark);
    color: #fff;
    border: none;
}

body .photo-upload-modal .upload-actions .action-btn.primary:disabled,
body .photo-upload-modal .upload-btn.primary:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

body .photo-upload-modal.is-uploading .upload-actions,
body .photo-upload-modal.is-uploading .upload-description,
body .photo-upload-modal.is-uploading .upload-change-btn {
    pointer-events: none;
    opacity: 0.55;
}

@media (min-width: 640px) {
    body .photo-upload-modal {
        align-items: center;
        padding: 16px;
    }

    body .photo-upload-content {
        width: min(100%, 400px);
        border-radius: 16px;
        box-shadow: 0 16px 48px rgba(15, 61, 42, 0.18);
    }
}

/* Регистрация фирмы: галочка выбора и бейдж Polecany не закрывают цену */
.subscription-plan-selector .plan-option input[type="radio"]:checked + .plan-option-content::before,
.subscription-plan-selector .plan-option input[type="radio"]:checked ~ .plan-option-content::before {
    display: none;
}

.subscription-plan-selector .recommended-mini-badge {
    left: 12px;
    transform: none;
}

/* Czat z administracją — nad panelem firmy (user-modal = 10001) */
body #supportChatModalOverlay {
    z-index: 19999 !important;
}

body #supportChatModal {
    z-index: 20000 !important;
    max-width: 640px;
}

body #supportChatModal .user-modal-body {
    padding: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

body #businessReviewsModal {
    z-index: 20000 !important;
    max-width: 640px;
}

body #businessReviewsModalOverlay {
    z-index: 19999 !important;
}

body #businessStatsModal {
    z-index: 20000 !important;
}

body #businessStatsModalOverlay {
    z-index: 19999 !important;
}

.owner-review-reply {
    margin-top: 10px;
    padding: 10px 12px;
    background: #E7F3EC;
    border-radius: 10px;
}

.owner-review-reply-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1F6F43;
    margin-bottom: 4px;
}

.owner-review-reply-text {
    font-size: 0.9rem;
    color: #17251C;
    white-space: pre-wrap;
}

.business-review-item {
    padding: 14px 0;
    border-bottom: 1px solid #E6EBE7;
}

.business-review-item:last-child {
    border-bottom: none;
}

.business-review-place {
    font-size: 0.8rem;
    color: #6B7A70;
    margin: 4px 0;
}

.business-review-reply-label {
    display: block;
    margin-top: 10px;
    font-size: 0.8rem;
    font-weight: 600;
}

.business-review-reply-input {
    width: 100%;
    margin-top: 6px;
    padding: 8px 10px;
    border: 1px solid #E6EBE7;
    border-radius: 8px;
    font: inherit;
    resize: vertical;
}

.business-review-reply-save {
    margin-top: 8px;
    padding: 8px 14px;
    border: none;
    border-radius: 8px;
    background: #1F6F43;
    color: #fff;
    cursor: pointer;
    font: inherit;
}

.stats-basic-wrap {
    margin-bottom: 1rem;
}

.stats-basic-note {
    margin: 0 0 0.85rem;
    font-size: 0.85rem;
    line-height: 1.4;
    color: #6B7A70;
}

.stats-basic-table-wrap {
    overflow-x: auto;
    border: 1px solid #E6EBE7;
    border-radius: 10px;
}

.stats-basic-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.stats-basic-table th,
.stats-basic-table td {
    padding: 0.7rem 0.85rem;
    text-align: left;
    border-bottom: 1px solid #E6EBE7;
}

.stats-basic-table thead th {
    font-size: 0.75rem;
    font-weight: 600;
    color: #6B7A70;
    background: #F4F7F5;
}

.stats-basic-table tbody th {
    font-weight: 500;
    color: #1F2A24;
}

.stats-basic-table tbody td {
    text-align: right;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}

.stats-basic-table tbody tr:last-child th,
.stats-basic-table tbody tr:last-child td {
    border-bottom: none;
}

.stats-premium-wrap {
    margin: 1.1rem 0 0.4rem;
    padding-top: 1rem;
    border-top: 1px solid #E6EBE7;
}

.stats-premium-title {
    margin: 0 0 0.75rem;
    font-size: 0.95rem;
}

.stats-premium-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem 0.75rem;
    align-items: end;
    margin-bottom: 0.85rem;
}

.stats-premium-controls label {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #6B7A70;
}

.stats-premium-controls input,
.stats-premium-controls select {
    font: inherit;
    padding: 0.4rem 0.5rem;
    border: 1px solid #E6EBE7;
    border-radius: 8px;
    min-width: 9rem;
}

.stats-premium-apply,
.stats-premium-all {
    border: none;
    border-radius: 8px;
    padding: 0.5rem 0.85rem;
    font: inherit;
    cursor: pointer;
}

.stats-premium-apply {
    background: #1F6F43;
    color: #fff;
}

.stats-premium-all {
    background: #F4F7F5;
    color: #1F2A24;
}

.stats-premium-total {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
}

.stats-premium-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    min-height: 140px;
    margin: 0.9rem 0 1rem;
    overflow-x: auto;
    padding: 1.2rem 0 0.35rem;
}

.stats-premium-bar {
    flex: 0 0 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 140px;
}

.stats-premium-bar-fill {
    width: 18px;
    min-height: 2px;
    background: #1F6F43;
    border-radius: 4px 4px 0 0;
}

.stats-premium-bar-value {
    font-size: 0.7rem;
    font-weight: 600;
    margin-bottom: 4px;
}

.stats-premium-bar-label {
    font-size: 0.65rem;
    color: #6B7A70;
    margin-top: 4px;
    white-space: nowrap;
}

.stats-premium-loc-table td,
.stats-premium-loc-table th {
    white-space: nowrap;
}

.stats-premium-loc-table tr.is-sum th,
.stats-premium-loc-table tr.is-sum td {
    background: #F4F7F5;
}

.location-photo-item.is-cover {
    outline: 2px solid #1F6F43;
}

.location-photo-cover-badge,
.location-photo-guest-badge {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 2;
    padding: 0.2rem 0.45rem;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 600;
    line-height: 1.2;
    color: #fff;
    background: #1F6F43;
}

.location-photo-guest-badge {
    background: rgba(0, 0, 0, 0.55);
}

.location-photo-first-btn {
    position: absolute;
    left: 6px;
    right: 6px;
    bottom: 6px;
    z-index: 2;
    border: none;
    border-radius: 6px;
    padding: 0.35rem 0.4rem;
    font-size: 0.72rem;
    font-weight: 600;
    cursor: pointer;
    color: #1F6F43;
    background: rgba(255, 255, 255, 0.92);
}
