.is-hidden {
    display: none !important;
}

.booking-page {
    padding-bottom: 88px;
}

.booking-map-banner {
    max-width: var(--max);
    margin: 0 auto;
    padding: 24px 24px 0;
}

.booking-map-banner img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
}

@media (max-width: 720px) {
    .booking-page {
        padding-bottom: max(88px, calc(72px + env(safe-area-inset-bottom)));
    }

    .booking-map-banner {
        padding: 16px max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left));
    }

    .booking-toolbar {
        padding: 20px max(16px, env(safe-area-inset-right)) 16px max(16px, env(safe-area-inset-left));
    }

    .booking-panel-wrap {
        padding: 0 max(16px, env(safe-area-inset-right)) 36px max(16px, env(safe-area-inset-left));
    }

    .booking-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .booking-field {
        width: 100%;
        min-width: 0;
    }

    .booking-field select {
        min-width: 0;
        width: 100%;
    }

    .booking-session {
        width: 100%;
    }

    .booking-session button {
        flex: 1 1 auto;
        min-width: 0;
    }
}

.booking-toolbar {
    max-width: var(--max);
    margin: 0 auto;
    padding: 28px 24px 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.booking-tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.booking-tabs button {
    padding: 10px 18px;
    font-size: 0.875rem;
    font-weight: 500;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, background 0.2s;
}

.booking-tabs button:hover {
    border-color: rgba(47, 125, 116, 0.35);
    color: var(--text-heading);
}

.booking-tabs button.is-active {
    background: var(--accent-soft);
    border-color: rgba(47, 125, 116, 0.35);
    color: var(--accent-hover);
}

.booking-controls {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.booking-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.booking-field label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
}

.booking-field select {
    min-width: 180px;
    padding: 10px 12px;
    font-size: 0.9rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-heading);
}

.booking-session {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.booking-session button {
    padding: 8px 14px;
    font-size: 0.8125rem;
    font-weight: 500;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-muted);
    cursor: pointer;
}

.booking-session button.is-active {
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(47, 125, 116, 0.06);
}

.booking-session-hint {
    width: 100%;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 0;
}

.schedule-session-field {
    flex: 1;
    min-width: 220px;
}

.schedule-session-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    display: block;
    margin-bottom: 6px;
}

.schedule-tip {
    margin-top: 12px;
    padding: 16px 18px;
    border-radius: 16px;
    border: 1px solid rgba(47, 125, 116, 0.22);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-heading);
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: 0 12px 32px rgba(45, 41, 36, 0.08);
}

.schedule-tip__title {
    display: block;
    margin-bottom: 10px;
    font-size: 1rem;
    color: var(--text-heading);
    letter-spacing: 0.01em;
}

.schedule-tip__section + .schedule-tip__section {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(47, 125, 116, 0.14);
}

.schedule-tip__accent {
    color: #b87319;
    font-weight: 700;
}

.schedule-tip__line {
    margin: 8px 0 0;
}

.schedule-tip__line--times {
    margin-top: 0;
    padding: 9px 12px;
    border-radius: 10px;
    background: rgba(47, 125, 116, 0.08);
    border: 1px solid rgba(47, 125, 116, 0.16);
    font-weight: 500;
}

.schedule-tip__line--muted {
    color: var(--text-muted);
    font-size: 0.87rem;
}

.schedule-legend {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.schedule-legend__item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 10px;
    border-radius: 10px;
    border: 1px solid rgba(47, 125, 116, 0.14);
    background: rgba(255, 255, 255, 0.85);
    font-size: 0.86rem;
}

.schedule-legend__cell {
    width: 18px;
    height: 18px;
    border-radius: 5px;
    border: 1px solid rgba(0, 0, 0, 0.12);
    flex: 0 0 auto;
}

.schedule-legend__cell--busy {
    background: #e5e1da;
}

.schedule-legend__cell--day {
    background: #3f9f90;
}

.schedule-legend__cell--night {
    background: #56658f;
}

@media (max-width: 720px) {
    .schedule-legend {
        grid-template-columns: 1fr;
    }
}

body.schedule-page {
    min-height: 100vh;
    background-image:
        linear-gradient(180deg, rgba(250, 247, 240, 0.84) 0%, rgba(250, 247, 240, 0.8) 100%),
        url("../images/auth-back.jpg");
    background-size: cover, cover;
    background-position: center center, center center;
    background-attachment: fixed, fixed;
    background-repeat: no-repeat, no-repeat;
    animation: schedule-bg-pan 26s ease-in-out infinite alternate;
}

@keyframes schedule-bg-pan {
    0% {
        background-position: center center, 50% 50%;
    }
    100% {
        background-position: center center, 53% 47%;
    }
}

.booking-panel-wrap {
    max-width: var(--max);
    margin: 0 auto;
    padding: 0 24px 48px;
}

.booking-loading,
.booking-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 48px 24px;
    text-align: center;
    color: var(--text-muted);
}

.booking-loading.is-hidden,
.booking-error.is-hidden,
.booking-calendar.is-hidden {
    display: none;
}

.booking-spinner {
    width: 36px;
    height: 36px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: booking-spin 0.7s linear infinite;
}

@keyframes booking-spin {
    to {
        transform: rotate(360deg);
    }
}

.booking-retry {
    padding: 10px 20px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    border: none;
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}

.booking-retry:hover {
    background: var(--accent-hover);
}

.booking-calendar-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 20px;
}

.booking-calendar-nav button {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(79, 74, 68, 0.14);
    border-radius: 10px;
    background: var(--surface);
    color: var(--accent);
    cursor: pointer;
    font-family: inherit;
}

.booking-calendar-nav button:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.booking-period-title {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-heading);
    min-width: 12rem;
    text-align: center;
}

.sectors-grid,
.houses-grid {
    display: grid;
    gap: 20px;
}

@media (min-width: 700px) {
    .sectors-grid,
    .houses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1100px) {
    .sectors-grid,
    .houses-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* «Все водоёмы»: заголовки групп должны быть на всю ширину сетки, а не в одной колонке рядом с карточкой */
.booking-group-title {
    grid-column: 1 / -1;
    margin: 12px 0 4px;
    padding-top: 4px;
    font-family: var(--serif);
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--text-heading);
    border-top: 1px solid rgba(79, 74, 68, 0.12);
}

.booking-group-title:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.sector-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.booking-details-trigger {
    cursor: pointer;
}

.card-photo-carousel {
    position: relative;
    width: 100%;
    max-height: 200px;
    background: radial-gradient(circle at top, var(--border), #2a2825);
}

.card-photo-track {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.card-photo-track::-webkit-scrollbar {
    display: none;
}

.card-photo-slide {
    flex: 0 0 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}

.card-photo-img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    cursor: pointer;
    user-select: none;
    background: var(--border);
}

.card-photo-dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    pointer-events: none;
}

.card-photo-dot {
    pointer-events: auto;
    width: 6px;
    height: 6px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.45);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.2s ease;
}

.card-photo-dot.is-active {
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.15);
}

.card-photo-open-lightbox {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.95);
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: background 0.2s ease, color 0.2s ease;
}

.card-photo-open-lightbox:hover {
    background: rgba(0, 0, 0, 0.5);
}

.card-photo-open-lightbox:active {
    transform: scale(0.96);
}

body.booking-photo-lightbox-open {
    overflow: hidden;
    touch-action: none;
}

.photo-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: center;
    background: rgba(0, 0, 0, 0.94);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.photo-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

.photo-lightbox-close {
    position: absolute;
    top: max(12px, env(safe-area-inset-top));
    right: max(12px, env(safe-area-inset-right));
    z-index: 3;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
    cursor: pointer;
    transition: background 0.2s ease;
}

.photo-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.16);
}

.photo-lightbox-prev,
.photo-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.85);
    cursor: pointer;
    transition: background 0.2s ease;
}

.photo-lightbox-prev:hover,
.photo-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.14);
}

.photo-lightbox-prev {
    left: max(8px, env(safe-area-inset-left));
}

.photo-lightbox-next {
    right: max(8px, env(safe-area-inset-right));
}

.photo-lightbox-stage {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 48px 72px;
    min-height: 0;
}

.photo-lightbox-image {
    max-width: 100%;
    max-height: min(85vh, 100%);
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.45);
}

.photo-lightbox-footer {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px max(16px, env(safe-area-inset-bottom)) calc(12px + env(safe-area-inset-bottom));
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent);
}

.photo-lightbox-caption {
    font-size: 14px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: -0.02em;
}

.photo-lightbox-counter {
    font-size: 12px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.45);
    font-variant-numeric: tabular-nums;
}

.sector-card__head {
    padding: 14px 16px;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-heading);
    border-bottom: 1px solid var(--border);
    background: linear-gradient(180deg, #faf8f5 0%, var(--surface) 100%);
}

.sector-calendar {
    padding: 14px;
}

.calendar-week {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(4.75rem, 1fr));
    gap: 6px;
}

@media (max-width: 699px) {
    .calendar-week {
        grid-template-columns: repeat(auto-fill, minmax(4.25rem, 1fr));
    }
}

.sector-split-cell {
    display: flex;
    flex-direction: column;
    position: relative;
    min-height: 88px;
    overflow: hidden;
    border-radius: 10px;
    background: #ebe8e3;
    border: 1px solid var(--border);
}

.sector-split-cell.today {
    border-color: var(--accent);
    box-shadow: 0 0 0 1px rgba(47, 125, 116, 0.2);
}

.sector-split-half {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    margin: 0;
    border: none;
    padding: 4px 3px;
    font: inherit;
    cursor: default;
    transition: filter 0.15s ease, opacity 0.15s ease;
}

.sector-split-half.is-available {
    cursor: pointer;
}

.sector-split-half.sector-split-day {
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.sector-split-half.sector-split-day.is-available {
    background: linear-gradient(180deg, #5fb8a8 0%, var(--accent) 100%);
    color: #fff;
}

.sector-split-half.sector-split-night.is-available {
    background: linear-gradient(180deg, #7c8cb5 0%, #4a5680 100%);
    color: #fff;
}

.sector-split-half.is-in-cart {
    background: linear-gradient(180deg, #ffe082 0%, #f6c94c 100%) !important;
    color: #4a3b0a !important;
    cursor: default !important;
}

.sector-split-half.is-in-cart .sector-split-dot {
    background: rgba(74, 59, 10, 0.9);
}

.sector-split-half.is-unavailable {
    background: #ddd9d3;
    color: var(--text-muted);
    opacity: 0.65;
}

.sector-split-half.is-session-muted {
    opacity: 0.35;
}

.sector-split-label {
    font-size: 9px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.15;
    max-width: 100%;
    padding: 0 2px;
    text-align: center;
}

.sector-split-dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
}

.sector-split-date-overlay {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    text-align: center;
    z-index: 2;
    background: rgba(255, 252, 247, 0.88);
    border-radius: 6px;
    padding: 2px 5px 3px;
    min-width: 0;
    box-shadow: 0 1px 4px rgba(44, 40, 37, 0.08);
    border: 1px solid rgba(229, 225, 218, 0.85);
}

.sector-split-date-overlay .day-number {
    font-size: 11px;
    font-weight: 600;
    margin: 0;
    line-height: 1.05;
    color: var(--text-heading);
}

.sector-split-date-overlay .day-name {
    font-size: 7px;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
    font-weight: 600;
    line-height: 1.1;
}

.house-subtitle {
    padding: 10px 14px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
}

.house-meta-pill {
    display: inline-flex;
    padding: 4px 8px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-muted);
}

.house-calendar-day {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    border-radius: 10px;
    min-height: 64px;
    position: relative;
    border: 1px solid var(--border);
}

button.house-calendar-day {
    font: inherit;
    text-align: center;
    width: 100%;
    cursor: default;
    appearance: none;
    -webkit-appearance: none;
}

button.house-calendar-day.available {
    cursor: pointer;
}

.house-calendar-day.available {
    background: linear-gradient(180deg, #5fb8a8 0%, var(--accent) 100%);
    color: #fff;
    border-color: transparent;
}

.house-calendar-day.in-cart,
button.house-calendar-day.available.in-cart {
    background: linear-gradient(180deg, #ffe082 0%, #f6c94c 100%) !important;
    color: #4a3b0a !important;
    border-color: #e5b83e !important;
    cursor: default !important;
}

.house-calendar-day.unavailable {
    background: #e5e1da;
    color: var(--text-muted);
    opacity: 0.7;
}

.house-calendar-day.today {
    box-shadow: 0 0 0 2px rgba(47, 125, 116, 0.25);
}

.house-calendar-day .day-number {
    font-size: 15px;
    font-weight: 600;
}

.house-calendar-day .day-name {
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.9;
}

.booking-desc {
    padding: 0 14px 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
    border-top: 1px solid var(--border);
    margin: 0;
    padding-top: 12px;
}

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

.booking-cart-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    padding: 14px 20px;
    background: rgba(255, 252, 247, 0.96);
    border-top: 1px solid var(--border);
    backdrop-filter: blur(10px);
    box-shadow: 0 -4px 20px rgba(44, 40, 37, 0.06);
}

.booking-cart-bar.is-hidden {
    display: none;
}

.booking-cart-bar span {
    font-size: 0.9rem;
    color: var(--text-heading);
}

.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(44, 40, 37, 0.35);
    backdrop-filter: blur(4px);
}

.booking-modal.is-hidden {
    display: none;
}

.booking-modal__box {
    background: var(--surface);
    border-radius: calc(var(--radius) + 4px);
    padding: 24px;
    max-width: 400px;
    width: 100%;
    box-shadow: 0 16px 48px rgba(44, 40, 37, 0.15);
    border: 1px solid var(--border);
}

.booking-modal__box h3 {
    margin: 0 0 16px;
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--text-heading);
}

.booking-modal__rows {
    display: grid;
    gap: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.booking-modal__rows strong {
    color: var(--text-heading);
    font-weight: 500;
}

.booking-modal__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.booking-modal__actions button {
    padding: 10px 18px;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    border-radius: var(--radius);
    cursor: pointer;
}

.booking-modal__cancel {
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-heading);
}

.booking-modal__add {
    border: none;
    background: var(--accent);
    color: #fff;
}

.booking-modal__add:hover {
    background: var(--accent-hover);
}

.booking-modal__box--reviews {
    max-width: min(100%, 26rem);
}

.booking-modal__box--giants-rules {
    max-width: min(100%, 54rem);
}

.booking-modal__box--details {
    position: relative;
    max-width: min(100%, 48rem);
    padding: 22px 22px 20px;
    max-height: min(88vh, 56rem);
    overflow: auto;
    background:
        radial-gradient(circle at 100% 0%, rgba(52, 143, 133, 0.08), transparent 34%),
        var(--surface);
}

.booking-details__close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.booking-details__close:hover {
    border-color: rgba(52, 143, 133, 0.35);
    color: var(--accent-hover);
}

.booking-details__subtitle {
    margin: -6px 0 12px;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(79, 74, 68, 0.12);
}

.booking-details__gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    gap: 10px;
    margin: 0 0 14px;
    padding: 2px 0 14px;
    border-bottom: 1px solid rgba(79, 74, 68, 0.12);
}

.booking-details__gallery-item {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.booking-details__gallery-item img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    display: block;
}

.booking-details__description {
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(79, 74, 68, 0.12);
    background: rgba(255, 255, 255, 0.72);
    color: var(--text);
    line-height: 1.55;
    white-space: pre-wrap;
}

.booking-details__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 12px;
    padding: 0 0 14px;
    border-bottom: 1px solid rgba(79, 74, 68, 0.12);
}

.booking-details__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(52, 143, 133, 0.24);
    background: linear-gradient(180deg, rgba(52, 143, 133, 0.14), rgba(52, 143, 133, 0.07));
    color: var(--accent-hover);
    font-size: 0.8rem;
    font-weight: 500;
}

.booking-details__reviews {
    margin-top: 12px;
    border-top: 1px solid rgba(79, 74, 68, 0.14);
    padding-top: 12px;
}

.booking-details__reviews-title {
    margin: 0 0 10px;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-heading);
}

.booking-details__reviews-list {
    display: grid;
    gap: 8px;
    min-height: 56px;
}

.booking-details__review {
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 10px 12px;
    background: rgba(52, 143, 133, 0.05);
}

.booking-details__review-text {
    margin: 0;
    color: var(--text-muted);
    line-height: 1.5;
    font-size: 0.87rem;
}

.giants-rules-intro {
    margin: 0 0 10px;
    font-size: 0.9rem;
    color: var(--text-muted);
}

.giants-rules-body {
    max-height: min(62vh, 30rem);
    overflow: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 14px;
    background: #fff;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--text-muted);
}

.giants-rules-body p {
    margin: 0 0 10px;
}

.giants-rules-body ul {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 7px;
}

.booking-review-hint {
    margin: 0 0 14px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.booking-review-field {
    margin-bottom: 12px;
}

.booking-review-field__label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
    margin-bottom: 8px;
}

.booking-review-stars-input {
    display: flex;
    gap: 6px;
}

.booking-review-star-btn {
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 1.25rem;
    line-height: 1;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--surface);
    color: var(--text-faint);
    cursor: pointer;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}

.booking-review-star-btn.is-active {
    color: #c9a227;
    border-color: rgba(201, 162, 39, 0.45);
    background: rgba(201, 162, 39, 0.08);
}

.booking-review-star-btn:hover {
    color: #b08d1e;
    border-color: rgba(52, 143, 133, 0.35);
}

.booking-review-textarea {
    width: 100%;
    min-height: 96px;
    margin-bottom: 12px;
    padding: 12px 14px;
    font-family: inherit;
    font-size: 0.9375rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--surface);
    color: var(--text-heading);
    resize: vertical;
}

.booking-review-textarea:focus {
    outline: none;
    border-color: rgba(52, 143, 133, 0.45);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.booking-review-error {
    margin: 0 0 10px;
    font-size: 0.8125rem;
    color: #a94442;
}

.booking-card-reviews {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.booking-card-reviews__head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 12px;
    margin-bottom: 10px;
}

.booking-card-reviews__title {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-heading);
}

.booking-card-reviews__meta {
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.booking-card-reviews__list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 12px;
}

.booking-card-reviews__item {
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(52, 143, 133, 0.05);
    border: 1px solid rgba(52, 143, 133, 0.12);
}

.booking-card-reviews__item-top {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 6px 12px;
    margin-bottom: 4px;
}

.booking-card-reviews__who {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-heading);
}

.booking-card-reviews__when {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.booking-card-reviews__item-stars {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    color: #c9a227;
    margin-bottom: 6px;
}

.booking-card-reviews__text {
    margin: 0;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--text);
    white-space: pre-wrap;
}

.booking-card-reviews__empty {
    margin: 0;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.booking-card-reviews__btn {
    width: 100%;
    padding: 10px 14px;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    border: 1px solid rgba(52, 143, 133, 0.35);
    border-radius: var(--radius);
    background: var(--accent-soft);
    color: var(--accent-hover);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s;
}

.booking-card-reviews__btn:hover {
    background: rgba(52, 143, 133, 0.18);
}

/* Footer hint: MAX support */
.booking-footer-help {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: 8px 10px;
    max-width: min(100%, 36rem);
    text-align: right;
    line-height: 1.55;
}

.booking-footer-help__btn {
    padding: 8px 16px;
    font-size: 0.8125rem;
    font-weight: 600;
    white-space: nowrap;
}

.booking-footer-help__max {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.02em;
}

@media (max-width: 640px) {
    .booking-footer-help {
        justify-content: flex-start;
        text-align: left;
        max-width: 100%;
    }
}

/* Временный экран входа на booking.php — удалить вместе с #bookingGate */
.booking-gate {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
    box-sizing: border-box;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    background: #1b2329;
    isolation: isolate;
}

.booking-gate__box {
    width: 100%;
    max-width: 22rem;
    padding: 28px 24px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.22);
}

.booking-gate__title {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.booking-gate__hint {
    margin: 0 0 20px;
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.5;
}

.booking-gate__form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.booking-gate__field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
}

.booking-gate__label {
    display: block;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text);
}

.booking-gate__field input {
    font: inherit;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: var(--bg);
    color: inherit;
}

.booking-gate__field input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.booking-gate__submit {
    margin-top: 4px;
    padding: 12px 18px;
    font: inherit;
    font-weight: 600;
    border: none;
    border-radius: var(--radius);
    background: var(--accent);
    color: #fff;
    cursor: pointer;
}

.booking-gate__submit:hover {
    background: var(--accent-hover);
}
