@font-face {
    font-family: 'Open Sans';
    src: url('../fonts/OpenSans-Regular.woff2') format('woff2'),
        url('../fonts/OpenSans-Regular.woff') format('woff'),
        url('../fonts/OpenSans-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.infinite-loading-content {
  text-align: center;
  padding: clamp(12px, 3vw, 20px);
  color: #666;
  font-size: clamp(12px, 2vw, 14px);
  border-top: 1px solid #eee;
  margin-top: clamp(6px, 2vw, 10px);
}

.infinite-loading-spinner {
  width: clamp(14px, 4vw, 20px);
  height: clamp(14px, 4vw, 20px);
  border: 2px solid #faf3e0;
  border-top: 2px solid #cbbd93;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto clamp(6px, 2vw, 10px) auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.load-more-content {
  text-align: center;
  padding: clamp(10px, 2.5vw, 15px);
  color: #30241a;
  font-size: clamp(12px, 2vw, 13px);
  border-top: 1px solid #cbbd93;
  margin-top: clamp(6px, 2vw, 10px);
}

.load-more-btn {
  margin-top: clamp(5px, 1vw, 8px);
  padding: clamp(6px, 2vw, 8px) clamp(12px, 4vw, 16px);
  background: #cbbd93;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: clamp(11px, 2vw, 12px);
}

.gm-style {
  font-family: inherit !important;
}

/* Error message */
.load-error-content {
  color: #30241a;
  background: #faf3e0;
  text-align: center;
  padding: clamp(6px, 2vw, 10px);
  border-top: 1px solid #cbbd93;
  margin-top: clamp(6px, 2vw, 10px);
  border-radius: 4px;
}

.retry-btn {
  margin-left: clamp(4px, 1vw, 8px);
  padding: clamp(2px, 1vw, 4px) clamp(6px, 2vw, 8px);
  background: #30241a;
  color: white;
  border: none;
  border-radius: 3px;
  cursor: pointer;
  font-size: clamp(11px, 2vw, 12px);
}

/* Distance info in location item */
.distance-info {
  color: #30241a;
  background: #faf3e0;
  font-size: clamp(11px, 2vw, 12px);
  margin-top: clamp(3px, 1vw, 5px);
  font-weight: 500;
  padding: 4px 8px;
  border-radius: 4px;
  border: 1px solid #cbbd93;
}

/* Remove inline styles from .phone-number links */
.phone-number a {
  color: inherit;
  text-decoration: none;
}

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

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  background-color: #faf3e0;
  color: #30241a;
}

/* Sidebar Styles - Warm Beige Palette based on #cbbd93 */
.sidebar-toggle {
  position: fixed;
  top: 0px;
  /* Back to original position since we moved map controls */
  left: 0px;
  z-index: 1001;
  background: #cbbd93;
  border: none;
  padding: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 18px;
  box-shadow: 0 2px 10px rgba(48, 36, 26, 0.2);
  transition: all 0.3s ease;
  opacity: 1;
  visibility: visible;
  color: white;
  margin: 10px;
  width: 40px;
  height: 40px;
}

.sidebar-toggle:hover {
  background: #30241a;
  color: white;
  box-shadow: 0 4px 15px rgba(48, 36, 26, 0.3);
}

.sidebar-toggle.hidden {
  opacity: 0;
  visibility: hidden;
}

.sidebar {
  position: fixed;
  top: 0;
  left: -400px;
  width: 400px;
  height: 100vh;
  background: rgba(250, 243, 224, 0.85);
  backdrop-filter: blur(10px) saturate(180%);
  -webkit-backdrop-filter: blur(10px) saturate(180%);
  z-index: 1000;
  box-shadow: 2px 0 20px rgba(48, 36, 26, 0.15);
  transition: left 0.3s ease;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid rgba(203, 189, 147, 0.3);
}

.sidebar.open {
  left: 0;
}

.sidebar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background: rgba(203, 189, 147, 0.9);
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
  border-bottom: 1px solid rgba(48, 36, 26, 0.4);
  flex-shrink: 0;
}

.sidebar-header h3 {
  margin: 0;
  color: white;
  font-size: 18px;
  font-weight: 600;
}

.close-btn {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: white;
  padding: 5px;
  border-radius: 4px;
  line-height: 1;
}

.close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

.filter-section {
  padding: 20px;
  border-bottom: 1px solid rgba(203, 189, 147, 0.5);
  flex-shrink: 0;
  background: transparent;
}

.locations-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.locations-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 20px 10px;
  flex-shrink: 0;
}

.locations-header h3 {
  margin: 0;
  color: #30241a;
  font-size: 16px;
  font-weight: 600;
}

.count {
  background: #cbbd93;
  color: white;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
}

.locations-list {
  flex: 1;
  overflow-y: auto;
  padding: 0 20px 20px;
}

/* Modern Google-style button components */
.btn {
  border: none;
  border-radius: 24px;
  /* Google's signature rounded buttons */
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  padding: 10px 24px;
  transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
  outline: none;
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Primary button (Warm Color Palette) */
.btn.primary,
.filter-btn {
  background: #cbbd93;
  color: white;
  box-shadow: 0 1px 2px 0 rgba(48, 36, 26, 0.3), 0 1px 3px 1px rgba(48, 36, 26, 0.15);
}

.btn.primary:hover,
.filter-btn:hover {
  background: #30241a;
  box-shadow: 0 1px 3px 0 rgba(48, 36, 26, 0.3), 0 4px 8px 3px rgba(48, 36, 26, 0.15);
}

.btn.primary:active,
.filter-btn:active {
  background: #30241a;
  box-shadow: 0 1px 2px 0 rgba(48, 36, 26, 0.3), 0 2px 6px 2px rgba(48, 36, 26, 0.15);
  transform: translateY(1px);
}

/* Secondary button (Outlined with Warm Colors) */
.btn.secondary {
  background: #faf3e0;
  color: #30241a;
  border: 1px solid #cbbd93;
  box-shadow: none;
}

.btn.secondary:hover {
  background: #cbbd93;
  color: white;
  border-color: #30241a;
  box-shadow: 0 1px 2px 0 rgba(48, 36, 26, 0.3), 0 1px 3px 1px rgba(48, 36, 26, 0.15);
}

.btn.secondary:active {
  background: #30241a;
  color: white;
  transform: translateY(1px);
}

/* Danger button (Using warm dark color) */
.btn.danger,
.clear-btn {
  background: #30241a;
  color: white;
  box-shadow: 0 1px 2px 0 rgba(48, 36, 26, 0.3), 0 1px 3px 1px rgba(48, 36, 26, 0.15);
}

.btn.danger:hover,
.clear-btn:hover {
  background: #1a120d;
  box-shadow: 0 1px 3px 0 rgba(48, 36, 26, 0.3), 0 4px 8px 3px rgba(48, 36, 26, 0.15);
}

.btn.danger:active,
.clear-btn:active {
  background: #1a120d;
  box-shadow: 0 1px 2px 0 rgba(48, 36, 26, 0.3), 0 2px 6px 2px rgba(48, 36, 26, 0.15);
  transform: translateY(1px);
}

/* Icon buttons (like close button) */
.close-btn {
  background: white;
  border: 1px solid #dadce0;
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sidebar-toggle:active {
  background: #e8eaed;
  transform: scale(0.95);
}

.sidebar-toggle.hidden {
  opacity: 0;
  visibility: hidden;
}

.close-btn {
  width: 32px;
  height: 32px;
  font-size: 16px;
  color: #5f6368;
  border: none;
  background: transparent;
}

.close-btn:hover {
  background: #f1f3f4;
  color: #3c4043;
}

.close-btn:active {
  background: #e8eaed;
  transform: scale(0.9);
}

/* Material Design ripple effect */
.btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, transparent 1%, rgba(255, 255, 255, 0.3) 1%);
  background-size: 15000%;
  opacity: 0;
  transition: opacity 0.5s, background-size 0.5s;
  border-radius: inherit;
}

.btn:active::before {
  background-size: 100%;
  opacity: 1;
  transition: 0s;
}

/* Button loading state */
.btn.loading {
  color: transparent;
  pointer-events: none;
}

.btn.loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.gm-style .gm-style-iw-tc::after {
  background: rgba(250, 243, 224, 0.95);
}

.windowInfo {
  max-width: 320px;
  background: rgba(250, 243, 224, 0.95);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(48, 36, 26, 0.25);
  border: 1px solid rgba(203, 189, 147, 0.4);
}

.windowInfo>.windowHeader {
  background: rgba(203, 189, 147, 0.95);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  padding: 20px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  min-height: 80px;
  box-sizing: border-box;
  text-align: center;
  border-bottom: 1px solid rgba(48, 36, 26, 0.3);
}

.windowInfo>.windowHeader>.windowLogo {
  height: 36px;
  width: auto;
  margin-bottom: 10px;
  filter: brightness(0) invert(1);
}

.windowInfo>.windowHeader>h3 {
  margin: 0;
  color: white;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

.windowInfo>.windowContent {
  padding: 16px;
}

.windowInfo>.windowContent>.contentBox {
  background: rgba(203, 189, 147, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  border-left: 4px solid #cbbd93;
  border: 1px solid rgba(203, 189, 147, 0.3);
}

.windowInfo>.windowContent>.contentBox>.contentBox {
  display: grid;
  gap: 6px;
  font-size: 14px;
  line-height: 1.4;
}

.windowInfo>.windowContent>p {
  margin: 0 0 16px 0;
  color: #30241a;
  line-height: 1.5;
  font-size: 14px;
  background: rgba(250, 243, 224, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(203, 189, 147, 0.3);
}

.locationInfoWindow {
  max-width: 320px;
  background: rgba(250, 243, 224, 0.95);
  backdrop-filter: blur(12px) saturate(180%);
  -webkit-backdrop-filter: blur(12px) saturate(180%);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(48, 36, 26, 0.25);
  border-radius: inherit;
}

.locationInfoWindow>.locationHeader {
  background: rgba(203, 189, 147, 0.95);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  padding: 20px;
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80px;
  box-sizing: border-box;
  text-align: center;
  position: relative;
  border-bottom: 1px solid rgba(48, 36, 26, 0.3);
}

.locationInfoWindow>.locationHeader>.locationLogo {
  height: 48px;
  width: auto;
  margin-bottom: 10px;
  filter: brightness(0) invert(1);
}

.locationInfoWindow>.locationHeader>.close-btn {
  color: white;
  font-size: 24px;
  position: absolute;
  top: 5px;
  right: 5px;
}

.locationInfoWindow>.locationHeader>.close-btn:hover {
  color: black;
}

.locationInfoWindow>.locationHeader>h3 {
  margin: 0;
  color: white;
  font-size: 16px;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  max-width: 100%;
}

.locationInfoWindow>.locationContent {
  padding: 16px;
}

.locationInfoWindow>.locationContent>.locationDetails {
  background: rgba(203, 189, 147, 0.2);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
  border-left: 4px solid #cbbd93;
  border: 1px solid rgba(203, 189, 147, 0.3);
}

.locationInfoWindow>.locationContent>.locationDetails>.detailsBox {
  display: grid;
  gap: 6px;
  font-size: 14px;
  line-height: 1.4;
}

.locationInfoWindow>.locationContent>p {
  margin: 0 0 16px 0;
  color: #30241a;
  line-height: 1.5;
  font-size: 14px;
  background: rgba(250, 243, 224, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(203, 189, 147, 0.3);
}

.gm-style-iw.gm-style-iw-c:has(.locationInfoWindow) {
  padding: 0 !important;
}

.locationInfoWindow>.locationContent>.distanceInfo {
  background: rgba(203, 189, 147, 0.3);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 16px;
  border: 1px solid rgba(203, 189, 147, 0.5);
}

.locationInfoWindow>.locationContent>.distanceInfoContent {
  color: #30241a;
  font-weight: 600;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.locationInfoWindow>.locationContent>.distanceInfoContent>span {
  font-size: 16px;
}

.directionsButton>a>span {
  font-size: 16px;
}

.locationInfoWindow>.locationContent>.directionsButton {
  border-top: 1px solid rgba(203, 189, 147, 0.5);
  padding-top: 16px;
  text-align: center;
}

.locationInfoWindow>.locationContent>.directionsButton>.directionsLink {
  background: #cbbd93;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: 25px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(48, 36, 26, 0.25);
  font-size: 14px;
  border: none;
  cursor: pointer;
}

.locationInfoWindow>.locationContent>.directionsButton>.directionsLink:hover {
  background: #30241a;
  box-shadow: 0 6px 20px rgba(48, 36, 26, 0.35);
  transform: translateY(-1px);
}

.locationRequestBtn {
  background: rgba(250, 243, 224, 0.9);
  backdrop-filter: blur(8px) saturate(140%);
  -webkit-backdrop-filter: blur(8px) saturate(140%);
  border: 1px solid rgba(203, 189, 147, 0.6);
  border-radius: 8px;
  padding: 12px;
  margin: 10px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(48, 36, 26, 0.15);
}

.locationRequestBtn:hover {
  background: rgba(203, 189, 147, 0.9);
  backdrop-filter: blur(10px) saturate(160%);
  -webkit-backdrop-filter: blur(10px) saturate(160%);
  border-color: rgba(48, 36, 26, 0.7);
  box-shadow: 0 6px 16px rgba(48, 36, 26, 0.25);
  transform: translateY(-1px);
}

.locationRequestBtn>.locationRequestIcon {
  color: #cbbd93;
  font-weight: 500;
  margin-bottom: 5px;
}

.locationRequestBtn>.locationRequestText {
  color: #30241a;
  font-size: 12px;
}

/* Small button variant */
.btn.small {
  padding: 8px 16px;
  font-size: 12px;
  border-radius: 16px;
}

/* Large button variant */
.btn.large {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: 28px;
}

/* Filter Styles */
.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 8px;
}

.filter-group label {
  font-weight: 500;
  color: #30241a;
  font-size: 14px;
}

.filter-group select {
  padding: 12px 16px;
  border: 1px solid #cbbd93;
  border-radius: 8px;
  font-size: 14px;
  background: #faf3e0;
  color: #30241a;
  transition: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
  outline: none;
}

.filter-group select:disabled {
  background: #cbbd93;
  color: #30241a;
  cursor: not-allowed;
  border-color: #cbbd93;
  opacity: 0.6;
}

.filter-group select:focus:not(:disabled) {
  border-color: #30241a;
  box-shadow: 0 0 0 2px rgba(48, 36, 26, 0.2);
}

.filter-group select:hover:not(:disabled):not(:focus) {
  border-color: #30241a;
}

/* Filter button container */
.filter-buttons {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

.filter-btn,
.clear-btn {
  flex: 1;
}

/* Location Prompt Styles */
.location-prompt {
  margin: 15px 0;
  padding: 0;
}

.location-prompt-content {
  display: flex;
  align-items: center;
  background: #faf3e0;
  border: 1px solid #cbbd93;
  border-radius: 8px;
  padding: 12px;
  transition: all 0.2s ease;
}

.location-prompt-content:hover {
  background: #cbbd93;
  box-shadow: 0 2px 8px rgba(48, 36, 26, 0.15);
}

.location-icon {
  font-size: 20px;
  margin-right: 10px;
}

.prompt-text {
  flex: 1;
  margin-right: 10px;
}

.prompt-text strong {
  color: #30241a;
  font-weight: 500;
  display: block;
  margin-bottom: 2px;
}

.prompt-text p {
  color: #30241a;
  font-size: 12px;
  margin: 0;
  line-height: 1.3;
}

.location-btn {
  background: #cbbd93;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.location-btn:hover {
  background: #30241a;
}

.location-btn:active {
  background: #1a120d;
}

/* Location Item Styles */
.location-item {
  padding: 15px;
  border: 1px solid #cbbd93;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 10px;
  background: #faf3e0;
  -webkit-tap-highlight-color: rgba(48, 36, 26, 0.1);
  touch-action: manipulation;
  position: relative;
  overflow: hidden;
}

.location-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(48, 36, 26, 0.04);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.location-item:hover::before,
.location-item:active::before {
  opacity: 1;
}

.location-item.focused::before {
  background: rgba(48, 36, 26, 0.08);
  opacity: 1;
}

.location-item:hover {
  background: #cbbd93;
  border-color: #30241a;
  box-shadow: 0 2px 8px rgba(48, 36, 26, 0.1);
}

.location-item:hover h4,
.location-item:hover p {
  color: white;
}

.location-item:hover .phone-number {
  color: white;
}

.location-item:hover .phone-number:hover {
  color: #faf3e0;
  text-decoration: underline;
}

.location-item:hover .distance-info {
  background: #30241a;
  color: white;
  border-color: #faf3e0;
}

.location-item:active {
  background: #30241a;
  color: white;
  border-color: #30241a;
  transform: translateY(1px);
}

.location-item.focused {
  background: #cbbd93;
  border-color: #30241a;
  box-shadow: 0 4px 12px rgba(48, 36, 26, 0.2);
}

.location-item.focused h4,
.location-item.focused p {
  color: white;
}

.location-item.focused .phone-number {
  color: white;
}

.location-item h4 {
  margin: 0 0 8px 0;
  color: #30241a;
  font-size: 16px;
  font-weight: 600;
}

.location-item p {
  margin: 0 0 5px 0;
  color: #30241a;
  font-size: 14px;
  line-height: 1.4;
}

.location-item p:last-child {
  margin-bottom: 0;
}

/* Phone number styling */
.location-item .phone-number {
  margin: 4px 0 6px 0;
  font-size: 13px;
  color: #30241a;
  font-weight: 600;
}

.location-item .phone-number:hover {
  color: #cbbd93;
  text-decoration: underline;
}

/* Load more button styling */
.load-more-btn button {
  transition: all 0.2s ease;
}

.load-more-btn button:hover {
  background: #30241a !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(48, 36, 26, 0.3);
}

.load-more-btn button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(48, 36, 26, 0.2);
}

.load-more-btn button:disabled {
  background: #ccc !important;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Accordion Styles for Filter Section - Warm Color Palette */
.filter-accordion {
  flex-shrink: 0;
}

.filter-accordion-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  background: transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  border-bottom: 1px solid rgba(203, 189, 147, 0.5);
  user-select: none;
}

.filter-accordion-header:hover {
  background: rgba(203, 189, 147, 0.9);
  backdrop-filter: blur(8px) saturate(150%);
  -webkit-backdrop-filter: blur(8px) saturate(150%);
}

.filter-accordion-header span:first-child {
  font-weight: 600;
  color: #30241a;
  font-size: 16px;
}

.accordion-arrow {
  font-size: 14px;
  color: #cbbd93;
  transition: all 0.3s ease;
  transform: rotate(0deg);
  font-weight: bold;
}

.filter-accordion-header:hover .accordion-arrow {
  color: #30241a;
}

.filter-accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.filter-accordion-content.expanded {
  max-height: 1000px; /* Large enough to accommodate content */
}

.filter-accordion-content .filter-section {
  padding: 20px;
  border-bottom: none;
}

/* Accordion responsive styles */
.filter-accordion-header {
  padding: 12px 20px;
}

.filter-accordion-header span:first-child {
  font-size: 15px;
}

.accordion-arrow {
  font-size: 12px;
}

.filter-accordion-content .filter-section {
  padding: 15px 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    left: -100%;
  }

  .sidebar-toggle {
    font-size: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  }

  .sidebar-header {
    padding: 20px;
  }

  .sidebar-header h3 {
    font-size: 20px;
  }

  .filter-section {
    padding: 20px;
  }

  .filter-section h4 {
    font-size: 16px;
    margin-bottom: 15px;
  }

  .filter-section select {
    font-size: 16px;
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 8px;
    border: 2px solid #ddd;
    background: white;
    width: 100%;
    box-sizing: border-box;
  }

  .filter-buttons {
    gap: 12px;
  }

  .filter-buttons button {
    font-size: 14px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
  }

  .locations-header {
    padding: 20px 20px 15px;
  }

  .locations-header h4 {
    font-size: 18px;
  }

  .locations-count {
    font-size: 14px;
    padding: 8px 16px;
    border-radius: 20px;
  }

  .locations-list {
    padding: 0 20px 20px;
  }

  .location-item {
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
  }

  .location-item h4 {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.3;
  }

  .location-item p {
    font-size: 14px;
    margin-bottom: 8px;
    line-height: 1.4;
  }

  .phone-number {
    font-size: 14px;
  }

  .phone-number a {
    padding: 8px 0;
    display: inline-block;
  }

  .distance-info {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 6px;
    margin-top: 10px;
  }

  .location-prompt {
    margin: 15px 20px;
    padding: 20px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
  }

  .location-prompt button {
    font-size: 14px;
    padding: 12px 20px;
    margin-top: 12px;
    border-radius: 8px;
  }

  .no-results {
    font-size: 16px;
    padding: 40px 20px;
  }

  .loading {
    font-size: 16px;
    padding: 40px 20px;
  }

  .load-more-indicator {
    margin: 15px 20px;
    font-size: 14px;
  }

  .load-more-indicator button {
    font-size: 14px;
    padding: 10px 18px;
    margin-top: 10px;
    border-radius: 6px;
  }

  .infinite-loading {
    font-size: 14px;
    padding: 25px 20px;
  }

  .load-error {
    font-size: 14px;
    margin: 15px 20px;
  }

  .load-error button {
    font-size: 12px;
    padding: 6px 12px;
    margin-left: 8px;
  }
}

/* Extra small devices (phones in portrait mode) */
@media (max-width: 480px) {
  .sidebar-toggle {
    font-size: 18px;
  }

  .sidebar-header {
    padding: 15px;
  }

  .sidebar-header h3 {
    font-size: 18px;
  }

  .filter-section {
    padding: 15px;
  }

  .filter-section h4 {
    font-size: 15px;
  }

  .filter-section select {
    font-size: 15px;
    padding: 10px;
  }

  .filter-buttons button {
    font-size: 13px;
    padding: 10px 16px;
  }

  .locations-header {
    padding: 15px 15px 10px;
  }

  .locations-header h4 {
    font-size: 16px;
  }

  .locations-list {
    padding: 0 15px 15px;
  }

  .location-item {
    padding: 15px;
    margin-bottom: 12px;
  }

  .location-item h4 {
    font-size: 15px;
  }

  .location-item p {
    font-size: 13px;
  }

  .distance-info {
    font-size: 12px;
  }

  .location-prompt {
    margin: 0px -15px;
    padding: 15px;
  }
}

/* Touch-friendly improvements */
.location-item {
  cursor: pointer;
  -webkit-tap-highlight-color: rgba(26, 115, 232, 0.1);
  touch-action: manipulation;
  position: relative;
  overflow: hidden;
}

.location-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 115, 232, 0.04);
  opacity: 0;
  transition: opacity 0.2s ease;
  pointer-events: none;
}

.location-item:hover::before,
.location-item:active::before {
  opacity: 1;
}

.location-item.focused::before {
  background: rgba(26, 115, 232, 0.08);
  opacity: 1;
}

/* Improve button touch targets for mobile */
.btn,
.filter-btn,
.clear-btn {
  min-height: 44px;
  /* iOS Human Interface Guidelines minimum */
  min-width: 44px;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

/* Improve form elements for mobile */
select,
input {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

select:focus,
input:focus {
  outline: 2px solid #30241a;
  outline-offset: 2px;
}

/* Better scrolling on mobile */
.locations-list {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.sidebar {
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Distance calculation states */
.distance-calculating {
  color: #999;
  font-style: italic;
  animation: pulse 1.5s ease-in-out infinite;
}

.distance-updated {
  animation: fadeIn 0.5s ease-in;
}

.distance-error {
  color: #dc3545;
  font-size: 12px;
}

@keyframes pulse {
  0% { opacity: 0.6; }
  50% { opacity: 1; }
  100% { opacity: 0.6; }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Enhanced location prompt styles for better mobile support */
.location-error,
.location-success,
.location-denied,
.location-warning {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  margin: 10px 0;
  font-size: 14px;
  line-height: 1.4;
}

.location-error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.location-success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
}

.location-denied {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
}

.location-warning {
  background-color: #fffbeb;
  border: 1px solid #fed7aa;
  color: #d97706;
}

.location-error .location-icon,
.location-success .location-icon,
.location-denied .location-icon,
.location-warning .location-icon {
  font-size: 20px;
  line-height: 1;
  margin-top: 2px;
}

.location-text h4 {
  margin: 0 0 8px 0;
  font-weight: 600;
  font-size: 15px;
}

.location-text p {
  margin: 0 0 12px 0;
  color: inherit;
  opacity: 0.9;
}

.location-text details {
  margin: 12px 0;
}

.location-text summary {
  cursor: pointer;
  font-weight: 500;
  padding: 8px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  margin-bottom: 8px;
}

.location-text pre {
  font-size: 12px;
  line-height: 1.4;
  padding: 12px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  margin: 8px 0;
  overflow-x: auto;
}

.retry-location-btn,
.reload-btn {
  background: #cbbd93;
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 0.2s;
}

.retry-location-btn:hover,
.reload-btn:hover {
  background: #30241a;
}

.retry-location-btn:active,
.reload-btn:active {
  background: #1a120d;
}

/* Mobile specific styles for location prompts */
@media (max-width: 768px) {
  .location-error,
  .location-success,
  .location-denied,
  .location-warning {
    padding: 14px;
    font-size: 13px;
    gap: 10px;
  }

  .location-text h4 {
    font-size: 14px;
  }

  .location-text pre {
    font-size: 11px;
    padding: 10px;
  }

  .retry-location-btn,
  .reload-btn {
    padding: 12px 16px;
    font-size: 14px;
    width: 100%;
    margin-top: 8px;
  }
}

/* Loading state for location prompt */
.location-prompt.loading {
  opacity: 0.7;
  pointer-events: none;
}

.location-prompt.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid #faf3e0;
  border-top: 2px solid #cbbd93;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}