/* === Globalt reset og base === */
*, *::before, *::after {
    box-sizing: border-box;
}

html, body {
    background-color: #3b2f2f;
    color: #f5e9dc;
    font-family: 'Merriweather', serif;
    line-height: 1.7;
    height: 100%;
    margin: 0;
    padding-top: 20px;
}

.page-wrapper {
    display: flex;
    flex-direction: column;
    height: 100%;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* === Navbar === */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    background-color: #2c2424;
    border-bottom: 2px solid #b08d57;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}
.navbar a {
    color: #f5e9dc;
    font-weight: bold;
}
.navbar a:hover {
    color: #b08d57;
}

/* === Cards === */
.card {
    background-color: #2c2424;
    border: 1px solid #b08d57;
    color: #f5e9dc;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.4);
}
.card-title {
    font-size: 1.3rem;
    color: #b08d57;
}
.card-text {
    font-size: 1rem;
}
.card .btn {
    background-color: #b08d57;
    color: #2c2424;
    border: none;
    font-weight: bold;
}
.card .btn:hover {
    background-color: #8b6f47;
    color: #f5e9dc;
}

/* === Map === */
.map-container,
#map {
    border: 4px solid #b08d57;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}
#map {
    width: 100%;
    flex: 1;
}

/* === Links === */
a {
    color: #b08d57;
    text-decoration: none;
}
a:hover {
    color: #f5e9dc;
    text-decoration: underline;
}

/* === Headings === */
h1, h2, h3,
.container h2 {
    color: #b08d57;
    font-weight: bold;
}

/* === Dropdown Menu (samlet) === */
.dropdown-menu {
    background-color: #212529;
    color: #f8f9fa;
    border: 1px solid #d4af37;
    min-width: 220px;
    max-height: 70vh;
    overflow-y: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
    padding: 10px;
}
.dropdown-item {
    color: #f8f9fa;
}
.dropdown-item:hover {
    background-color: #3d0000;
    color: #412f1b;
}
.dropdown-menu label {
    display: block;
    color: #f8f9fa;
    margin-bottom: 8px;
    cursor: pointer;
}
.dropdown-menu input[type="checkbox"] {
    margin-right: 6px;
}

/* === Legend + knapper === */
#legend {
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background-color: #2c2424;
    border-bottom: 2px solid #b08d57;
    padding: 1rem;
    z-index: 1050;
    transform: translateY(-100%);
    transition: transform 0.3s ease-in-out;
    visibility: hidden;
    opacity: 0;
}
#legend.show {
    transform: translateY(0);
    visibility: visible;
    opacity: 1;
}
#legend-help-btn,
#filter-dropdown-btn,
.btn.whisky-btn {
    background-color: #b08d57;
    color: #2c2424;
    border: 2px solid #8b6f47;
    font-weight: bold;
    border-radius: 6px;
    padding: 8px 12px;
    transition: all 0.3s ease-in-out;
}
#legend-help-btn:hover,
#filter-dropdown-btn:hover,
.btn.whisky-btn:hover {
    background-color: #8b6f47;
    color: #f5e9dc;
    border-color: #b08d57;
}
#toggle-legend-btn {
    top: 70px;
    right: 15px;
    position: absolute;
    z-index: 1100;
}
.navbar-collapse.show ~ #toggle-legend-btn {
    display: none;
}

/* === Popup & tooltip === */
.popup-container,
.tooltip-container {
    background-color: #2c2424;
    color: #f5e9dc;
    border: 2px solid #b08d57;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    padding: 8px 12px;
}
.popup-container {
    max-width: 300px;
    position: relative;
}
.tooltip-container {
    position: absolute;
    pointer-events: none;
    display: none;
    transform: translate(-50%, -100%);
    font-size: 14px;
    z-index: 1000;
}
.popup-close-btn {
    position: absolute;
    top: 5px;
    right: 5px;
    background-color: #b08d57;
    color: #918e8e;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
}
.popup-close-btn:hover {
    background-color: #8b6f47;
    color: #f5e9dc;
}
.popup-link {
    color: #b08d57;
}
.popup-link:hover {
    color: #f5e9dc;
    text-decoration: underline;
}

/* === Tabeller === */
.table-scroll {
    overflow-x: auto;
    border: 2px solid #b08d57;
    border-radius: 8px;
    position: relative;
    padding: 5px;
}
.scroll-indicator {
    text-align: center;
    margin-bottom: 10px;
    font-size: 14px;
}
.table {
    border-collapse: collapse;
    width: 100%;
    background-color: #2c2424;
    color: #f5e9dc;
}
.table th, .table td {
    padding: 10px;
    border: 1px solid #b08d57;
    text-align: left;
}
.table th {
    background-color: #1f1a1a;
    color: #b08d57;
    font-weight: bold;
}
.table-link {
    color: #b08d57;
}
.table-link:hover {
    color: #f5e9dc;
}

/* === Formularer === */
.form-control,
.form-select {
    background-color: #2c2424;
    color: #f5e9dc;
    border: 1px solid #b08d57;
}
.form-control::placeholder {
    color: #b08d57;
}
.form-control:focus,
.form-select:focus {
    background-color: #2c2424;
    color: #f5e9dc;
    box-shadow: 0 0 0 0.25rem rgba(176, 141, 87, 0.25);
    border-color: #b08d57;
}

/* === Select2 === */
.select2-container .select2-selection--single {
    background-color: #212529;
    color: #fff;
    border: 1px solid #ced4da;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem .75rem;
    border-radius: .375rem;
}
.select2-container--default .select2-selection__rendered {
    color: #fff;
    background-color: transparent;
    line-height: 1.5;
}
.select2-container--default .select2-selection__arrow {
    height: 100%;
    right: 10px;
}
.select2-container--default .select2-dropdown,
.select2-container--default .select2-results__option {
    background-color: #212529;
    color: #fff;
}
.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #495057;
}

/* === Select2 validering === */
.select2-container--default.is-invalid .select2-selection--single {
    border-color: #ff4d4f;
    box-shadow: 0 0 0 0.3rem rgba(255, 77, 79, 0.5);
}

/* === Accordion === */
.accordion-button {
    background-color: #212529;
    color: #d4af37;
    font-size: 1.2rem;
    font-weight: bold;
    border: none;
}
.accordion-button.collapsed,
.accordion-button:not(.collapsed) {
    color: #d4af37;
    background-color: #212529;
}
.accordion-button:focus {
    box-shadow: none;
    border-color: #d4af37;
}

/* === Diverse === */
.dimmed {
    color: #6c757d;
    font-style: italic;
}

/* Gold buttons */
.btn-gold {
    background-color: #d4af37;
    color: #000;
    border: 1px solid #d4af37;
    font-weight: bold;
}
.btn-gold:hover,
.btn-gold:focus {
    background-color: #b08d57;
    color: #fff;
    border-color: #b08d57;
}

.btn-outline-gold {
    color: #d4af37;
    border: 1px solid #d4af37;
    background-color: transparent;
}
.btn-outline-gold:hover,
.btn-outline-gold:focus {
    background-color: #d4af37;
    color: #000;
}

.btn-outline-danger {
    border: 1px solid #dc3545;
    color: #dc3545;
}
.btn-outline-danger:hover {
    background-color: #dc3545;
    color: white;
}

/* === Checkbox tweaks === */
.form-check-input:checked {
    background-color: transparent;
    border-color: #f8c146;
    box-shadow: none;
}
.form-check-input:focus {
    outline: none;
    box-shadow: none;
}

/* === Fjern spinnere === */
input.no-spinner::-webkit-inner-spin-button,
input.no-spinner::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
input.no-spinner {
    -moz-appearance: textfield;
}

/* === Responsive navbar === */
.navbar-collapse {
    overflow: visible;
}
@media (max-width: 991.98px) {
    .navbar-collapse {
        max-height: 80vh;
        overflow-y: auto;
    }
}
.text-faded {
    color: #bbb !important; /* eller fx #ccc eller en farve du synes passer */
}

.custom-toggle-btn {
    background-color: rgba(255, 255, 255, 0.8); /* hvid baggrund, let gennemsigtig */
    border: 1px solid #ccc; /* let grå kant */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3); /* blød skygge */
    z-index: 1000; /* sørg for den altid ligger over kortlag */
    backdrop-filter: blur(4px); /* slør baggrunden en smule (moderne look) */
}

/* Sikrer visning af liste og korrekt padding */
.card-body ul {
    list-style: disc; /* normale bullets */
    padding-left: 1.5rem; /* venstre-indryk */
    margin-bottom: 1rem;
}

.card-body ul ul {
    list-style: circle; /* små cirkler for underpunkter */
    padding-left: 1.5rem; /* ekstra venstre-indryk */
    margin-bottom: 0.5rem;
}

.text-gold {
    color: #b08d57;
}

