.imp-object-poly.reserved { fill: #EBE9E299; }
.imp-object-poly.reserved:hover { fill: #EBE9E2CC; }
.imp-object-poly.sold { fill: #E38C0C99; pointer-events: none; cursor: default; }
.imp-object-poly.sold * { pointer-events: none; cursor: default; }
.imp-object-poly.sold:hover { fill: #E38C0C99; }
.imp-ui-top-right { left: 20px !important; right: auto !important; display: none !important; }
.imp-ui-light .imp-ui-layers-select {
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  font-size: var(--e-global-typography-text-font-size) !important;
  font-weight: var(--e-global-typography-text-font-weight);
}

#controls {
  display: flex;
  flex-direction: column;
  background: white;
  /* height: 100%; */
  max-height: 70vh; 
  overflow: scroll;
  padding: 1rem;
  gap: 0.5rem;
  color: var( --e-global-color-text );
  scrollbar-color: var(--e-global-color-primary) var( --e-global-color-accent );
}

@media (min-width: 768px) {
  #controls {
    width: clamp(340px, 25%, 500px);
  }
}

#controls .sidebar-loading {
  text-align: center;
}

#controls .item {
  background: var( --e-global-color-accent );
  padding: 0.5rem 1.2rem;
  border-radius: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.item.highlighted {
  background: #E38C0C40 !important;
  border: 1px var(--e-global-color-primary) solid;
}

#controls .booked {
  align-self: flex-end;
  font-size: 0.9rem;
  color: #888;
}

#controls .top-line {
  display: flex;
  align-items: baseline;
  justify-content: center;
  font-weight: bold;
  font-size: 0.9rem;
  gap: 1rem
}

#controls .meta {
  display: flex;
  align-items: baseline;
  justify-content: space-around;
  font-family: var( --e-global-typography-text-font-family ), Sans-serif;
}

#controls .buttons {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#controls .btn {
  flex: 1;
  padding: 1px 15px;
  border-width: 1px;
}

.like { cursor: pointer; min-width: 1rem; width: 1.8rem; }
.like path { stroke: var(--e-global-color-primary); }
.like:hover path, .like.active path { fill: var(--e-global-color-primary); }

#download-buttons .elementor-button-wrapper {
  display: flex;
  flex-direction: column;
}

#model-container,
#model-container .elementor-widget-container,
#model-container .elementor-element,
#model-container .elementor-shortcode,
#model-container figure,
#model-container iframe {
  height: 100%;
}

.swiper-wrapper {
  align-items: center;
}

:root {
  --slider-d: 0.5rem;
}

.slider-container {
  margin-bottom: 4rem;
}

label {
  display: block;
  margin-bottom: 5px;
}

.range-container {
  position: relative;
  display: flex;
  padding: 1rem 0;
  user-select: none;
}

#filters input[type="range"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  height: 2px;
  width: 100%;
  accent-color: var( --e-global-color-primary );
  background: linear-gradient(var( --e-global-color-primary ), var( --e-global-color-primary )) 
              50%/calc(100% - var(--slider-d)*2) 0.375em no-repeat;
  z-index: 100;
}

#filters input::-webkit-slider-runnable-track, #filters input::-webkit-slider-thumb {
  -webkit-appearance: none;
}

#filters  input::-webkit-slider-thumb {
  height: calc(var(--slider-d)*2);
  width: calc(var(--slider-d)*2);
  border-radius: 50%;
  background: var(--e-global-color-primary);
  border: none;
  cursor: ew-resize;
}
#filters  input::-moz-range-thumb {
  height: calc(var(--slider-d)*2);
  width: calc(var(--slider-d)*2);
  border-radius: 50%;
  background: var(--e-global-color-primary);
  border: none;
  cursor: ew-resize;
}

.range-values {
  position: absolute;
  top: 50%;
  transform: translate(0, -50%);
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 var(--slider-d);
  color: var(--e-global-color-text);
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  font-size: var(--e-global-typography-text-font-size);
  font-weight: var(--e-global-typography-text-font-weight);
  z-index: 10;
}

@media (min-width: 768px) and (max-width: 900px) {
  .range-values { font-size: 0.7rem; }
  #immo-filter .btn { font-size: 1rem; padding: 5px 12px; white-space: normal; }
  #reset-filter { font-size: 1rem; }
}
@media (min-width: 901px) and (max-width: 1200px) {
  .range-values { font-size: 0.8rem; }
  #immo-filter .btn { font-size: 1rem; padding: 5px 12px; white-space: normal; }
  #reset-filter { font-size: 1rem; }
}

.range-values > div {
  position: relative;
  max-width: 1px;
  border: 1px solid var(--e-global-color-primary);
  white-space: nowrap;
  height: calc(var(--slider-d)*2 - 1px);
}

.range-values > div:not(:first-child), .range-values > div:not(:last-child) {
  position: relative;
  text-align: center;
  flex: 1;
  flex-basis: 0%;
}

.range-values span {
  width: auto;
  position: absolute;
  transform: translate(-50%, 115%);
}

.range-values > div:first-child span, .range-values > div:last-child span { 
  transform: translate(-20%, 115%);
}

.range-values > div:last-child span {
  transform: translate(-85%, 115%);
}

.filter-search-actions a {
  color: var(--e-global-color-primary);
  text-transform: uppercase;
  color: var(--e-global-color-text);
  font-family: var(--e-global-typography-text-font-family), Sans-serif;
  font-size: var(--e-global-typography-text-font-size);
  font-weight: var(--e-global-typography-text-font-weight);
}

.elementor-field-type-acceptance span.elementor-field-option {
  display: flex;
    align-items: baseline;
    gap: 0.5rem;
}

.elementor-field-type-acceptance label { line-height: 1.4em; }

#handlebars-content div:has(> .elementor-widget-container .elementor-button-wrapper > a[href=""]) {
  display: none;
}

#handlebars-content a[href=""] {
  display: none;
}

/* HELPER CLASSES */
.hidden {
  display: none !important;
}

.btn, .footable .btn.details {
  background: #eee;
  padding: 7px 15px 5px 15px;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease-in-out;
  color: var( --e-global-color-text );
  cursor: pointer;
  font-family: var(--e-global-typography-accent-font-family);
  font-size: var(--e-global-typography-accent-font-size);
  font-weight: var(--e-global-typography-accent-font-weight);
  text-transform: var(--e-global-typography-accent-text-transform);
  line-height: 1;
  letter-spacing: var(--e-global-typography-accent-letter-spacing);
  word-spacing: var(--e-global-typography-accent-word-spacing);
  border: 2px var( --e-global-color-primary ) solid;
  border-radius: 30px 30px 30px 30px;
  background-color: transparent !important;
}

.btn:hover, .btn.active, .elementor-button.active, .footable .btn.details:hover {
  color: var(--e-global-color-text);
  background-color: #FDE25D17 !important;
  border-color: var(--e-global-color-primary);
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

.flex-col {
  display: flex;
  flex-direction: column;
}
.waiting { cursor: wait !important; }


/* HTML: <div class="loader"></div> */
.loader {
  width: 15px;
  aspect-ratio: 1;
  border-radius: 50%;
  animation: l5 1s infinite linear alternate;
}
@keyframes l5 {
    0%  {box-shadow: 20px 0 #C08A18, -20px 0 #C08A1822;background: #C08A18 }
    33% {box-shadow: 20px 0 #C08A18, -20px 0 #C08A1822;background: #C08A1822}
    66% {box-shadow: 20px 0 #C08A1822,-20px 0 #C08A18; background: #C08A1822}
    100%{box-shadow: 20px 0 #C08A1822,-20px 0 #C08A18; background: #C08A18 }
}
.btn.loading {
  position: relative;
  pointer-events: none;
  overflow: hidden;
}
.btn.loading::before, .absolute-loader::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
  right: 0 !important;
  background-color: rgba(255, 255, 255, 0.5) !important;
  z-index: 1 !important;
}

.btn.loading::after, .absolute-loader::after {
  content: '';
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  width: 15px !important;
  height: 15px !important;
  aspect-ratio: 1;
  border-radius: 50% !important;
  animation: l5 1s infinite linear alternate !important;
  z-index: 2 !important;
}

/* Ninja Table Styles */
@media (min-width: 800px) and (max-width: 1000px) { .footable { font-size: 12px !important; } }
@media (min-width: 1001px) and (max-width: 1220px) { .footable { font-size: 14px !important; } }
@media (min-width: 1221px) and (max-width: 1320px) { .footable { font-size: 16px !important; } }
@media (min-width: 1321px) { .footable { font-size: 18px !important; } }

.footable .form-group { margin-top: 5px !important; margin-bottom: 5px !important; }
table.footable .form-control {
    height: unset;
    font-size: unset;
    color: black !important;
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    /* font-size: var(--e-global-typography-text-font-size); */
    font-weight: var(--e-global-typography-text-font-weight);
}

.footable_parent table thead .footable-header > th {
    font-family: var(--e-global-typography-secondary-font-family), Sans-serif;
    /* font-size: var(--e-global-typography-text-font-size); */
    font-weight: var(--e-global-typography-text-font-weight);
    text-transform: uppercase;
    /* padding-left: 8px;
    padding-right: 8px; */
}

.footable_parent table .footable-header th, .footable_parent table td { padding: 5px !important; white-space: nowrap; }
.footable_parent table .footable-header th{ padding-top: 15px !important; }

.footable_parent table tbody > tr {
    font-family: var(--e-global-typography-text-font-family), Sans-serif;
    /* font-size: var(--e-global-typography-text-font-size); */
    font-weight: var(--e-global-typography-text-font-weight);
}

/* .footable_parent table tbody > tr:hover {
    background-color: #4F533B26 !important;
} */

.ninja_table_pro.inverted.table td { height: 3em; }

.ninja_table_pro.inverted.table .disabled { opacity: 0.8; }
.ninja_table_pro.inverted.table .disabled td { color: #aaa !important; }
.ninja_table_pro.inverted.table .disabled td.hide-on-disabled { visibility: hidden !important; }

.ninja_table_pro.inverted.table .reserved { opacity: 0.8; }
.ninja_table_pro.inverted.table .reserved td { color: #aaa !important; }

.kaufpreis:after { content: attr(data-content); }

.footable .btn.details {
  font-size: unset;
  line-height: unset;
  padding: 4px 15px;
}

.ninja_table_pro.inverted .pagination a.footable-page-link { border-color: #ddd !important; }
.ninja_table_pro.inverted .pagination a.footable-page-link:hover { color: rgba(0,0,0,.5) !important; }
