iframe html.winebow-brand-finder {
  height: auto;
  overflow: hidden;
}
html.winebow-brand-finder body{
  background-color: unset;
  background-image: unset;
}
.page-wrapper.stripped-down {
  min-width: 100%;
}

.form-item-field-geolocation-proximity-center-geocoder-geolocation-geocoder-address {
  margin-block: unset;
}

@media screen and (min-width: 1024px) {
  .store-result-map-wrapper {
    display: flex;
    flex-wrap: wrap-reverse;
    flex-direction: row-reverse;
    gap: 1rem;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    padding: 0.5rem;
  }

  .store-result,
  .store-result-map {
    flex: 1;
    min-width: 280px;
  }

  .store-result {
    flex-grow: 4;
  }
  .store-result-map {
    flex-grow: 6;
  }
}

.store-search__filter .store-search__filter--primary .js-form-item-field-computed-geocode-proximity-source-configuration-origin-address {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  margin-right: 15px;
}
.store-search__filter .store-search__filter--primary .js-form-item-field-computed-geocode-proximity-source-configuration-origin-address label {
  margin-top: 3px;
}
.store-search__filter .store-search__filter--primary .js-form-item-field-computed-geocode-proximity-source-configuration-origin-address:before,
.store-search__filter .store-search__filter--primary .js-form-item-field-computed-geocode-proximity-source-configuration-origin-address:after {
  content: "";
}
.store-search__filter .store-search__filter--primary .js-form-item-field-computed-geocode-proximity-source-configuration-origin-address label {
  width: 100%;
}
.store-search__filter .store-search__filter--primary .js-form-item-field-computed-geocode-proximity-source-configuration-origin-address input {
  order: 2;
  border-color: #BCBCBC;
  height: 48px;
  width: 100%;
}
.store-search__filter .store-search__filter--primary .js-form-item-field-computed-geocode-proximity-source-configuration-origin-address input:hover {
  border-color: #9ACADD;
}
.store-search__filter .store-search__filter--primary .js-form-item-field-computed-geocode-proximity-source-configuration-origin-address input:hover::placeholder {
  color: #212529;
}
.store-search__filter .store-search__filter--primary .form-item__description.description {
  display: none;
}
.store-search__filter .store-search__filter--primary {
  display: flex;
  column-gap: 1rem;
  margin-bottom: 5px;
  flex-direction: column;
}
.store-search__filter .store-search__filter--primary .fieldset__wrapper {
  display: flex;
  padding-inline: 0;
  padding-block: 0;
  align-items: center;
}
.store-search__filter .store-search__filter--primary .wrapper-box {
  display: flex;
  column-gap: 1rem;
  align-items: center;
}
.store-search__filter .store-search__filter--primary .wrapper-box .form-item {
  margin-block: 0;
}
.store-search__filter .store-search__filter--primary fieldset {
  flex: 1 1 40%;
  border: none;
  margin-block: 0;
}
.store-search__filter .store-search__filter--primary legend {
  display: none;
}
.store-search__filter .store-search__filter--primary .js-form-item-field-computed-geocode-proximity-value .form-select {
  margin-top: 0;
  min-width: 200px;
}
.store-search__filter .store-search__filter--primary .form-item-field-computed-geocode-proximity-value {
  flex: 1 1 auto;
}

/* /* Brand-based Map Pin Styles */ */
/* .brand-map-marker { */
/*   background: #e74c3c; */
/*   border: 2px solid #c0392b; */
/*   border-radius: 50%; */
/*   width: 20px; */
/*   height: 20px; */
/*   display: flex; */
/*   align-items: center; */
/*   justify-content: center; */
/*   color: white; */
/*   font-weight: bold; */
/*   font-size: 12px; */
/*   box-shadow: 0 2px 4px rgba(0,0,0,0.3); */
/*   transition: all 0.3s ease; */
/*   cursor: pointer; */
/*   position: relative; */
/* } */
/**/
/* .brand-map-marker:hover { */
/*   transform: scale(1.2); */
/*   box-shadow: 0 4px 8px rgba(0,0,0,0.4); */
/*   z-index: 1000; */
/* } */
/**/
/* .brand-map-marker:active { */
/*   transform: scale(0.95); */
/* } */
/**/
/* .brand-pin { */
/*   width: 100%; */
/*   height: 100%; */
/*   display: flex; */
/*   align-items: center; */
/*   justify-content: center; */
/*   color: white; */
/*   font-weight: bold; */
/*   font-size: 10px; */
/*   text-shadow: 1px 1px 1px rgba(0,0,0,0.5); */
/* } */
/**/
/* /* Special styling for stores with multiple brands */ */
/* .brand-map-marker.multiple-brands { */
/*   background: linear-gradient(45deg, var(--primary-color, #e74c3c) 0%, var(--secondary-color, #c0392b) 100%); */
/*   border: 2px solid var(--secondary-color, #c0392b); */
/*   position: relative; */
/* } */
/**/
/* .brand-map-marker.multiple-brands::before { */
/*   content: ''; */
/*   position: absolute; */
/*   top: 2px; */
/*   left: 2px; */
/*   right: 2px; */
/*   bottom: 2px; */
/*   border: 1px solid rgba(255,255,255,0.3); */
/*   border-radius: 50%; */
/*   pointer-events: none; */
/* } */
/**/
/* /* Brand count indicator */ */
/* .brand-count { */
/*   position: absolute; */
/*   top: -5px; */
/*   right: -5px; */
/*   background: #f39c12; */
/*   color: white; */
/*   border-radius: 50%; */
/*   width: 16px; */
/*   height: 16px; */
/*   display: flex; */
/*   align-items: center; */
/*   justify-content: center; */
/*   font-size: 8px; */
/*   font-weight: bold; */
/*   border: 1px solid white; */
/*   box-shadow: 0 1px 3px rgba(0,0,0,0.3); */
/* } */
/**/
/* /* Custom Map Pin Styles */ */
/* .custom-map-marker { */
/*   background: #e74c3c; */
/*   border: 2px solid #c0392b; */
/*   border-radius: 50%; */
/*   width: 20px; */
/*   height: 20px; */
/*   display: flex; */
/*   align-items: center; */
/*   justify-content: center; */
/*   color: white; */
/*   font-weight: bold; */
/*   font-size: 12px; */
/*   box-shadow: 0 2px 4px rgba(0,0,0,0.3); */
/*   transition: all 0.3s ease; */
/*   cursor: pointer; */
/* } */
/**/
/* .custom-map-marker:hover { */
/*   transform: scale(1.2); */
/*   box-shadow: 0 4px 8px rgba(0,0,0,0.4); */
/*   z-index: 1000; */
/* } */
/**/
/* .custom-map-marker:active { */
/*   transform: scale(0.95); */
/* } */
/**/
/* /* Different pin styles based on store type */ */
/* .custom-map-marker.store-premium { */
/*   background: #f39c12; */
/*   border-color: #e67e22; */
/*   box-shadow: 0 2px 4px rgba(243, 156, 18, 0.3); */
/* } */
/**/
/* .custom-map-marker.store-premium:hover { */
/*   box-shadow: 0 4px 8px rgba(243, 156, 18, 0.5); */
/* } */
/**/
/* .custom-map-marker.store-standard { */
/*   background: #3498db; */
/*   border-color: #2980b9; */
/*   box-shadow: 0 2px 4px rgba(52, 152, 219, 0.3); */
/* } */
/**/
/* .custom-map-marker.store-standard:hover { */
/*   box-shadow: 0 4px 8px rgba(52, 152, 219, 0.5); */
/* } */
/**/
/* .custom-map-marker.store-basic { */
/*   background: #95a5a6; */
/*   border-color: #7f8c8d; */
/*   box-shadow: 0 2px 4px rgba(149, 165, 166, 0.3); */
/* } */
/**/
/* .custom-map-marker.store-basic:hover { */
/*   box-shadow: 0 4px 8px rgba(149, 165, 166, 0.5); */
/* } */
/**/
/* /* Map pin with store count */ */
/* .map-pin { */
/*   width: 100%; */
/*   height: 100%; */
/*   display: flex; */
/*   align-items: center; */
/*   justify-content: center; */
/*   color: white; */
/*   font-weight: bold; */
/*   font-size: 10px; */
/*   text-shadow: 1px 1px 1px rgba(0,0,0,0.5); */
/* } */
/**/
/* /* Cluster marker styles */ */
/* .leaflet-marker-icon.leaflet-cluster-anim .leaflet-marker-icon { */
/*   background: #e74c3c; */
/*   border: 2px solid #c0392b; */
/*   border-radius: 50%; */
/*   color: white; */
/*   font-weight: bold; */
/*   text-align: center; */
/*   line-height: 20px; */
/* } */
/**/
/* /* Popup styling */ */
/* .leaflet-popup-content-wrapper { */
/*   border-radius: 8px; */
/*   box-shadow: 0 4px 12px rgba(0,0,0,0.3); */
/* } */
/**/
/* .leaflet-popup-content { */
/*   margin: 8px 12px; */
/*   font-family: inherit; */
/* } */
/**/
/* .store-popup { */
/*   font-weight: bold; */
/*   color: #2c3e50; */
/* } */
/**/
/* /* Animation for new markers */ */
/* @keyframes markerPulse { */
/*   0% { */
/*     transform: scale(0.8); */
/*     opacity: 0.7; */
/*   } */
/*   50% { */
/*     transform: scale(1.1); */
/*     opacity: 1; */
/*   } */
/*   100% { */
/*     transform: scale(1); */
/*     opacity: 1; */
/*   } */
/* } */
/**/
/* .custom-map-marker.new-marker { */
/*   animation: markerPulse 0.6s ease-out; */
/* } */
/**/
/* /* Responsive map pins */ */
/* @media (max-width: 768px) { */
/*   .custom-map-marker { */
/*     width: 16px; */
/*     height: 16px; */
/*     font-size: 10px; */
/*   } */
/**/
/*   .map-pin { */
/*     font-size: 8px; */
/*   } */
/* } */
/**/
/* /* High contrast mode support */ */
/* @media (prefers-contrast: high) { */
/*   .custom-map-marker { */
/*     border-width: 3px; */
/*   } */
/**/
/*   .custom-map-marker:hover { */
/*     border-width: 4px; */
/*   } */
/* } */

/* Map and List Interaction Styles */
.store-result .views-row {
  transition: all 0.3s ease;
  cursor: pointer;
  border-radius: 4px;
  margin-bottom: 8px;
  padding: 12px;
  border: 1px solid transparent;
}

.store-result .views-row:hover,
.store-result .views-row.hovered {
  background-color: #f8f9fa;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
  border-color: #dee2e6;
}

.store-result .views-row.hovered {
  background-color: #e3f2fd;
  border-left: 4px solid #2196f3;
  box-shadow: 0 4px 12px rgba(33, 150, 243, 0.15);
}

/* Enhanced hover effect for list items */
.store-result .views-row:hover {
  background-color: #f1f3f4;
}

/* Map marker highlight styles */
.leaflet-marker-icon.highlighted {
  transform: scale(1.3);
  z-index: 1000 !important;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.leaflet-marker-icon.highlighted::before {
  content: '';
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border: 2px solid #2196f3;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.7;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Smooth transitions for map zoom */
.leaflet-container {
  transition: all 0.3s ease;
}

/* Ensure list items are properly styled */
.store-result .view-content {
  display: block;
}

.store-result .view-content .views-row, .attachment .views-row {
  border-top: 1px solid lightgray;
  border-bottom: 0;
  padding: 1rem;
}

.store-result .view-content .result-item.views-row:last-child, .attachment .result-item.views-row:last-of-type {
  border-top: 1px solid lightgray;
  border-bottom: 1px solid lightgray;
}
.store-result .view-content .result-item.views-row:first-child, .attachment .result-item.views-row:first-child {
  border-top: 0;
}

.store-result .view-content::-webkit-scrollbar {
  width: 6px;
}

.store-result .view-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 3px;
}

.store-result .view-content::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 3px;
}

.store-result .view-content::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .store-result .views-row {
    padding: 8px;
    margin-bottom: 4px;
  }

  .store-result .views-row:hover,
  .store-result .views-row.hovered {
    transform: none;
  }

  .store-result .view-content {
    max-height: 50vh;
  }

  /* Reduce marker highlight size on mobile */
  .leaflet-marker-icon.highlighted {
    transform: scale(1.2);
  }
  .store-search__filter .store-search__filter--primary .fieldset__wrapper {
    padding: 0 1rem;
    flex-direction: column;
  }
  .form-item-field-computed-geocode-proximity-value {
   width: 100%;
  }
  .store-search__filter .store-search__filter--primary .js-form-item-field-computed-geocode-proximity-source-configuration-origin-address {
    margin-right: 0;
  }
  .store-search__filter .store-search__filter--primary .wrapper-box {
    flex-direction: column;
  }
  .store-search__filter .store-search__filter--primary .wrapper-box {
    padding: 0 2rem;
    margin-top: 1rem;
  }
  .store-search__filter .store-search__filter--primary .wrapper-box .form-item {
    width: 100%;
  }
  .store-search__filter .store-search__filter--primary .wrapper-box .form-actions {
    width: 100%;
  }
  .views-element-container .store-result-map-wrapper .attachment {
    min-width: unset;
  }
  .leaflet-container {
    aspect-ratio: 1 / 1;
    width: 100% !important;
    height: auto !important;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .store-result .views-row.hovered {
    border-left-width: 6px;
    background-color: #d1ecf1;
  }

  .leaflet-marker-icon.highlighted::before {
    border-width: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .store-result .views-row,
  .leaflet-container,
  .leaflet-marker-icon {
    transition: none;
  }

  .leaflet-marker-icon.highlighted::before {
    animation: none;
  }
}

.store-result .views-field-field-address .store_address_container {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.store-result .pager .pager__items {
  padding: 1rem;
}

.store-result-map-wrapper .store-result-map {
  border: 1px solid lightgray;
}

.store-result-map-wrapper .attachment {
  border: 1px solid lightgray;
  min-width: 450px;
}

.store-result-map-wrapper .view-stores {
  gap: 0;
}
.store-result-map-wrapper .view-footer, .attachment footer {
  font-weight: bold;
  padding: 1rem;
}

.view-brand-logo {
  margin-top: 1rem;
  display: flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  align-items: center;
  gap: 0;
}
.view-brand-logo .view-header h1 {
  font-size: 3rem;
  margin-block: 0;
  padding-bottom: 0.5rem;
}
.view-brand-logo .views-field-field-brand-logo img {
  margin-right: 1rem;
}
#block-winebow-brand-finder-views-block-brand-logo-block-1 {
  margin-block-end: 1rem;
}
