/* The map and catalog use the same compact segmented control. Their surrounding
   panels supply the light/dark colors; geometry and type are shared here. */
.map-page .segmented-time {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 2px;
  min-width: 0;
  padding: 3px;
  border: 0;
  border-radius: 20px;
}
.map-page .segmented-time button {
  box-sizing: border-box;
  min-width: 0;
  min-height: 36px;
  margin: 0;
  padding: 6px 3px;
  border: 1px solid transparent !important;
  border-radius: 17px;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 550;
  line-height: 1.35;
  white-space: nowrap;
  box-shadow: none;
}
.map-page .segmented-time button:is(.active, [aria-pressed="true"]) {
  font-weight: 550;
  box-shadow: none !important;
}
.map-page .segmented-time button:focus-visible {
  outline: 2px solid var(--time-filter-focus, var(--outlo-brand-accent, #4f46e5));
  outline-offset: 2px;
}

.map-page #customDateRange.map-date-filter {
  margin-top: 10px;
  padding: 12px;
  min-width: 0;
  border: 1px solid #dedaf0;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 4px 18px #30235e07;
}
.map-page #customDateRange[hidden],
.map-page #customDateRange [hidden] { display: none !important; }
.map-page #customDateRange .mdf-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.map-page #customDateRange .mdf-fields-mobile { display: none; }
.map-page #customDateRange .mdf-fields label {
  display: grid;
  gap: 6px;
  min-width: 0;
  margin: 0;
  color: #615c72;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
}
.map-page #customDateRange .mdf-fields input {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: var(--outlo-control-height, 44px);
  margin: 0;
  padding: 8px 7px;
  border: 1px solid #ded9ee;
  border-radius: var(--outlo-control-radius, 12px);
  background: #faf9fe;
  color: #302947;
  color-scheme: light;
  font: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
}
.map-page #customDateRange .mdf-fields input::placeholder {
  font-size: inherit;
  font-weight: inherit;
}
.map-page #customDateRange .mdf-fields input:focus {
  border-color: var(--outlo-brand-accent);
  background: #fff;
  outline: none;
  outline-offset: 0;
  box-shadow: 0 0 0 2px var(--mdf-focus-halo, rgb(79 70 229 / 18%));
}
.map-page #customDateRange .mdf-fields input[aria-invalid="true"] {
  --mdf-focus-halo: #bd45592e;
  border-color: #bd4559;
  background: #fff8fa;
}
#searchFilterPanel .rs-map-filters #customDateRange .mdf-fields input {
  --mdf-focus-halo: #a391ff33;
}
#searchFilterPanel .rs-map-filters #customDateRange .mdf-fields input[aria-invalid="true"] {
  --mdf-focus-halo: #dc859c33;
}
.map-page #customDateRange .mdf-message {
  margin: 8px 0 0;
  color: #a43649;
  font-size: 11px;
  line-height: 1.35;
}
.map-page .segmented-time button[data-when="custom"].is-editing:not(.active) {
  outline: 1px dashed var(--outlo-brand-border-hover);
  outline-offset: -3px;
}
@media (max-width: 900px) {
  .map-page #customDateRange .mdf-fields-desktop { display: none; }
  .map-page #customDateRange .mdf-fields-mobile { display: grid; }
  .map-page #customDateRange .mdf-fields input { font-size: 16px; letter-spacing: 0; }
}
@media (max-width: 380px) {
  .map-page #customDateRange .mdf-fields { grid-template-columns: minmax(0, 1fr); }
}
@media (forced-colors: active) {
  .map-page #customDateRange .mdf-fields input:focus-visible {
    outline: 2px solid Highlight;
    outline-offset: 2px;
    box-shadow: none;
  }
}
