* {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Oxygen, Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  margin: 0;
  padding: 0;
  text-decoration: none;
  box-sizing: border-box;
}

body {
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.container {
  width: 95%;
  max-width: 2400px;
  margin: 20px auto;
  background: #fff;
  padding: 20px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 20px;
}

.sidebar {
  flex: 0 0 350px;
  overflow-y: scroll;
  max-height: 80vh;
  padding-right: 15px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.sidebar::-webkit-scrollbar {
  display: none;
}

.search-container {
  position: sticky;
  top: 0;
  background: white;
  padding: 15px;
  margin-bottom: 15px;
  z-index: 1;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.search-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}

#search-input {
  width: 100%;
  padding: 12px 40px 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  background-color: #f8f9fa;
  transition: all 0.3s ease;
}

#search-input::placeholder {
  color: #9ca3af;
}

#search-input:hover {
  border-color: #d1d5db;
  background-color: #fff;
}

#search-input:focus {
  outline: none;
  border-color: #4285f4;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.search-wrapper::after {
  content: "🔍";
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  pointer-events: none;
}

.filter-buttons {
  margin-top: 10px;
  display: flex;
  align-items: center;
}

.filter-btn {
  padding: 8px 16px;
  background-color: #fff;
  border: 2px solid #4285f4;
  border-radius: 6px;
  color: #4285f4;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background-color: #4285f4;
  color: #fff;
}

.filter-btn.active {
  background-color: #4285f4;
  color: #fff;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #fff;
  min-width: 200px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  padding: 10px;
  z-index: 1000;
  margin-top: 5px;
}

.dropdown.active .dropdown-content {
  display: block;
}

.filter-option {
  padding: 8px;
  border-bottom: 1px solid #eee;
}

.filter-option:last-child {
  border-bottom: none;
}

.filter-section-title {
  font-size: 14px;
  font-weight: 600;
  color: #4285f4;
  margin: 8px 0 4px 0;
}

.filter-dropdown {
  width: 100%;
  padding: 8px;
  border: 2px solid #e0e0e0;
  border-radius: 6px;
  font-size: 14px;
  color: #333;
  background-color: #f8f9fa;
  margin-top: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-dropdown:hover {
  border-color: #d1d5db;
  background-color: #fff;
}

.filter-dropdown:focus {
  outline: none;
  border-color: #4285f4;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(66, 133, 244, 0.1);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  cursor: pointer;
  font-size: 14px;
  color: #333;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.filter-option label {
  display: block;
  font-size: 14px;
  color: #666;
  margin-bottom: 2px;
}

.clear-filters-btn {
  width: 100%;
  padding: 8px;
  background-color: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  color: #666;
  cursor: pointer;
  margin-top: 8px;
  transition: all 0.3s ease;
}

.clear-filters-btn:hover {
  background-color: #e0e0e0;
  color: #333;
}

.arrow {
  display: inline-block;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.dropdown.active .arrow {
  transform: rotate(180deg);
}

#map {
  flex: 1;
  height: 80vh;
  border-radius: 8px;
}

.error {
  color: #dc2626;
  text-align: center;
  margin: 10px 0;
  padding: 10px;
  background-color: #fef2f2;
  border-radius: 6px;
  font-size: 14px;
}

.loading {
  text-align: center;
  font-size: 1.2em;
  color: #666;
  padding: 20px 0;
}

.places-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

.place-item {
  border-bottom: 1px solid #ddd;
  padding: 15px;
  transition: all 0.2s ease;
  cursor: pointer;
}

.place-item:hover {
  background-color: #f8f9fa;
  transform: translateX(5px);
}

.place-item:active {
  background-color: #f3f4f6;
  transform: translateX(3px);
}

.place-item:last-child {
  border-bottom: none;
}

.place-name {
  font-size: 1.1em;
  color: #333;
  margin: 0;
}

.place-address {
  color: #666;
  margin: 5px 0;
  font-size: 0.9em;
}

.place-rating {
  margin: 5px 0 0 0;
  font-size: 0.9em;
}

.filter-icon {
  width: 24px;
  height: 24px;
  margin-right: 8px;
  vertical-align: middle;
  filter: invert(47%) sepia(92%) saturate(2741%) hue-rotate(201deg)
    brightness(99%) contrast(93%);
  transition: filter 0.3s ease;
}

.filter-btn:hover .filter-icon {
  filter: invert(100%) sepia(0%) saturate(0%) hue-rotate(0deg) brightness(100%)
    contrast(100%);
}

.info-window-container {
  padding: 16px;
  max-width: 300px;
  font-family: Arial, sans-serif;
}

.info-window-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 8px;
}

.info-window-address {
  color: #666;
  margin-bottom: 12px;
  font-size: 14px;
}

.popularity-section {
  margin-bottom: 16px;
}

.popularity-header {
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 14px;
}

.popularity-gauge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.gauge-bar {
  flex: 1;
  height: 8px;
  background-color: #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
}

.gauge-fill {
  height: 100%;
  transition: width 0.3s ease;
}

.gauge-fill-low {
  background-color: #4caf50;
}

.gauge-fill-medium {
  background-color: #ffc107;
}

.gauge-fill-high {
  background-color: #ff9800;
}

.gauge-fill-very-high {
  background-color: #f44336;
}

.gauge-percentage {
  font-size: 12px;
  min-width: 36px;
  text-align: right;
}

.gauge-title {
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.gauge-fill-closed {
  background-color: #dc2626;
}

.gauge-status {
  font-size: 12px;
  min-width: 36px;
  text-align: right;
  color: #dc2626;
  font-weight: bold;
}

.no-data {
  color: #666;
  font-size: 14px;
  font-style: italic;
  margin: 8px 0;
}

.upcoming-hours {
  margin-top: 16px;
}

.hour-slot {
  margin-bottom: 12px;
}

.hour-label {
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 4px;
}

.working-hours {
  margin-top: 16px;
  font-size: 13px;
  color: #666;
}

.loading-container {
  padding: 16px;
  text-align: center;
}

.loading-text {
  font-weight: 500;
  margin-bottom: 12px;
}

.loading-spinner {
  width: 32px;
  height: 32px;
  border: 3px solid #f3f3f3;
  border-top: 3px solid #333;
  border-radius: 50%;
  margin: 0 auto;
  animation: spin 1s linear infinite;
}

.view-details-btn {
  background-color: #4285f4;
  color: white;
  border: none;
  border-radius: 4px;
  padding: 8px 16px;
  margin-top: 8px;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.view-details-btn:hover {
  background-color: #3367d6;
}

.view-details-btn:active {
  transform: scale(0.98);
}

.working-hours {
  margin-top: 12px;
  padding: 8px;
  border-radius: 4px;
  background-color: #f5f5f5;
}

.status {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 4px;
  margin-bottom: 4px;
  font-weight: 500;
}

.status.open {
  background-color: #e6ffe6;
  color: #006600;
}

.status.closed {
  background-color: #ffe6e6;
  color: #660000;
}

.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
}

.header .logo img {
  padding: 2px;
  width: 120px;
  height: auto;
}

.navigation-bar {
  padding: 8px;
  display: flex;
  width: 30%;
  justify-content: space-around;
}

.navigation-bar a {
  color: #593d3b;
}

.navigation-bar a:hover {
  color: #a3b18a; /* Optional hover color */
}

.places-container {
  height: 100%;
  overflow-x: hidden;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.places-container::-webkit-scrollbar {
  display: none;
}

.reset-btn {
  padding: 9px 16px 12px 16px;
  background-color: #fff;
  border: 2px solid #4285f4;
  border-radius: 6px;
  color: #4285f4;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.reset-btn:hover {
  background-color: #4285f4;
  color: #fff;
}

.reset-btn:active {
  transform: scale(0.98);
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 10px;
  }

  .sidebar {
    flex: none;
    width: 100%;
    max-height: 40vh;
  }

  #map {
    height: 50vh;
  }

  .search-container {
    position: sticky;
    top: 0;
  }
}
