/* Custom CSS for OneDoor WebGIS */
/* Add your custom styles here */

.mdi-swords::before {
    content: "\e531" !important;
}

/* Reducer højden på mørkeblåt top header - AGRESSIVE METODER */
.top-header,
.top-header--front {
    padding-top: 4px !important;
    padding-bottom: 4px !important;
    min-height: auto !important;
    height: auto !important;
    max-height: 75px !important; /* Begræns højden direkte (65px + 10px) */
    overflow: visible !important; /* Vigtigt - ikke hidden */
}

/* Reducer højden på navbar - MERE AGRESSIVT */
.navbar,
.navbar--front {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    min-height: auto !important;
    height: auto !important;
    max-height: 70px !important; /* 60px + 10px */
}

/* Reducer højden på container inde i navbar */
.navbar .container {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
    min-height: auto !important;
    max-height: 65px !important; /* 55px + 10px */
}

/* Reducer højden på h1 teksten - MEGET AGRESSIVT */
.top-header h1,
.top-header--front h1,
.navbar h1,
.navbar--front h1 {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-bottom: 4px !important; /* Meget lille padding */
    line-height: 1.1 !important; /* Meget tæt linjeafstand */
    font-size: 0.95em !important; /* Mindre font */
    max-height: 25px !important; /* Begræns h1 højden direkte */
    overflow: visible !important;
}

/* Reducer logo størrelse - men sørg for det er synligt og ikke strukket */
.navbar__logo {
    max-height: 45px !important;
    height: auto !important;
    min-height: 30px !important; /* Sikre minimum størrelse */
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
}

.navbar__logo svg {
    max-height: 45px !important;
    max-width: 200px !important; /* Begræns bredden */
    width: auto !important;
    height: auto !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    /* Bevar aspect ratio - forhindre stretching */
    preserveAspectRatio: "xMidYMid meet" !important;
    object-fit: contain !important;
}

.navbar__logo a {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: auto !important;
    height: auto !important;
}

/* Forhindre at logoet bliver strukket */
.navbar__logo img,
.navbar__logo svg {
    object-fit: contain !important;
    object-position: left center !important;
}

/* Reducer search-wrap højde */
.search-wrap {
    margin-top: 4px !important;
    margin-bottom: 0 !important;
}

/* Fjern al ekstra margin/padding på alle elementer i header */
.top-header *,
.top-header--front * {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}

.top-header .container,
.top-header--front .container {
    padding-top: 2px !important;
    padding-bottom: 2px !important;
}