/* brony.css — booking page styles */

/* Body overrides */
body {
    overflow-x: hidden;
}

/* ========================================
   Background
   ======================================== */
.brony {
    width: 100%;
    min-height: 100vh;
    position: relative;
    z-index: 2;
    background-image: url(../img/hed.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
}

.brony::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 40% 30%, rgba(100, 40, 30, 0.08) 0%, transparent 50%),
        linear-gradient(175deg, rgba(15, 12, 10, 0.68) 0%, rgba(20, 16, 12, 0.52) 100%);
}

.container {
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: center;
    justify-content: center;
    padding: 100px 20px 40px;
    position: relative;
    z-index: 1;
}

/* Header nav */
/* ── Навигация на странице бронирования ── */
.brony-header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* ========================================
   Booking form card
   ======================================== */
.brony-title {
    width: 430px;
    background: #faf7f3;
    border-radius: 12px;
    padding: 28px 36px 36px;
    position: relative;
    border: 1.5px solid rgba(180, 154, 106, 0.15);
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5) inset,
        0 30px 60px rgba(0, 0, 0, 0.35),
        0 4px 12px rgba(0, 0, 0, 0.12);
    animation: cardIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transition: width 0.4s ease-in-out;
}

.brony-title.map-active {
    width: 800px;
}

.brony-title.map-active .form-icon,
.brony-title.map-active .form-header,
.brony-title.map-active form > .field:not(#tableField),
.brony-title.map-active form > .row,
.brony-title.map-active #submitBtn {
    max-width: 360px;
    margin-left: auto;
    margin-right: auto;
}

@keyframes cardIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   Р›РћР“РћРўРРџ
   ======================================== */
.form-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.form-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ========================================
   Р—РђР“РћР›РћР’РћРљ
   ======================================== */
.form-header {
    text-align: center;
    margin-bottom: 28px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e8e2da;
}

.form-title {
    font-family: 'DM Serif Display', serif;
    font-size: 26px;
    font-weight: 400;
    color: #2a2320;
    letter-spacing: 0.3px;
    margin-bottom: 6px;
}

.form-subtitle {
    font-size: 12px;
    color: #9a918a;
    font-weight: 400;
    line-height: 1.5;
    letter-spacing: 0.3px;
}

/* ========================================
   РџРћР›РЇ
   ======================================== */
.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: #b49a6a;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    margin-bottom: 7px;
}

.input-wrap {
    position: relative;
}

.field-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #c5bdb4;
    pointer-events: none;
    transition: color 0.3s;
}

.field-icon-top {
    top: 14px;
    transform: none;
}

.input-wrap input,
.input-wrap textarea {
    display: block;
    width: 100%;
    padding: 11px 0 11px 28px;
    background: transparent;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #ddd6cc;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #2a2320;
    transition: border-color 0.3s ease;
}

.field-hint {
    display: block;
    margin-top: 5px;
    font-size: 10px;
    color: #b8b0a6;
    padding-left: 28px;
    letter-spacing: 0.2px;
}

.input-wrap input::placeholder,
.input-wrap textarea::placeholder {
    color: #c5bdb4;
    font-weight: 300;
}

.input-wrap input:focus,
.input-wrap textarea:focus {
    outline: none;
    border-bottom-color: #FF7400;
}

.input-wrap:focus-within .field-icon {
    color: #FF7400;
}

.input-wrap input:hover,
.input-wrap textarea:hover {
    border-bottom-color: #b49a6a;
}

.input-wrap textarea {
    resize: vertical;
    min-height: 48px;
    max-height: 100px;
    line-height: 1.6;
}

/* ========================================
   Р РЇР” (Р”РђРўРђ + Р’Р Р•РњРЇ)
   ======================================== */
.row {
    display: flex;
    gap: 24px;
}

.field-half {
    flex: 1;
    min-width: 0;
}

/* ========================================
   РўР РР“Р“Р•Р Р« (select, РґР°С‚Р°, РІСЂРµРјСЏ)
   ======================================== */
.select-display,
.date-display,
.time-display {
    display: flex;
    align-items: center;
    padding: 11px 0 11px 28px;
    background: transparent;
    border-radius: 0;
    border: none;
    border-bottom: 1px solid #ddd6cc;
    cursor: pointer;
    transition: border-color 0.3s ease;
    position: relative;
}

.select-display:hover,
.date-display:hover,
.time-display:hover {
    border-bottom-color: #b49a6a;
}

.custom-select.open .select-display,
.date-display.active,
.time-display.active {
    border-bottom-color: #FF7400;
}

.select-display .field-icon,
.date-display .field-icon,
.time-display .field-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: #c5bdb4;
    transition: color 0.3s;
}

.custom-select.open .select-display .field-icon,
.date-display.active .field-icon,
.time-display.active .field-icon {
    color: #FF7400;
}

.date-display.has-value .field-icon,
.time-display.has-value .field-icon {
    color: #6b7c6e;
}

.select-text,
#dateText,
#timeText {
    flex: 1;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #2a2320;
}

.select-text[data-placeholder="true"] {
    color: #c5bdb4;
    font-weight: 300;
}

.select-arrow {
    width: 10px;
    height: 10px;
    color: #c5bdb4;
    transition: transform 0.3s ease, color 0.3s;
    flex-shrink: 0;
}

.custom-select.open .select-arrow {
    transform: rotate(180deg);
    color: #FF7400;
}

/* ========================================
   РџРћРџРђРџР«
   ======================================== */
.popup-portal {
    position: fixed;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    pointer-events: none;
}

.popup-portal.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* --- Р“РѕСЃС‚Рё --- */
#guestsPopup .select-options {
    background: #faf7f3;
    border-radius: 4px;
    border: 1px solid #e0d9d0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
    padding: 4px;
    max-height: 280px;
    overflow-y: auto;
}

.select-option {
    padding: 10px 16px;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    color: #5a504a;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.12s;
}

.select-option:hover {
    background: #f0ebe4;
    color: #FF7400;
}

.select-option.selected {
    background: #FF7400;
    color: #faf7f3;
    font-weight: 500;
}

.select-options::-webkit-scrollbar {
    width: 3px;
}

.select-options::-webkit-scrollbar-thumb {
    background: #ddd6cc;
    border-radius: 3px;
}

/* --- РљР°Р»РµРЅРґР°СЂСЊ --- */
#calendarPortal .calendar-popup {
    background: #faf7f3;
    border-radius: 4px;
    border: 1px solid #e0d9d0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
    padding: 16px;
}

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.cal-month {
    font-family: 'DM Serif Display', serif;
    font-weight: 400;
    font-size: 15px;
    color: #2a2320;
}

.cal-nav {
    background: transparent;
    border: 1px solid #e0d9d0;
    width: 28px;
    height: 28px;
    border-radius: 3px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9a918a;
    transition: all 0.2s;
}

.cal-nav:hover {
    border-color: #FF7400;
    color: #FF7400;
}

.cal-nav svg {
    width: 12px;
    height: 12px;
}

.cal-weekdays {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    margin-bottom: 4px;
    border-bottom: 1px solid #ece6de;
    padding-bottom: 6px;
}

.cal-weekdays span {
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    font-weight: 500;
    color: #b49a6a;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 0;
}

.cal-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #5a504a;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.12s;
}

.cal-day:hover:not(.disabled):not(.empty) {
    background: #f0ebe4;
    color: #FF7400;
}

.cal-day.today {
    color: #FF7400;
    font-weight: 600;
    position: relative;
}

.cal-day.today::after {
    content: '';
    position: absolute;
    bottom: 4px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #FF7400;
}

.cal-day.selected {
    background: #FF7400 !important;
    color: #faf7f3 !important;
    font-weight: 500;
}

.cal-day.disabled {
    color: #ddd6cc;
    cursor: default;
}

.cal-day.empty {
    cursor: default;
}

/* --- Р’СЂРµРјСЏ --- */
#timePortal .time-popup {
    background: #faf7f3;
    border-radius: 4px;
    border: 1px solid #e0d9d0;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
    padding: 16px;
}

.time-preview {
    font-family: 'DM Serif Display', serif;
    font-size: 28px;
    font-weight: 400;
    color: #2a2320;
    text-align: center;
    margin-bottom: 10px;
    letter-spacing: 4px;
}

.time-columns {
    display: flex;
    align-items: flex-start;
    gap: 0;
}

.time-col {
    flex: 1;
}

.time-col-label {
    font-family: 'DM Sans', sans-serif;
    font-size: 9px;
    font-weight: 500;
    color: #b49a6a;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    text-align: center;
    margin-bottom: 6px;
}

.time-col-separator {
    font-family: 'DM Serif Display', serif;
    font-size: 18px;
    font-weight: 400;
    color: #ddd6cc;
    padding-top: 26px;
    width: 16px;
    text-align: center;
    flex-shrink: 0;
}

.time-col-scroll {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding-right: 4px;
}

.time-col-scroll::-webkit-scrollbar {
    width: 2px;
}

.time-col-scroll::-webkit-scrollbar-thumb {
    background: #ddd6cc;
    border-radius: 2px;
}

.time-cell {
    padding: 8px 4px;
    text-align: center;
    font-family: 'DM Sans', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #5a504a;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.12s;
    flex-shrink: 0;
}

.time-cell:hover {
    background: #f0ebe4;
    color: #FF7400;
}

.time-cell.selected {
    background: #FF7400;
    color: #faf7f3;
    font-weight: 500;
}

.time-confirm {
    display: block;
    width: 100%;
    margin-top: 12px;
    padding: 10px 0;
    font-family: 'DM Sans', sans-serif;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #faf7f3;
    background: #FF7400;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.2s;
}

.time-confirm:hover:not(:disabled) {
    background: #c1671d;
}

.time-confirm:disabled {
    opacity: 0.3;
    cursor: default;
}

/* ========================================
   РљРќРћРџРљРђ РћРўРџР РђР’РљР
   ======================================== */
#submitBtn {
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    margin-top: 26px;
    padding: 14px 0;
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 1px;
    text-transform: uppercase;
    border: 1.5px solid #FF7400;
    color: #faf7f3;
    border-radius: 10px;
    background: #FF7400;
    box-shadow: 0 4px 15px rgba(255, 116, 0, 0.3);
    transition: all 0.2s;
    position: relative;
    overflow: hidden;
}

#submitBtn:hover {
    background: #c1671d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 116, 0, 0.4);
}

#submitBtn:active {
    transform: translateY(0);
}

#submitBtn:disabled {
    opacity: 0.5;
    cursor: wait;
    transform: none !important;
}

#submitBtn.loading {
    animation: pulse 1.2s infinite ease-in-out;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }
}

.btn-arrow {
    width: 14px;
    height: 14px;
    transition: transform 0.3s;
}

#submitBtn:hover .btn-arrow {
    transform: translateX(3px);
}

#submitBtn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: skewX(-20deg);
    transition: left 0.7s ease;
}

#submitBtn:hover::before {
    left: 150%;
}

/* ========================================
   РљРќРћРџРљРђ Р—РђРљР Р«РўРРЇ
   ======================================== */
.close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 10;
}

.close-item {
    text-decoration: none;
    color: #c5bdb4;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid #e8e2da;
    transition: all 0.2s ease;
}

.close-item:hover {
    color: #FF7400;
    border-color: rgba(255, 116, 0, 0.3);
    background: rgba(255, 116, 0, 0.04);
}

/* ========================================
   РЈР’Р•Р”РћРњР›Р•РќРРЇ
   ======================================== */
.notification {
    position: fixed;
    top: 24px;
    right: 24px;
    padding: 16px 24px;
    border-radius: 4px;
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 13px;
    z-index: 10000;
    animation: notifIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 360px;
    line-height: 1.5;
}

.notification.success {
    background: #faf7f3;
    color: #2a5a3a;
    border: 1px solid #6b7c6e;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

.notification.error {
    background: #faf7f3;
    color: #FF7400;
    border: 1px solid #c4868d;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}

@keyframes notifIn {
    from {
        transform: translateX(60px);
        opacity: 0;
    }

    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* ========================================
   Р”Р•РљРћР РђРўРР’РќРђРЇ Р›РРќРРЇ РџРћР” Р—РђР“РћР›РћР’РљРћРњ
   ======================================== */
.form-header::after {
    content: 'в—†';
    display: block;
    margin-top: 14px;
    font-size: 6px;
    color: #b49a6a;
    letter-spacing: 12px;
    text-align: center;
}

/* ========================================
   РђР”РђРџРўРР’РќРћРЎРўР¬
   ======================================== */
@media (max-width: 840px) {
    .brony-title.map-active {
        width: 100%;
        border-radius: 0;
    }
}

@media (max-width: 500px) {
    .brony-title {
        width: 100%;
        padding: 20px 24px 28px;
    }

    .row {
        flex-direction: column;
        gap: 0;
    }

    .form-title {
        font-size: 22px;
    }
}

@media (max-height: 740px) {
    .brony-title {
        padding-top: 18px;
        padding-bottom: 28px;
    }

    .form-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 8px;
    }

    .form-header {
        margin-bottom: 20px;
        padding-bottom: 14px;
    }

    .field {
        margin-bottom: 14px;
    }
}


/* Hall map container */
.map-legend {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #7a7067;
    font-weight: 500;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.legend-dot.status-free {
    background: #ffffff;
    border: 1.5px solid #b49a6a;
}

.legend-dot.status-occupied {
    background: #eae5de;
    border: 1.5px solid #d2c9bd;
}

.legend-dot.status-small {
    background: #f3ede6;
    border: 1.5px dashed #dfd7cc;
}

.map-wrapper {
    width: 100%;
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: inset 0 2px 8px rgba(0,0,0,0.04);
}

.hall-map {
    position: relative;
    width: 100%;
    min-width: 700px;
    aspect-ratio: 740 / 450;
    background: #fbf9f6;
    border: 2px dashed #e4ded6;
    border-radius: 16px;
    margin: 8px 0;
}

/* Floor decorations */
.map-decor {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 9px;
    font-weight: 600;
    color: #a2988f;
    text-transform: uppercase;
    letter-spacing: 1px;
    user-select: none;
    pointer-events: none;
}

.map-decor.entrance {
    border-top: 3px double #b49a6a;
    border-left: 2px solid #b49a6a;
    border-right: 2px solid #b49a6a;
    background: #faf7f3;
}

.map-decor.bar {
    background: #ede7de;
    border: 1.5px solid #dcd3c5;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.03);
    font-size: 10px;
    color: #8c8175;
}

.map-decor.window {
    background: #eaf6ff;
    border: 1.5px solid #b4cde6;
    border-radius: 2px;
}

.map-decor.stage {
    background: #f3efe8;
    border-bottom: 2px solid #b49a6a;
    border-left: 1.5px dashed #dcd3c5;
    border-right: 1.5px dashed #dcd3c5;
}

.map-decor.plant {
    font-size: 16px;
    line-height: 1;
}

/* Table element layout */
.map-table {
    position: absolute;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer;
    user-select: none;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}

.map-table.shape-circle {
    border-radius: 50%;
}

.map-table.shape-rect {
    border-radius: 12px;
}

/* Free/Available table style */
.map-table.status-free {
    background: #ffffff;
    border: 2.5px solid #b49a6a;
    color: #2a2320;
}

.map-table.status-free:hover {
    border-color: #ff7400;
    background: rgba(255, 116, 0, 0.04);
    transform: scale(1.03);
    box-shadow: 0 6px 14px rgba(255, 116, 0, 0.12);
    z-index: 10;
}

.map-table.status-free.selected {
    border-color: #ff7400;
    background: #ff7400;
    color: #ffffff;
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 116, 0, 0.25);
    z-index: 11;
}

/* Occupied table style */
.map-table.status-occupied {
    background: #eae5de;
    border: 2px solid #d2c9bd;
    color: #a69e94;
    cursor: not-allowed;
}

/* Too small table style */
.map-table.status-small {
    background: #f3ede6;
    border: 2px dashed #dfd7cc;
    color: #c0b7ad;
    cursor: not-allowed;
}

/* Texts inside tables */
.map-table .table-num {
    font-size: 14px;
    font-weight: 700;
    line-height: 1.1;
    display: block;
}

.map-table .table-seats {
    font-size: 9px;
    opacity: 0.8;
    margin-top: 2px;
    display: block;
}

.map-table.status-free.selected .table-num {
    color: #ffffff;
}

.map-table.status-free.selected .table-seats {
    color: rgba(255, 255, 255, 0.9);
}

.table-loading, .table-none {
    text-align: center;
    padding: 30px;
    font-size: 14px;
    color: #999;
}
.table-none {
    color: #c44;
}

