/**
 * Egendefinert styling for La Zenia-informasjonssiden.
 * Komplementerer Bootstrap 5.
 */

:root {
    --lz-primary: #0d6efd;
    --lz-bg: #f0f4f8;
    --lz-card-radius: 0.75rem;
}

/* --- Generelt --- */

body {
    background-color: var(--lz-bg);
    color: #333;
    line-height: 1.7;
}

/* --- Innloggingsside --- */

.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #0d6efd 0%, #0a58ca 50%, #084298 100%);
}

.login-card {
    border: none;
    border-radius: var(--lz-card-radius);
}

/* --- Hovedside --- */

.page-content {
    padding-top: 5.5rem;
    padding-bottom: 2rem;
}

.section-card {
    border: none;
    border-radius: var(--lz-card-radius);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.section-card h2,
.section-card h3 {
    color: #1a1a2e;
}

/* Punktliste med ikon-stil */
.feature-list li {
    padding: 0.2rem 0 0.2rem 1.4rem;
    position: relative;
}

.feature-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--lz-primary);
    font-weight: bold;
}

/* --- Kart --- */

.map-embed {
    border-radius: 0.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.map-embed iframe {
    border: 0;
}

/* --- Bildegalleri --- */

.gallery-thumb {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0.375rem;
    cursor: zoom-in;
}

.gallery-img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    pointer-events: none;
}

.gallery-thumb:hover .gallery-img {
    transform: scale(1.03);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-modal-content {
    background: rgba(0, 0, 0, 0.92);
    border: none;
}

.gallery-modal-img {
    max-height: 85vh;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 0.25rem;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 2.75rem;
    height: 2.75rem;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s ease;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.gallery-prev {
    left: 0.5rem;
}

.gallery-next {
    right: 0.5rem;
}

@media (max-width: 575.98px) {
    .gallery-nav {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.25rem;
    }
}

/* --- Informasjonsblokker --- */

.info-block {
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
}

.info-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-img {
    max-width: 500px;
}

.rules-list li {
    margin-bottom: 0.5rem;
}

/* --- Kontakt --- */

.contact-card {
    background-color: #e8f0fe;
    border-left: 4px solid var(--lz-primary);
}

.contact-card a {
    color: var(--lz-primary);
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* --- Footer --- */

.site-footer {
    background-color: #fff;
    border-top: 1px solid #dee2e6;
}

/* --- Navbar --- */

.navbar-brand {
    letter-spacing: 0.02em;
}

/* --- Responsivt --- */

@media (max-width: 991.98px) {
    .page-content {
        padding-top: 4.5rem;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0;
    }
}

@media (max-width: 575.98px) {
    .section-card .card-body {
        padding: 1.25rem !important;
    }

    .gallery-img {
        aspect-ratio: 1 / 1;
    }
}

/* Glatt scrolling for ankernavigasjon */
html {
    scroll-behavior: smooth;
    scroll-padding-top: 5rem;
}
