/* Современные стили для гостиницы "Эдем" */

:root {
    --primary-color: #1a365d;
    --secondary-color: #3182ce;
    --accent-color: #e53e3e;
    --success-color: #38a169;
    --warning-color: #ed8936;
    --light-color: #f7fafc;
    --dark-color: #1a202c;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    --gradient-accent: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Плавная прокрутка */
html {
    scroll-behavior: smooth;
}

/* Навигация с градиентом */
.navbar {
    background: var(--gradient-primary) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.navbar-brand {
    font-size: 1.5rem;
    color: #fff !important;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9) !important;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 1rem !important;
    border-radius: 8px;
    margin: 0 0.25rem;
}

.navbar-nav .nav-link:hover {
    color: #fff !important;
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

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

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

/* Современные кнопки */
.btn {
    border-radius: 12px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.875rem;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-xl);
    background: var(--gradient-primary);
}

.btn-outline-primary {
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    background: transparent;
}

.btn-outline-primary:hover {
    background: var(--gradient-primary);
    border-color: transparent;
    color: white;
    transform: translateY(-3px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
    border-radius: 15px;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    border-radius: 8px;
}

/* Современные карточки */
.card {
    border-radius: 20px;
    border: none;
    box-shadow: var(--shadow-md);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-primary);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.card:hover::before {
    transform: scaleX(1);
}

.card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.card-img-top {
    border-radius: 20px 20px 0 0;
    transition: transform 0.4s ease;
    overflow: hidden;
}

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

.card-body {
    padding: 1.5rem;
    position: relative;
}

.card-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.card:hover .card-title {
    color: var(--secondary-color);
}

/* Современные формы */
.form-control {
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    padding: 0.75rem 1rem;
    font-weight: 500;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(49, 130, 206, 0.25);
    background: rgba(255, 255, 255, 1);
    transform: translateY(-2px);
}

.form-label {
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.form-select {
    border-radius: 12px;
    border: 2px solid rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(49, 130, 206, 0.25);
    transform: translateY(-2px);
}

/* Алерты */
.alert {
    border-radius: 10px;
    border: none;
}

/* Футер */
footer {
    margin-top: auto;
}

footer a {
    transition: color 0.3s ease;
}

footer a:hover {
    color: var(--secondary-color) !important;
}

/* Современные анимации */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200px 0;
    }
    100% {
        background-position: calc(200px + 100%) 0;
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-left {
    animation: slideInLeft 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.slide-in-right {
    animation: slideInRight 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pulse {
    animation: pulse 2s infinite;
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Эффект загрузки */
.loading-shimmer {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200px 100%;
    animation: shimmer 1.5s infinite;
}

/* Preloader */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.preloader-content {
    text-align: center;
    color: white;
}

.hotel-logo {
    font-size: 4rem;
    margin-bottom: 1rem;
    animation: pulse 2s infinite;
}

.loading-text {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.loading-bar {
    width: 200px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
}

.loading-progress {
    height: 100%;
    background: white;
    border-radius: 2px;
    animation: loadingProgress 1s ease-in-out;
}

.loading-skip {
    margin-top: 1rem;
}

.loading-skip .btn {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.loading-skip .btn:hover {
    opacity: 1;
}

.loading-hint {
    margin-top: 0.5rem;
    opacity: 0.7;
}

@keyframes loadingProgress {
    0% {
        width: 0%;
    }
    50% {
        width: 70%;
    }
    100% {
        width: 100%;
    }
}

/* Скрытие лоадера */
#preloader.fade-out {
    opacity: 0;
    visibility: hidden;
}

/* Адаптивность */
@media (max-width: 768px) {
    .hero-section {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-image {
        height: 50vh;
        min-height: 400px;
    }
    
    .hero-placeholder {
        height: 50vh;
        min-height: 400px;
    }
    
    .display-4 {
        font-size: 2rem;
    }
    
    .display-5 {
        font-size: 1.75rem;
    }
}

/* Специальные стили для номеров */
.room-card .card-body {
    padding: 1.5rem;
}

.room-features {
    font-size: 0.9rem;
}

.price {
    text-align: left;
}

/* Стили для новостей */
.news-card .card-body {
    padding: 1.5rem;
}

/* Стили для бронирования */
.booking-form {
    background: white;
    border-radius: 15px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.booking-summary {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.5rem;
}

/* Стили для админки */
.dashboard-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    padding: 2rem;
    text-align: center;
}

.dashboard-card h3 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
}

.dashboard-card p {
    margin-bottom: 0;
    opacity: 0.9;
}

/* Загрузка */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Утилиты */
.text-primary {
    color: var(--primary-color) !important;
}

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

.border-primary {
    border-color: var(--primary-color) !important;
}

/* Карусель */
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    width: 50px;
    height: 50px;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}

/* Модальные окна */
.modal-content {
    border-radius: 15px;
    border: none;
}

.modal-header {
    border-bottom: 1px solid #e9ecef;
    border-radius: 15px 15px 0 0;
}

.modal-footer {
    border-top: 1px solid #e9ecef;
    border-radius: 0 0 15px 15px;
}

/* Стили для формы бронирования */
.booking-form-container {
    padding: 1rem;
}

.room-booking-info {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid #dee2e6;
}

.room-booking-info h4 {
    color: #2c3e50;
    font-weight: 700;
}

.price-display {
    background: white;
    border-radius: 10px;
    padding: 1rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.price-display .h4 {
    margin-bottom: 0;
}

/* Стили для полей формы */
.booking-form-container .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.booking-form-container .form-label i {
    color: #6c757d;
}

.booking-form-container .input-group-text {
    background: #f8f9fa;
    border-color: #ced4da;
    color: #6c757d;
}

.booking-form-container .form-control,
.booking-form-container .form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.booking-form-container .form-control:focus,
.booking-form-container .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Стили для итоговой стоимости */
.booking-summary {
    background: linear-gradient(135deg, #fff 0%, #f8f9fa 100%);
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.summary-details {
    font-size: 0.95rem;
}

.summary-details hr {
    margin: 0.75rem 0;
    border-color: #dee2e6;
}

.summary-details .text-primary {
    font-size: 1.1rem;
}

/* Стили для кнопки бронирования */
.booking-form-container .btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    padding: 0.75rem 1.5rem;
    transition: all 0.3s ease;
}

.booking-form-container .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

/* Анимация для полей формы */
.booking-form-container .form-control,
.booking-form-container .form-select {
    transition: all 0.3s ease;
}

.booking-form-container .form-control:hover,
.booking-form-container .form-select:hover {
    border-color: #adb5bd;
}

/* Стили для количества ночей */
#nightsCount {
    background: #e9ecef;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    color: #495057;
    min-height: 38px;
    display: flex;
    align-items: center;
}

/* Таблицы */
.table {
    border-radius: 10px;
    overflow: hidden;
}

.table thead th {
    background-color: var(--primary-color);
    color: white;
    border: none;
    font-weight: 500;
}

.table tbody tr:hover {
    background-color: #f8f9fa;
}

/* Пагинация */
.pagination .page-link {
    border-radius: 8px;
    margin: 0 2px;
    border: 2px solid #e9ecef;
    color: var(--primary-color);
}

.pagination .page-link:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.pagination .page-item.active .page-link {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Фильтры */
.filter-card {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
}

.filter-card h5 {
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* Статусы */
.status-pending {
    color: var(--warning-color);
}

.status-confirmed {
    color: var(--success-color);
}

.status-cancelled {
    color: var(--accent-color);
}

.status-completed {
    color: var(--secondary-color);
}

/* Footer Styles */
.footer-gradient {
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #2c3e50 100%);
    position: relative;
    overflow: hidden;
}

.footer-gradient::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 100 100"><defs><pattern id="footerGrain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ecf0f1" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ecf0f1" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ecf0f1" opacity="0.05"/><circle cx="10" cy="60" r="0.5" fill="%23ecf0f1" opacity="0.05"/><circle cx="90" cy="40" r="0.5" fill="%23ecf0f1" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23footerGrain)"/></svg>');
    opacity: 0.3;
}

.footer-features {
    margin-top: 1rem;
}

.social-links {
    margin-top: 1.5rem;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #ecf0f1;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.social-icon:hover {
    background: rgba(255, 255, 255, 0.2);
    color: #3498db;
    transform: translateY(-2px);
}

.border-white-25 {
    border-color: rgba(255, 255, 255, 0.25) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.7) !important;
}

/* Global Statistics Styles */
.statistics-component {
    position: relative;
    z-index: 2;
}

.modern-stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    z-index: 2;
    height: 100%;
}

.modern-stat-card:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
}

.stat-icon-wrapper {
    margin-bottom: 1rem;
}

.stat-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-size: 2rem;
    color: white;
    transition: all 0.3s ease;
}

.modern-stat-card:hover .stat-icon {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.stat-number {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
}

.stat-title {
    color: white;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.stat-description {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    margin-bottom: 0;
}

/* Hero specific styles */
.hero-stats {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
}

.hero-stats .stat-number {
    font-size: 2rem;
}

.hero-stats .stat-icon {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
}

/* Global CTA Styles */
.modern-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 25px;
    padding: 3rem 2rem;
    position: relative;
    overflow: hidden;
    margin: 3rem 0;
}

.modern-cta::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 100 100"><defs><pattern id="ctaGrain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="25" cy="25" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="75" cy="75" r="1" fill="%23ffffff" opacity="0.1"/><circle cx="50" cy="10" r="0.5" fill="%23ffffff" opacity="0.05"/><circle cx="10" cy="60" r="0.5" fill="%23ffffff" opacity="0.05"/><circle cx="90" cy="40" r="0.5" fill="%23ffffff" opacity="0.05"/></pattern></defs><rect width="100" height="100" fill="url(%23ctaGrain)"/></svg>');
    opacity: 0.3;
}

.cta-content {
    position: relative;
    z-index: 2;
}

.cta-button {
    background: white;
    color: #667eea;
    border: none;
    border-radius: 15px;
    padding: 1rem 2rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.cta-button:hover {
    background: #f8f9fa;
    color: #5a6fd8;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 255, 255, 0.4);
    text-decoration: none;
}

@media (max-width: 768px) {
    .footer-gradient {
        padding: 3rem 0 !important;
    }
    
    .social-icons {
        text-align: center;
    }
    
    .modern-cta {
        padding: 2rem 1rem;
        text-align: center;
    }
    
    .cta-content .col-lg-4 {
        margin-top: 1rem;
    }
}

/* Модальные окна - z-index */
.modal {
    z-index: 1050;
}

.modal-backdrop {
    z-index: 1040;
}

/* Модальное окно деталей номера должно быть поверх всех остальных */
#roomDetailsModal {
    z-index: 1060;
}

#roomDetailsModal .modal-backdrop {
    z-index: 1055;
}

/* Модальное окно бронирования */
#bookingModal {
    z-index: 1070;
}

#bookingModal .modal-backdrop {
    z-index: 1065;
}

/* Модальное окно всех номеров */
#allRoomsModal {
    z-index: 1050;
}

/* Модальное окно всех новостей */
#allNewsModal {
    z-index: 1050;
}

/* Модальное окно деталей новости */
#newsDetailsModal {
    z-index: 1060;
}

#newsDetailsModal .modal-backdrop {
    z-index: 1055;
}

/* Улучшенные карусели номеров и новостей */
.rooms-carousel-container,
.news-carousel-container {
    position: relative;
    padding: 3rem 0;
    margin: 3rem 0;
}

.rooms-carousel-container::before,
.news-carousel-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 130%;
    height: 100%;
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.6) 0%, rgba(233, 236, 239, 0.4) 100%);
    border-radius: 40px;
    z-index: 1;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
}

#roomsCarousel,
#newsCarousel {
    position: relative;
    z-index: 10;
}

#roomsCarousel .carousel-item,
#newsCarousel .carousel-item {
    padding: 2rem 0;
}

#roomsCarousel .row,
#newsCarousel .row {
    margin: 0;
}

#roomsCarousel .col-lg-10,
#newsCarousel .col-lg-10 {
    padding: 0 2rem;
}

/* Карточки в карусели - поверх ленты */
#roomsCarousel .card,
#newsCarousel .card {
    border-radius: 25px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    border: none;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    background: white;
    position: relative;
    z-index: 5;
    height: 100%;
}

#roomsCarousel .card:hover,
#newsCarousel .card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

/* Изображения в карточках карусели */
#roomsCarousel .room-image,
#newsCarousel .news-image {
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

#roomsCarousel .card:hover .room-image,
#newsCarousel .card:hover .news-image {
    transform: scale(1.08);
}

#roomsCarousel .room-image-placeholder,
#newsCarousel .news-image-placeholder {
    height: 250px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Body карточек в карусели */
#roomsCarousel .card-body,
#newsCarousel .card-body {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    height: 100%;
}

#roomsCarousel .card-title,
#newsCarousel .card-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    line-height: 1.3;
}

#roomsCarousel .card-text,
#newsCarousel .card-text {
    color: #6c757d;
    font-size: 0.95rem;
    flex-grow: 1;
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

/* Кнопки в карточках карусели */
#roomsCarousel .card-actions,
#newsCarousel .card-actions {
    margin-top: auto;
    display: flex;
    gap: 0.5rem;
}

#roomsCarousel .card-actions .btn,
#newsCarousel .card-actions .btn {
    flex: 1;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Кнопки управления каруселью */
#roomsCarousel .carousel-control-prev,
#roomsCarousel .carousel-control-next,
#newsCarousel .carousel-control-prev,
#newsCarousel .carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(102, 126, 234, 0.2);
    transition: all 0.3s ease;
    top: 50%;
    transform: translateY(-50%);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    z-index: 15;
}

#roomsCarousel .carousel-control-prev,
#newsCarousel .carousel-control-prev {
    left: -30px;
}

#roomsCarousel .carousel-control-next,
#newsCarousel .carousel-control-next {
    right: -30px;
}

#roomsCarousel .carousel-control-prev:hover,
#roomsCarousel .carousel-control-next:hover,
#newsCarousel .carousel-control-prev:hover,
#newsCarousel .carousel-control-next:hover {
    background: rgba(102, 126, 234, 0.1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
}

#roomsCarousel .carousel-control-prev-icon,
#roomsCarousel .carousel-control-next-icon,
#newsCarousel .carousel-control-prev-icon,
#newsCarousel .carousel-control-next-icon {
    width: 28px;
    height: 28px;
    background-size: 28px 28px;
    filter: invert(1);
}

/* Индикаторы карусели */
#roomsCarousel .carousel-indicators,
#newsCarousel .carousel-indicators {
    bottom: -50px;
    margin-bottom: 0;
    z-index: 15;
}

#roomsCarousel .carousel-indicators [data-bs-target],
#newsCarousel .carousel-indicators [data-bs-target] {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(102, 126, 234, 0.2);
    border: 2px solid rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    margin: 0 5px;
}

#roomsCarousel .carousel-indicators [data-bs-target].active,
#newsCarousel .carousel-indicators [data-bs-target].active {
    background-color: #667eea;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(102, 126, 234, 0.4);
}

/* Унификация размеров карточек */
.card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card-img-top {
    height: 200px;
    object-fit: cover;
    width: 100%;
}

.card-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 1.5rem;
}

.card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    min-height: 2.8rem; /* Фиксированная высота для заголовков */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-text {
    color: #6c757d;
    font-size: 0.9rem;
    flex-grow: 1;
    margin-bottom: 1rem;
    line-height: 1.5;
    min-height: 3rem; /* Минимальная высота для текста */
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Карточки номеров */
.room-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.room-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.room-card .card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.room-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
    min-height: 2.2rem;
}

.room-card .card-text {
    color: #6c757d;
    font-size: 0.9rem;
    flex-grow: 1;
    margin-bottom: 1rem;
    min-height: 2.7rem;
}

.room-card .price-info {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.75rem;
    border-radius: 10px;
    text-align: center;
    margin-bottom: 1rem;
}

.room-card .price-info .price {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.room-card .price-info .period {
    font-size: 0.8rem;
    opacity: 0.9;
}

.room-card .card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.room-card .btn {
    flex: 1;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

/* Карточки новостей */
.news-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.news-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.news-card:hover .card-img-top {
    transform: scale(1.05);
}

.news-card .card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.news-card .news-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.news-card .news-category {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.8rem;
    font-weight: 500;
}

.news-card .news-date {
    color: #6c757d;
    font-size: 0.8rem;
}

.news-card .card-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.75rem;
    line-height: 1.4;
    min-height: 2.8rem;
}

.news-card .card-text {
    color: #6c757d;
    font-size: 0.9rem;
    flex-grow: 1;
    margin-bottom: 1rem;
    line-height: 1.5;
    min-height: 3rem;
}

.news-card .card-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: auto;
}

.news-card .btn {
    flex: 1;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
}

/* Сетка для модальных окон */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    padding: 1rem 0;
}

/* Адаптивность */
@media (max-width: 768px) {
    .room-grid,
    .news-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .card-title {
        min-height: auto;
        -webkit-line-clamp: 3;
    }
    
    .card-text {
        min-height: auto;
        -webkit-line-clamp: 4;
    }
}


/* Стили для модального окна поиска номеров */
.search-form-container {
    padding: 1rem;
}

.search-form-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

/* Стили для полей формы поиска */
.search-form-section .form-label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.5rem;
}

.search-form-section .form-label i {
    color: #6c757d;
}

.search-form-section .input-group-text {
    background: #f8f9fa;
    border-color: #ced4da;
    color: #6c757d;
}

.search-form-section .form-control,
.search-form-section .form-select {
    border-radius: 8px;
    border: 1px solid #ced4da;
    transition: all 0.3s ease;
}

.search-form-section .form-control:focus,
.search-form-section .form-select:focus {
    border-color: #0d6efd;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Стили для количества ночей в поиске */
#searchNightsCount {
    background: #e9ecef;
    border-radius: 8px;
    padding: 0.5rem 0.75rem;
    font-weight: 600;
    color: #495057;
    min-height: 38px;
    display: flex;
    align-items: center;
}

/* Стили для кнопки поиска */
.search-form-section .btn-primary {
    background: linear-gradient(135deg, #0d6efd 0%, #0056b3 100%);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    padding: 0.75rem 2rem;
    transition: all 0.3s ease;
}

.search-form-section .btn-primary:hover {
    background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(13, 110, 253, 0.3);
}

/* Стили для результатов поиска */
.search-results-section {
    background: white;
    border-radius: 15px;
    padding: 1.5rem;
    border: 1px solid #dee2e6;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.05);
}

.search-results-section h5 {
    color: #2c3e50;
    font-weight: 700;
}

.search-results-section .badge {
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
}

/* Стили для карточек результатов поиска */
.search-room-card {
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: none;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 1.5rem;
}

.search-room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.search-room-card .card-img-top {
    height: 200px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.search-room-card .card-body {
    padding: 1.5rem;
}

.search-room-card .card-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.75rem;
}

.search-room-card .card-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.search-room-card .room-features {
    margin-bottom: 1rem;
}

.search-room-card .room-features small {
    display: block;
    margin-bottom: 0.25rem;
}

.search-room-card .price-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 10px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.search-room-card .price-section .h5 {
    color: #0d6efd;
    font-weight: 700;
    margin-bottom: 0;
}

.search-room-card .room-actions {
    display: flex;
    gap: 0.5rem;
}

.search-room-card .room-actions .btn {
    flex: 1;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

/* Стили для сообщения о загрузке */
#searchLoading {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    border: 1px solid #dee2e6;
}

#searchLoading .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Стили для современного блока контактов */
.contact-info-block {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(49, 130, 206, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 800px;
}

.contact-info-block:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-block-title {
    color: var(--primary-color);
    font-size: 1.4rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.contact-block-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    border-radius: 2px;
}

.contact-item {
    padding: 1rem;
    background: rgba(49, 130, 206, 0.05);
    border-radius: 15px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-item:hover {
    background: rgba(49, 130, 206, 0.1);
    border-color: rgba(49, 130, 206, 0.2);
    transform: translateX(5px);
}

.contact-icon-item {
    width: 50px;
    height: 50px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.contact-info-content h6 {
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 0.3rem;
}

.contact-link {
    color: var(--secondary-color);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.contact-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.contact-address {
    color: #666;
    font-weight: 500;
}

.contact-additional {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 15px;
    margin: auto -1rem -1rem -1rem;
    padding: 1.5rem;
    margin-top: auto;
    flex-shrink: 0;
}

.contact-feature {
    padding: 0.5rem;
}

.contact-feature i {
    opacity: 0.8;
}

.contact-feature small {
    font-size: 0.75rem;
}

/* Стили для современной карты */
.map-container {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid rgba(49, 130, 206, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    min-height: 800px;
}

.map-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.map-header {
    padding: 1.5rem 1.5rem 0 1.5rem;
    flex-shrink: 0;
}

.map-header h5 {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.map-embed {
    padding: 0 1.5rem;
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-embed iframe {
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    width: 100%;
    min-height: 400px;
}

.map-embed iframe:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.map-footer {
    padding: 1rem 1.5rem 1.5rem 1.5rem;
    text-align: center;
    flex-shrink: 0;
    margin-top: auto;
}
