.filtros-wrapper {
    overflow: visible !important;
    position: fixed; 
    z-index: 999;
    top: 12rem;
}

:root {
  --filter-panel-width: 300px;
}
/* QUIERO QUE EL BODY SE AJUSTE AL VIEWPORT DE SAFARI, PORQUE LA BARRA DE NAVEGACION SE SUPERPONE. */


.object-fit-cover {
    object-fit: cover;
}

.image_lpa{
    width: 80px;
    height: 46px;
}

.header-main{
    width: 100%;
}

body {
  font-family: 'Rubik', sans-serif;
  background-color: white !important;
  overflow-x: hidden;
  height: calc(var(--vh, 1vh) * 100);
  overflow: hidden;
}
#map{
  height: 100dvh;
}
#app{
  height: 100dvh;
}
.card{
    border: none !important;
    box-shadow: -5px 0px 15px rgba(2, 2, 2, 0.07) !important;
}

.form-control, .form-select, .btn, .card, .carousel-control-prev-icon, .carousel-control-next-icon {
    border-radius: 0 !important;
}

.card-title,
.card-text {
  text-shadow: 1px 1px 2px rgba(0,0,0,0.6);
}
.card:not(.subarea-card) {
  aspect-ratio: 3 / 4;
}
.carousel-item img {
  object-fit: cover;
  width: 100%;
  height: 100%;
}
.sticky-map-container {
  position: sticky;
  top: 80px; 
  z-index: 10;
}
/* Fondo general */
form.minimal-form {
  border-radius: 6px;
}

.leaflet-overlay-pane svg path.area-blur {
  filter: drop-shadow(0 0 6px rgba(0,0,0,0.25));
}

/* Modern buttons for actions */
.btn-primary-modern {
  background: #0b0b0b;
  color: #ffffff;
  border: none;
  border-radius: 8px;
  padding: .6rem .9rem;
  font-weight: 700;
  letter-spacing: .2px;
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}
.btn-primary-modern:hover {
  background: #1a1a1a;
  color: #fff;
}

.btn-reset-modern {
  background: #eef3f6;
  color: #0f172a;
  border: none;
  border-radius: 8px;
  padding: .55rem .9rem;
  font-weight: 600;
}
.btn-reset-modern:hover {
  background: #e7eef2;
}

.image-gallery {
  scroll-behavior: smooth;
}

/* Inputs estilo minimalista */
form.minimal-form input.form-control,
form.minimal-form select.form-select {
  border: none;
  border-bottom: 2px solid #ddd;
  border-radius: 0;
  background-color: white;
  transition: border-color 0.2s;
  font-size: 0.9rem;
  padding-left: 0;
  box-shadow: none;
}

form.minimal-form input.form-control::placeholder {
  color: #aaa;
}

form.minimal-form input.form-control:focus,
form.minimal-form select.form-select:focus {
  border-bottom-color: #333;
  background-color: white;
  outline: none;
  box-shadow: none;
}

/* Botones */
form.minimal-form .btn-success {
  background-color: #28a745;
  border: none;
}

form.minimal-form .btn-secondary {
  background-color: #6c757d;
  border: none;
}
.pagination-style .page-item .page-link {
  color: #000000; /* azul corporativo */
  background-color: white;
  border: 1px solid #dee2e6;
  border-radius: 0;
  padding: 0.5rem 0.75rem;
  font-weight: 500;
  transition: background-color 0.2s, color 0.2s;
}

.pagination-style .page-item:not(.active) .page-link:hover {
  background-color: #f0f0f0;
  color: #000000;
}

.pagination-style .page-item.active .page-link {
  background-color: #000000;
  color: white;
  border-color: #050505;
}

.property-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
  z-index: 10;
  position: relative;
}

.property-tabs .btn-tab {
  background-color: rgba(255, 255, 255, 0.1);
  color: #fff;
  padding: 0.4rem 1rem;
  backdrop-filter: blur(4px);
  transition: all 0.3s ease;
  font-weight: 500;
  text-shadow: 0 1px 1px rgba(0, 0, 0, 0.3);
}

.property-tabs .btn-tab:hover {
  background-color: rgba(255, 255, 255, 0.3);
  color: #000;
  cursor: pointer;
}

.title-info{
  font-weight: 800;      
  font-size: 40px;
  color: #fff;           
  text-align: center;
  letter-spacing: 0.5px;  
  text-transform: uppercase;
  margin-bottom: 20px;
}
.area-label-box {
  background: rgba(255, 255, 255, 0.501);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  font-size: 14px;
  font-weight: bold;
  color: #000;
  gap: 0.25rem;
  box-shadow: 0 0 16px rgba(0,0,0,0.2);
  backdrop-filter: blur(10px);
  transition: all 0.2s ease;
  pointer-events: none; 
}

.area-label-box.expanded {
  font-size: 16px;
  padding: 6px 12px;
  min-width: 100px;
}

.area-label-box .count {
  font-size: 15px;
}
.popup-area-info .leaflet-popup-content-wrapper {
  background: rgba(255, 255, 255, 0.275);
  border-radius: 0%;
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  padding: 4px;
}

.popup-area-info .leaflet-popup-content {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  text-align: center;
}

.popup-area-info .leaflet-popup-tip {
  background: rgba(255, 255, 255, 0.275);
    backdrop-filter: blur(10px);

}
.map-info-box, .total-props-box {
  background: rgba(255, 255, 255, 0.479);
  padding: 6px 12px;
  font-size: 14px;
  font-weight: bold;
  color: #333;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 4px rgba(0, 0, 0, 0.15);
}
.panel {
  position: absolute;
  top: 0;
  bottom: 0;
  background: white;
  z-index: 1000;
  overflow-y: auto;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.left-panel {
  width: 400px;
  left: 0;
  padding: 1rem;
}

.right-panel {
  width: 300px;
  right: 0;
  padding: 1rem;
  transition: transform 0.3s ease;
}

.right-panel.collapsed {
  transform: translateX(100%);
}

#toggle-right-panel {
  position: absolute;
  top: 10px;
  left: -40px;
  width: 30px;
  height: 30px;
}
.map-search-wrapper {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 997;
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-search-box input.form-control {
  border: none;
  box-shadow: none;
  outline: none;
  width: 200px;
}

.map-search-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  aspect-ratio: 1 / 1;   
  background-color: transparent;
  backdrop-filter: blur(10px);
  color: #6c757d;
  text-decoration: none;
  font-size: 18px;
  transition: background-color 0.2s;
  flex-shrink: 0; 
  border: none;
}


.map-clear-btn:hover {
  background-color: #f0f0f0;
}

.text-geo-info{
  display: none;
  background-color: white;
  align-self: center;
  padding: 0.2rem;
  color: #6c757d;
}

.toggle-btn {
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  z-index: 1000;
  border-radius: 8px 0 0 8px;
  padding: 6px 10px;
  background-color: #6c757d;
  color: white;
  border: none;
}

.map-circle-btn-left,
.map-circle-btn-right,
.map-filter-btn-right {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 998;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background-color: white;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: left 0.3s, right 0.3s, bottom 0.3s;
}

.map-circle-btn-left {
  left: 10px;
}

.map-circle-btn-right,
.map-filter-btn-right {
  right: 1.5rem;
  left: auto;
}

.map-filter-btn-right.is-panel-open {
  right: calc(var(--filter-panel-width, 300px) + 1.5rem);
}

#propertyPanel,
#filterPanel {
  width: var(--filter-panel-width, 300px);
  height: 100%;
  position: absolute;
  top: 0;
  right: 0; /* asegúrate de que quede alineado a la derecha */
  background: white; /* fondo translúcido */
  border-left: 1px solid rgba(255, 255, 255, 0.3); /* borde sutil */
  
  z-index: 998;
  overflow-y: auto;
  pointer-events: auto;

  /* transiciones */
  transition: transform 0.3s ease, opacity 0.3s ease;

  /* estética moderna */
  /* border-radius: 16px 0 0 16px;  esquinas redondeadas a la izquierda */
  box-shadow: -4px 0 12px rgba(0,0,0,0.15); /* sombra flotante */
  opacity: 1;
}

#propertyPanel {
  left: 0;
  transform: translateX(-100%);
}

#filterPanel {
  right: 0;
  transform: translateX(0);
}

#propertyPanel.active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

#filterPanel.active {
  transform: translateX(100%);
  opacity: 0;
  pointer-events: all;
}

.sidebar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100dvh;
  width: 60px;
  background: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0;
  z-index: 1003;
  transition: width 0.3s ease;

  overflow: hidden;
}

.sidebar.collapsed {
  width: 60px;
}

.sidebar.expanded {
  width: 200px;
}

.sidebar-btn {
  font-size: 24px;
  cursor: pointer;
  margin-bottom: 20px;
}
.sidebar-btn img {
  max-width: 60px;   /* ajusta ancho */
  max-height: 60px;  /* ajusta alto */
  object-fit: contain; /* mantiene proporción */
  display: block; 
  margin: 0 auto;     /* la centra dentro del botón */
}
.sidebar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 12px;
  color: #333;
  margin: 10px 0;
  text-align: center;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.sidebar-indicator {
  position: absolute;
  right: 0;
  width: 4px;
  top: 0;
  height: 40px;
  background: #38538f; 
  border-radius: 2px 0 0 2px;
  opacity: 0;
  transition: top 0.3s ease, height 0.2s ease, opacity 0.2s ease;
  z-index: 1000;
}
.area-name{
  padding: 0.25rem;
  transition: background-color .18s;
}

.sidebar-indicator.visible {
  opacity: 1;
}

.sidebar-thumbnail {
  position: relative;
  width: 40px;
  height: 40px;
  margin: 8px 0;
  cursor: pointer;
}

.sidebar-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.sidebar-thumbnail .badge {
  position: absolute;
  height: 1rem;
  bottom: -6px;
  right: -6px;
  font-size: 10px;
}

.tooltip-card {
  max-width: 220px;
  background: white;
  border-radius: 10px;
  padding: 10px;
  font-family: 'Segoe UI', sans-serif;
  color: #333;
}

.tooltip-title {
  font-size: 16px;
  font-weight: 600;
  color: #222;
  margin-bottom: 4px;
  line-height: 1.2;
}

.tooltip-location {
  font-size: 14px;
  color: #777;
  margin-bottom: 6px;
}

.tooltip-price {
  font-size: 15px;
  font-weight: bold;
  color: #2e7d32; /* verde elegante */
  margin-bottom: 8px;
}

.tooltip-image {
  width: 100%;
  max-width: 200px;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.leaflet-div-icon{background:transparent;border:0;overflow:visible}

.lpa-pin-icon{
  --bg:#000; --stroke:#fff; --b:2px; --tip:12px; --logo-filter:none;
  --overlap: 2px;                /* <- solapado para eliminar la ranura */
}
.lpa-pin-icon.is-invert{ --bg:#fff; --stroke:#000; --logo-filter: invert(1) brightness(0); }

.lpa-pin-wrap{ position:relative; width:48px; height:60px; }

.lpa-circle{
  position:absolute; top:0; left:50%; transform:translateX(-50%);
  width:44px; height:44px; border-radius:50%;
  background:var(--bg);
  border:var(--b) solid var(--stroke);
  display:flex; align-items:center; justify-content:center;
  transition:background-color .18s, border-color .18s;
  z-index:2;                         /* círculo por encima */
}

.lpa-logo{ width:22px; height:22px; object-fit:contain; filter:var(--logo-filter); transition:filter .18s; }

/* PICO debajo, con solape hacia arriba */
.lpa-tip{
  position:absolute; left:50%; bottom:0; transform:translateX(-50%);
  width:0; height:0; z-index:1;
}
.lpa-tip::before, .lpa-tip::after{ content:""; position:absolute; }

/* Borde del pico (un poco más grande) */
.lpa-tip::before{
  left: calc(-1 * (var(--tip) + var(--b)));
  top:  calc(-1 * (var(--tip) + var(--b) + var(--overlap))); /* <- sube 2px */
  border-left:  calc(var(--tip) + var(--b)) solid transparent;
  border-right: calc(var(--tip) + var(--b)) solid transparent;
  border-top:   calc(var(--tip) + var(--b)) solid var(--stroke);
  transition: border-top-color .18s;
}
.lpa-tip::after{
  left: calc(-1 * var(--tip));
  top:  calc(-1 * (var(--tip) + var(--overlap)));      
  border-left:  var(--tip) solid transparent;
  border-right: var(--tip) solid transparent;
  border-top:   var(--tip) solid var(--bg);
  transition: border-top-color .18s;
}


.slide-panel {
  position: fixed;
  top: 0;
  left: -400px; 
  width: 400px;
  height: 100dvh;
  background: white;
  box-shadow: 4px 0 10px rgba(0, 0, 0, 0.1);
  overflow-y: auto;
  padding: 20px;
  border-radius: 0 16px 16px 0;
  z-index: 998;
  transition: left 0.4s ease;
  backdrop-filter: blur(10px);
}


.slide-panel.active {
  left: 60px;
}
.leaflet-top{
  position: absolute;
  z-index: 997;
}
.leaflet-bottom.leaflet-left {
  margin-left: 4rem;
  margin-bottom: 10px;
  transition: margin-left 0.3s ease;
  z-index: 1004;
}

.leaflet-bottom.leaflet-left.shifted {
  margin-left: 475px;
}


.propertyImgDetail {
  width: 100%;
  height: 250px; /* o el alto que tú prefieras */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}
#propertyDetails .btn-close.close-details {
  position: absolute;
  top: 0px;
  right: 0px;
  z-index: 1010;
}

.icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}


.icon-circle:hover {
  background: #f0f0f0;
}
.start-100{
  left: 80% !important;
}
.slide-panel-saved-props {
  position: fixed;
  top: 0;
  left: 0; 
  width: 350px;
  height: fit-content;
  max-height: 100dvh;
  background-color: white;
  box-shadow: 8px 5px 6px rgba(0, 0, 0, 0.3); 
  overflow-y: auto;
  transform: translateX(-100%); 
  transition: transform 0.3s ease-in-out;
  z-index: 1002 !important;
  padding: 1rem;
  border-right: 1px solid #dee2e6;
}

.slide-panel-saved-props.active {
  transform: translateX(60px); 
}
.titleBox{
  font-weight: 200;
  font-size: 1rem;
}
#boxSavedProps p {
  cursor: pointer;
  transition: background-color 0.2s;
}

#boxSavedProps p:hover {
  background-color: #f8f9fa;
}
.custom-tooltip .leaflet-popup-content { margin: 0; }

.custom-tooltip .tip{
  width: 220px;                  
  padding: 8px;                  
  border-radius: 10px;           
  background: #ffffff65 !important;
  box-shadow: 0 4px 16px rgba(0,0,0,.12); 
}

.custom-tooltip .tip-title{
  margin: 0 0 4px;
  font-size: .92rem;           
  line-height: 1.2;
  font-weight: 700;
  color:#1f2937;
  max-height: 2.4em;
  overflow: hidden;
  text-overflow: ellipsis;
}

.custom-tooltip .tip-meta{
  display:flex;
  align-items:center;
  gap:.3rem;
  flex-wrap: nowrap;          
}

.custom-tooltip .tip-price{
  font-weight:800;
  font-size:.9rem;           
  color:#198754;
  white-space:nowrap;         
}

.custom-tooltip .tip-approx{
  display:inline-flex;
  align-items:center;
  gap:.25rem;
  padding:.06rem .35rem;      
  border-radius:999px;
  background:#fff8e1;
  border:1px solid #ffe7a1;
  color:#7a5d00;
  font-size:.60rem;           
  line-height:1;              
  flex-shrink:0;              
}

.custom-tooltip .tip-thumb{
  width:100%; height:96px;        
  overflow:hidden; border-radius:8px;
  border:1px solid rgba(0,0,0,.06);
  background:#f6f7f9;
}
.custom-tooltip .tip-thumb img{
  width:100%; height:100%; object-fit:cover; display:block;
}

.custom-tooltip .tip-loc{
  margin-top:4px; font-size:.75rem; color:#6b7280;
}
.approx-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  background-color: #38548f66;      
  color: #38538f;                  
  border: 1px solid #253860;   
  border-radius: 12px;           
  
  padding: 4px 10px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;

  box-shadow: 0 1px 2px rgba(0,0,0,0.05); 
  transition: background 0.2s ease;
}
.info-badge-sm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #38548f66;      
  color: #38538f;                  
  border: 1px solid #253860;   
  border-radius: 12px;           
  padding: 1px 5px;
  font-size: 0.55rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05); 
  transition: background 0.2s ease;  
}
.approx-badge:hover {
  background-color: #062c7f;      
}
.approx-badge .in-tooltip {
  font-size: 0.5rem;
}
.approx-badge svg,
.approx-badge img {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}



.map-loader {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  
  display: flex;
  align-items: center;
  justify-content: center;

  width: 90px;
  height: 90px;
  background: rgba(0,0,0,.65);
  border: 2px solid #fff;
  
  z-index: 10000;
  pointer-events: all;
}

.map-loader.hidden { display: none; }

.map-loader .logo-wrap {
  position: relative;
  width: 50px;   
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.map-loader .logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
  animation: breathe 1.6s ease-in-out infinite;
  position: relative;
  z-index: 2;
  top: -4px;
}

.map-loader .ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 65px;   /* anillo más chico */
  height: 65px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,.18);
  border-top-color: #fff;
  animation: spin 1s linear infinite;
  z-index: 1;
}

/* Animaciones */
@keyframes spin {
  to { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}


.tip-thumb {
  position: relative;
  width: 100%;
  height: 120px;          
  border-radius: 8px;
  overflow: hidden;
}

.img-skeleton {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #eee 25%, #ddd 37%, #eee 63%);
  background-size: 400% 100%;
  animation: tip-shimmer 1.1s infinite linear;
  border-radius: 8px;
}

@keyframes tip-shimmer {
  0%   { background-position: -400% 0; }
  100% { background-position:  400% 0; }
}

.tip-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity .2s ease;
  border-radius: 8px;
}

.saved{
  background-color: rgb(56, 83, 143);
  color: #fff;
}

#propertyCarousel .carousel-item img {
  width: 100%;
  height: 80dvh;         /* Ajusta según el alto que quieras */
  object-fit: cover;  /* O "cover" si quieres recortar y llenar */
  background-color: #000; /* Fondo negro elegante */
}
#propertyCarousel .carousel-control-prev-icon,
#propertyCarousel .carousel-control-next-icon {
  filter: none;                 /* quitamos filtros fijos */
  mix-blend-mode: difference;   /* el truco: invierte según el fondo */
  background-color: white;
  opacity: 0.9;
  transition: opacity 0.3s ease;
}

#propertyCarousel .carousel-control-prev,
#propertyCarousel .carousel-control-next {
  width: 10%;  /* más estrecho que por defecto */
}

#propertyCarousel .carousel-control-prev-icon:hover,
#propertyCarousel .carousel-control-next-icon:hover {
  opacity: 1;
}
.draw-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  aspect-ratio: 1/1;      /* 👈 asegura que siempre sea un círculo perfecto */
  border-radius: 50%;
  background-color: white;
  /* backdrop-filter: blur(10px); */
  color: #6c757d;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  font-size: 18px;
  transition: background-color 0.2s;
  border: none;
  cursor: pointer;
  flex-shrink: 0;          /* 👈 evita que se achique si hay poco espacio */
}


.draw-btn:hover {
  background-color: #f1f1f1;
}

#propertyDescription{
  text-align: justify;
  text-justify: inter-word;   
  hyphens: auto;              
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  white-space: pre-line;      
  line-height: 1.6;
}

#savedCountBadge, #btnShareFavs, #btnShareNow, #lastSeenBadge{
  border-color: rgb(56, 83, 143) !important;
  background-color:rgb(56, 83, 143)  ;
}
#lastSeenThumb {
  position: absolute;
  bottom: -11px;     
  left: -5px;       
  width: 35px;       
  height: 24px;      
  background-size: cover;
  background-position: center;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  z-index: 5;
}

#imgThumb {
  width: 50px;
  height: 3dvh;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  border: 2px solid #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.25);
  z-index: 5;
}

.slide-panel-seen-props {
  position: absolute;
  top: 0;
  left: 0;
  width: 350px;           
  height: 100dvh;              
  background-color: white;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  overflow-y: auto;         
  transform: translateX(-100%); 
  transition: transform 0.3s ease-in-out;
  z-index: 998 !important;
  padding: 1rem;
  border-right: 1px solid #dee2e6;
  border-radius: 0 8px 8px 0; 
  backdrop-filter: blur(10px);
}

.slide-panel-seen-props.active {
  transform: translateX(60px); 
}

.slide-panel-seen-props h4 {
  font-size: 1.1rem;
  font-weight: bold;
  margin-bottom: .75rem;
}

.button-search-here {
  background: white;
  border-radius: 20px;   
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  padding: 8px 16px;     
  cursor: pointer;
  font-weight: 600;
  border: none;
}

.button-search-here:hover {
  background: #f5f5f5;
}


/* Fondo uniforme con un ligero sombreado */
.last-seen-item {
  transition: background 0.2s ease;
  padding: 0.5rem;
  cursor: pointer;
}

.last-seen-item:hover {
  background: #f1f0f0; 

}

/* Solo para guardados */
.saved-prop-in-lastSeen {
  background-color: rgba(56, 84, 143, 0.107); /* verde muy claro */
  border: 1px solid #c8e6c9; 
}
.saved-prop-in-lastSeen:hover {
  background-color: rgba(56, 84, 143, 0.377); /* verde muy claro */
  border: 1px solid #c8e6c9; 
}
.saved-badge {
  display: inline-block;
  font-size: 1.1rem;
  font-weight: 600;
  color: rgb(56, 83, 143);
}

.info-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 20px;
  height: 20px;

  font-size: 0.8rem;
  font-weight: 700;
  color: #38538f;             

  border-radius: 50%;            

  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
  flex-shrink: 0;
}

#openSavedProperties, #lastSeenItem {
  background-color: white;
  border-radius: 50%;
  width: 45px;             
  height: 45px;             
  display: flex;             
  align-items: center;
  justify-content: center;
  cursor: pointer;           
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#openSavedProperties:hover, #lastSeenItem:hover {
  transform: scale(1.05); 
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25); 
}
.leaflet-overlay-pane svg path {
  transition: fill-opacity 0.3s ease, stroke 0.3s ease;
}

#searchBox {
  background-color: white;
  padding: 8px 12px;
  backdrop-filter: blur(10px);
  z-index: 1000;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  transform: scale(1);
}

#searchOverlay.active {
  opacity: 1;
  pointer-events: auto; 
}

#searchInput {
  position: relative;
  background: white;
  z-index: 1000; /* siempre encima del overlay */
  color: #212529; /* gris oscuro para texto */
}
#searchBox:focus-within {
  transform: scale(1.15);
  box-shadow: 0 0 20px 6px rgba(255, 255, 255, 0.6);
  background: white;
}

#searchInput::placeholder {
  color: #6c757d; 
}
.btn-outline-dark {
  border-color: #000;
  color: #000;
}

.btn-outline-dark:hover {
  background-color: #000;
  color: #fff;
}

.btn-check:checked + .btn-outline-dark {
  background-color: #000;
  color: #fff;
  border-color: #000;
}
.btn-slide-top{
  display: none;
}

@media (max-width: 768px) {
  body{
    height: 100dvh;
  }
  :root {
    --filter-panel-height: 14rem;
    --filter-toggle-base-offset: 4.5rem;
    --filter-toggle-gap: 1rem;
        height: 100dvh;

  }
  
  #map {
    height: calc(100dvh + 34dvh); 
    transform: translateY(-34dvh); 
  }
  .filtros-wrapper {
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 1rem var(--bs-gutter-x, 1rem);
    background: rgba(255,255,255,0.95);
    box-shadow: 0 -6px 16px rgba(0,0,0,0.12);
  }

  /* #filterPanel{
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    position: fixed;
    width: 100%;
    height: 55dvh;          
    max-height: min(80dvh, 560px);
    border-radius: 16px 16px 0 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    overflow-y: auto;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1rem);
  } */

  #filterPanel {
    position: fixed;
    left: 50%;
    bottom: 0;
    top: auto;
    height: 55dvh;
    transform: translate(-50%, 0); /* centrado en X, visible en Y */
    width: 100vw;
    border-radius: 16px 16px 0 0;
    background: #fff;
    box-shadow: 0 -4px 12px rgba(0,0,0,0.2);
    overflow-y: auto;
    touch-action: auto;
    z-index: 9999;
    transition: transform 0.3s ease-in-out, opacity 0.3s ease-in-out;
  }

  #filterPanel.active {
    transform: translate(-50%, 100%); /* baja hacia fuera de pantalla */
    opacity: 0;
  }

  .slide-panel .btn-slide-top{
    display: flex ;
    width: 100%;
    color: gray;
  }
  .slide-panel.active.expanded{
    height: 100dvh;
  }
  #propertyPanel {
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
  }
  #propertyPanel.active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .map-search-wrapper {
    flex-direction: column;
    top: 0.5rem;
    width: 65%;
  }
  .map-search-wrapper .box-opts{
    width: 80%;
    align-self: flex-start;
    justify-content: flex-start;
    background-color: white;
  }
  .map-search-wrapper .box-opts .draw-btn{
    background-color: transparent;
    border-radius: 0;
    box-shadow: none;
  }
  #searchBox {
    width: 100%;
  }
  .map-circle-btn-right,
  .map-filter-btn-right {
    position: fixed;
    top: auto;
    right: auto;
    left: 50%;
    transform: translate(-50%, 0);
    bottom: calc(var(--filter-toggle-base-offset, 4.5rem) + env(safe-area-inset-bottom, 0px));
  }

  .map-circle-btn-right.is-panel-open,
  .map-filter-btn-right.is-panel-open {
    bottom: calc(var(--filter-panel-height, 14rem) + var(--filter-toggle-gap, 1rem) + env(safe-area-inset-bottom, 0px));
    right: auto;
  }
  .text-geo-info{
    display: flex;
  }
  .slide-panel{
    position: fixed;
    z-index: 1000;
    left: 50% !important;
    top: auto;
    bottom: 0 !important;
    right: auto;
    width: min(100vw, 480px);
    max-width: 100vw;
    height: var(--panel-height, 50dvh);
    max-height: 100dvh;
    max-height: calc(100dvh - env(safe-area-inset-top, 0px));
    transform: translate(-50%, 100%);
    touch-action: auto;
    -webkit-overflow-scrolling: touch; /* scroll suave en iOS */
    overflow-y: auto;
    transition:
      height 0.35s ease-in-out,
      transform 0.4s ease-in-out,
      border-radius 0.3s ease-in-out;
  }
  
  .slide-panel.active{
    left: 50% !important;
    transform: translate(-50%, 0);
  }
  .slide-panel .handle {
    width: 50px;
    height: 5px;
    background: #ccc;
    border-radius: 3px;
    margin: 10px auto;
  }
  .btn-slide-top{
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 36px;
    background: linear-gradient(to bottom, #fafafa, #f0f0f0);
    border: none;
    border-radius: 16px 16px 0 0;
    color: #555;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    top: 0;
    z-index: 10;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    transition: background 0.25s ease, color 0.25s ease;
  }
  .leaflet-bottom.leaflet-left{
    margin-left: 2.5rem;
    z-index: 1000;
  }
  .sidebar{
    width: 41px !important;
  }
  .sidebar-item{
    width: 1rem !important;
    height: 1.95rem !important;
  }
  #lastSeenThumb{
    left: -0.45rem;
    width: 1.95rem;
    height: auto;
  }
  .sidebar-btn img{
    width: 2.5rem;
  }
.slide-panel-seen-props.active{
  transform: translateX(40px); 
}

.slide-panel-saved-props.active {
  transform: translateX(40px); 
}
}
