/* Kartbeholder */
#bathavn-map {
    width: 100vw;
    height: 100vh;
    margin: 0;
    position: fixed;
    top: 0;
    left: 0;
    border: none;
}

/* Leaflet nullstilling */
.leaflet-popup-content-wrapper {
    background: none;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

.leaflet-popup-tip-container {
    box-shadow: none;
}

.leaflet-popup-tip {
    background: #ffffff;
    box-shadow: none;
    width: 30px;
    height: 15px;
}

.leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

/* Full-popup container */
.bathavn-popup {
    width: 100%;
    max-width: 700px;
    min-width: 600px;
    padding: 14px;
    background: #ffffff;
    font-family: 'Arial', sans-serif;
    color: #333333;
}

/* Responsiv for mobil */
@media (max-width: 768px) {
    .bathavn-popup {
        max-width: 90vw;
        min-width: auto;
        padding: 14px;
    }
}

/* Tittel i full-popup */
.bathavn-popup h3 {
    margin: 0 0 20px 0;
    font-size: 26px;
    font-weight: 700;
    color: #222222;
}

/* Seksjoner spacing */
.bathavn-section {
    margin-bottom: 20px;
}

/* Label */
.bathavn-label {
    font-weight: 600;
    margin-right: 5px;
}

/* Lenker */
.bathavn-popup a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.bathavn-popup a:hover {
    text-decoration: underline;
}

/* Tekst */
.bathavn-popup p {
    font-size: 17px;
    line-height: 1.5;
    margin: 0;
}

/* Video-container */
.bathavn-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    margin-bottom: 25px;
}

.bathavn-video iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.bathavn-video img {
    width: 100% !imgortant;
    height: 100% !important;
}

/* Hover-popup wrapper */
.leaflet-popup.bathavn-hover-popup {
    padding: 0;
    background: #ffffff;
}

.bathavn-hover-popup {
    width: 340px !important;  
    padding: 14px;
    font-family: 'Arial', sans-serif;
    font-size: 16px;
    color: #333333;
    line-height: 1.5;
}

/* Hover-popup inner struktur */
.bathavn-hover-popup-inner h4 {
    margin: 0 0 15px 0;
    font-size: 20px;
    font-weight: 600;
}

.bathavn-section p {
    margin: 0 0 8px 0;
    font-weight: 600;
}

.bathavn-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
}

.bathavn-hover-popup .bathavn-icon {
    font-size: 20px;
    color: #555555;
    margin-right: 0;
}

/* Fast infoboks (valgfritt beholdt) */
.infobox {
    background: #FFFFFF;
    width: 250px;
    height: auto;
    padding: 20px;
    position: fixed;
    top: 200px;
    z-index: 55555;
    left: 70px;
}

.infobox p {
    font-size: 16px;
    margin: 0;
}

.leaflet-container a.leaflet-popup-close-button {
    position: absolute;
    top: -20px;
    right: -20px;
    border: none;
    text-align: center;
    background: #000 !important;
    height: 40px !important;
    width: 40px !important;
    padding: 6px;
    font: 16px / 24px Tahoma, Verdana, sans-serif;
    color: #757575;
    text-decoration: none;
    background: transparent;
    border-radius: 100%;
}

.leaflet-container a.leaflet-popup-close-button span {
    font-size: 26px;
    color: #FFF;
}