﻿/* ==========================================================================
   BOOKING + SOCIAL: Гибридная дизайн-система
   Booking.com профессионализм + ВКонтакте социальность
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

:root {
    /* Booking.com Colors */
    --booking-blue: #003580;
    --booking-blue-dark: #002244;
    --booking-blue-light: #0071c2;
    --booking-yellow: #FEBB02;
    --booking-bg: #f5f5f5;
    --booking-white: #ffffff;

    /* Text Colors */
    --text-primary: #262626;
    --text-secondary: #6b6b6b;
    --text-light: #999999;

    /* Borders & Shadows */
    --border-color: #e7e7e7;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.15);

    /* Social Colors (VK-inspired) */
    --social-blue: #4a76a8;
    --social-bg: #edeef0;
    --social-border: #d3d9de;

    /* Layout */
    --header-height: 60px;
    --sidebar-width: 220px;

    /* Radius */
    --radius-sm: 2px;
    --radius-md: 4px;
    --radius-lg: 8px;

    /* Transitions */
    --transition: 0.2s ease;
}

/* Base Styles */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--booking-bg);
    color: var(--text-primary);
    font-size: 14px;
    line-height: 1.5;
}

/* Header */
.booking-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--booking-blue);
    box-shadow: var(--shadow-md);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 24px;
}

.booking-header__logo {
    color: white;
    font-size: 24px;
    font-weight: 700;
    text-decoration: none;
    flex-shrink: 0;
}

.booking-header__search {
    flex: 1;
    max-width: 800px;
    display: flex;
    background: white;
    border-radius: 4px;
    overflow: hidden;
}

.booking-header__input {
    flex: 1;
    padding: 10px 16px;
    border: none;
    font-size: 14px;
}

.booking-header__input:focus {
    outline: none;
}

.booking-header__btn {
    background: var(--booking-yellow);
    color: var(--text-primary);
    border: none;
    padding: 0 24px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.booking-header__btn:hover {
    background: #e5a902;
}

.booking-header__user {
    display: flex;
    align-items: center;
    gap: 12px;
    color: white;
    text-decoration: none;
    margin-left: auto;
}

.booking-header__avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid white;
}

/* Layout Hierarchy */
.booking-layout {
    margin-top: var(--header-height);
    display: flex;
    min-height: calc(100vh - var(--header-height));
}

.booking-sidebar {
    width: var(--sidebar-width);
    background: white;
    border-right: 1px solid var(--border-color);
    position: fixed;
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    padding: 16px 0;
    z-index: 900;
}

/* Main Content Wrapper - Key for Fixed Sidebar */
.booking-page-wrapper {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: calc(100vh - var(--header-height));
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.booking-main-row {
    display: flex;
    flex: 1;
    width: 100%;
}

.booking-content {
    padding: 24px;
    flex: 1;
    min-width: 0;
    /* Prevents flex from expanding beyond parent */
}

.booking-right {
    width: 320px;
    padding: 24px 24px 24px 0;
}

/* Menu Items */
.booking-menu__item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
}

.booking-menu__item:hover {
    background: var(--booking-bg);
}

.booking-menu__item.active {
    background: #e8f0f8;
    color: var(--booking-blue);
    font-weight: 500;
    border-left: 3px solid var(--booking-blue);
}

.booking-menu__icon {
    width: 24px;
    font-size: 20px;
    margin-right: 12px;
}

.booking-menu__divider {
    height: 1px;
    background: var(--border-color);
    margin: 12px 20px;
}

/* Cards */
.hotel-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    transition: var(--transition);
}

.hotel-card:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--booking-blue);
}

.hotel-card__image {
    width: 280px;
    height: 200px;
    object-fit: cover;
    flex-shrink: 0;
}

.hotel-card__body {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
}

.hotel-card__title {
    font-size: 18px;
    font-weight: 500;
    color: var(--booking-blue);
    margin: 0 0 4px 0;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
}

.btn-primary {
    background: var(--booking-blue);
    color: white;
}

.btn-primary:hover {
    background: var(--booking-blue-dark);
}

.btn-secondary {
    background: white;
    color: var(--booking-blue);
    border: 1px solid var(--booking-blue);
}

.btn-success {
    background: #008009 !important;
    color: white !important;
}

.btn-success:hover {
    background: #005f07 !important;
    color: white !important;
}

/* Footer Section */
.booking-footer {
    background: var(--booking-blue-dark);
    color: white;
    padding: 40px 0 24px;
    margin-top: 60px;
    width: 100%;
}

.booking-footer__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

.booking-footer__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 32px;
    margin-bottom: 32px;
}

.booking-footer__section h4 {
    font-size: 14px;
    font-weight: 500;
    margin: 0 0 16px 0;
    opacity: 0.9;
}

.booking-footer__links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.booking-footer__links li {
    margin-bottom: 8px;
}

.booking-footer__links a {
    color: white;
    text-decoration: none;
    font-size: 13px;
    opacity: 0.7;
}

.booking-footer__links a:hover {
    opacity: 1;
}

.booking-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.booking-footer__copyright {
    font-size: 13px;
    opacity: 0.7;
}

.booking-footer__legal {
    display: inline-block;
    margin-left: 16px;
}

.booking-footer__legal a {
    color: white;
    opacity: 0.7;
    text-decoration: none;
    margin-right: 12px;
}

.booking-footer__socials {
    display: flex;
    gap: 16px;
}

.booking-footer__social-link {
    color: white;
    font-size: 20px;
    opacity: 0.7;
}

/* Responsive */
@media (max-width: 768px) {
    .booking-sidebar {
        transform: translateX(-100%);
    }

    .booking-page-wrapper {
        margin-left: 0;
    }

    .booking-content {
        padding: 16px;
    }

    .booking-footer__grid {
        grid-template-columns: 1fr;
    }
}