/* IMPORTS                                                        */
/* -------------------------------------------------------------- */

@import url("widget.css");
@import url("typography.css");
@import url("templates.css");
@import url("print.css");

/* GENEREL                                                        */
/* -------------------------------------------------------------- */

:root {
  --dark: #302A38;
  --red: #69271F;
  --orange: #f16e4b;
  --green: #47bf80;
  --blue: #17598a;
  --light-0: #FFFFFF;
  --light-1: #F8F8F5;
  --light-2: #EEEEE7;
  --light-3: #B0B0A5;
  --light-4: #EEEEE7;
  --text-color: #767676;
  --border-color: var(--light-2);
  --box-shadow: 
      0 0 0 0.0625rem #0e3f7e0a, 
      0 0.0625rem 0.0625rem -0.03125rem #2a33450a, 
      0 0.1875rem 0.1875rem -0.09375rem #2a33460a, 
      0 0.375rem 0.375rem -0.1875rem #2a33460a, 
      0 0.75rem 0.75rem -0.375rem #0e3f7e0a, 
      0 1.5rem 1.5rem -0.75rem #0e3f7e0a;
  --font-size: 0.875rem;
  --font-size-sm: 0.75rem;
  --font-size-xs: 0.725rem;
  --icon-size: 1.125rem;
  --spacer: 1rem;
  --spacer-xs: 0.25rem;
  --spacer-sm: 0.5rem;
  --spacer-md: 1rem;
  --spacer-lg: 1.5rem;
  --spacer-xl: 2rem;
  --spacer-xxl: 2.5rem;
  --spacer-xxxl: 3rem;
  --spacer-xxxxl: 4rem;
  --header-height: 6.25rem;
  --panel-border-radius: 1.25rem;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: var(--sw-font-family);
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  padding: 0;
  font-size: var(--font-size);
  line-height: 1.33;
  background-color: var(--light-2);
  color: var(--dark);
}

/* ICONS
/* -------------------------------------------------------------- */

.mdi::before, .mdi-icon {
  font-size: var(--icon-size);
  width: var(--icon-size);
  height: var(--icon-size);;
}

.icon {
  width: 1.375rem;
  height: 1.375rem;
}

.icon-sm {
  width: 1.25rem;
  height: 1.25rem;
}

/* SCROLLBAR
/* -------------------------------------------------------------- */

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-thumb {
    border: 3px solid transparent;
    background-clip: padding-box;
    background-color: var(--light-2);
    border-radius: 1rem;
    height: 60px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: var(--light-3);
    cursor: pointer;
}

::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 0 0 1rem 0;
}

 ::-webkit-scrollbar-button {
    display: none
}

/* FULLSCREEN
-------------------------------------------------------------- */

.de-anbragtes-danmarkskort:fullscreen main {
  padding: 2%;
}

.de-anbragtes-danmarkskort:fullscreen:fullscreen header {
  display: none;
}

.de-anbragtes-danmarkskort::backdrop {
  background: transparent;
  position: static;
  inset: auto; 
}

:fullscreen ::backdrop {
  background-color: transparent !important;
}

/* SVG
-------------------------------------------------------------- */

svg {
  flex-shrink: 0;
}

/* BADGE
-------------------------------------------------------------- */

.badge-primary {
  color: var(--red);
  flex-shrink: 0;
}

.badge-secondary {
  color: var(--text-color);
  flex-shrink: 0;
}

.badge-content-warning {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
}

/* BUTTON
-------------------------------------------------------------- */

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  border: 2px solid transparent;
  font-size: var(--font-size);
  padding: 0.5rem 0.75rem;
  color: inherit;
  background-color: transparent;
  transition: all .2s ease-in-out;
  -webkit-appearance: none;

  &:active {
    transform: scale(0.96);
  }
}

.btn-primary {
  background-color: var(--dark);
  color: var(--light-0);
  border-radius: 0.325rem;

  &:active {
    background-color: var(--dark);
    transform: scale(0.96);
  }
}

.btn-primary-outline {
  background-color: transparent;
  border: 2px solid var(--dark);
  color: var(--dark);
  border-radius: 0.325rem;
}

.btn-secondary {
  background-color: var(--light-0);
  border: 2px solid transparent;
  color: var(--dark);
  border-radius: 0.325rem;

  &:hover, &:focus-visible {
    border: 2px solid var(--dark);
    color: var(--dark);
  }

  .btn-icon-pressed,
  .btn-text-pressed {
    display: none;
  }

  &.favorite-checked {
    background-color: var(--light-1);
    color: var(--red);
    border: 1px solid var(--light-2);
    
    .btn-icon,
    .btn-text {
      display: none;
    }

    .btn-icon-pressed,
    .btn-text-pressed {
      display: flex;
    }
  }
}

.btn-icon {
  display: flex;
}

/* CONTENT                                                        
/* -------------------------------------------------------------- */

.de-anbragtes-danmarkskort {
  height: 100dvh;
  display: flex;
  flex-direction: column;

  &:has(header) {
    main {
      padding-top: 0;
    }
  }
}

/* LOGO
-------------------------------------------------------------- */

.logo {
  display: flex;
  align-items: flex-end;
  gap: 1rem;

  img {
    width: 120px;
    opacity: 0.5;
  }
}

.logo a {
  line-height: 0;
}

.logo span {
  color: var(--red);
  font-size: small;
  line-height: 1;
}

/* HEADER
-------------------------------------------------------------- */

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem 3rem;
}

/* NAVIGATION
/* -------------------------------------------------------------- */

.main-nav {
    display: flex;
    gap: 1rem;

    a {
      color: var(--dark);
      padding: 0.325rem 1rem;
      border-radius: 2rem;

      &.active {
        color: var(--dark);
      }

      &.inactive {
        text-decoration: line-through;
        cursor: not-allowed;
      }
    }
  }

  .btn-menu-toggle {
    display: none;
    background: transparent;
    padding: 0.75rem;
    border: none;
    cursor: pointer;
  }

.skip-nav {
  position: absolute;
  top: -10rem;
  left: 50%;
  z-index: 1000;
  transform: translateX(-50%);
  color: #fff;
  border-radius: 0 0 1rem 1rem;
  padding: 0.5rem 1rem;
  display: flex;
  transition: top 0.2s;
  
  &:focus-within {
    top: 1rem;
  }
  
  a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--dark);

    .mdi-icon {
      font-size: 1.325rem;
    }
  }
  
  a:focus, a:focus-visible {
    border-radius: 2rem;
  }
}

/* MAIN
-------------------------------------------------------------- */

main {
  display: flex;
  flex: 1;
  gap: 1.5rem;
  overflow: auto;
  transition: all .3s ease-in-out;
  padding: 2rem;
  position: relative;
}

/* MAP
-------------------------------------------------------------- */

.map-controls {
  display: flex;
  flex-direction: row;
  align-items: start;
  padding: var(--spacer-xl) var(--spacer-xl);
  gap: var(--spacer-lg);
  position: absolute;
  z-index: 1;
  top: 0;
  left: 0;
  right: auto;
}

/* DROPDOWN
-------------------------------------------------------------- */

.dropdown {
  position: relative;
}

.btn-dropdown {
  position-anchor: --dropdown;
  background-color: var(--light-0);
  border-radius: 2rem;
  border: none;
  box-shadow: var(--sw-box-shadow);
  padding-right: 3rem;
  outline: 0.325rem solid rgb(48 42 56 / 4%);
    &::after {
    content: "";
    display: flex;
    width: 1.5rem;
    height: 1.5rem;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="%231f1f1f"><path d="M480-361q-8 0-15-2.5t-13-8.5L268-556q-11-11-11-28t11-28q11-11 28-11t28 11l156 156 156-156q11-11 28-11t28 11q11 11 11 28t-11 28L508-372q-6 6-13 8.5t-15 2.5Z"/></svg>');
    background-size: 100%;
    position: absolute;
    right: 1rem;
  }
  
  &:focus, &:focus-visible, &:focus-within {
    outline: 0.15rem solid var(--dark);
  }
}

.dropdown-list {
  background-color: #fff;
  margin: 1rem 0 0 0;
  inset: auto;
  box-shadow: var(--sw-box-shadow);
  border: none;
  border-radius: 0.75rem;
  outline: 0.325rem solid rgb(48 42 56 / 4%);
  position-area: block-end span-inline-end;
  position-try-fallbacks: flip-block, flip-inline;
  position-visibility: anchor-visiblity;
  
  .dropdown-list-item {
    width: 420px;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;

    &:hover {
      background-color: var(--subtle);
      border-radius: .2em;
      cursor: pointer;
    }

    .dropdown-list-item-title {
      margin: 0 0 0.25rem 0;
    }
  }
}

/* PANEL
-------------------------------------------------------------- */

.panel {
  width: 26rem;
  max-height: 100dvh;
  flex: 0 1 26rem;
  display: flex;
  flex-direction: column;
  background-color: var(--light-0);
  border-radius: var(--panel-border-radius);
  transition: max-height 0.5s ease;
  position: relative;
  box-shadow: var(--sw-box-shadow);

  .panel-header {
    display: flex;
    flex-direction: column;
    padding: var(--spacer-xxl) var(--spacer-xxl) var(--spacer-xl);
    gap: 0.325rem;
    text-align: center;

    h2 {
      color: var(--red);
    }
  }

  .panel-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
    border-radius: 0 0 var(--panel-border-radius) var(--panel-border-radius);
    border-top: 1px solid var(--light-2);
    position: relative;
  }

  .panel-bottom {
    width: 100%; 
    height: 4rem; 
    position: absolute;
    bottom: 0; 
    z-index: 100;
    background-color: rgb(255,255,255); 
    background: linear-gradient(-180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0.8) 96%);
    border-radius: var(--panel-border-radius);
    pointer-events: none;
  }
}

.btn-open-panel, 
.btn-close-panel {
  display: none;
  background-color: var(--light-0);
  box-shadow: var(--box-shadow);
  border-radius: 2rem;
  padding: 0.5rem 1.25rem;
  border: none;
}

/* MAP
-------------------------------------------------------------- */

.map {
  flex: 1 0 auto;
  position: relative;
}

.widget-container.widget-contains-map {
  border-radius: 1.25rem;
  box-shadow: var(--box-shadow);
}

/* FACTS
-------------------------------------------------------------- */

.facts {
  display: flex;
  gap: 1.5rem;
  
  .fact {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    border-radius: 0.5rem;
  }
}

/* GROUP
-------------------------------------------------------------- */

.group {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.groupbox {
  .groupbox-header {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
  }

  .groupbox-header-title {}

  .groupbox-header-subtitle {
    color: var(--dark);
    font-size: var(--font-size-sm);
  }

  .accordion {
    details {
      background-color: unset;
      border: 1px solid var(--light-2);
    }
  }
}

/* ACCORDIONS
-------------------------------------------------------------- */
  
.accordions {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.accordion {
  details {
    border-radius: 0.5rem;
    background-color: var(--light-1);

    summary {
      display: flex;
      align-items: center;
      gap: 0.75rem;
      padding: var(--spacer) var(--spacer-xxxl) var(--spacer) var(--spacer);
      position: relative;
      cursor: pointer;
      user-select: none;

      &::marker {
        content: "";
      }
        
      &::-webkit-details-marker {
        display: none;
      }

      &::after {
        content: "";
        display: flex;
        width: 1.5rem;
        height: 1.5rem;
        background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" height="24px" viewBox="0 -960 960 960" width="24px" fill="%231f1f1f"><path d="M480-361q-8 0-15-2.5t-13-8.5L268-556q-11-11-11-28t11-28q11-11 28-11t28 11l156 156 156-156q11-11 28-11t28 11q11 11 11 28t-11 28L508-372q-6 6-13 8.5t-15 2.5Z"/></svg>');
        background-size: 100%;
        position: absolute;
        right: 1rem;
      }

      &:hover {
        border-radius: 0.5rem;
        background-color: var(--light-2); 
      }
    }

    &[open] {
      border-radius: 0.5rem;
      background-color: var(--light-1);
      border: 1px solid var(--border-color);
      
      summary {
        border-radius: 0.5rem 0.5rem 0 0;
        background-color: var(--light-2);
        &::after {
          transform: rotate(180deg);
        }
      }
    }
  }
}

.accordion-header {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.accordion-content {
  padding: 1rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* SELECTBOX
-------------------------------------------------------------- */

.selectbox {
  display: flex;
  flex-direction: column;

  .selectbox-header {
    display: flex;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: var(--light-2);
    border-radius: 0.5rem;

    span {
      font-weight: 600;
      font-size: var(--font-size-xs);
      color: var(--text-color);
    }
  }

  .selectbox-item {
    display: flex;
    gap: 1rem;
    align-items: center;
    padding: 0.75rem 0.75rem;
    border-bottom: 1px solid var(--light-2);

    .selectbox-item-title {
      display: flex;
      align-items: center;
      gap: 1rem;
      flex: 1;
      text-wrap: balance;

      @media (max-width: 768px) {
        flex-direction: column;
        gap: 0.125rem;
        align-items: flex-start;
        text-wrap: unset;
        word-break: break-word;
        hyphens: auto;
      }
    }
    
    &:last-of-type {
      border-bottom: none;
    }
  }

  .selectbox-checkbox {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    cursor: pointer;
    font-size: var(--font-size-sm);
    padding: 0.5rem;
    border-radius: 0.325rem;

    &:has(input[type=checkbox]:hover),
    &:has(input[type=checkbox]:focus-visible) {
      outline: 0.15rem solid var(--dark);
    }

    &:has(input[type=checkbox]:checked) {
      outline: 0.15rem solid var(--dark);
    }
  }

  .selectbox-content {
    padding: 1rem 2rem 2rem;
    display: xnone;
  }

  input[type=checkbox] {
    width: 1rem;
    height: 1rem;
    background-color: var(--light-0);
    border: 1px solid var(--light-3);
    border-radius: 0.25rem;
    cursor: pointer;
    appearance: none;
    margin: 0;
    padding: 0;
    transition: all .1s ease-in-out;
    position: relative;
    
    &:hover, &:focus-visible {
        outline: 0;
        box-shadow: 0 0 0 .15em #0002
    }

    &:checked {
        background-color: var(--dark);
        border-color: var(--dark);
    }
    &:checked:after {
        content: "";
        box-sizing: content-box;
        border: 2px solid #fff;
        border-width: 0 2px 2px 0;
        width: 3px;
        height: 6px;
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%,-65%)rotate(45deg)
    }
  }
}

/* DATALIST / DIFINITION LIST
-------------------------------------------------------------- */

.datalist {
  display: flex;
  flex-direction: column;
  gap: 1rem;

  .datalist-title {
    color: var(--dark);
  }
}

.datalist:has(.datalist-title) {
  dl {
    padding-left: 1rem;
  }
}
 
dl {
  display: grid;
  grid-template-columns: minmax(6rem, auto) 1fr;
  row-gap: 0.325rem;
  column-gap: 1rem;

  @media (max-width: 768px) {
    grid-template-columns: auto;
  }
  
  a:hover {
    text-decoration: underline;
  }
}

dt {
  color: var(--text-color);
  font-weight: 600;
  font-size: var(--font-size-xs);
}

dd {
  color: var(--dark);
  word-break: break-word;
}

hr {
  border: none;
  border-top: 1px solid var(--light-2);
  margin: 0 -1.5rem;
  
  &:last-of-type {
    display: none;
  }
}

/* TAB CONTENT
-------------------------------------------------------------- */

.tabs {
  display: flex;
  flex-direction: column;
  flex: 1;
}
  
.tabs-group {
  display: flex;
  gap: 1rem;
  padding: 1rem 0 0;
}

.tab {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0.5rem 1rem;
  cursor: pointer;
  background-color: var(--light-2);
  border-radius: 4rem;

  &:hover {
    background-color: var(--light-2);
  }
  
  &:focus-visible  {
    outline: 2px solid var(--dark);
    outline-offset: 2px !important;
  }

  &.active {
    background-color: var(--red);
    color: var(--light-0);
    transform: none;
  }
}

.tab-content {
  display: none !important;
}

.tab-content.active {
  display: flex !important;
}

/* HELPERS / DETAILS
-------------------------------------------------------------- */

.tip {
  font-size: var(--font-size-xs);
  color: var(--text-color);
  gap: 0.325rem;
}

/* FILTERS
-------------------------------------------------------------- */

.filters {
  display: flex;
  flex-direction: column;
}

/* DETAILS PAGE
-------------------------------------------------------------- */

.details {
  width: 100%;
  display: flex;
  gap: 1.5rem;
    
  main {
    flex-direction: row;
  }
}

.details-info {
  flex: 1 0 15rem;
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  background-color: var(--light-0);
  box-shadow: var(--box-shadow);
}

.details-info-header {
  flex: 0 0 auto;
  padding: 6% 6% 4%;
  position: relative;
  
  .details-info-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin: 0 0 6% 0;

    .btn-group {
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .btn-close {
      padding: 0.5rem;
      border-radius: 2rem;
      background-color: var(--light-1);
      margin-left: 1rem;
    }
  }

  .tag {
    font-size: small;
    background-color: var(--light-1);
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    padding: 0 1rem 0 0;
    gap: 0.75rem;
    border-radius: 3rem;

    .tag-icon {
      background-color: var(--red);
      color: #fff;
      display: flex;
      align-items: center;
      padding: 0.5rem;
      justify-content: center;
      border-radius: 50%;
    }
  }

  h1 {
    line-height: 1.2;
    color: var(--red);
    margin-bottom: 0.325rem;
    word-wrap: break-word;
  }

  p {
    color: var(--dark);
  }

  .tabs {
    .tabs-group {
      padding: 2rem 0 0;
    }

    .tab {
      width: auto;
      flex: none;
    }
  }
}

.details-info-gallery {
  max-width: 100%;
  display: flex;
  flex-direction: column;

  .image-frame {
    height: 240px;
    display: flex;
    text-align: center;
    position: relative;
  }

  .image-frame img {
    max-width: 100%;
    width: 100%;
    display: flex;
    border-radius: 0.75rem;
    object-fit: cover;
  }

  .image-frame figcaption {
    font-size: var(--font-size-xs);
    font-style: italic;
    color: var(--text-color);
    position: absolute;
    background-color: white;
    right: 1rem;
    bottom: -0.75rem;
    text-align: right;
    padding: 0.1rem 0.5rem;
    border-radius: 1rem;
    opacity: 0;
  }
}

.details-info-about {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.details-info-facts {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  flex: 1;
}

.details-info-materials {
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

.details-info-content {
  display: flex;
  flex-direction: column;
  padding: 0 6% 6%;
  flex: 1 1 auto;
  overflow: auto;
}

.details-info-footer {
  flex: 0 0 auto;
  padding: 4% 6%;
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  background-color: var(--light-0);
  border-radius: 0 0 1.5rem 1.5rem;
  border-top: 1px solid var(--light-2);

  .group {
    display: flex;
    flex-direction: row;
    gap: 1.25rem;
  }
}

.details-map {
  flex: 2;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: 1.25rem;
  padding: 2rem;
  background-color: var(--light-0);
  box-shadow: var(--box-shadow);

  .widget-contains-map {
    flex: 1;
    border-radius: 0.5rem;
    box-shadow: none;
  }

  .map-controls {
    padding: 3.5rem;
  }
}

/* DETAILS PAGE - KOMMUNE
-------------------------------------------------------------- */

.details-info.kommune {
  h1 {
    color: var(--blue);
  }

  .tag {
    background-color: rgb(23 89 138 / 8%);
  }

  .favorite-checked {
    color: var(--blue);
  }

  .badge-primary {
    color: var(--dark);
    background: var(--light-2);
    border-radius: 2rem;
    padding: 0.125rem 0.5rem;
    margin: 0.5rem 0;
    display: inline-flex;
    flex-shrink: 0;
  }

  .tag-icon {
    background-color: var(--blue);
  }
}

/* IMAGE ZOOM GALLERY
-------------------------------------------------------------- */

.btn-zoom {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  padding: 0.325rem;
  background: rgba(0, 0, 0, 0.6);
  color: #fff;
  border-radius: 2rem;
}

.image-zoom {
  max-width: 980px;
  transform: translate(-50%, -50%) !important;
  left: 50% !important;
  top: 50% !important;
  border: none;
  border-radius: 0.15rem;
  box-shadow: var(--box-shadow);
  outline: 1rem solid #fff;

  figure {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    max-height: 80dvh;
    
    img {
      max-width: 100%;
      min-height: 100%;
      display: flex;
    }
  }

  &::backdrop {
    background-color: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(0.15rem) !important;
    inset: 0 !important;
  }
}

/* DIALOG
-------------------------------------------------------------- */

.overlay {
  position: fixed;
  z-index: 10000;
  inset: 0;
  padding: 0 4%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(0.75rem);
  display: flex;
  align-items: center;
  justify-content: center;
}

.dialog {
  background: var(--light-0);
  border-radius: 1.5rem;
  border: none;
  max-width: 460px;
  max-height: 90dvh;
  position: relative;
  display: flex;
  flex-direction: column;
  outline: 0.75rem solid #ffffff10;
  box-shadow: var(--box-shadow);
  clip-path: border-box;

  .dialog-header {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 8% 6% 8%;

    .logo {
      flex-direction: column;
      align-items: center;
      gap: 0.5rem;

      h1 {
        font-size: small;
        font-weight: 500;
        color: var(--red);
      }
    }

    .btn-close {
      position: absolute;
      top: 1.5rem;
      right: 1.5rem;
      padding: 0.5rem;
    }
  }

  .dialog-body {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    padding: 0 8% 6%;
    overflow: auto;
    
    .list-items {
      display: flex;
      flex-direction: column;
      gap: 1rem;

      .list-item {
        display: flex;
        gap: 1rem;
        align-items: flex-start;
        color: var(--dark);
      } 
    }
  }
  
  .dialog-footer {
    background-color: var(--light-2);
    border-top: 1px solid var(--border-color);
    padding: 6% 8%;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;

    button {
      width: 100%;
      padding: 0.75rem 0.75rem;
    }
  }
}

.dialog-large {
  max-width: 680px;
  @media (max-width: 768px) {
    max-height: 100dvh;
    
    .dialog-large {
      max-width: none;
      width: 100%;
      border-radius: 0;

      .dialog-footer {
        button {
          padding: 0.5rem 0.75rem;
        }
      }
    }
  }
}


/* MEDIA QUERIES
-------------------------------------------------------------- */

@media (max-width: 1536px) {
  .details-info, 
  .details-map {
    flex: 1;
  }
}

@media (max-width: 1024px) {
  .de-anbragtes-danmarkskort {
    padding: 0 1rem 1rem;
  }
  
  header {
    padding: 1.5rem 1rem;
  }
  
  main {
    padding: 0;
    gap: 1rem;
    flex-direction: column;
    overflow: unset;
  }
  
  .panel {
    --panel-border-radius: 1.5rem;
    width: auto;
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10000;
    height: 80dvh;
    border-radius: var(--panel-border-radius) var(--panel-border-radius) 0 0;
    display: none;
  }

  .details-map {
    display: none;
  }
}

@media (max-width: 768px) {
  
  .de-anbragtes-danmarkskort {
    padding: 0rem; 
  }

  .widget-container.widget-contains-map {
    border-radius: 1.5rem 1.5rem 0 0;
    box-shadow: 0 -1rem 1rem -1rem #0001;
    outline: 1px solid #0e3f7e0a;
  }
  
  header {
    padding: 1rem 1rem 1rem 1.5rem;
  }
  
  .btn-menu-toggle {
    display: flex;
    z-index: 1;
  }
    
  .main-nav {
    display: none;
    flex-direction: column;
    gap: 1rem;
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    z-index: 10000;
    border-radius: 1rem;
    background-color: var(--light-0);
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);

    &.show {
      display: flex;
    }
  }

  .logo {
    flex-direction: column; 
    align-items: flex-start;
    gap: 0.5rem;

    span {
      font-size: var(--font-size-xs);
    }
    
    img {
      width: 80px;
    }
  }

  .map-controls {
    padding: 0.75rem;
    gap: 0.75rem;
    right: 2rem;
    left: 2rem;
    top: auto;
    bottom: 0rem;
    margin: 1.75rem 0;
    border-radius: 4rem;
    justify-content: space-between;
    background-color: rgb(255 255 255 / 30%);
    backdrop-filter: blur(2px);

    .dropdown {
      .dropdown-list {
        position-area: none;
        bottom: 6.5rem;
        left: 1rem;
        right: 1rem;
        width: auto;
      }

      .dropdown-list-item {
        width: auto !important;
        padding: 1.5rem 1.5rem;
      }
    }

    .btn-dropdown {
      width: 100%;
      padding: 0.5rem 1.25rem;
      outline: none;
      touch-action: manipulation;
      font-size: 16px;
      user-select: none;
      -webkit-user-select: none;

      &::after {
        display: none;
      }

      span {
        display: none;
      }
    }
  }
  
  .list-card {
    .list-card-button {
      opacity: 1;
    }
  }

  .btn-open-panel {
    display: flex;
    position: static;
  }
  
  .btn-close-panel {
    display: flex;
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.75rem;
    box-shadow: none;
    outline: none;
  }

  .panel.show {
    display: flex;
    flex-direction: column;
    box-shadow: 0 -1rem 1rem -1rem #0001;
    outline: 1px solid #0e3f7e0a;
  }

  .details-info {
    border-radius: 1.5rem 1.5rem 0 0;
  }
  
  .details-info-header {
    .details-info-header-top {
      margin: 0 0 8% 0;
    }
  }
  
  .details-map {
    display: none;
  }

  .details-info-header {
    padding: 8% 6% 8%;
    .details-info-header-top {
      .btn-group {
        gap: 0;

        button {
          display: flex;
        }
        .btn-close {
          position: fixed;
          top: 1rem;
          right: 1.5rem;
          z-index: 10000;
        }
      }
    }
  }
  
  .details-info-footer {
    flex-direction: column-reverse;
    padding: 1.5rem;
  }

  .btn-zoom {
    display: none;
  }

  .dialog-large {
    max-width: none;
    width: 100%;
    border-radius: 0;

    .dialog-footer {
      button {
        padding: 0.5rem 0.75rem;
      }
    }
  }
}
