/* ============================================
   City Hostel - Custom Styles
   Синяя тема + желтые акценты
   ============================================ */

/* CSS Variables - City Hostel Theme */
:root {
    /* Основной синий */
    --bs-primary: #0066CC;
    --bs-primary-rgb: 0, 102, 204;
    --primary-dark: #0052a3;
    --primary-light: #3385d6;
    
    /* Желтый акцент */
    --bs-warning: #FFB800;
    --bs-warning-rgb: 255, 184, 0;
    --accent-orange: #FF8C00;
    
    /* Нейтральные */
    --bs-dark: #1a1a2e;
    --bs-secondary: #6c757d;
    --text-muted: #666;
    --bg-light: #f8f9fa;
    --border-color: #e0e0e0;
    
    /* Тени */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
    
    /* Скругление */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
}

/* ============================================
   BASE STYLES
   ============================================ */

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--bs-dark);
    line-height: 1.6;
}

/* ============================================
   HEADER & NAVIGATION
   ============================================ */

.navbar {
    background: white !important;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    padding: 0.75rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--bs-primary) !important;
}

.navbar-brand i {
    color: var(--bs-warning);
}

.nav-link {
    color: var(--bs-dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.nav-link:hover,
.nav-link.active {
    color: var(--bs-primary) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--bs-primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 80%;
}

.btn-warning {
    background: var(--bs-warning);
    border-color: var(--bs-warning);
    color: var(--bs-dark);
    font-weight: 600;
    padding: 0.625rem 1.5rem;
}

.btn-warning:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: white;
}

.btn-outline-primary {
    border-color: var(--bs-primary);
    color: var(--bs-primary);
}

.btn-outline-primary:hover {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
}

/* ============================================
   HERO SECTION
   ============================================ */

.hero-section {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 120px 0 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
    background-position: bottom;
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    opacity: 0.9;
    margin-bottom: 2rem;
}

/* Быстрый поиск */
.quick-search {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    margin-top: 2rem;
}

.quick-search .form-control,
.quick-search .form-select {
    border: 2px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.875rem 1rem;
    font-size: 1rem;
}

.quick-search .form-control:focus,
.quick-search .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(0,102,204,0.15);
}

/* ============================================
   ROOM CARDS
   ============================================ */

.room-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
    height: 100%;
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.room-image {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.room-card:hover .room-image img {
    transform: scale(1.05);
}

.room-body {
    padding: 1.5rem;
}

.room-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--bs-primary);
    margin-bottom: 0.75rem;
}

.room-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1rem;
}

.room-features-list li {
    padding: 0.25rem 0;
    color: var(--text-muted);
    font-size: 0.875rem;
    position: relative;
    padding-left: 1rem;
}

.room-features-list li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--bs-warning);
}

.room-price {
    font-size: 2rem;
    font-weight: 800;
    color: var(--bs-dark);
    line-height: 1;
}

.room-price .currency {
    font-size: 1rem;
    font-weight: 400;
    color: var(--text-muted);
}

.room-price .period {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
}

.btn-view-room {
    background: var(--bs-warning);
    border: none;
    color: var(--bs-dark);
    font-weight: 600;
    padding: 0.625rem 1.5rem;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.btn-view-room:hover {
    background: var(--accent-orange);
    color: white;
}

/* ============================================
   FEATURES / AMENITIES
   ============================================ */

.amenities-section {
    background: white;
    padding: 80px 0;
}

.amenity-item {
    text-align: center;
    padding: 2rem 1rem;
    transition: all 0.3s ease;
}

.amenity-item:hover {
    transform: translateY(-5px);
}

.amenity-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--primary-light) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
    font-size: 2rem;
}

.amenity-icon.yellow {
    background: linear-gradient(135deg, var(--bs-warning) 0%, var(--accent-orange) 100%);
}

.amenity-title {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--bs-dark);
}

.amenity-desc {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

/* ============================================
   INFRASTRUCTURE (Kitchen, Shower, etc.)
   ============================================ */

.infrastructure-section {
    background: var(--bg-light);
    padding: 80px 0;
}

.infra-card {
    background: white;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
}

.infra-card:hover {
    box-shadow: var(--shadow-md);
}

.infra-image {
    height: 220px;
    overflow: hidden;
}

.infra-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.infra-card:hover .infra-image img {
    transform: scale(1.05);
}

.infra-body {
    padding: 1.5rem;
}

.infra-title {
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.infra-features {
    list-style: none;
    padding: 0;
    margin: 0;
}

.infra-features li {
    padding: 0.25rem 0;
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   REVIEWS
   ============================================ */

.reviews-section {
    padding: 80px 0;
    background: white;
}

.rating-summary {
    display: flex;
    align-items: center;
    gap: 2rem;
    padding: 1.5rem;
    background: var(--bg-light);
    border-radius: var(--radius-md);
    margin-bottom: 2rem;
}

.rating-big {
    font-size: 3rem;
    font-weight: 800;
    color: var(--bs-dark);
    line-height: 1;
}

.rating-stars {
    color: var(--bs-warning);
    font-size: 1.25rem;
}

.rating-platforms {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.rating-platform {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    font-size: 0.875rem;
}

.review-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    height: 100%;
    transition: all 0.3s ease;
}

.review-card:hover {
    box-shadow: var(--shadow-md);
}

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

.review-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bs-primary), var(--primary-light));
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.25rem;
}

.review-name {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.review-date {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.review-rating {
    color: var(--bs-warning);
    margin-bottom: 0.75rem;
}

.review-text {
    color: var(--text-muted);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.review-source {
    font-size: 0.75rem;
    color: var(--bs-primary);
    margin-top: 0.75rem;
}

/* ============================================
   BOOKING SECTION
   ============================================ */

.booking-section {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 80px 0;
    position: relative;
}

.booking-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.03)" d="M0,192L48,197.3C96,203,192,213,288,229.3C384,245,480,267,576,250.7C672,235,768,181,864,181.3C960,181,1056,235,1152,234.7C1248,235,1344,181,1392,154.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>');
    background-size: cover;
}

.booking-form-wrapper {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
}

.booking-form-wrapper h3 {
    color: var(--bs-dark);
    margin-bottom: 1.5rem;
}

.booking-contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.booking-contact-item i {
    width: 48px;
    height: 48px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    background: var(--bs-primary);
    color: white;
    padding: 60px 0 30px;
}

.footer-logo {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-logo i {
    color: var(--bs-warning);
}

.footer-title {
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-size: 1rem;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 0.625rem;
}

.footer-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--bs-warning);
}

.footer-contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-contact i {
    color: var(--bs-warning);
    font-size: 1.25rem;
}

.footer-contact a {
    color: white;
    text-decoration: none;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.footer-social a:hover {
    background: var(--bs-warning);
    color: var(--bs-dark);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 2rem;
    padding-top: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
    color: rgba(255,255,255,0.7);
}

.footer-bottom a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
}

.footer-bottom a:hover {
    color: var(--bs-warning);
}

/* ============================================
   SECTION TITLES
   ============================================ */

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-label {
    color: var(--bs-primary);
    font-weight: 700;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
    display: block;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--bs-dark);
    margin-bottom: 0.75rem;
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.125rem;
}

/* ============================================
   ABOUT SECTION
   ============================================ */

.about-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.about-text {
    font-size: 1.0625rem;
    line-height: 1.8;
    color: var(--text-muted);
}

.about-text p {
    margin-bottom: 1.25rem;
}

.about-highlight {
    border-left: 4px solid var(--bs-primary);
    padding-left: 1.5rem;
    margin: 1.5rem 0;
}

.about-highlight h4 {
    color: var(--bs-primary);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

/* ============================================
   MAP SECTION
   ============================================ */

.map-section {
    height: 450px;
    position: relative;
}

.map-section iframe {
    width: 100%;
    height: 100%;
    border: none;
    filter: grayscale(20%);
}

/* ============================================
   ROOM DETAIL PAGE
   ============================================ */

.room-detail-hero {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 100px 0 60px;
}

.room-gallery {
    border-radius: var(--radius-md);
    overflow: hidden;
}

.room-info-card {
    background: white;
    border-radius: var(--radius-md);
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

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

.amenity-check {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
}

.amenity-check i {
    color: var(--bs-success);
}

/* ============================================
   SWIPER CUSTOMIZATION
   ============================================ */

.swiper-reviews .swiper-slide {
    height: auto;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--border-color);
    opacity: 1;
}

.swiper-pagination-bullet-active {
    background: var(--bs-primary);
}

/* ============================================
   ANIMATIONS
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease forwards;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 991px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .rating-summary {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 767px) {
    .hero-section {
        padding: 100px 0 60px;
    }
    
    .quick-search {
        margin: 1.5rem 1rem 0;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.text-primary-blue {
    color: var(--bs-primary) !important;
}

.bg-primary-blue {
    background: var(--bs-primary) !important;
}

.btn-yellow {
    background: var(--bs-warning);
    border-color: var(--bs-warning);
    color: var(--bs-dark);
    font-weight: 600;
}

.btn-yellow:hover {
    background: var(--accent-orange);
    border-color: var(--accent-orange);
    color: white;
}
