/* Page Module Styles */

/* Module-specific content styling */
.module-content {
    padding: 2rem 0;
}

/* Homepage Module */
.homepage-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4rem 2rem;
    text-align: center;
    border-radius: 12px;
    margin: 2rem 0;
}

.homepage-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.homepage-hero p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.homepage-hero .button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.homepage-hero .button:hover {
    background: white;
    color: #667eea;
    transform: translateY(-2px);
}

/* Contacts Module */
.contacts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin: 2rem 0;
    position: relative;
    z-index: 2;
}

.contact-item {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.contact-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.98);
}

.contact-item i {
    font-size: 2.5rem;
    color: #667eea;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.contact-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
}

.contact-item p {
    color: #666;
    line-height: 1.6;
}

.contact-item a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.contact-item a:hover {
    text-decoration: underline;
}

/* Contact Video Background */
.contact-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
    border-radius: 12px;
}

.contact-video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
    border-radius: 12px;
}

.contact-video-bg .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
    z-index: 1;
    border-radius: 12px;
}

/* Ensure content is above video */
.wrapper.style2.special .inner {
    position: relative;
    z-index: 2;
}

/* Gallery Module */
.gallery-module {
    margin: 2rem 0;
}

.gallery-module h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    text-align: center;
    color: #333;
}

/* Gallery Grid Layout */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 1rem;
    font-size: 0.9rem;
    text-align: center;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

/* Gallery Masonry Layout */
.gallery-masonry {
    columns: 3;
    column-gap: 1rem;
    margin: 1rem 0;
}

.gallery-masonry .gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

.gallery-masonry .gallery-item img {
    height: auto;
}

/* Gallery Carousel Layout */
.gallery-carousel {
    display: flex;
    overflow-x: auto;
    gap: 1rem;
    padding: 1rem 0;
    scroll-snap-type: x mandatory;
}

.gallery-carousel .gallery-item {
    flex: 0 0 300px;
    scroll-snap-align: start;
}

.gallery-carousel::-webkit-scrollbar {
    height: 8px;
}

.gallery-carousel::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.gallery-carousel::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

/* Privacy Policy Module */
.privacy-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.privacy-content h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 2rem 0 1rem 0;
    color: #333;
}

.privacy-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 1.5rem 0 0.75rem 0;
    color: #444;
}

.privacy-content p {
    margin-bottom: 1rem;
    color: #666;
}

.privacy-content ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.privacy-content li {
    margin-bottom: 0.5rem;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .homepage-hero h1 {
        font-size: 2rem;
    }
    
    .homepage-hero p {
        font-size: 1rem;
    }
    
    .contacts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 0.75rem;
    }
    
    .gallery-masonry {
        columns: 2;
    }
    
    .gallery-carousel .gallery-item {
        flex: 0 0 250px;
    }
}

@media (max-width: 480px) {
    .gallery-masonry {
        columns: 1;
    }
    
    .gallery-carousel .gallery-item {
        flex: 0 0 200px;
    }
}

/* Amenities Module */
.amenities-module .spotlight .image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.amenities-module .spotlight .image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
}

.amenities-module .spotlight .image::before {
    content: '';
    display: block;
    width: 100%;
    padding-top: 68.75%; /* 16:11 aspect ratio (width:height = 16:11 = 68.75% padding for landscape) */
}

.amenities-module .spotlight .image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
    transition: transform 0.6s ease;
}

.amenities-module .spotlight .image:hover img {
    transform: scale(1.1);
}

/* Apply amenities styling to amenities page type */
.wrapper:has(.spotlight[id*="amenities"]) .spotlight .image,
.wrapper:has(.spotlight[id*="sauna"]) .spotlight .image,
.wrapper:has(.spotlight[id*="fire"]) .spotlight .image,
.wrapper:has(.spotlight[id*="river"]) .spotlight .image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.wrapper:has(.spotlight[id*="amenities"]) .spotlight .image:hover,
.wrapper:has(.spotlight[id*="sauna"]) .spotlight .image:hover,
.wrapper:has(.spotlight[id*="fire"]) .spotlight .image:hover,
.wrapper:has(.spotlight[id*="river"]) .spotlight .image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
}

.wrapper:has(.spotlight[id*="amenities"]) .spotlight .image::before,
.wrapper:has(.spotlight[id*="sauna"]) .spotlight .image::before,
.wrapper:has(.spotlight[id*="fire"]) .spotlight .image::before,
.wrapper:has(.spotlight[id*="river"]) .spotlight .image::before {
    content: '';
    display: block;
    width: 100%;
    padding-top: 68.75%; /* 16:11 aspect ratio (width:height = 16:11 = 68.75% padding for landscape) */
}

.wrapper:has(.spotlight[id*="amenities"]) .spotlight .image img,
.wrapper:has(.spotlight[id*="sauna"]) .spotlight .image img,
.wrapper:has(.spotlight[id*="fire"]) .spotlight .image img,
.wrapper:has(.spotlight[id*="river"]) .spotlight .image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
    transition: transform 0.6s ease;
}

.wrapper:has(.spotlight[id*="amenities"]) .spotlight .image:hover img,
.wrapper:has(.spotlight[id*="sauna"]) .spotlight .image:hover img,
.wrapper:has(.spotlight[id*="fire"]) .spotlight .image:hover img,
.wrapper:has(.spotlight[id*="river"]) .spotlight .image:hover img {
    transform: scale(1.1);
}

/* Alternative approach using data attribute or class */
.amenities-page .spotlight .image {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.amenities-page .spotlight .image:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
}

.amenities-page .spotlight .image::before {
    content: '';
    display: block;
    width: 100%;
    padding-top: 68.75%; /* 16:11 aspect ratio (width:height = 16:11 = 68.75% padding for landscape) */
}

.amenities-page .spotlight .image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 15px;
    transition: transform 0.6s ease;
}

.amenities-page .spotlight .image:hover img {
    transform: scale(1.1);
}

/* Responsive adjustments for amenities */
@media (max-width: 768px) {
    .amenities-module .spotlight .image,
    .amenities-page .spotlight .image {
        border-radius: 12px;
        margin-bottom: 1.5rem;
    }
    
    .amenities-module .spotlight .image img,
    .amenities-page .spotlight .image img {
        border-radius: 12px;
    }
}

@media (max-width: 480px) {
    .amenities-module .spotlight .image,
    .amenities-page .spotlight .image {
        border-radius: 8px;
    }
    
    .amenities-module .spotlight .image img,
    .amenities-page .spotlight .image img {
        border-radius: 8px;
    }
}

/* Spotlight Explicit Positioning for Amenities */
.amenities-page .spotlight.left {
    flex-direction: row-reverse; /* Default - image on left, content on right */
}

.amenities-page .spotlight.left .image {
    margin: 0 0 0 2em; /* Default margin for left position */
}

.amenities-page .spotlight.left .content {
    margin: 0 2em 0 0; /* Default margin for left position */
}

.amenities-page .spotlight.right {
    flex-direction: row; /* Image on right, content on left */
}

.amenities-page .spotlight.right .image {
    margin: 0 2em 0 0; /* Margin for right position */
}

.amenities-page .spotlight.right .content {
    margin: 0 0 0 2em; /* Margin for right position */
}

/* Responsive adjustments for spotlight positioning */
@media screen and (max-width: 1280px) {
    .amenities-page .spotlight.left .image {
        margin: 0 0 0 1.5em;
    }
    
    .amenities-page .spotlight.left .content {
        margin: 0 1.5em 0 0;
    }
    
    .amenities-page .spotlight.right .image {
        margin: 0 1.5em 0 0;
    }
    
    .amenities-page .spotlight.right .content {
        margin: 0 0 0 1.5em;
    }
}

@media screen and (max-width: 980px) {
    .amenities-page .spotlight.left,
    .amenities-page .spotlight.right {
        display: block;
    }
    
    .amenities-page .spotlight.left .image,
    .amenities-page .spotlight.right .image {
        margin: 0 0 2em 0;
    }
    
    .amenities-page .spotlight.left .content,
    .amenities-page .spotlight.right .content {
        margin: 0;
    }
}

/* Booking Module */
.booking-module {
    position: relative;
    z-index: 2;
}

.booking-module .actions.special {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    align-items: center;
}

.booking-module .button.big {
    display: inline-flex;
    align-items: center;
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 8px;
    transition: all 0.3s ease;
    min-width: 180px;
    justify-content: center;
}

.booking-module .button.big:first-child {
    background: #003580;
    color: white;
    border: 2px solid #003580;
}

.booking-module .button.big:first-child:hover {
    background: #002d6b;
    border-color: #002d6b;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 53, 128, 0.3);
}

.booking-module .button.big:last-child {
    background: #FF5A5F;
    color: white;
    border: 2px solid #FF5A5F;
}

.booking-module .button.big:last-child:hover {
    background: #E04046;
    border-color: #E04046;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 90, 95, 0.3);
}

.booking-module .button.big i {
    margin-right: 0.5rem;
    font-size: 1.2rem;
}

/* Booking Video Background */
.booking-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.booking-video-bg video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    object-fit: cover;
}

.booking-video-bg .video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 53, 128, 0.7) 0%, rgba(255, 90, 95, 0.7) 100%);
    z-index: 1;
}

/* Responsive Design for Booking */
@media (max-width: 768px) {
    .booking-module .actions.special {
        flex-direction: column;
        gap: 1rem;
    }
    
    .booking-module .button.big {
        width: 100%;
        max-width: 280px;
    }
}
