/* ==============================================================
   GPS / ubicación centralizado — CUADRO ÚNICO
   (fix 2026-08-10) Override COMPARTIDO para los portales
   client (data-workori-page="client") y provider
   (data-workori-page="provider").

   Objetivo (mismo criterio que el index): el campo de ubicación y
   el botón GPS deben verse como UN SOLO OBJETO centrado, con el
   RECTÁNGULO del campo REDUCIDO para que NO llegue hasta el botón
   (queda un hueco y el conjunto campo+botón queda centrado).
   No se toca el CSS original (base.css). Este archivo se carga
   DESPUÉS de todos los CSS de cada portal.
   ============================================================== */

/* ═══ Contenedor: campo (rectángulo angosto) + botón, centrados ═══ */
body[data-workori-page="client"] .location-input-row,
body[data-workori-page="provider"] .location-input-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: relative;
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

/* ═══ El RECTÁNGULO del campo: ancho reducido, con su propio borde ═══ */
body[data-workori-page="client"] .location-input-row input[type="text"],
body[data-workori-page="client"] .location-input-row input,
body[data-workori-page="provider"] .location-input-row input[type="text"],
body[data-workori-page="provider"] .location-input-row input {
  flex: 0 1 auto;
  width: auto;
  min-width: 0;
  max-width: calc(100% - 56px);
  min-height: 34px;
  padding: 0 14px;
  border: 1.5px solid #d8e2ef;
  border-radius: 10px;
  background: #ffffff;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ink, #08142d);
  outline: 0;
  box-sizing: border-box;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

body[data-workori-page="client"] .location-input-row input::placeholder,
body[data-workori-page="provider"] .location-input-row input::placeholder {
  color: #7b8598;
  font-weight: 500;
}

body[data-workori-page="client"] .location-input-row input:focus,
body[data-workori-page="provider"] .location-input-row input:focus {
  border-color: var(--blue, var(--blue));
  box-shadow: 0 0 0 3px rgba(7, 95, 228, 0.12);
}

/* ═══ El botón GPS: cuadrado independiente, separado del campo ═══ */
body[data-workori-page="client"] .location-button,
body[data-workori-page="provider"] .location-button,
body[data-workori-page="client"] [class*="location-button"],
body[data-workori-page="provider"] [class*="location-button"] {
  flex: 0 0 36px;
  width: 36px;
  min-width: 36px;
  height: 36px;
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  border: 1.5px solid #d8e2ef;
  border-radius: 10px;
  background: #eef4ff;
  color: var(--blue, var(--blue));
  margin: 0;
  padding: 0;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

body[data-workori-page="client"] .location-button:hover,
body[data-workori-page="client"] .location-button:focus,
body[data-workori-page="provider"] .location-button:hover,
body[data-workori-page="provider"] .location-button:focus {
  background: #dfebff;
  color: var(--blue, var(--blue));
  outline: 0;
}

body[data-workori-page="client"] .location-button .location-button-icon,
body[data-workori-page="provider"] .location-button .location-button-icon,
body[data-workori-page="client"] [class*="location-button"] .location-button-icon,
body[data-workori-page="provider"] [class*="location-button"] .location-button-icon {
  width: 18px;
  height: 18px;
}

/* ═══ En móvil: campo más angosto para que el botón respire ═══ */
@media (max-width: 599px) {
  body[data-workori-page="client"] .location-input-row input[type="text"],
  body[data-workori-page="client"] .location-input-row input,
  body[data-workori-page="provider"] .location-input-row input[type="text"],
  body[data-workori-page="provider"] .location-input-row input {
    min-height: 38px;
  }
  body[data-workori-page="client"] .location-button,
  body[data-workori-page="provider"] .location-button,
  body[data-workori-page="client"] [class*="location-button"],
  body[data-workori-page="provider"] [class*="location-button"] {
    flex: 0 0 38px;
    width: 38px;
    min-width: 38px;
    height: 38px;
    min-height: 38px;
  }
}
