
.start_loader_mainmap{ text-align: center; }

.infowindow-loader_dot{text-align: center; position: relative;}

.lds-ellipsis_green {
  display: inline-block;
  position: relative;
  width: 20px;
  height: 18px;
}

.infowindow-loader_dot .lds-ellipsis_green {
  display: block;
  position: relative;
  width: 20px;
  height: 18px;
}



.lds-ellipsis_green div {
  position: absolute;
  top: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #003732;
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
}
.lds-ellipsis_green div:nth-child(1) {
  left: 8px;
  animation: lds-ellipsis1 0.6s infinite;
}
.lds-ellipsis_green div:nth-child(2) {
  left: 8px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis_green div:nth-child(3) {
  left: 32px;
  animation: lds-ellipsis2 0.6s infinite;
}
.lds-ellipsis_green div:nth-child(4) {
  left: 56px;
  animation: lds-ellipsis3 0.6s infinite;
}
@keyframes lds-ellipsis1 {
  0% {
    transform: scale(0);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes lds-ellipsis3 {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(0);
  }
}
@keyframes lds-ellipsis2 {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(24px, 0);
  }
}

#sommerhusmap button {
    border-radius: 0;
}



/*INFO infowindow */

.infowindow-card {
  font-family: 'Andel';
  border-radius: 12px;
  overflow: hidden;
  width: 320px;
  max-width: 100%;
  background: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

/* Header */
.infowindow-header {
  padding: 16px;
  position: relative;
}
.infowindow-header .header {
  font-weight: 600;
  font-size: 16px;
  color: #003732; /* mørkegrøn */
  max-width: calc(100% - 30px);
 padding-bottom: 10px;
}
.infowindow-header .subheader {
  font-size: 14px;
   font-weight: 400;
   color: #003732;
}
.infowindow-header .close-btn {
  position: absolute;
  right: 0px;
  top: 0px;
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  color: #000;
}

/* Slider */
.infowindow-slider {
  width: 100%;
  height: 180px;
}
.infowindow-slider img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
}

/* Tags */
.tag-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 20px 16px;
  font-weight: 400;
}
.datatag {
  background: #f1f5f3;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 11px;
  color: #013220;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 400;
}

/* Turbine info */
.turbine-wrapper {
  display: flex;
  align-items: center;
  background: #F5FEF5;
  padding: 12px 16px;
  gap: 12px;
  margin: 0px 16px 10px 16px;
}
.turbine-icon {
  width: 24px;
  height: 24px;
  background: url('../css/vindmill.svg') no-repeat center/contain;
}
.turbine-info .turbine-text {
  font-size: 12px;
  color: #555;
  font-weight: 400;
}
.turbine-info .turbine-distance {
  font-weight: 600;
  color: #013220;
  font-size: 20px;
  font-family: 'Andel';
}

/* Booking */
.booking-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px;
  border-top: 1px solid #eee;
}
.booking-price-info .from-label {
  font-size: 10px;
  color: #555;
  font-weight: 400;
}
.booking-price-info .the-price {
  font-size: 20px;
  font-weight: 600;
  color: #003732;
}
.booking-price-info .period-label {
  font-size: 10px;
  color: #555;
   font-weight: 400;
}
.book-btn {
  background: #003732;
  color: #fff!important;
  text-decoration: none;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 600;
  transition: background 0.2s;
  font-size: 16px;
}
.book-btn:hover {
  background: #024c34;
}

.book-btn.disabled {
  background: #b5b5b5;
}
.book-btn.disabled:hover {
  background: #b5b5b5;
}

#sommerhusmap .swiper-button-next,
#sommerhusmap .swiper-button-prev {
  background: url('../css/right.svg') no-repeat center/contain;
  color: transparent !important;
}
#sommerhusmap .swiper-button-prev {
  background: url('../css/left.svg') no-repeat center/contain;
  color: transparent !important;
}
#sommerhusmap .swiper-prev:not(.swiper-button-disabled):hover,
#sommerhusmap .swiper-button-next:not(.swiper-button-disabled):hover {
  border-color: transparent !important;
  background-color: transparent !important;
}

#sommerhusmap .swiper-pagination-bullet.swiper-pagination-bullet-active {
  background: #000;
}

#sommerhusmap .infowindow-loader {
  padding: 30px;
  font-weight: 400;
  font-size: 16px;
  color: #003732;
}
#sommerhusmap .infowindow-error {
  color: #b00020;
  font-weight: 400;
  padding: 20px 20px 5px 20px;
  margin: 0;
}

#sommerhusmap .swiper-pagination_boble {
  position: relative;
  top: 5px;
  text-align: center;
}


/* =========================================================
   LEAFLET-SPECIFIK STYLING
   ========================================================= */

/* Sikrer at kort-containeren har en eksplicit z-index så Leaflets
   absolut-positionerede lag fungerer korrekt */
#sommerhusmap {
    position: relative;
    z-index: 0;
    background: #e8ecea; /* faldback farve hvis tiles loader langsomt */
    outline: none;
}
#sommerhusmap:focus-visible {
    box-shadow: 0 0 0 3px rgba(0, 55, 50, 0.4);
}

/* Tile-farve-tilpasning:
   Trækker det lyse CartoDB Positron tile-lag mod jeres brand-palette
   (#a6b9b7 land / #003732 vand). Juster værdierne for finere kontrol. */
#sommerhusmap .leaflet-tile-pane {
    filter: hue-rotate(130deg) saturate(0.55) brightness(0.95) contrast(0.95);
}

/* --- Leaflet popup styling så vores .infowindow-card matcher Google-look --- */
#sommerhusmap .leaflet-popup-content-wrapper.sj-popup,
#sommerhusmap .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
}
#sommerhusmap .leaflet-popup-content {
    margin: 0;
    width: 320px !important;
    min-width: 320px;
}
#sommerhusmap .leaflet-popup-tip {
    background: #fff;
}

/* --- SVG marker-ikoner (L.divIcon i brand-farven) --- */
.sj-marker {
    background: transparent;
    border: none;
}
.sj-marker svg {
    display: block;
    filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.25));
    transition: transform 0.15s ease;
}
.sj-marker:hover svg {
    transform: translateY(-2px) scale(1.05);
}

/* --- Cluster-ikoner i brand-farven #003732 --- */
.sj-cluster {
    background: transparent;
    border: none;
}
.sj-cluster .sj-cluster-inner {
    width: 100%; 
    height: 100%;
    border-radius: 50%;
    background: #003732;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Andel', sans-serif;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 0 0 6px rgba(0, 55, 50, 0.25);
    transition: transform 0.15s ease;
}
.sj-cluster:hover .sj-cluster-inner {
    transform: scale(1.05);
    box-shadow: 0 0 0 8px rgba(0, 55, 50, 0.30);
}
.sj-cluster-1 .sj-cluster-inner { font-size: 13px; }
.sj-cluster-2 .sj-cluster-inner { font-size: 14px; }
.sj-cluster-3 .sj-cluster-inner { font-size: 15px; }
.sj-cluster-4 .sj-cluster-inner { font-size: 16px; }
.sj-cluster-5 .sj-cluster-inner { font-size: 17px; }


@media (max-width: 768px) {
    #sommerhusmap .leaflet-popup-content {
        width: 320px !important;
        min-width: 320px;
    }
}


