/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #fff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
.header {
    background-color: #fff;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
    position: relative;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
}

.header-logo {
    flex: 0 0 auto;
}

.header-logo a {
    text-decoration: none;
}

.logo {
    max-width: 100%;
    height: auto;
    max-height: 60px;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    gap: 4px;
}

.mobile-menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: 0.3s;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* Navigation */
.main-navigation {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.main-navigation.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.nav-list {
    list-style: none;
    margin: 0;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    padding: 12px 16px;
    background-color: #f8f8f8;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s ease;
    display: block;
    text-align: center;
}

.nav-link:hover {
    background-color: #2c5530;
    color: #fff;
    transform: translateY(-1px);
}

/* Home page navigation cards */
.home-navigation {
    padding: 20px 0;
    /* background-color: #f9f9f9; */
}

.nav-cards {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: center;
}

.nav-card {
    position: relative;
    display: block;
    width: 100%;
    max-width: 110px;
    text-decoration: none;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.nav-card:hover {
    transform: translateY(-5px);
}

.nav-image {
    width: 100%;
    height: auto;
    display: block;
}

.nav-text-image {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 85%;
    height: auto;
}

/* Page content styles */
.page-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: left;
}

.page-content h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: #2c5530;
    text-align: center;
}

.page-content h2 {
    font-size: 20px;
    margin-top: 25px;
    margin-bottom: 10px;
    color: #2c5530;
}

.page-content p {
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.6;
    text-align: justify;
}

/* Photo Gallery & Carousel Styles */
.photo-gallery {
    padding: 40px 0;
    /* background-color: #f9f9f9; */
}

.carousel-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    overflow: hidden;
}

.carousel-main {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.carousel-track {
    display: flex;
    height: 100%;
    transition: transform 0.4s ease-in-out;
}

.carousel-slide {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.carousel-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.carousel-image:hover {
    transform: scale(1.02);
}

/* Navigation Buttons */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255,255,255,0.9);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.carousel-btn:hover {
    background-color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: 20px;
}

.carousel-btn-next {
    right: 20px;
}

.carousel-btn svg {
    color: #333;
}

/* Additional spacing for carousel without thumbnails */
.carousel-container {
    max-width: 1000px;
    margin: 0 auto;
    background-color: #fff;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.08);
    overflow: hidden;
}

/* Slide Counter */
.carousel-counter {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background-color: rgba(0,0,0,0.7);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .carousel-main {
        height: 300px;
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn-prev {
        left: 10px;
    }
    
    .carousel-btn-next {
        right: 10px;
    }
    
    .photo-gallery {
        padding: 30px 0;
    }
    
    .carousel-counter {
        bottom: 10px;
        right: 10px;
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Main content */
.main {
    padding: 20px 0;
    flex: 1;
}

.home-content {
    text-align: left;
    max-width: 800px;
    margin: 0 auto;
}

.home-content h1 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2c5530;
}

.home-content p {
    font-size: 16px;
    margin-bottom: 15px;
    line-height: 1.5;
    text-align: justify;
}

/* Footer styles */
.footer {
    background-color: #f8f8f8;
    border-top: 1px solid #ddd;
    padding: 20px 0 10px;
    margin-top: auto;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
    text-align: left;
}

.footer-section {
    flex: 1;
}

.footer-section p {
    margin-bottom: 2px;
    font-size: 12px;
    line-height: 1.3;
}

.footer-section br {
    line-height: 0.3;
}

.footer-section a {
    color: #333;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.links-section {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.media-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: center;
}

.footer-media {
    display: flex;
    flex-direction: row;
    gap: 15px;
    align-items: center;
}

.cadeaubon-image {
    max-width: 100px;
    height: auto;
    margin-top: 5px;
}

.social-icons {
    max-width: 30px;
    width: 30px;
    height: auto;
}

/* Tablet styles */
@media (min-width: 768px) {
    .container {
        padding: 0 40px;
    }
    
    .logo {
        max-height: 80px;
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .main-navigation {
        position: static;
        background-color: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
        width: auto;
        order: 0;
    }
    
    .nav-list {
        display: flex;
        flex-direction: row;
        gap: 20px;
        margin-top: 0;
        padding: 0;
    }
    
    .nav-link {
        background-color: transparent;
        padding: 8px 12px;
        font-size: 14px;
        font-weight: 400;
        text-align: left;
        border-radius: 6px;
    }
    
    .nav-link:hover {
        background-color: #f0f0f0;
        color: #333;
        transform: none;
    }
    
    .nav-cards {
        gap: 25px;
    }
    
    .nav-card {
        max-width: 200px;
    }
    
    .nav-text-image {
        bottom: 12px;
        width: 90%;
    }
    
    .main {
        padding: 30px 0;
    }
    
    .footer-content {
        flex-direction: row;
        text-align: left;
        gap: 20px;
    }
    
    .links-section {
        flex-direction: row;
        gap: 15px;
    }
    
    .media-section {
        align-items: flex-start;
    }
    
    .footer-legal {
        text-align: left;
    }
    
    .footer-section p {
        font-size: 13px;
    }
    
    .home-content h1 {
        font-size: 24px;
    }
    
    .home-content p {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 18px;
    }
    
    .page-content h1 {
        font-size: 32px;
    }
    
    .page-content h2 {
        font-size: 22px;
    }
    
    .page-content p {
        font-size: 18px;
    }
}

/* Desktop styles */
@media (min-width: 1024px) {
    .container {
        max-width: 1200px;
        padding: 0 60px;
    }
    
    .header {
        padding: 20px 0;
    }
    
    .logo {
        max-height: 100px;
    }
    
    .nav-list {
        gap: 30px;
    }
    
    .nav-link {
        font-size: 15px;
        padding: 8px 15px;
    }
    
    .nav-cards {
        gap: 35px;
    }
    
    .nav-card {
        max-width: 250px;
    }
    
    .nav-text-image {
        bottom: 15px;
        width: 95%;
    }
    
    .main {
        padding: 50px 0;
    }
    
    .home-content h1 {
        font-size: 24px;
    }
    
    .home-content p {
        font-size: 15px;
        line-height: 1.7;
        margin-bottom: 20px;
    }
    
    .page-content h1 {
        font-size: 24px;
    }
    
    .page-content h2 {
        font-size: 19px;
    }
    
    .page-content p {
        font-size: 15px;
        line-height: 1.7;
    }
    
    .footer {
        padding: 30px 0 15px;
    }
    
    .footer-section p {
        font-size: 14px;
    }
    
    .cadeaubon-image {
        max-width: 140px;
    }
    
    .social-icons {
        max-width: 70px;
    }
    
    .links-section {
        flex-direction: row;
        gap: 25px;
    }
    
    .media-section {
        align-items: flex-start;
    }
}

/* Lightbox Modal Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.lightbox-overlay.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}

.lightbox-content {
    max-width: calc(100vw - 80px);
    max-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
}

.lightbox-image {
    max-width: 100%;
    max-height: calc(100% - 60px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    cursor: default;
}

.lightbox-title {
    color: #fff;
    font-size: 18px;
    font-weight: 500;
    text-align: center;
    max-width: 600px;
    background-color: rgba(0, 0, 0, 0.7);
    padding: 12px 20px;
    border-radius: 8px;
    backdrop-filter: blur(10px);
    line-height: 1.4;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10002;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-close svg {
    color: #fff;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(255, 255, 255, 0.1);
    border: none;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav svg {
    color: #fff;
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-counter {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
    z-index: 10001;
}

/* Mobile Lightbox Responsive */
@media (max-width: 768px) {
    .lightbox-container {
        padding: 20px;
    }
    
    .lightbox-content {
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 40px);
    }
    
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 40px;
        height: 40px;
    }
    
    .lightbox-nav {
        width: 50px;
        height: 50px;
    }
    
    .lightbox-prev {
        left: 10px;
    }
    
    .lightbox-next {
        right: 10px;
    }
    
    .lightbox-counter {
        top: 10px;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .lightbox-title {
        font-size: 16px;
        max-width: 90%;
        padding: 10px 16px;
    }
    
    .lightbox-content {
        max-width: calc(100vw - 40px);
        max-height: calc(100vh - 40px);
        gap: 15px;
    }
}

/* Webcam page styles */
.webcam-page {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
}

.webcam-header {
    margin-bottom: 2rem;
    text-align: center;
}

.webcam-header h1 {
    font-size: 1.5rem;
    margin: 0;
    color: #2c3e50;
}

.status-open {
    color: #27ae60;
    font-weight: bold;
}

.status-closed {
    color: #e74c3c;
    font-weight: bold;
}

.status-opens-later {
    color: #f39c12;
    font-weight: bold;
}

.status-season-closed {
    color: #95a5a6;
    font-weight: bold;
}

.status-closure-period {
    color: #8e44ad;
    font-weight: bold;
}

.webcam-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.webcam-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.opening-webcam-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2rem;
}

.opening-info {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.opening-info p {
    margin: 0 0 1rem 0;
    line-height: 1.6;
}

.opening-info p:last-child {
    margin-bottom: 0;
}

.webcam-container {
    background-color: #fff;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.webcam-container h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.video-wrapper {
    position: relative;
    width: 100%;
    background-color: #000;
    border-radius: 8px;
    overflow: hidden;
}

.clickable-webcam {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.clickable-webcam:hover {
    transform: scale(1.02);
}

.webcam-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 1rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.clickable-webcam:hover .webcam-overlay {
    opacity: 1;
}

.webcam-overlay span {
    font-size: 0.9rem;
    font-weight: bold;
}

#webcam-video {
    width: 100%;
    height: auto;
    max-height: 400px;
    display: block;
}

.webcam-offline {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #2c3e50;
    color: white;
    padding: 3rem 1rem;
    text-align: center;
    min-height: 200px;
}

.webcam-offline p {
    margin: 0.5rem 0;
}

.order-info {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.order-info p {
    margin: 0;
}

.order-link {
    color: #3498db;
    text-decoration: underline;
    font-weight: bold;
}

.order-link:hover {
    color: #2980b9;
}

.address-section {
    background-color: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
}

.address-section h3 {
    margin: 0 0 1rem 0;
    color: #2c3e50;
    font-size: 1.2rem;
}

.address-section address {
    font-style: normal;
    line-height: 1.6;
    color: #555;
}

.map-container {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.map-container iframe {
    width: 100%;
    height: 300px;
    border: 0;
}

/* Desktop styles for webcam page */
@media (min-width: 768px) {
    .webcam-header h1 {
        font-size: 2rem;
    }
    
    .opening-webcam-section {
        display: grid;
        grid-template-columns: 1fr 400px;
        gap: 2rem;
        align-items: start;
    }
    
    .webcam-container {
        position: sticky;
        top: 2rem;
    }
    
    .map-container iframe {
        height: 400px;
    }
    
    #webcam-video {
        max-height: 300px;
    }
}

@media (min-width: 1024px) {
    .webcam-page {
        padding: 2rem;
    }
    
    .opening-webcam-section {
        grid-template-columns: 1fr 450px;
        gap: 3rem;
    }
}

/* Full-width webcam page styles */
.fullwidth-webcam {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1rem;
    background-color: #000;
    border-radius: 8px;
}

.fullwidth-video-wrapper {
    position: relative;
    width: 100%;
    height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
}

#fullwidth-webcam-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fullwidth-webcam-offline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: #2c3e50;
    color: white;
    text-align: center;
}

.fullwidth-webcam-offline p {
    margin: 0.5rem 0;
    font-size: 1.2rem;
}

/* Adjust main layout for fullwidth webcam */
.fullwidth-webcam ~ .footer {
    margin-top: 0;
} 