/* Основные стили */
:root {
    --primary-color: #8fa67a;
    --primary-dark: #6f855c;
    --primary-light: #b5c9a4;
    --secondary-color: #a8b89a;
    --success-color: #4d8f5f;
    --success-light: #7ab88a;
    --danger-color: #c75050;
    --danger-light: #e07a7a;
    --warning-color: #c9a84c;
    --info-color: #6b8f9e;
    --bg-color: #f6f7f2;
    --card-bg: #fdfdf9;
    --text-primary: #2f3428;
    --text-secondary: #5c6554;
    --border-color: #dde3d4;
    --light-color: #f8f9fa;
    --dark-color: #212529;
    --gray-color: #6c757d;
    --border-radius: 8px;
    --box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    line-height: 1.6;
    color: var(--dark-color);
    background: var(--bg-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

*, *::before, *::after {
    font-family: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}

/* Навигация */
.navbar {
    background: white;
    box-shadow: var(--box-shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 0.75rem 0;
}

.navbar-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.25rem;
    font-weight: 700;
    z-index: 1002;
    min-width: 0;
}

.logo span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.logo i {
    margin-right: 10px;
    font-size: 1.5rem;
    flex-shrink: 0;
}

/* Кнопка «гамбургер» — планшеты и телефоны */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    background: var(--card-bg);
    cursor: pointer;
    z-index: 1002;
    transition: var(--transition);
}

.nav-toggle:hover {
    border-color: var(--primary-color);
    background: #eef2e8;
}

.nav-toggle-bar {
    display: block;
    width: 100%;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: var(--transition);
}

.navbar.nav-open .nav-toggle-bar:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.navbar.nav-open .nav-toggle-bar:nth-child(2) {
    opacity: 0;
}

.navbar.nav-open .nav-toggle-bar:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(47, 52, 40, 0.45);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.nav-overlay.visible {
    display: block;
    opacity: 1;
}

.nav-drawer {
    display: flex;
    align-items: center;
}

.nav-drawer-head {
    display: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--gray-color);
    padding: 0.5rem 0.9rem;
    border-radius: var(--border-radius);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 500;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
    background: rgba(143, 166, 122, 0.12);
}

.nav-user-chip {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 0.9rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.25rem;
}

.logout-btn {
    color: var(--danger-color) !important;
    border: 1px solid var(--danger-color);
}

.register-btn {
    background: var(--primary-color);
    color: white !important;
    padding: 0.5rem 1.25rem !important;
}

.register-btn:hover {
    background: var(--primary-dark) !important;
    color: white !important;
}

.user-greeting {
    color: var(--gray-color);
    font-size: 0.9rem;
    margin-left: 1rem;
}

/* Сообщения */
.flash-container {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 999;
    max-width: 400px;
}

.flash {
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    display: flex;
    justify-content: space-between;
    align-items: center;
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

.flash-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.flash-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.flash-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: inherit;
    margin-left: 1rem;
}

/* Основной контент */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

/* Кнопки */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(111, 133, 92, 0.2);
}

.btn-secondary {
    background: var(--gray-color);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #b04444;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover {
    background: #3d7350;
}

.btn-info {
    background: var(--info-color);
    color: white;
}

.btn-info:hover {
    background: #567d8c;
}

.btn-block {
    width: 100%;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--gray-color);
    color: var(--gray-color);
}

/* Формы */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
}

.auth-card {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2.5rem;
    width: 100%;
    max-width: 500px;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--gray-color);
}

.auth-login-tabs {
    display: flex;
    margin-bottom: 1.25rem;
    border-radius: var(--border-radius);
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.auth-login-tab {
    flex: 1;
    padding: 0.65rem 1rem;
    border: none;
    background: var(--light-color);
    color: var(--text-secondary);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition);
}

.auth-login-tab i {
    margin-right: 0.35rem;
}

.auth-login-tab.active {
    background: var(--primary-color);
    color: white;
}

.auth-login-tab:not(.active):hover {
    background: #eef2e8;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--dark-color);
    font-weight: 500;
}

.auth-form label i {
    margin-right: 0.5rem;
    color: var(--primary-color);
}

.form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(67, 97, 238, 0.1);
}

.form-text {
    display: block;
    margin-top: 0.25rem;
    color: var(--gray-color);
    font-size: 0.875rem;
}

.form-check {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.form-check-input {
    margin-right: 0.5rem;
}

.form-check-label {
    font-size: 0.9rem;
}

.auth-links {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
}

.auth-links a {
    color: var(--primary-color);
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Админ панель */
.admin-container {
    background: white;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 2rem;
}

.admin-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.admin-header h1 {
    margin: 0;
    flex: 1;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #fff;
    border: 2px solid var(--border-color, #e2e8f0);
    border-radius: 10px;
    color: var(--dark-color, #1e293b);
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: var(--transition, all 0.2s ease);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
    white-space: nowrap;
}

.btn-back:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
    text-decoration: none;
    transform: translateY(-1px);
}

.admin-subtitle {
    color: var(--gray-color);
    font-size: 1.1rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--primary-color);
    color: white;
    padding: 1.5rem;
    border-radius: var(--border-radius);
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: var(--transition);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(67, 97, 238, 0.3);
}

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.9;
}

.stat-info h3 {
    font-size: 2rem;
    margin-bottom: 0.25rem;
}

.stat-info p {
    opacity: 0.9;
    font-size: 0.9rem;
}

.admin-actions {
    margin-bottom: 2rem;
}

.admin-actions h2 {
    margin-bottom: 1rem;
    color: var(--dark-color);
}

.action-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
}

.action-card {
    background: white;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    text-align: center;
    text-decoration: none;
    color: var(--dark-color);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.action-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: var(--box-shadow);
}

.action-card i {
    font-size: 2rem;
    color: var(--primary-color);
}

/* Таблицы */
.table-responsive {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--box-shadow);
}

.admin-table thead {
    background: var(--primary-color);
    color: white;
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.admin-table tbody tr:hover {
    background: rgba(67, 97, 238, 0.05);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-active {
    background: #d4edda;
    color: #155724;
}

.status-completed {
    background: #cce5ff;
    color: #004085;
}

.status-cancelled {
    background: #f8d7da;
    color: #721c24;
}

.status-free {
    background: #d4edda;
    color: #155724;
}

.status-occupied {
    background: #f8d7da;
    color: #721c24;
}

/* Карточки мест */
.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
}

.place-card {
    background: white;
    border: 1px solid #eee;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
}

.place-card:hover {
    border-color: var(--primary-color);
    box-shadow: var(--box-shadow);
}

.place-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.place-rating {
    color: #ffc107;
    font-weight: 600;
}

.place-info {
    margin-bottom: 1rem;
}

.place-info p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--gray-color);
}

.place-actions {
    display: flex;
    gap: 0.5rem;
}

.stars span {
    font-size: 30px;
    cursor: pointer;
    color: #ccc;
}

.stars span.active {
    color: gold;
}

.rating-box {
    background: white;
    padding: 20px;
    border-radius: 10px;
}

.rating-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

/* Стили для SVG карты */
.floor-plan-container {
    background: #e2e8f0;
    border: 3px solid #475569;
    border-radius: 16px;
    padding: 15px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    overflow: auto;
}

.floor-plan-svg {
    background: white;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    width: 100%;
    height: auto;
}

/* Стили для зон на карте */
.place-zone {
    cursor: pointer;

}

.place-element {
    cursor: pointer;
    transition: all 0.2s ease;
    filter: drop-shadow(0 4px 6px rgba(0,0,0,0.1));
}

.place-element:hover {
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.2));
}

.place-element.occupied {
    filter: drop-shadow(0 4px 8px rgba(239, 68, 68, 0.4));
}

.place-label {
    font-size: 13px;
    font-weight: 600;
    text-anchor: middle;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    fill: #1e2937;
}

.status-dot {
    fill: #4d8f5f;
}

.place-element.occupied .status-dot {
    fill: #c75050;
}
/* Футер */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1.5rem;
    margin-top: auto;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
    color: white;
}

.footer-section p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.6;
}

.map {
    position: relative;
    text-align: center;
}
.map svg{
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    }
.part {
    opacity: .3;
}
.part:hover {
    transition: opacity .2s ease;
    opacity: .5;
    cursor: pointer;
}

.free {
    fill: #4d8f5f;
}

.occupied {
    fill: #c75050;
}
/* Стили для зон на карте */
.place-zone {
    cursor: pointer;
    transition: none;
}

.place-zone.free rect {
    fill: #7ab88a;
    fill-opacity: 0.4;
    stroke: #4d8f5f;
}

.place-zone.occupied rect {
    fill: #e07a7a;
    fill-opacity: 0.45;
    stroke: #c75050;
}

.place-zone.partial rect {
    fill: #fde68a !important;
    fill-opacity: 0.85 !important;
    stroke: #d97706 !important;
}

.place-zone.reserved rect {
    fill: #f59e0b;
    fill-opacity: 0.4;
    stroke: #d97706;
}

.place-zone.maintenance rect {
    fill: #9ca3af;
    fill-opacity: 0.4;
    stroke: #6b7280;
}

/* ── Module hub pages (admin/manager) ── */
.module-page {
    padding: 28px;
    background: var(--bg-color);
    min-height: calc(100vh - 80px);
}

.module-header {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 28px;
    flex-wrap: wrap;
}

.module-header h1 {
    margin: 0;
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--text-primary);
}

.module-header h1 i {
    color: var(--primary-color);
    margin-right: 8px;
}

.module-header p {
    margin: 6px 0 0;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    line-height: 1.5;
    max-width: 720px;
}

.module-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
}

.module-back:hover {
    background: #eef2e8;
    color: var(--text-primary);
    text-decoration: none;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.module-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 22px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.module-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(111, 133, 92, 0.15);
    border-color: var(--primary-color);
    text-decoration: none;
    color: var(--text-primary);
}

.module-card i {
    font-size: 1.75rem;
    color: var(--primary-color);
}

.module-card span {
    font-weight: 600;
}

.module-card small {
    color: var(--text-secondary);
    line-height: 1.45;
    font-size: 0.875rem;
}

.module-note {
    margin-top: 24px;
    padding: 16px 18px;
    background: #eef2e8;
    border-radius: 10px;
    color: var(--primary-dark);
    font-size: 0.875rem;
    line-height: 1.5;
}

.module-stack {
    display: flex;
    flex-direction: column;
    gap: 24px;
    max-width: 960px;
}

.module-section {
    background: var(--card-bg);
    border-radius: 16px;
    padding: 24px 28px;
    box-shadow: 0 2px 12px rgba(47, 52, 40, 0.06);
    border: 1px solid var(--border-color);
}

.module-section-title {
    margin: 0 0 18px;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.module-section-title i {
    color: var(--primary-color);
}

.module-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.module-data-table thead tr {
    border-bottom: 2px solid var(--border-color);
    text-align: left;
}

.module-data-table th {
    padding: 10px 12px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.module-data-table td {
    padding: 12px;
    vertical-align: top;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    line-height: 1.45;
}

.module-data-table tbody tr:last-child td {
    border-bottom: none;
}

.module-data-table tbody tr:hover td {
    background: rgba(143, 166, 122, 0.06);
}

.cell-date {
    color: var(--text-secondary);
    font-size: 0.75rem;
    white-space: nowrap;
}

.cell-title {
    font-weight: 600;
    color: var(--text-primary);
}

.cell-text {
    font-size: 0.8125rem;
    color: var(--text-primary);
}

.cell-muted {
    color: var(--text-secondary);
    font-size: 0.8125rem;
}

.cell-sub {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.45;
}

.cell-empty {
    text-align: center;
    color: var(--text-secondary);
    padding: 20px 12px !important;
}

.cell-error {
    text-align: center;
    color: var(--danger-color);
    padding: 20px 12px !important;
}

.module-data-table .feedback-delete-btn {
    margin-top: 8px;
}

/* ── Notify form (admin send page) ── */
.notify-form .form-group {
    margin-bottom: 20px;
}

.notify-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 0.875rem;
}

.notify-form input[type="text"],
.notify-form textarea,
.notify-form select {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    font-size: 0.875rem;
    font-family: inherit;
    color: var(--text-primary);
    background: #fff;
}

.notify-form textarea {
    min-height: 120px;
    resize: vertical;
}

.notify-form .radio-group {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.notify-form .radio-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--bg-color);
    padding: 10px 14px;
    border-radius: 10px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
}

.notify-form .radio-item input {
    width: 18px;
    height: 18px;
    accent-color: var(--primary-color);
}

.notify-form .radio-item.checked {
    border-color: var(--primary-color);
    background: #eef2e8;
}

.notify-form .send-btn {
    background: var(--primary-color);
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.9375rem;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.notify-form .send-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(111, 133, 92, 0.35);
}

.notify-result {
    margin-top: 16px;
    padding: 12px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    display: none;
}

.notify-result.success {
    background: #d4edda;
    color: #155724;
    display: block;
}

.notify-result.error {
    background: #f8d7da;
    color: #721c24;
    display: block;
}

.notify-hint {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    margin-top: 8px;
    line-height: 1.45;
}

#user-select-wrap {
    display: none;
}

/* ── Notifications & feedback (dashboard + admin) ── */
.notify-section-tabs {
    display: flex;
    gap: 8px;
    margin: 16px 0 20px;
    flex-wrap: wrap;
}

.notify-section-btn {
    border: 2px solid var(--border-color);
    background: var(--card-bg);
    color: var(--text-primary);
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

.notify-section-btn.active {
    border-color: var(--primary-color);
    background: #eef2e8;
    color: var(--primary-dark);
}

.notify-section-panel {
    display: none;
}

.notify-section-panel.active {
    display: block;
}

.notify-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px 18px;
    margin-bottom: 12px;
    box-shadow: 0 1px 3px rgba(47, 52, 40, 0.05);
}

.feedback-card {
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 12px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(47, 52, 40, 0.05);
}

.feedback-card.unread {
    border-color: var(--danger-color);
}

.feedback-head {
    width: 100%;
    border: none;
    background: var(--card-bg);
    text-align: left;
    padding: 14px 18px;
    cursor: pointer;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    align-items: center;
    font-family: inherit;
}

.feedback-head:hover {
    background: var(--bg-color);
}

.feedback-head-main {
    min-width: 0;
}

.feedback-title {
    font-weight: 700;
    font-size: 0.9375rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.feedback-preview {
    font-size: 0.875rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.feedback-meta {
    font-size: 0.75rem;
    color: var(--text-secondary);
    white-space: nowrap;
}

.feedback-chevron {
    color: var(--text-secondary);
    transition: transform 0.2s ease;
}

.feedback-card.open .feedback-chevron {
    transform: rotate(180deg);
}

.feedback-body {
    display: none;
    padding: 0 18px 16px;
    border-top: 1px solid var(--border-color);
}

.feedback-card.open .feedback-body {
    display: block;
}

.feedback-booking {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: var(--bg-color);
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.feedback-booking-details div {
    margin-top: 4px;
}

.feedback-booking-preview {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 6px;
    line-height: 1.45;
}

.feedback-booking-preview i {
    color: var(--primary-color);
    margin-right: 4px;
}

.feedback-booking-visible {
    padding: 0 18px 12px;
    border-bottom: 1px solid var(--border-color);
}

.feedback-booking-empty {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-style: italic;
}

.feedback-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.feedback-delete-btn {
    border: 1px solid #fecaca;
    background: #fff;
    color: var(--danger-color);
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.75rem;
    cursor: pointer;
    font-family: inherit;
}

.feedback-delete-btn:hover {
    background: #fef2f2;
}

.feedback-text {
    margin-top: 12px;
    font-size: 0.875rem;
    color: var(--text-primary);
    line-height: 1.5;
    white-space: pre-wrap;
}

.subsection-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.subsection-title i {
    color: var(--primary-color);
}

.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 2.5rem;
    color: var(--border-color);
    margin-bottom: 16px;
    display: block;
}

.empty-state h3 {
    margin: 0 0 8px;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 600;
}

.empty-state p {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
}


/* Адаптивность — планшеты и телефоны (< ноутбука) */
@media (max-width: 1024px) {
    .nav-toggle {
        display: flex;
    }

    .nav-drawer {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 88vw);
        height: 100vh;
        height: 100dvh;
        background: var(--card-bg);
        box-shadow: -8px 0 32px rgba(47, 52, 40, 0.15);
        z-index: 1001;
        flex-direction: column;
        align-items: stretch;
        padding: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        overflow-y: auto;
    }

    .navbar.nav-open .nav-drawer {
        transform: translateX(0);
    }

    .nav-drawer-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 1rem 1.25rem;
        border-bottom: 1px solid var(--border-color);
        background: var(--bg-color);
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .nav-drawer-title {
        font-weight: 700;
        color: var(--text-primary);
        font-size: 1rem;
    }

    .nav-drawer-close {
        width: 40px;
        height: 40px;
        border: none;
        border-radius: 10px;
        background: white;
        color: var(--text-secondary);
        cursor: pointer;
        font-size: 1.1rem;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .nav-drawer-close:hover {
        background: #eef2e8;
        color: var(--text-primary);
    }

    .nav-menu {
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 1rem;
    }

    .nav-menu a {
        padding: 0.85rem 1rem;
        border-radius: 10px;
        white-space: normal;
    }

    .nav-user-chip {
        display: flex;
    }

    .logout-btn,
    .register-btn {
        margin-top: 0.5rem;
        justify-content: center;
    }

    .container {
        padding: 0 16px;
    }

    .admin-container {
        padding: 1.25rem;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .module-page {
        padding: 16px;
    }

    .module-header {
        flex-direction: column;
    }

    .module-section {
        padding: 18px 16px;
    }

    .action-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 1.1rem;
    }

    .logo span {
        max-width: 52vw;
    }

    .user-greeting {
        display: none;
    }

    .flash-container {
        left: 12px;
        right: 12px;
        top: 70px;
        max-width: none;
    }

    .auth-card {
        padding: 1.5rem;
        margin: 0 4px;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .action-grid {
        grid-template-columns: 1fr;
    }

    .admin-table {
        font-size: 0.85rem;
    }

    .admin-table th,
    .admin-table td {
        padding: 0.65rem 0.5rem;
    }

    .module-data-table th,
    .module-data-table td {
        padding: 10px 8px;
    }

    .places-list-grid {
        grid-template-columns: 1fr;
    }

    .btn {
        padding: 0.65rem 1.1rem;
        font-size: 0.9375rem;
    }

    .main-content {
        padding: 1rem 0;
    }
}

@media (max-width: 480px) {
    .logo span {
        display: none;
    }

    .auth-container {
        min-height: 60vh;
        padding: 0 8px;
    }
}

/* Карта: режим списка и переключение карта/список */
.map-view-hidden { display: none !important; }

.places-list-container { margin-bottom: 16px; }
.places-list-empty { text-align: center; padding: 40px; color: #64748b; }
.places-list-group { margin-bottom: 20px; }
.places-list-group-title {
    color: #475569;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
    font-size: 1rem;
}
.places-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
}
.place-list-item {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 12px;
    cursor: pointer;
    transition: box-shadow 0.2s;
}
.place-list-item:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1); }
.place-list-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.place-list-code { font-weight: 600; color: #1e293b; font-size: 13px; }
.place-list-status { font-size: 12px; font-weight: 500; }
.place-list-name { font-size: 13px; color: #64748b; margin-bottom: 4px; }
.place-list-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    color: #94a3b8;
}
.places-list-rating { color: #f59e0b; }
.places-list-no-rating { color: #94a3b8; }