:root {
    --primary-color: #002f6c;
    --secondary-color: #d4af37;
    --accent-color: #8b4513;
    --light-color: #f8f9fa;
    --dark-color: #333;
    --transition: all 0.3s ease;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark-color);
    padding-top: 80px;
    background-color: #fefefe;
}

h1, h2, h3, h4, h5 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
}

/* Header & Navigation */
.navbar {
    background-color: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 15px 0;
    transition: var(--transition);
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.8rem;
    color: white !important;
    display: flex;
    align-items: center;
}

.navbar-brand i {
    color: var(--secondary-color);
    margin-right: 8px;
}

.nav-link {
    font-weight: 500;
    margin: 0 8px;
    position: relative;
    color: rgba(255,255,255,0.85) !important;
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: white !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: var(--transition);
}

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

.lang-switch .nav-link {
    font-size: 0.85rem;
    padding: 5px 10px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 4px;
    margin: 0 3px;
}

.lang-switch .nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

/* Hero Section */
#home {
background: linear-gradient(rgba(0, 47, 108, 0.7), rgba(0, 47, 108, 0.7)), 
            url('logo.png') no-repeat center center;
background-size: cover;
min-height: 90vh;
color: white;
display: flex;
align-items: center;
position: relative;
overflow: hidden;
}
.btn-filter.active {
    background-color: #007bff;
    color: #fff;
  }
  .btn-check-rooms {
    background-color: #c19b2a;;
    color: #fff;
    border: none;
    padding: 0.75rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 105, 217, 0.3);
    transition: background-color 0.3s, transform 0.2s;
  }
  
  .btn-check-rooms:hover {
    background-color: #0056b3;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 86, 179, 0.4);
  }
  
  .btn-check-rooms:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 86, 179, 0.2);
  }

  .gallery-img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    transition: transform 0.3s;
  }

  .gallery-img:hover {
    transform: scale(1.03);
    cursor: zoom-in;
  }

  .btn-filter {
    margin: 0 5px;
    border: 1px solid #007bff;
  }
.hero-section::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background-image: url('logo.png');
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: 0.08; /* зробити його дуже легким */
    transform: translate(-50%, -50%);
    z-index: 0;
}

.hero-section .hero-content {
    position: relative;
    z-index: 1;
}
#home::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 150px;
    background: linear-gradient(to top, #fefefe, transparent);
}

.hero-content {
position: relative;
z-index: 2;
max-width: 800px;
margin: 0 auto;
padding: 20px;
animation: fadeIn 1s ease-out;
}
.hotel-logo {
animation: fadeInDown 0.8s ease-out;
}


#home h1 {
font-size: 3.5rem;
margin-bottom: 15px;
text-shadow: 0 2px 10px rgba(0,0,0,0.3);
animation: fadeInUp 0.8s ease-out 0.2s both;
}

#home p {
font-size: 1.5rem;
margin-bottom: 30px;
text-shadow: 0 1px 3px rgba(0,0,0,0.3);
animation: fadeInUp 0.8s ease-out 0.4s both;
}

.btn-hero {
background-color: var(--secondary-color);
color: white;
border: none;
padding: 12px 30px;
font-size: 1.1rem;
font-weight: 600;
border-radius: 50px;
transition: all 0.3s ease;
box-shadow: 0 4px 15px rgba(0,0,0,0.2);
animation: fadeInUp 0.8s ease-out 0.6s both;
}

.btn-hero:hover {
transform: translateY(-3px);
box-shadow: 0 7px 20px rgba(0,0,0,0.3);
background-color: #c19b2a;
}

/* Section Styling */
section {
    padding: 80px 0;
}

.section-title {
    position: relative;
    margin-bottom: 60px;
    padding-bottom: 20px;
    text-align: center;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--secondary-color);
    border-radius: 2px;
}

/* Rooms Section */
.carousel-control-prev, .carousel-control-next {
    width: 50px;
    height: 50px;
    background-color: rgba(0,0,0,0.5);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: var(--transition);
}

.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1;
}

.card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: var(--transition);
    height: 100%;
}

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

.card-img-top {
    height: 250px;
    object-fit: cover;
}

.card-body {
    padding: 25px;
}

.card-title {
    color: var(--primary-color);
    margin-bottom: 15px;
}

.price-tag {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 10px 0;
}

.btn-room {
    background-color: var(--primary-color);
    color: white;
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 500;
    transition: var(--transition);
}

.btn-room:hover {
    background-color: #002055;
    color: white;
}

/* Services Section */
#services {
    background: linear-gradient(to bottom, #ffffff, #f8f9fa);
}

.service-box {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: var(--transition);
    height: 100%;
    text-align: center;
    margin-bottom: 30px;
}

.service-box:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

.service-box h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
}

/* Gallery Section */
.gallery-img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.gallery-item {
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-item a {
    display: block;
    overflow: hidden;
    border-radius: 8px;
}

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

.btn-filter {
    border-radius: 50px;
    padding: 8px 20px;
    font-weight: 500;
    margin: 5px;
    transition: var(--transition);
    border: 2px solid var(--primary-color);
}

.btn-filter.active, .btn-filter:hover {
    background-color: var(--primary-color);
    color: white;
}

/* About Section */
#about {
    background: linear-gradient(to bottom, #f8f9fa, #ffffff);
    position: relative;
}

.about-content {
    background: white;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    position: relative;
    z-index: 1;
}

.about-image {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    height: 100%;
}

.about-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Contact Section */
.contact-info {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    height: 100%;
}

.contact-icon {
    font-size: 1.5rem;
    color: var(--secondary-color);
    margin-right: 10px;
    width: 30px;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    color: white;
    transition: var(--transition);
}

.social-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    height: 100%;
}

/* Booking Section */
#booking {
    background: linear-gradient(to bottom, var(--primary-color), var(--primary-color));
    color: white;
}

#booking .section-title {
    color: white;
}

#booking .section-title::after {
    background: var(--secondary-color);
}

.booking-form {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 12px;
    padding: 30px;
}

.form-control, .form-select {
    background-color: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 12px 15px;
    border-radius: 8px;
}

.form-control::placeholder, .form-control:focus, .form-select:focus {
    color: white;
    background-color: rgba(255,255,255,0.2);
}

.form-label {
    color: rgba(255,255,255,0.85);
}

.btn-booking {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    border-radius: 50px;
    transition: var(--transition);
    width: 100%;
    margin-top: 10px;
}

.btn-booking:hover {
    background-color: #c19b2a;
    transform: translateY(-3px);
}

/* Footer */
footer {
    background-color: #111;
    color: rgba(255,255,255,0.7);
    padding: 50px 0 20px;
}

.footer-logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: white;
    margin-bottom: 20px;
    display: block;
}

.footer-links h5 {
    color: white;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-links h5::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50px;
    height: 2px;
    background: var(--secondary-color);
}

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

.footer-links li {
    margin-bottom: 10px;
}

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

.footer-links a:hover {
    color: var(--secondary-color);
    padding-left: 5px;
}

.copyright {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: 0 3px 10px rgba(0,0,0,0.2);
}

.scroll-top.active {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--secondary-color);
    transform: translateY(-3px);
}

/* Responsive */
@media (max-width: 768px) {
    #home h1 {
    font-size: 2.5rem;
}

    
    #home p {
    font-size: 1.2rem;
}

    
    .section-title {
        font-size: 2rem;
    }
    .logo-img {
    max-height: 80px !important;
}
    .hero-content {
        padding-top: 50px;
    }
    
    .gallery-img {
        height: 250px;
    }
    
    .navbar-collapse {
        background-color: var(--primary-color);
        padding: 20px;
        border-radius: 8px;
    }
    
    .navbar-nav {
        margin-top: 15px;
    }
}

/* Додаткові стилі для перемикача мов */
.lang-switch-container {
    display: flex;
    align-items: center;
    margin-left: 20px;
}

.lang-btn {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    padding: 5px 10px;
    margin: 0 3px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.lang-btn.active {
    background-color: rgba(255,255,255,0.2);
    font-weight: 600;
}

.lang-btn:hover:not(.active) {
    background-color: rgba(255,255,255,0.1);
}

#room-gallery {
    background-color: #f9f9f9;
    padding: 80px 0;
}

.room-gallery-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.room-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

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

.room-image {
    height: 250px;
    width: 100%;
    object-fit: cover;
    border-bottom: 3px solid var(--secondary-color);
}

.room-details {
    padding: 25px;
}

.room-title {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.room-features {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
}

.room-features li {
    margin-bottom: 8px;
    display: flex;
    align-items: flex-start;
}

.room-features li i {
    color: var(--secondary-color);
    margin-right: 10px;
    min-width: 20px;
}

.room-price {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin: 15px 0;
}

.view-more-btn {
    display: block;
    width: 100%;
    text-align: center;
    background: var(--primary-color);
    color: white;
    padding: 10px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.view-more-btn:hover {
    background: #002055;
    color: white;
}

/* Стилі для модального вікна */
.modal-room-img {
    width: 100%;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    overflow-y: auto;
}

.modal-thumbnails {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.modal-thumbnail {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.modal-thumbnail:hover, .modal-thumbnail.active {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.room-modal-title {
    color: var(--primary-color);
    border-bottom: 2px solid var(--secondary-color);
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.room-modal-features {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
}

@media (max-width: 768px) {
    .room-modal-features {
        columns: 1;
        -webkit-columns: 1;
        -moz-columns: 1;
    }
    
    .modal-room-img {
        max-height: 50vh;
    }
}

/* Fix for modal overflow */
.modal {
    overflow-y: auto;
}
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }
    
    /* Навігація */
    .navbar-brand {
        font-size: 1.3rem;
    }
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        font-size: 1rem;
    }
    
    /* Герой-секція */
    #home h1 {
        font-size: 2rem;
    }
    #home p {
        font-size: 1.1rem;
    }
    
    /* Номери */
    .room-gallery-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .room-card {
        margin-bottom: 20px;
    }
    .room-image {
        height: 200px;
    }
    
    /* Послуги */
    .service-box {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    /* Галерея */
    .gallery-container {
        grid-template-columns: 1fr;
    }
    .gallery-item {
        margin-bottom: 15px;
    }
    
    /* Про нас */
    .about-image {
        margin-bottom: 30px;
    }
    
    /* Контакти */
    .contact-info {
        padding: 20px;
        margin-bottom: 30px;
    }
    .map-container iframe {
        height: 300px;
    }
    
    /* Бронювання */
    #booking .row > div {
        padding: 0 5px;
    }
    .booking-form {
        padding: 20px;
    }
    .room-row .row {
        flex-direction: column;
    }
    .room-row .col-md-6,
    .room-row .col-md-4,
    .room-row .col-md-2 {
        width: 100%;
        margin-bottom: 10px;
    }
    
    /* Футер */
    .footer-links {
        margin-bottom: 30px;
    }
}

@media (max-width: 576px) {
    /* Модальні вікна */
    .modal-dialog {
        margin: 10px;
    }
    .modal-body {
        padding: 15px;
    }
    .modal-thumbnails {
        justify-content: center;
    }
    
    /* Форма бронювання */
    #bookingForm .row > div {
        padding: 0;
    }
    .form-control, .form-select {
        font-size: 14px;
    }
    
    /* Навігація в модалках */
    .modal-header .btn-close {
        font-size: 1rem;
    }
    
    /* Герой-секція */
    .hero-content {
        padding: 15px;
    }
    
    /* Картки номерів */
    .room-features {
        font-size: 0.9rem;
    }
}
