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

html, body {
    font-family: 'Inter', sans-serif;
    color: #333;
    background-color: #fff;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

.split-layout {
    display: flex;
    height: 100%;
    width: 100%;
}

.left-pane {
    flex: 1;
    position: relative;
    background-color: #f0f0f0;
    overflow: hidden;
}

.bg-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 1;
}

.bg-layer.active {
    opacity: 1;
}

/* Эффект легкого затемнения/текстуры на фото, если нужно */
.image-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.1), rgba(0,0,0,0.3));
    z-index: 2;
    pointer-events: none;
}

.right-pane {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #ffffff;
    padding: 4rem;
}

.content-wrapper {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.header h1 {
    font-size: 3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #111;
    line-height: 1.2;
}

.header p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 3rem;
}

.booking-section {
    display: flex;
    align-items: center;
}

.btn-primary {
    background-color: #111;
    color: #fff;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.btn-primary:active {
    transform: translateY(0);
}

.footer {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
    border-top: 1px solid #eaeaea;
    padding-top: 2rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.social-icon {
    display: inline-block;
    width: 32px;
    height: 32px;
    transition: transform 0.3s ease, opacity 0.3s ease;
    opacity: 0.7;
}

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

.social-icon:hover {
    transform: scale(1.1);
    opacity: 1;
}

.contacts {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.5;
}

.contacts strong {
    color: #222;
}

@media (max-width: 900px) {
    .split-layout {
        flex-direction: column;
        overflow-y: auto;
    }
    
    body {
        overflow: auto;
    }

    .left-pane {
        min-height: 40vh;
    }

    .right-pane {
        padding: 2rem;
    }

    .room-card {
        width: 100vw;
        height: 100vw;
    }
}

/* --- SPA Views --- */
.view {
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    visibility: hidden;
    height: 100%;
    width: 100%;
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.4s;
    pointer-events: none;
}

.view.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    z-index: 10;
}

/* --- Rooms Pane (Booking View) --- */
.rooms-pane {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0;
    padding: 0;
    background-color: #f0f0f0;
}

.room-card {
    width: 50vh;
    height: 50vh;
    background-size: cover;
    background-position: center;
    position: relative;
    border-radius: 0;
    overflow: hidden;
    cursor: default;
}

.room-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
}

.room-overlay h3 {
    color: #fff;
    font-size: 2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Calendar Pane --- */
.calendar-wrapper {
    justify-content: flex-start;
    padding-top: 2rem;
    max-width: 600px;
}

.btn-secondary {
    background: transparent;
    color: #666;
    padding: 0;
    border: none;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    align-self: flex-start;
    margin-bottom: 2rem;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.btn-secondary .back-arrow {
    width: 1.2em;
    height: 1.2em;
}

.btn-secondary:hover {
    color: #111;
}

.btn-secondary:active {
    transform: translateY(0);
}

.calendar-description {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

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

.calendar-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #222;
}

.btn-icon {
    background-color: #f9f9f9;
    color: #333;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-icon svg {
    width: 20px;
    height: 20px;
}

.btn-icon.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateX(10px) scale(0.9);
    pointer-events: none;
}

.btn-icon:hover:not(.hidden) {
    background-color: #eee;
    transform: scale(1.05);
}

.btn-icon:active:not(.hidden) {
    transform: scale(0.95);
}

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

.cal-day-header {
    text-align: center;
    font-weight: 600;
    color: #888;
    font-size: 0.9rem;
    padding-bottom: 10px;
}

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

.cal-day {
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

/* 1. Прошедшие дни */
.cal-day.past {
    background-color: #fafafa;
    color: #bbb;
    font-weight: 400;
    cursor: default;
}

/* 2. Будущие дни (доступны для записи) */
.cal-day.future {
    background-color: #f4f4f4;
    color: #333;
    cursor: pointer;
}
.cal-day.future:hover {
    background-color: #e5e5e5;
    transform: scale(1.05);
}

/* 3. Сегодня */
.cal-day.today {
    background-color: #111;
    color: #fff;
    cursor: pointer;
}
.cal-day.today:hover {
    background-color: #333;
    transform: scale(1.05);
}

/* 4. Дни из других месяцев */
.cal-day.other-month {
    background-color: transparent;
    color: #ddd;
    font-weight: 400;
    cursor: default;
}
