body {
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  overflow: hidden;
}
#map-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
}
#map {
  width: 100%;
  height: 100%;
}
#search-panel {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1000;
  background-color: white;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  width: 300px;
  max-width: calc(100% - 20px);
  transform: translateX(0);
  transition: transform 0.3s ease;
  overflow: hidden;
}
#search-panel.hidden {
  transform: translateX(100%);
}
.panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 15px;
  background-color: #f5f5f5;
  border-bottom: 1px solid #e0e0e0;
}
.panel-header h1 {
  margin: 0;
  font-size: 16px;
  font-weight: bold;
}
.panel-close {
  cursor: pointer;
  font-size: 18px;
  padding: 0 5px;
}
.panel-content {
  padding: 15px;
  max-height: 80vh;
  overflow-y: auto;
}
.control-row {
  display: flex;
  gap: 8px;
  margin-bottom: 15px;
}
input,
button {
  padding: 8px 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
input {
  flex: 1;
}
button {
  background-color: #4caf50;
  color: white;
  border: none;
  cursor: pointer;
  white-space: nowrap;
}
button:hover {
  background-color: #45a049;
}
#resetBtn {
  background-color: #f44336;
}
#resetBtn:hover {
  background-color: #d32f2f;
}
#tableContainer {
  max-height: 300px;
  overflow-y: auto;
  margin-top: 10px;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
}
#resultsTable {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
#resultsTable th,
#resultsTable td {
  padding: 8px;
  text-align: left;
}
#resultsTable th {
  background-color: #f5f5f5;
  position: sticky;
  top: 0;
  border-bottom: 1px solid #e0e0e0;
}
#resultsTable tr {
  border-bottom: 1px solid #f0f0f0;
}
#resultsTable tr:last-child {
  border-bottom: none;
}
#resultsTable tr:hover {
  background-color: #f9f9f9;
  cursor: pointer;
}
#resultsMessage {
  margin: 10px 0;
  font-size: 14px;
  color: #666;
}
.selected {
  background-color: #e8f5e9 !important;
}
#togglePanelBtn {
  position: absolute;
  top: 10px;
  right: 320px; /* Position just before the panel */
  z-index: 999;
  background-color: white;
  border-radius: 4px;
  width: 34px;
  height: 34px;
  text-align: center;
  line-height: 34px;
  font-size: 18px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: right 0.3s ease;
}
#togglePanelBtn.panel-hidden {
  right: 10px;
}
#locationBtn {
  position: absolute;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  background-color: white;
  border-radius: 4px;
  width: 44px;
  height: 44px;
  text-align: center;
  line-height: 44px;
  font-size: 22px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}
@media screen and (max-width: 768px) {
  #search-panel {
    max-height: 60vh;
    width: calc(100% - 20px);
  }
  .panel-content {
    max-height: 50vh;
  }
  #togglePanelBtn.panel-hidden {
    right: 10px;
  }
  #togglePanelBtn {
    right: calc(100% - 44px);
  }
  #locationBtn {
    bottom: 70px; /* Move up to avoid overlap with panel toggle on mobile */
  }
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin: 0;
    padding: 16px;
    line-height: 1.4;
}

h1 {
    color: #333;
    text-align: center;
}

form {
    margin: 20px 0;
    display: flex;
    flex-direction: column;
}

label {
    margin-bottom: 8px;
}

input, button {
    padding: 12px;
    margin-bottom: 15px;
}

button {
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background-color: #45a049;
}

#result {
    margin-top: 20px;
    border-top: 1px solid #ddd;
    padding-top: 20px;
}

/* Mobile responsiveness */
@media screen and (max-width: 768px) {
    body {
        font-size: 18px;
        padding: 12px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    p {
        font-size: 18px;
    }
    
    input, button {
        font-size: 18px;
        padding: 14px;
    }
    
    label {
        font-size: 20px;
    }
    
    #postalCode, #address {
        font-size: 20px;
        line-height: 1.5;
    }
}

/* Map-specific styling to make street names bigger */
.map-container {
    height: 400px;
    width: 100%;
    margin-top: 20px;
}

/* These classes target common map libraries */
.leaflet-popup-content {
    font-size: 16px !important;
}

/* For Google Maps */
.gm-style {
    font-size: 16px !important;
}

/* Increase street label size - specific implementation depends on map library */
@media screen and (max-width: 768px) {
    .leaflet-popup-content {
        font-size: 18px !important;
    }
    
    .gm-style {
        font-size: 18px !important;
    }
}

  
  /* OPPO Find X8 specific optimizations */
  @media screen and (max-width: 2772px) and (-webkit-min-device-pixel-ratio: 2.5) {
    #map {
      /* height: 60vh; */
    }
    
    #search-panel {
      width: 100%;
      max-height: 40vh;
      position: fixed;
      bottom: 0;
      left: 0;
      border-radius: 20px 20px 0 0;
      box-shadow: 0 -2px 10px rgba(0,0,0,0.1);
    }
  
    #resultsTable {
      font-size: 14px;
      max-height: 30vh;
    }
  
    .search-container {
      padding: 10px;
    }
  
    #togglePanelBtn {
      width: 40px;
      height: 40px;
      top: unset;
      bottom: 41vh;
    }
  }
  