@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

html, body {
    height: 100%;
    overflow: hidden;
}

body {
    display: flex;
    flex-direction: column;
    background-color: #f5f5f5;
}

/* Шапка */
header.up_menu {
    flex-shrink: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.8% 3%;
    background-color: white;
    border-bottom: 3px solid #ff4d4d;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* Левая часть */
header.up_menu .left_content {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Кнопка открытия верхнего меню (гамбургер) — три полоски слева сверху */
.header-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: none;
    border-radius: 10px;
    background: #f0f0f0;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.header-menu-toggle:hover {
    background: #ff4d4d;
    color: white;
}

.header-menu-toggle-bar {
    display: block;
    width: 22px;
    height: 3px;
    background: currentColor;
    border-radius: 2px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.header-menu-toggle.is-open .header-menu-toggle-bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.header-menu-toggle.is-open .header-menu-toggle-bar:nth-child(2) {
    opacity: 0;
}

.header-menu-toggle.is-open .header-menu-toggle-bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Подложка для мобильного меню */
.header-menu-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 900;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.header-menu-backdrop.is-visible {
    display: block;
    opacity: 1;
}

/* Кнопка скрытия/показа левого меню */
.sidebar-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 56px;
    padding: 0;
    border: none;
    border-radius: 0 8px 8px 0;
    background: #f0f0f0;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    position: absolute;
    top: 50%;
    left: 360px;
    transform: translateY(-50%);
    z-index: 1100;
    box-shadow: 2px 0 8px rgba(0, 0, 0, 0.1);
}

.sidebar-toggle:hover {
    background: #ff4d4d;
    color: white;
    box-shadow: 4px 0 14px rgba(255, 77, 77, 0.35);
}

.sidebar-toggle.is-collapsed .sidebar-toggle-icon {
    transform: rotate(180deg);
}

.sidebar-toggle .sidebar-toggle-icon {
    transition: transform 0.2s ease;
}

/* Положение кнопки, когда меню скрыто — прижимаем к левому краю */
.sidebar-toggle.is-collapsed {
    left: 0;
    border-radius: 0 8px 8px 0;
}

/* Список подсказок поиска под полем */
.map_search_suggest {
    position: absolute;
    top: 100%;
    left: 8px;
    right: 8px;
    margin-top: 4px;
    max-height: 260px;
    overflow-y: auto;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
    padding: 4px 0;
    z-index: 11;
    display: none;
}

.map_search_suggest.is-visible {
    display: block;
}

.map_search_suggest-item {
    padding: 8px 12px;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
    color: #333;
}

.map_search_suggest-item:hover {
    background: rgba(255, 77, 77, 0.06);
}

.map_search_suggest-empty {
    padding: 8px 12px;
    font-size: 13px;
    color: #888;
}

header.up_menu .left_content img.logo {
    max-height: 45px;
    transition: transform 0.3s ease;
}

header.up_menu .left_content img.logo:hover {
    transform: scale(1.05);
}

header.up_menu .left_content .city {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 20px;
    background: linear-gradient(135deg, #ff4d4d 0%, #ff0000 100%);
    color: white;
    font-size: 18px;
    font-weight: 800;
    border-radius: 30px;
    border: none;
    box-shadow: 0 4px 10px rgba(255, 77, 77, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

header.up_menu .left_content .city:hover {
    background: linear-gradient(135deg, #ff3333 0%, #cc0000 100%);
    box-shadow: 0 6px 15px rgba(255, 77, 77, 0.4);
    transform: translateY(-2px);
}

header.up_menu .left_content .city:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(255, 77, 77, 0.3);
}

/* Правая часть */
header.up_menu .right_content {
    display: flex;
    align-items: center;
    gap: 15px;
}

header.up_menu .right_content .menu-item {
    padding: 10px 18px;
    color: #333;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    border-radius: 25px;
    transition: all 0.3s ease;
    position: relative;
}

header.up_menu .right_content .menu-item:hover {
    color: #ff4d4d;
    background-color: rgba(255, 77, 77, 0.1);
}

header.up_menu .right_content .menu-item.active {
    color: #ff4d4d;
    background-color: rgba(255, 77, 77, 0.15);
}

header.up_menu .right_content .menu-item::after {
    content: '';
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: #ff4d4d;
    transition: width 0.3s ease;
}

header.up_menu .right_content .menu-item:hover::after {
    width: 30px;
}

/* Корзина */
header.up_menu .right_content .cart {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 5px;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

header.up_menu .right_content .cart:hover {
    background-color: rgba(255, 77, 77, 0.1);
    transform: scale(1.1);
}

header.up_menu .right_content .cart svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #333;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.3s ease;
}

header.up_menu .right_content .cart:hover svg {
    stroke: #ff4d4d;
    fill: rgba(255, 77, 77, 0.1);
}

header.up_menu .right_content .cart .cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background: linear-gradient(135deg, #ff4d4d 0%, #ff0000 100%);
    color: white;
    font-size: 12px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 5px rgba(255, 77, 77, 0.3);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(255, 77, 77, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 77, 77, 0);
    }
}

/* Кнопка входа/регистрации */
header.up_menu .right_content .auth-button {
    padding: 10px 25px;
    background-color: #ff4d4d;
    color: white;
    font-weight: 700;
    font-size: 16px;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(255, 77, 77, 0.3);
    margin-left: 5px;
}

header.up_menu .right_content .auth-button:hover {
    background-color: #ff0000;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(255, 77, 77, 0.4);
}

header.up_menu .right_content .auth-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(255, 77, 77, 0.3);
}

/* Обёртка страницы — одна страница без скролла */
.page_wrapper {
    flex: 1;
    display: flex;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

/* Левая панель — меню с карточками */
.left_sidebar {
    flex: 0 0 360px;
    display: flex;
    flex-direction: column;
    min-height: 0;
    background: white;
    border-right: 2px solid #e5e5e5;
    box-shadow: 4px 0 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    transition: flex 0.3s ease, transform 0.3s ease, margin 0.3s ease;
}

/* Скрытое меню — на десктопе схлопывается */
.left_sidebar.left_sidebar--hidden {
    flex: 0 0 0;
    min-width: 0;
    width: 0;
    overflow: hidden;
    border-right: none;
    box-shadow: none;
}

/* Кнопка закрытия — только на мобилке */
.sidebar-close-mobile {
    display: none;
}

/* Панель фильтров — одна строка */
.filters_bar {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    border-bottom: 1px solid #eee;
    background: #fafafa;
    flex-wrap: nowrap;
}

.filter_buttons {
    display: flex;
    gap: 8px;
}

.filter_btn {
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter_btn:hover {
    border-color: #ff4d4d;
    color: #ff4d4d;
}

.filter_btn.active {
    background: #e8f4fd;
    border-color: #4a9eff;
    color: #2d7dd2;
}

.add_filter {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #666;
    font-size: 13px;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.add_filter:hover {
    color: #ff4d4d;
    background: rgba(255, 77, 77, 0.06);
}

.add_filter .filter_icon {
    width: 16px;
    height: 16px;
    opacity: 0.7;
}

/* Колонка карточек — скроллится внутри меню */
.cards_column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 16px 20px 20px;
    overflow-y: auto;
    min-height: 0;
}

.cards_column::-webkit-scrollbar {
    width: 6px;
}

.cards_column::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 3px;
}

.cards_column::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.cards_column::-webkit-scrollbar-thumb:hover {
    background: #ff4d4d;
}

/* Карточки билбордов — не сжимаются, вся информация видна */
.billboard_card {
    flex-shrink: 0;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.billboard_card:hover {
    box-shadow: 0 8px 30px rgba(255, 77, 77, 0.12);
}

.card_header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 14px 16px 0;
    gap: 10px;
}

.card_title {
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.card_status {
    flex-shrink: 0;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.card_status.status_free {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.card_status.status_busy {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: white;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.3);
}

.card_body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 12px 16px 16px;
}

.card_photo {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.card_photo-img {
    width: 100%;
    border-radius: 12px;
    object-fit: cover;
    max-height: 220px;
}

.photo_placeholder {
    aspect-ratio: 16 / 9;
    background: linear-gradient(145deg, #e8e8e8 0%, #d4d4d4 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

.slider_dots {
    display: flex;
    gap: 6px;
    justify-content: center;
}

.slider_dot {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    border: 2px solid #ddd;
    background: white;
    font-size: 12px;
    font-weight: 700;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.slider_dot:hover {
    border-color: #ff4d4d;
    color: #ff4d4d;
}

.slider_dot.active {
    background: linear-gradient(135deg, #ff4d4d 0%, #ff0000 100%);
    border-color: #ff4d4d;
    color: white;
}

.card_info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    color: #444;
    line-height: 1.6;
}

.card_info p {
    margin: 0;
    word-wrap: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.card_info strong {
    color: #333;
    font-weight: 600;
}

/* Карта — от верхнего меню до низа страницы */
.map_placeholder {
    flex: 1;
    min-width: 0;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.map_placeholder:not(.map_placeholder--loaded) {
    cursor: pointer;
}

.map_wrapper {
    display: none;
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.map_container {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.map_search {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    max-width: 400px;
    display: flex;
    gap: 8px;
    z-index: 10;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px;
}

.map_search_input {
    flex: 1;
    padding: 10px 14px;
    font-size: 15px;
    border: 2px solid #e5e5e5;
    border-radius: 6px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s;
}

.map_search_input:focus {
    border-color: #ff4d4d;
}

.map_search_btn {
    padding: 10px 20px;
    font-size: 15px;
    font-weight: 600;
    background: linear-gradient(135deg, #ff4d4d 0%, #ff0000 100%);
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}

.map_search_btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 77, 77, 0.4);
}

.map_placeholder--loaded .map_wrapper {
    display: block;
}

.map_label {
    color: #999;
    font-size: 18px;
    font-weight: 500;
    pointer-events: none;
    z-index: 1;
}

.map_label.map_label--hidden {
    display: none;
}

.map_placeholder--loading .map_label {
    color: #666;
}

/* FAB: кнопка списка билбордов на мобилке — справа снизу */
.billboards-fab {
    display: none;
}

/* Подложка при открытом bottom sheet */
.sidebar-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1500;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.sidebar-backdrop.is-visible {
    display: block;
    opacity: 1;
}

/* Правая панель деталей билборда */
.billboard_details {
    position: absolute;
    top: 0;
    right: 0;
    width: 360px;
    max-width: 90%;
    height: 100%;
    background: #ffffff;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    padding: 20px 22px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 20;
}

.billboard_details--open {
    transform: translateX(0);
}

.billboard_details-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: #f0f0f0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    line-height: 1;
    color: #555;
    transition: background 0.2s ease, color 0.2s ease;
}

.billboard_details-close:hover {
    background: #ff4d4d;
    color: #ffffff;
}

.billboard_details-title {
    font-size: 20px;
    font-weight: 800;
    margin: 0 36px 10px 0;
    color: #1a1a1a;
}

.billboard_details-status {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.billboard_details-status--free {
    background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
    color: #ffffff;
}

.billboard_details-status--busy {
    background: linear-gradient(135deg, #f87171 0%, #ef4444 100%);
    color: #ffffff;
}

.billboard_details-row {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    font-size: 14px;
    margin-bottom: 8px;
}

.billboard_details-label {
    font-weight: 600;
    color: #555;
}

.billboard_details-value {
    text-align: right;
    color: #222;
}

.billboard_details-extra {
    margin-top: 14px;
    font-size: 14px;
    color: #444;
}

.billboard_details-photo {
    width: 100%;
    margin: 8px 0 14px;
}

.billboard_details-photo img {
    width: 100%;
    border-radius: 14px;
    object-fit: cover;
    max-height: 260px;
}

.billboard_details-buy {
    margin-top: auto;
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #ff4d4d 0%, #ff0000 100%);
    color: #ffffff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(255, 77, 77, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.billboard_details-buy:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(255, 77, 77, 0.5);
}

.billboard_details-buy:active {
    transform: translateY(0);
    box-shadow: 0 3px 8px rgba(255, 77, 77, 0.4);
}

/* Попап фильтров */
.filter-popup-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.filter-popup-backdrop.is-open {
    display: flex;
}

.filter-popup {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 420px;
    max-height: 90vh;
    overflow-y: auto;
}

.filter-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.filter-popup-close:hover {
    background: #ff4d4d;
    color: white;
}

.filter-popup-title {
    font-size: 22px;
    font-weight: 700;
    padding: 24px 24px 0;
    margin: 0;
    color: #1a1a1a;
}

.filter-popup-form {
    padding: 20px 24px 24px;
}

/* Блоки как в левом меню (карточки) */
.filter-popup-block {
    margin-bottom: 14px;
    padding: 16px 18px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(0, 0, 0, 0.06);
}

.filter-popup-block label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
}

.filter-popup-block input:not([type="checkbox"]),
.filter-popup-block select {
    width: 100%;
    padding: 10px 14px;
    font-size: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    transition: border-color 0.2s ease;
}

.filter-popup-block input:not([type="checkbox"]):focus,
.filter-popup-block select:focus {
    outline: none;
    border-color: #ff4d4d;
}

.filter-popup-block-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

/* Блок типа — как панель фильтров в левом меню */
.filter-popup-block-type {
    background: #fafafa;
    border-bottom: 1px solid #eee;
}

.filter-popup-block-type .filter_buttons {
    display: flex;
    gap: 8px;
}

.filter-popup-type-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 600;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-popup-type-btn:hover {
    border-color: #ff4d4d;
    color: #ff4d4d;
}

.filter-popup-type-btn.active {
    background: #e8f4fd;
    border-color: #4a9eff;
    color: #2d7dd2;
}

.filter-popup-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.filter-popup-cancel,
.filter-popup-save {
    flex: 1;
    padding: 12px 20px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    font-family: inherit;
    transition: all 0.2s ease;
}

.filter-popup-cancel {
    background: #f0f0f0;
    border: none;
    color: #666;
}

.filter-popup-cancel:hover {
    background: #e0e0e0;
}

.filter-popup-save {
    background: linear-gradient(135deg, #ff4d4d 0%, #ff0000 100%);
    border: none;
    color: white;
}

.filter-popup-save:hover {
    box-shadow: 0 4px 15px rgba(255, 77, 77, 0.4);
    transform: translateY(-1px);
}

/* Адаптивность */
@media (max-width: 1024px) {
    .page_wrapper {
        flex-direction: column;
    }

    .left_sidebar {
        flex: 0 0 auto;
        max-height: 45vh;
    }
}

/* Мобильная вёрстка — карта главный элемент, список по кнопке справа снизу */
@media (max-width: 768px) {
    /* Гамбургер — три полоски слева сверху */
    .header-menu-toggle {
        display: flex;
    }

    /* Панель навигации — выезжает слева по кнопке */
    header.up_menu .right_content {
        position: fixed;
        top: 0;
        left: 0;
        width: 280px;
        max-width: 85vw;
        height: 100vh;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        padding: 70px 24px 24px;
        gap: 8px;
        background: white;
        box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
        z-index: 1001;
        transform: translateX(-100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    }

    header.up_menu.up_menu--mobile-open .right_content {
        transform: translateX(0);
    }

    header.up_menu .right_content .menu-item {
        padding: 14px 18px;
        font-size: 17px;
        border-radius: 12px;
    }

    header.up_menu .right_content .cart {
        margin-right: 0;
        padding: 14px;
        justify-content: flex-start;
    }

    header.up_menu .right_content .auth-button {
        margin-top: 12px;
        margin-left: 0;
    }

    .page_wrapper {
        position: relative;
    }

    /* Карта — на весь экран */
    .map_placeholder {
        position: absolute;
        inset: 0;
        z-index: 1;
    }

    /* Левое меню — bottom sheet, скрыто по умолчанию */
    .left_sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 1600;
        flex: none;
        width: 100%;
        max-height: 85vh;
        border-radius: 20px 20px 0 0;
        box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
        transform: translateY(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        overflow: hidden;
    }

    .left_sidebar.left_sidebar--mobile-open {
        transform: translateY(0);
    }

    /* Кнопка закрытия в шапке bottom sheet */
    .sidebar-close-mobile {
        display: flex;
        position: absolute;
        top: 12px;
        right: 16px;
        width: 40px;
        height: 40px;
        align-items: center;
        justify-content: center;
        padding: 0;
        border: none;
        border-radius: 50%;
        background: #f0f0f0;
        color: #333;
        cursor: pointer;
        z-index: 10;
        transition: background 0.2s ease;
    }

    .sidebar-close-mobile:hover {
        background: #ff4d4d;
        color: white;
    }

    /* Ручка для свайпа */
    .left_sidebar::before {
        content: '';
        position: absolute;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: 40px;
        height: 4px;
        background: #ddd;
        border-radius: 2px;
        z-index: 11;
    }

    .filters_bar {
        padding: 20px 16px 16px 50px;
    }

    .cards_column {
        padding: 8px 16px 24px;
        max-height: calc(85vh - 120px);
    }

    /* FAB — справа снизу */
    .billboards-fab {
        display: flex;
        align-items: center;
        gap: 8px;
        position: fixed;
        bottom: 24px;
        right: 24px;
        z-index: 1200;
        padding: 14px 20px;
        background: linear-gradient(135deg, #ff4d4d 0%, #ff0000 100%);
        color: white;
        border: none;
        border-radius: 50px;
        font-size: 15px;
        font-weight: 700;
        cursor: pointer;
        box-shadow: 0 4px 20px rgba(255, 77, 77, 0.5);
        transition: transform 0.2s ease, box-shadow 0.2s ease;
    }

    .billboards-fab:hover {
        transform: scale(1.05);
        box-shadow: 0 6px 28px rgba(255, 77, 77, 0.6);
    }

    .billboards-fab:active {
        transform: scale(0.98);
    }

    .billboards-fab svg {
        flex-shrink: 0;
    }

    /* Скрыть десктопный тоггл на мобилке — используем только FAB */
    .sidebar-toggle {
        display: none;
    }

    .billboard_card .card_body {
        flex-direction: column;
    }

    .card_photo {
        width: 100%;
    }

    .photo_placeholder {
        aspect-ratio: 16 / 9;
    }

    header.up_menu {
        flex-direction: column;
        padding: 15px;
        gap: 15px;
    }

    header.up_menu .left_content {
        width: 100%;
        justify-content: space-between;
    }

    header.up_menu .right_content {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    header.up_menu .left_content .city {
        font-size: 16px;
        padding: 6px 15px;
    }

    /* Десктопное скрытие — на мобилке не применяем */
    .left_sidebar.left_sidebar--hidden {
        flex: none;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .billboards-fab .billboards-fab-text {
        display: none;
    }

    .billboards-fab {
        padding: 16px;
        border-radius: 50%;
        bottom: 20px;
        right: 20px;
    }

    header.up_menu .right_content {
        flex-direction: column;
        gap: 10px;
    }

    header.up_menu .right_content .menu-item {
        width: 100%;
        text-align: center;
    }

    header.up_menu .right_content .cart {
        margin-right: 0;
    }

    header.up_menu .right_content .auth-button {
        width: 100%;
        margin-left: 0;
    }
}