/* Opt into customizable select */
.custom-select, .custom-select::picker(select) {
  appearance: base-select;
}

/* The "button" when closed */
.custom-select {
  border: 1px solid #bbb;
  padding: 5px 14px;
  font-size: 16px;
  background-color: rgba(0,0,0,0) !important;
  color: #fff !important;
  cursor: pointer;
  min-width: 120px;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: border-color 0.25s, background-color 0.25s;
  position: relative;
  float: right;
  margin-bottom: -32px;
}

/* The selected content (what the <button> shows) */
.custom-select > button > selectedcontent {
  display: inline-flex;
  align-items: center;
  color: #fff !important;
  gap: 10px;
  overflow: visible;      /* IMPORTANT FIX */
  max-width: none;        /* Prevent constraint */
  white-space: nowrap;    /* Fix text clipping */
}

/* Ensure icons inside selected content display */
.custom-select .option-label {
  font-size: 1rem !important;
}
.custom-select .icon {
  display: flex;
}
.custom-select > button::selectedcontent .icon img {
  width: 24px;
  height: auto;
}

/* Hover/focus styles */
.custom-select:hover {
  background-color: #eee;
}.custom-select:focus {
  outline: none;
  border-color: #888;
}

/* Dropdown arrow */
.custom-select::picker-icon {
  margin-left: auto;
  color: #555;
  transition: rotate 0.25s;
}

/* Rotate arrow when open */
.custom-select:open::picker-icon {
  rotate: 180deg;
}

/* Dropdown menu styling */
.custom-select::picker(select) {
  background-color: white;
  border: 1px solid #ccc;
  padding: 0;
  box-shadow: 0 6px 12px rgba(0,0,0,0.12);
}

/* Option rows */
.custom-select option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 5px 5px;
  font-size: 16px;
  cursor: pointer;
}.custom-select option .icon img {
  width: 24px;
  height: auto;
}

/* Hover highlight */
.custom-select option:hover {
  background-color: #f0f6ff;
}

/* Selected row in list */
.custom-select option:checked {
  background-color: #e7f0ff;
  font-weight: 600;
}


/* === Modal Overlay === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75); /* darker backdrop */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

/* === Modal Window (Dark Theme) === */
.modal {
  background: #1a1a1a;             /* deep dark background */
  padding: 24px 28px;
  border: 1px solid #333;          /* subtle border */
  width: 90%;
  max-width: 420px;
  color: #e5e5e5;                  /* light text */
  border-radius: 0;                /* no rounded corners */
  box-shadow: 0 8px 24px rgba(0,0,0,0.75);
}

.modal h2 {
  margin-top: 0;
  color: #ffffff;
}

.modal p {
  color: #cfcfcf;
}

/* Buttons — dark theme */
.choose-location-button-container {
  display: flex;
  justify-content: space-evenly;
}

.choose-location-button {
  margin-top: 16px;
  padding: 10px 16px;
  background: #444;
  color: white;
  border: none;
  cursor: pointer;
  border-radius: 0; /* still no rounding */
  font-size: 15px;
  transition: background 0.2s;
}

.choose-location-button:hover {
  background: #666;
}