/* ===== Página Ubícanos (base original + mejoras de estilo) ===== */
body { background-color:#f6f7f9; }
main#main { padding-top:0 !important; }

:root{
  /* Brand */
  --brand-brown:#5b3a2e;
  --brand-brown-700:#472f26;
  --brand-yellow:#f7d34a;

  /* Neutrales */
  --gray-050:#f6f7f9;
  --gray-100:#f8f9fa;
  --gray-200:#e9ecef;
  --text-muted:#6c757d;

  /* Sombras */
  --shadow-1:0 2px 6px rgba(0,0,0,.06);
  --shadow-2:0 6px 14px rgba(0,0,0,.08);
}

/* ========= Header ========= */
/* ===== Hero como card (fondo + radius) ===== */
.ubicanos-page .hero-wrap{
  /* reemplaza el borde inferior plano por una tarjeta */
  border: 1px solid var(--gray-200);
  background: linear-gradient(180deg, #ffffff 0%, #ffffff 65%, rgba(255,255,255,0.92) 100%);
  border-radius: 12px;                /* mismo radius que .card-elevated */
  padding: 16px 18px;                 /* mismo padding que usas en UI Pro */
  margin-bottom: 1rem;                /* mantén el espaciado que ya tienes */
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 6px 14px rgba(0,0,0,.06);  /* sombra suave coherente */
}

/* Ajuste sutil en móviles para que el card respire mejor */
@media (max-width: 575.98px){
  .ubicanos-page .hero-wrap{
    border-radius: 10px;
    padding: 12px 14px;
  }
}

.ubicanos-page .brand-logo{
  height:100px; object-fit:contain;
  filter:drop-shadow(0 2px 2px rgba(0,0,0,.12));
  pointer-events: none;
}
.ubicanos-page .section-title{
  font-size:30px; font-weight:800; margin:0; line-height:1.1;
  letter-spacing:.2px;
}
.ubicanos-page .section-subtitle{
  color:var(--text-muted); margin:.25rem 0 0; font-size:15px;
}

/* ========= Card ========= */
.ubicanos-page .card-elevated{
  border-radius:12px;
  border:1px solid var(--gray-200);
  background:#fff;
  box-shadow:var(--shadow-2);
  transition:box-shadow .25s ease;
}
.ubicanos-page .card-elevated:hover{ box-shadow:0 12px 26px rgba(0,0,0,.10); }

/* ========= Filtros (GRID) — MISMA LÓGICA QUE TU ORIGINAL ========= */
.ubicanos-page .filters-grid{
  display:grid;
  /* col1 fija, col2 flexible, col3 según contenido (botones en una fila) */
  grid-template-columns:240px minmax(300px,1fr) max-content;
  gap:12px; align-items:center; min-width:0; width:100%;
}
.ubicanos-page .filters-grid .field{ min-width:0; }

/* Inputs */
.ubicanos-page .custom-input{
  height:42px;                 /* igual que tu original */
  font-family:'Open Sans',sans-serif;
  border-radius:10px;          /* suaviza sin cambiar altura */
  box-shadow:none;
}
.ubicanos-page .input-group-text{
  background:var(--gray-100); border-color:var(--gray-200);
  border-top-left-radius:10px; border-bottom-left-radius:10px;
}
.ubicanos-page .form-control.custom-input{
  border-color:var(--gray-200);
}
.ubicanos-page .form-control.custom-input:focus{
  border-color:var(--brand-yellow);
  outline:0;
  box-shadow:0 0 0 4px rgba(247,211,74,.25);
}

/* ========= Acciones ========= */
.ubicanos-page .actions{
  display:flex;
  justify-content:flex-end;
  gap:.5rem;
  flex-wrap:nowrap;        /* desktop: una sola fila (igual que tu original) */
  white-space:nowrap;
  min-width:0;
  max-width:100%;
}
.ubicanos-page .custom-button{
  display:inline-flex; align-items:center; justify-content:center; gap:.45rem;
  height:42px;                   /* igual que tu original */
  padding:.5rem .9rem;           /* igual que tu original */
  font:700 14px 'Open Sans',sans-serif;
  line-height:1; white-space:nowrap;
  border-radius:10px;            /* igual que tu original */
  border:1px solid transparent;  /* para hover/outline coherente */
  box-shadow:var(--shadow-1);
  transition:transform .06s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
  flex:0 0 auto;                 /* no estiran ni colapsan (igual) */
}
.ubicanos-page .custom-button i{ font-size:1.05rem; line-height:1; }
.ubicanos-page .custom-button:active{ transform:translateY(1px); }
.ubicanos-page .custom-button:focus-visible{
  outline:3px solid rgba(247,211,74,.45);
  outline-offset:2px;
}

/* Variantes de botón (mejor color/hovers, sin cambiar tamaños) */
.ubicanos-page .btn-brand{
  background:var(--brand-brown);
  border-color:var(--brand-brown);
  color:#fff;
}
.ubicanos-page .btn-brand:hover{
  background:var(--brand-brown-700);
  border-color:var(--brand-brown-700);
  color:#fff;
}
.ubicanos-page .btn-accent{
  background:var(--brand-yellow);
  border-color:var(--brand-yellow);
  color:#212529;
}
.ubicanos-page .btn-accent:hover{
  filter:brightness(.96);
  color:#212529;
}
.ubicanos-page .btn-outline-secondary.custom-button{
  background:#fff;
  color:#343a40;
  border:1px solid var(--gray-200);
}
.ubicanos-page .btn-outline-secondary.custom-button:hover{
  border-color:#cfd4da;
  box-shadow:0 8px 18px rgba(0,0,0,.10);
}

/* ========= Mapa ========= */
.ubicanos-page #map{
  height:600px;           /* igual que tu original */
  border-radius:12px;
  overflow:hidden;
  position:relative;
}
.ubicanos-page #map::after{
  content:'';
  position:absolute; inset:0; pointer-events:none;
  box-shadow:inset 0 0 0 1px var(--gray-200);
  border-radius:12px;
}

/* ========= Responsive (IGUAL QUE TU ORIGINAL) ========= */
@media (max-width:991.98px){
  .ubicanos-page .brand-logo{ height:88px; pointer-events: none; }

  .ubicanos-page .filters-grid{
    grid-template-columns:1fr;
  }

  .ubicanos-page .actions{
    display:block;
    flex-wrap:unset;
    white-space:normal;
  }

  .ubicanos-page .actions .custom-button{
    display:flex; width:100%; margin-bottom:.5rem;
  }
  .ubicanos-page .actions .custom-button:last-child{ margin-bottom:0; }
}
@media (max-width:575.98px){
  .ubicanos-page .section-title{ font-size:26px; }
  .ubicanos-page .brand-logo{ height:80px; pointer-events: none; }
}

/* ========= Accesibilidad / Motion / Dark (opcional, sin cambiar medidas) ========= */
@media (prefers-reduced-motion:reduce){
  *{ animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}
@media (prefers-color-scheme:dark){
  :root{
    --gray-050:#0f1113; --gray-100:#161b22; --gray-200:#1f2328; --text-muted:#8b949e;
  }
  body{ background-color:var(--gray-050); }
  .ubicanos-page .card-elevated{ background:#14171a; border-color:var(--gray-200); box-shadow:0 8px 22px rgba(0,0,0,.45); }
  .ubicanos-page .input-group-text{ background:#161b22; border-color:var(--gray-200); }
  .ubicanos-page .form-control.custom-input{ border-color:var(--gray-200); color:#e6edf3; background:#0f1113; }
  .ubicanos-page .btn-outline-secondary.custom-button{ background:#14171a; color:#e6edf3; border-color:var(--gray-200); }
  .ubicanos-page #map::after{ box-shadow:inset 0 0 0 1px var(--gray-200); }
}