/**
 * @license
 * Copyright 2025 DataSoftPro e.K.
 */
/* [START maps_advanced_markers_html] */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
  --building-color: #FF9800;
  --house-color: #0288D1;
  --shop-color: #7B1FA2;
  --warehouse-color: #558B2F;
  --primary-color: #E40144;
  --dark-text: #1a1a1a;
  --light-text: #666;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/*
 * Optional: Makes the sample page fill the window.
 */
html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

/*
 * Search container styling
 */
.search-container {
  position: absolute;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  background: white;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.12);
  display: flex;
  gap: 10px;
  align-items: center;
  backdrop-filter: blur(10px);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-container:hover {
  box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.search-input-wrapper {
  position: relative;
  display: inline-block;
}

#location-search {
  padding: 10px 14px;
  min-height: 44px;
  font-size: 15px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  width: 240px;
  outline: none;
  background: #fafafa;
  color: var(--dark-text);
  letter-spacing: 0.3px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

#location-search::placeholder {
  color: #999;
  font-weight: 400;
}

#location-search:hover {
  background: white;
  border-color: #d0d0d0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#location-search:focus {
  background: white;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(228, 1, 68, 0.1), 0 4px 12px rgba(228, 1, 68, 0.15);
}

.search-feedback {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  margin-top: 12px;
  padding: 14px 18px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  text-align: center;
  display: none;
  animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  letter-spacing: 0.4px;
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  min-width: 220px;
}

.search-feedback.show {
  display: block;
}

.search-feedback.success {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(76, 175, 80, 0.35), 0 0 0 1px rgba(76, 175, 80, 0.2);
}

.search-feedback.error {
  background: linear-gradient(135deg, #f44336 0%, #da190b 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(244, 67, 54, 0.35), 0 0 0 1px rgba(244, 67, 54, 0.2);
}

.search-feedback.info {
  background: linear-gradient(135deg, #2196F3 0%, #1976D2 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(33, 150, 243, 0.35), 0 0 0 1px rgba(33, 150, 243, 0.2);
}

.search-feedback.hiding {
  animation: popOut 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes popIn {
  0% {
    opacity: 0;
    transform: translateY(-12px) scale(0.8);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes popOut {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  50% {
    transform: scale(0.95);
  }
  100% {
    opacity: 0;
    transform: translateY(-15px) scale(0.7);
  }
}

/* Autocomplete Dropdown */
.autocomplete-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border: 2px solid #f0f0f0;
  border-top: none;
  border-radius: 0 0 10px 10px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  max-height: 300px;
  overflow-y: auto;
  z-index: 10;
  display: none;
  animation: slideDown 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  list-style: none;
  margin: 0;
  padding: 0;
}

.autocomplete-dropdown.show {
  display: block;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.autocomplete-item {
  padding: 12px 14px;
  min-height: 0;
  cursor: pointer;
  border-bottom: 1px solid #f8f8f8;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  font-size: 14px;
  line-height: 1.3;
}

.autocomplete-item:last-child {
  border-bottom: none;
}

.autocomplete-item:hover,
.autocomplete-item.selected {
  background-color: #f8f8f8;
  padding-left: 18px;
}

.autocomplete-item:focus-visible {
  outline: 2px solid var(--primary-color);
  outline-offset: -2px;
  background-color: #fdf2f6;
}

.autocomplete-item .item-name {
  font-weight: 600;
  color: var(--dark-text);
  letter-spacing: 0.2px;
}

.autocomplete-item .item-address {
  font-size: 13px;
  color: var(--light-text);
  margin-top: 3px;
  font-weight: 400;
}

.autocomplete-item .item-zip {
  color: var(--primary-color);
  font-weight: 700;
  letter-spacing: 0.5px;
}

.autocomplete-no-results {
  padding: 16px 14px;
  text-align: center;
  color: #999;
  font-size: 14px;
  font-style: italic;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 400;
}

#search-btn, #reset-btn {
  padding: 10px 20px;
  min-height: 44px;
  font-size: 15px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  font-size: 13px;
}

#search-btn {
  background-color: var(--primary-color);
  color: white;
  box-shadow: 0 4px 12px rgba(228, 1, 68, 0.25);
}

#search-btn:hover {
  background-color: #c00138;
  box-shadow: 0 6px 20px rgba(228, 1, 68, 0.35);
  transform: translateY(-2px);
}

#search-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(228, 1, 68, 0.25);
}

#location-search:focus-visible,
#search-btn:focus-visible,
#reset-btn:focus-visible {
  outline: 3px solid rgba(228, 1, 68, 0.35);
  outline-offset: 2px;
}

#reset-btn {
  background-color: #f0f0f0;
  color: #555;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

#reset-btn:hover {
  background-color: #e0e0e0;
  color: #333;
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
  transform: translateY(-2px);
}

#reset-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
}

@media (prefers-reduced-motion: reduce) {
  .search-container,
  #location-search,
  #search-btn,
  #reset-btn,
  .search-feedback,
  .autocomplete-dropdown,
  .autocomplete-item {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 600px) and (hover: none) and (pointer: coarse) {
  .search-container {
    top: max(10px, env(safe-area-inset-top));
    flex-direction: column;
    width: calc(100% - 40px);
    left: 20px;
    transform: none;
    gap: 8px;
    align-items: stretch;
    padding: 14px 16px;
  }
  
  .search-input-wrapper {
    width: 100%;
  }
  
  #location-search {
    width: 100%;
    font-size: 16px;
    padding: 12px 14px;
  }
  
  #search-btn, #reset-btn {
    width: 100%;
    padding: 12px 16px;
  }

  body.search-focused .search-container {
    top: max(6px, env(safe-area-inset-top));
  }
}

@media (max-width: 600px) and (hover: hover) and (pointer: fine) {
  .search-container {
    width: auto;
    max-width: calc(100% - 32px);
    left: 50%;
    transform: translateX(-50%);
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
  }

  .search-input-wrapper {
    width: auto;
    flex: 0 1 auto;
  }

  #location-search {
    width: 240px;
    font-size: 15px;
    padding: 10px 14px;
  }

  #search-btn,
  #reset-btn {
    width: auto;
    flex: 0 0 auto;
    padding: 10px 16px;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  .search-container {
    top: max(12px, env(safe-area-inset-top));
    width: min(92vw, 760px);
    left: 50%;
    transform: translateX(-50%);
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }

  .search-input-wrapper {
    flex: 1 1 100%;
    width: 100%;
  }

  #location-search {
    width: 100%;
    font-size: 16px;
    padding: 12px 14px;
  }

  #search-btn,
  #reset-btn {
    flex: 1 1 calc(50% - 5px);
    padding: 12px 16px;
  }

  .search-feedback {
    min-width: 0;
  }

  body.search-focused .search-container {
    top: max(8px, env(safe-area-inset-top));
  }
}

@media (hover: none) and (pointer: coarse) {
  #search-btn,
  #reset-btn,
  .autocomplete-item {
    min-height: 46px;
  }
}

/*
 * Always set the map height explicitly to define the size of the div element
 * that contains the map.
 */
#map {
  height: 100%;
  width: 100%;
}

/*
 * Property styles in unhighlighted state.
 */
.property {
    align-items: center;
    background-color: #ed1b30;
    border-radius: 50%;
    color: #263238;
    display: flex;
    font-size: 15px;
    gap: 15px;
    height: 50px;
    justify-content: center;
    padding: 4px;
    position: relative;
    position: relative;
    transition: all 0.2s ease-out;
    width: 50px;
    transform: translateY(-9px);
    box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.2);
}

    .property .icon {
        align-items: center;
        display: flex;
        justify-content: center;
        color: #FFFFFF;
        border-radius: 50%;
    }

    .property .icon img {
        border-radius: 50%;
        object-fit: cover;
    }

.property .details {
  display: none;
  flex-direction: column;
  flex: 1;
}

.property .address {
  color: #9E9E9E;
  font-size: 10px;
  margin-bottom: 10px;
  margin-top: 5px;
}

.property .link {
  color: #F5F5F5;
  font-size: 10px;
  margin-bottom: 220px;
  margin-top: 0px; 
  list-style: none;
  display: inline-block;
}

.property .route {
  color: #F5F5F5;
  font-size: 10px;
  margin-bottom: 10px;
  margin-top: 0px; 
}

.property .features {
  align-items: flex-end;
  display: flex;
  flex-direction: row;
  gap: 10px;
}

.property .features > div {
  align-items: center;
  background: #F5F5F5;
  border-radius: 5px;
  border: 1px solid #ccc;
  display: flex;
  font-size: 10px;
  gap: 5px;
  padding: 5px;
}

.column {
    float: left;
    width: 28px;
    padding: 5px;
}
.row::after {
    content: "";
    clear: both;
    display: table;
}

/*
css für Sidebar
*/
#container {
  display: flex;
  height: 100vh;
}

#sidebar {
  width: 300px;
  background: #fff;
  border-right: 2px solid #ccc;
  padding: 10px;
  font-family: Arial, sans-serif;
  overflow-y: auto;
}

#map {
  flex: 1;
}


/*
 * Property styles in highlighted state.
 */
.property.highlight {
  background-color: #ffffff;
  border-radius: 8px;
  box-shadow: 10px 10px 5px rgba(0, 0, 0, 0.2);
  height: 100px;
  padding: 8px 15px;
  width: auto;
}

/*    .property.highlight .icon {
        background-color: blue;
        border: 3px solid black;
    }*/

    .property.highlight .icon img {
        width: 80px;
        height: auto;
    }

    /*
.property.highlight::after {
  border-top: 9px solid #FFFFFF;
}
        */
.property.highlight .details {
  display: flex;
}

/*
.property.highlight .icon svg {
  width: 80px;
  height: 80px;
}
*/

/* [END maps_advanced_markers_html] */
