/* Морський стиль для сайту Льорет-де-Мар */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #2c5282;
    background: linear-gradient(135deg, #e6f3ff 0%, #b3d9ff 100%);
    min-height: 100vh;
}

/* Заголовок */
header {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 50%, #0ea5e9 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.logo h1 {
    font-size: 2.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-bottom: 0.5rem;
}

.logo p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Навігація */
nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid transparent;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

/* Основний контент */
main {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 2rem;
}

.hero {
    text-align: center;
    background: linear-gradient(rgba(59, 130, 246, 0.1), rgba(14, 165, 233, 0.1));
    padding: 3rem 2rem;
    border-radius: 15px;
    margin-bottom: 3rem;
    border: 3px solid #3b82f6;
}

.hero h2 {
    font-size: 2.5rem;
    color: #1e40af;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
}

.hero p {
    font-size: 1.2rem;
    color: #1e3a8a;
    max-width: 800px;
    margin: 0 auto;
}

/* Сітка готелів */
.hotels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.hotel-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 3px solid #e0f2fe;
}

.hotel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.2);
    border-color: #3b82f6;
}

.hotel-image {
    width: 100%;
    height: 200px;
    background: linear-gradient(45deg, #0ea5e9, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.1rem;
}

.hotel-info {
    padding: 1.5rem;
}

.hotel-info h3 {
    color: #1e40af;
    margin-bottom: 0.5rem;
    font-size: 1.4rem;
}

.hotel-info p {
    color: #64748b;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.hotel-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.stars {
    color: #fbbf24;
    font-size: 1.2rem;
}

.btn {
    display: inline-block;
    background: linear-gradient(135deg, #3b82f6, #0ea5e9);
    color: white;
    padding: 0.75rem 1.5rem;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: linear-gradient(135deg, #1e40af, #0284c7);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.3);
}

/* Секції контенту */
.content-section {
    background: white;
    margin: 2rem 0;
    padding: 2rem;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #3b82f6;
}

.content-section h2 {
    color: #1e40af;
    margin-bottom: 1rem;
    font-size: 2rem;
    border-bottom: 2px solid #e0f2fe;
    padding-bottom: 0.5rem;
}

.content-section h3 {
    color: #1e3a8a;
    margin: 1.5rem 0 0.75rem 0;
}

.content-section p {
    color: #475569;
    margin-bottom: 1rem;
    text-align: justify;
}

.content-section ul {
    color: #475569;
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.content-section li {
    margin-bottom: 0.5rem;
}

/* Футер */
footer {
    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* Адаптивність */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    nav ul {
        flex-direction: column;
        gap: 1rem;
    }
    
    .hero h2 {
        font-size: 2rem;
    }
    
    .hotels-grid {
        grid-template-columns: 1fr;
    }
    
    main {
        padding: 0 1rem;
    }
}

/* Хвилі декорації */
.wave-decoration {
    position: relative;
    overflow: hidden;
}

.wave-decoration::before {
    content: '';
    position: absolute;
    top: -5px;
    left: -5px;
    right: -5px;
    height: 10px;
    background: repeating-linear-gradient(
        90deg,
        transparent,
        transparent 10px,
        #3b82f6 10px,
        #3b82f6 20px
    );
    border-radius: 50px;
}

/* Контактна інформація */
.contact-info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.1), rgba(14, 165, 233, 0.1));
    padding: 2rem;
    border-radius: 15px;
    border: 2px solid #3b82f6;
    margin: 2rem 0;
}

.contact-info h3 {
    color: #1e40af;
    margin-bottom: 1rem;
}

.contact-info p {
    color: #1e3a8a;
    margin-bottom: 0.5rem;
}

/* Галерея */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    aspect-ratio: 16/9;
    background: linear-gradient(45deg, #0ea5e9, #3b82f6);
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(59, 130, 246, 0.2);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* Fallback для зображень, що не завантажилися */
.gallery-item:not(:has(img)) {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    text-align: center;
    padding: 1rem;
}

/* Додаткові стилі для головної сторінки */
.hotel-image img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
    transition: transform 0.3s ease;
}

.hotel-card:hover .hotel-image img {
    transform: scale(1.1);
}

/* Покращені стилі для зображень */
img {
    max-width: 100%;
    max-height: 100vh;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
}

/* Спеціальні стилі для галерей на сторінках готелів */
.content-section .gallery-item {
    min-height: 250px;
    background: linear-gradient(135deg, #e0f2fe 0%, #b3e5fc 100%);
}

.content-section .gallery-item img {
    object-position: center;
    filter: brightness(1.05);
}

/* Адаптивність для мобільних пристроїв */
@media (max-width: 768px) {
    .gallery {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .gallery-item {
        min-height: 200px;
        max-height: 250px;
    }
    
    .gallery-item img,
    .hotel-image img {
        max-width: 100%;
        max-height: 250px;
        object-fit: cover;
    }
    
    img {
        max-width: 100%;
        max-height: 70vh;
    }
}

/* Адаптивність для планшетів */
@media (max-width: 1024px) and (min-width: 769px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.2rem;
    }
    
    .gallery-item {
        max-height: 300px;
    }
    
    .gallery-item img,
    .hotel-image img {
        max-height: 300px;
    }
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.attraction-card {
    padding: 2rem;
    text-align: center;
    text-decoration: none;
    display: block;
}

.footer-links {
    margin-top: 1rem;
}

.footer-links a {
    color: white;
    margin: 0 1rem;
}

/* Відгуки гостей */
.review-card {
    background: #f8fafc;
    padding: 1.5rem;
    border-radius: 10px;
    border-left: 4px solid #3b82f6;
}

/* Центрування кнопки назад */
.back-button-container {
    text-align: center;
    margin: 2rem 0;
}
