html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #121212;
    color: white;
    font-family: sans-serif;
}

.container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

#city-text {
    text-align: center;
    padding: 10px;
    font-size: 18px;
}

#map {
    flex: 1;
    height: 100%;
    width: 100%;
}

.gm-style-iw {
    background-color: #ffffff !important; /* white background */
    color: #000000 !important;            /* black text */
    padding: 0 !important;
    border-radius: 8px !important;
    max-width: 240px;
    overflow: hidden !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
  }
  
  /* Hide the white arrow "tail" */
  .gm-style-iw::after,
  .gm-style-iw::before {
    display: none !important;
  }
  
  /* Style the close button (X) */
  .gm-ui-hover-effect {
    filter: none !important;        /* remove invert */
    top: 6px !important;
    right: 6px !important;
    opacity: 1 !important;
  }

#map {
    position: relative;
    height: 100vh;
    width: 100%;
}

/* Header Bar */
.header-bar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background-color: #1e1e1e;
    border-bottom: 1px solid #333;
    color: #e0e0e0;
    z-index: 10;
  }
  
  .header-back {
    color: #00fa9a;
    font-weight: bold;
    text-decoration: none;
    white-space: nowrap;
    z-index: 2;
  }
  
  .header-user {
    min-width: 120px;
    text-align: right;
    font-weight: bold;
    color: #00fa9a;
    z-index: 2;
  }
  
  /* Absolutely center the city title */
  .header-city {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    font-size: 18px;
    color: #e5c559;
    white-space: nowrap;
    z-index: 1;
  }

/* Record Court Button */
#record-court-btn {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 15px 20px;
    background-color: #00fa9a;
    color: black; /* fix text color to be readable */
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10;
}

@media (max-width: 600px) {
  .header-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background-color: #1e1e1e;
    border-bottom: 1px solid #333;
    color: #e0e0e0;
    position: relative;
    z-index: 10;
    flex-wrap: nowrap; /* prevent wrapping */
  }

  .header-back,
  .header-user {
    flex: 1;
  }

  .header-back {
    text-align: left;
  }

  .header-user {
    text-align: right;
  }

  .header-city {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-size: 18px;
    color: #e5c559;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 60%;
  }
}

.globe-button i {
  font-size: 24px;
  color: #00fa9a;
  /* Neon green */
  transition: transform 0.2s;
}

.globe-button:hover i {
  transform: scale(1.1);
}

.local-button i {
  font-size: 24px;
  color: #00fa9a;
  /* Neon green */
  transition: transform 0.2s;
}

.local-button:hover i {
  transform: scale(1.1);
}