/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    z-index: 5000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s;
}

.lightbox-content {
    margin: auto;
    display: block;
    width: auto;
    max-width: 90%;
    max-height: 85vh;
    animation: zoomIn 0.3s;
    transition: opacity 0.3s ease;
}

#caption {
    display: none;
    margin: auto;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
}

.close-lightbox {
    position: absolute;
    top: 25px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
    z-index: 5001;
}

.close-lightbox:hover {
    color: #c5a059;
}

.lb-prev, .lb-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 30px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background: rgba(0,0,0,0.5);
    text-decoration: none;
    z-index: 5001;
}

.lb-next { right: 0; border-radius: 3px 0 0 3px; }
.lb-prev:hover, .lb-next:hover { background-color: #c5a059; }

@keyframes fadeIn {
    from {opacity: 0} 
    to {opacity: 1}
}

@keyframes zoomIn {
    from {transform: scale(0.9)} 
    to {transform: scale(1)}
}

/* Mosaic Grid Styles */
.mosaic-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 350px;
    gap: 20px;
    grid-auto-flow: dense;
}

.mosaic-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background-color: #f0ebe5;
    border-radius: 4px;
    height: 100%;
}

.mosaic-item.reveal-up {
    opacity: 0;
    transform: translateY(100px);
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.5s ease;
}

.mosaic-item.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.mosaic-item:nth-child(1) { transition-delay: 0.05s; }
.mosaic-item:nth-child(2) { transition-delay: 0.1s; }
.mosaic-item:nth-child(3) { transition-delay: 0.15s; }
.mosaic-item:nth-child(4) { transition-delay: 0.2s; }
.mosaic-item:nth-child(5) { transition-delay: 0.25s; }
.mosaic-item:nth-child(6) { transition-delay: 0.3s; }
.mosaic-item:nth-child(7) { transition-delay: 0.35s; }
.mosaic-item:nth-child(8) { transition-delay: 0.4s; }

.mosaic-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.2, 1, 0.3, 1);
}

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

.mosaic-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mosaic-item:hover .mosaic-overlay {
    opacity: 1;
}

.mosaic-overlay i {
    color: #fff;
    font-size: 2.5rem;
    transform: scale(0.8);
    transition: transform 0.4s cubic-bezier(0.2, 1, 0.3, 1);
}

.mosaic-item:hover .mosaic-overlay i {
    transform: scale(1);
}

.mosaic-item.item-large {
    grid-column: span 2;
    grid-row: span 2;
}

.mosaic-item.item-wide {
    grid-column: span 2;
}

@media (max-width: 992px) {
    .mosaic-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 300px;
    }
    .mosaic-item.item-large, .mosaic-item.item-wide {
        grid-column: span 2;
    }
}

@media (max-width: 720px) {
    .home-gallery-section {
        padding: 32px 0 !important;
    }
    .gallery-container {
        max-width: min(100%, 460px) !important;
        margin: 0 auto !important;
        padding: 0 8px !important;
    }
    .mosaic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-rows: clamp(120px, 36vw, 155px) !important;
        gap: 4px !important;
    }
    .mosaic-item.item-large, .mosaic-item.item-wide {
        grid-column: unset !important;
        grid-row: unset !important;
    }
    /* NOVI LAYOUT 2-col × 3-row za 4 slike prema crtežu:
       #1 = col1 row1-2 (velika lijeva visoka)
       #2 = col2 row1 (gornja desna)
       #3 = col2 row2 (srednja desna)
       #4 = col1-2 row3 (široka donja) */
    .mosaic-grid .mosaic-item:nth-child(1) {
        grid-column: 1 / span 1 !important;
        grid-row: 1 / span 2 !important;
    }
    .mosaic-grid .mosaic-item:nth-child(2) {
        grid-column: 2 / span 1 !important;
        grid-row: 1 / span 1 !important;
    }
    .mosaic-grid .mosaic-item:nth-child(3) {
        grid-column: 2 / span 1 !important;
        grid-row: 2 / span 1 !important;
    }
    .mosaic-grid .mosaic-item:nth-child(4) {
        grid-column: 1 / span 2 !important;
        grid-row: 3 / span 1 !important;
    }
    .mosaic-grid .mosaic-item:nth-child(n+5) {
        display: none !important;
    }
    .mosaic-overlay i {
        font-size: 1.4rem !important;
    }
}

@media (max-width: 420px) {
    .gallery-container {
        max-width: 100% !important;
        padding: 0 6px !important;
    }
    .mosaic-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        grid-auto-rows: clamp(125px, 38vw, 160px) !important;
        gap: 3px !important;
    }
    /* Isti layout kao @≤720px za @≤420px (također 4 slike 2-col×3-row) */
    .mosaic-item.item-large, .mosaic-item.item-wide {
        grid-column: unset !important;
        grid-row: unset !important;
    }
    .mosaic-grid .mosaic-item:nth-child(1) {
        grid-column: 1 / span 1 !important;
        grid-row: 1 / span 2 !important;
    }
    .mosaic-grid .mosaic-item:nth-child(2) {
        grid-column: 2 / span 1 !important;
        grid-row: 1 / span 1 !important;
    }
    .mosaic-grid .mosaic-item:nth-child(3) {
        grid-column: 2 / span 1 !important;
        grid-row: 2 / span 1 !important;
    }
    .mosaic-grid .mosaic-item:nth-child(4) {
        grid-column: 1 / span 2 !important;
        grid-row: 3 / span 1 !important;
    }
    .mosaic-grid .mosaic-item:nth-child(n+5) {
        display: none !important;
    }
}

/* Booking Tooltip Styles */
.booking-tooltip {
    display: none;
    position: absolute;
    background: #e74c3c;
    color: white;
    padding: 12px 20px;
    border-radius: 4px;
    font-family: 'Lato', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    z-index: 2000;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    pointer-events: none;
    transform: translate(-50%, -120%);
    white-space: nowrap;
}

.tooltip-arrow {
    position: absolute;
    bottom: -6px;
    left: 50%;
    margin-left: -6px;
    width: 0; 
    height: 0; 
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 6px solid #e74c3c;
}

/* Gallery Page Styles */
.luxury-gallery {
    padding: 80px 20px;
    background-color: #fff;
}
.section-header {
    text-align: center;
    margin-bottom: 50px;
}
.subtitle-gold {
    color: #c5a059;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    display: block;
    margin-bottom: 10px;
}
.title-serif {
    font-family: 'Cinzel', serif;
    font-size: 2.5rem;
    color: #2c3e50;
    margin: 0;
}
.separator-gold {
    width: 60px;
    height: 3px;
    background-color: #c5a059;
    margin: 20px auto 0;
}
/* FAQ Page Styles */
.faq-accordion {
    max-width: 900px;
    margin: 0 auto;
}
.faq-card {
    background: white;
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 25px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}
.faq-card.active {
    box-shadow: 0 10px 35px rgba(197, 160, 89, 0.12);
    border-color: rgba(197, 160, 89, 0.2);
}
.faq-header {
    padding: 28px 35px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    background: #fff;
}
.faq-header h3 {
    margin: 0;
    font-size: 1.15rem;
    font-family: 'Lato', sans-serif;
    font-weight: 700;
    color: #2c3e50;
    padding-right: 20px;
}
.faq-header i {
    color: #c5a059;
    transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem;
}
.faq-card.active .faq-header i {
    transform: rotate(180deg);
}
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.faq-inner {
    padding: 0 35px 35px;
    color: #555;
    line-height: 1.8;
    font-size: 1.05rem;
}
.legal-hero {
    height: 40vh;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    margin-bottom: 60px;
}
.legal-hero .hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(5, 10, 18, 0.6);
}
.legal-hero .hero-content {
    position: relative;
    z-index: 2;
    color: white;
}
.legal-hero h1 {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    margin-bottom: 15px;
    color: #c5a059;
}
@media (max-width: 768px) {
    .legal-hero h1 { font-size: 2.5rem; }
    .faq-header { padding: 20px 25px; }
    .faq-inner { padding: 0 25px 25px; }
}

.booking-ui-container { color: white; }
.calendar-nav { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; }
.calendar-nav h3 { color: #c5a059; font-family: 'Cinzel', serif; margin: 0; font-size: 1.5rem; }
.calendar-nav button { background: none; border: 1px solid #c5a059; color: white; padding: 8px 18px; cursor: pointer; border-radius: 4px; transition: 0.3s; }
.calendar-nav button:hover { background: #c5a059; }
.dual-calendar { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.cal-month table { width: 100%; border-collapse: separate; border-spacing: 4px; }
.cal-month th { color: #888; font-size: 0.8rem; text-transform: uppercase; padding-bottom: 12px; font-weight: normal; }
.cal-month td {
    height: 55px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.07);
    text-align: center;
    cursor: pointer;
    transition: 0.2s all;
    border-radius: 5px;
    position: relative;
}
