/* =========================================================
   🎨 VARIABLES Y COLORES BASE
   ========================================================= */
:root {
  --naranja-intenso: #ff6600;
  --naranja-suave: #ff8033;
  --platinum: #dfdfdf;
  --white-smoke: #f5f5f5;
  --davys-gray: #565554;
  --black: #000;
  --footer: #222222;
  --charcoal: #2a4b57;
  --silver: #c1c1c1;
}

/* =========================================================
   🔤 TIPOGRAFÍA GLOBAL
   ========================================================= */
h1, h2, h3,h4, h5, h6, p {
  font-family: 'Raleway', sans-serif !important;
}
h4 { font-weight: 600 !important; }

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background-color: var(--white-smoke);
  font-size: 14px;
  color: var(--davys-gray);
  font-family: 'Open Sans', sans-serif;
  font-weight: 300;
}

html, body { height: 100%; }

main { flex: 1; }

hr {
  background-color: var(--naranja-intenso);
  opacity: 1;
}

/* =========================================================
   🧭 BOTONES Y FORMULARIOS
   ========================================================= */
.btn-buscador {
  color: #fff !important;
  background-color: var(--naranja-intenso) !important;
  border-bottom: 3px solid var(--charcoal) !important;
  transition: all 0.3s ease;
}
.btn-buscador:hover,
.btn-buscador:focus {
  background-color: var(--charcoal) !important;
  border-bottom: 3px solid var(--naranja-intenso) !important;
  color: #fff !important;
}

#fila-selects {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .5rem;
}
#fila-selects .form-control,
#fila-selects .btn {
  height: 38px;
  display: flex;
  align-items: center;
}
.espacio_form_control_home { margin-bottom: 10px; }
.btn-centrado {
  display: flex;
  justify-content: center;
  margin-top: 15px;
}

/* =========================================================
   📦 CARD PROPIEDADES
   ========================================================= */
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  border-radius: 0.5rem;
  margin-bottom: 15px;
  overflow: visible !important;
}

.card.mx-auto { position: relative; }

.card-img-top {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 0.5rem;
  font-size: 19px;
  color: color-mix(in srgb, var(--white-smoke) 80%, transparent);
}
.card-img-top[style*="position:absolute"] {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  justify-content: flex-start;
  padding: 0.5rem 0.7rem;
  background-color: rgba(0,0,0,0.35);
}

.card-body {
  height: 140px;
  flex-grow: 1;
  display: block;
  justify-content: center;

}
.card-body {
    flex: 1 1 auto;
    padding: 0rem 1rem !important;
}

.card-footer {
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
  border-top: 0;
}

.card .row {
  margin: 0;
  padding: 0;
}

/* --- Card overlay icons --- */
.card-overlay-icons {
  display: grid;
  grid-template-columns: repeat(9, 1fr);
  align-items: center;
  height: 30px;
  /*background: rgba(0, 0, 0, 0.6);*/
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  /*position: absolute;*/
  /*bottom: 0;*/
  width: 100%;
}
.card-overlay-icons .item {
  display: flex;
  align-items: start;
  justify-content: flex-start;
  min-width: 50px;
  /*gap: 6px;*/
}
.card-overlay-icons .icon {
  width: 25px;
  height: 25px;
  fill: white;
  margin-top: 8px;
}
.card-overlay-icons .item-text {
  color: var(--davys-gray);
  font-size: 1rem;
  margin-top: 18px !important;
}
.card-overlay-icons .item-sep {
  color: rgba(255,255,255,0.7);
  /*margin-left: 2px;*/
}

/* --- Iconos generales dentro de ítems --- */
.icon {
  width: 22px;
  height: 22px;
  fill: currentColor;
  flex-shrink: 0;
  margin-right: 4px;
  vertical-align: middle;
}
.item {
  display: inline-flex;
  align-items: center;
  color: #fff;
  font-size: 0.9rem;
  white-space: nowrap;
  /*margin-left: 10px;*/
}
.item-text {
  line-height: 1;
  vertical-align: middle;
}
.item-sep {
  margin-left: 6px;
  opacity: 0.9;
}

/* --- Font Awesome --- */
.fa-camera {
  font-size: 0.95rem;
  margin-right: 3px;
  vertical-align: middle;
}
.item span {
  line-height: 1;
  vertical-align: middle;
  margin-top: 4px !important;
}

/* =========================================================
   🏷️ INFORMACIÓN CARD
   ========================================================= */
.card-title {
  color: var(--davys-gray);
  font-size: 0.8rem;
  height: 50px;
}
.card-operacion {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #fff;
  color: #222;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 12px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  z-index: 5;
  text-transform: uppercase;
}
.card-operacion.venta {
  background: var(--naranja-intenso);
  color: var(--white-smoke);
}
.card-operacion.alquiler {
  background: var(--charcoal);
  color: var(--white-smoke);
}
.card-ref-code {
  font-family: 'Raleway', sans-serif;
  color: var(--naranja-intenso);
  font-weight: bolder;
  font-size: 1rem;
}
.card-value {
  color: var(--naranja-intenso);
  font-weight: 700;
  font-size: 1.2rem;
}
.card-text,
.card-direccion {
  color: var(--davys-gray);
  font-size: 0.8rem;
}

/* =========================================================
   🎥 CARD LINK OVERLAY
   ========================================================= */
.card-link {
  position: relative;
  overflow: hidden;
}
.card-link::after {
  content: "Más Detalles";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0,0,0,0.6);
  color: white;
  font-size: 1.5em;
  padding: 10px 20px;
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
.card-link:hover::after { opacity: 1; }
.card-link img {
  transition: filter 0.3s ease;
}
.card-link:hover img {
  filter: grayscale(100%) brightness(0.6);
}

/* =========================================================
   💬 WHATSAPP FLOTANTE
   ========================================================= */
.green-whatsapp {
  background-color: #4dc247;
  position: fixed;
  bottom: 3%;
  right: 3%;
  z-index: 1000;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  box-shadow: 0 2px 2px rgba(0,0,0,0.14),
              0 3px 1px -2px rgba(0,0,0,0.12),
              0 1px 5px rgba(0,0,0,0.2);
}
.green-whatsapp img { width: 35px; height: 35px; }
.green-whatsapp a {
  text-decoration: none;
  color: white;
}
.green-whatsapp a:hover {
  color: white;
}

/* =========================================================
   📱 INSTAGRAM FLOTANTE
   ========================================================= */
.btn-instagram {
  position: fixed;
  left: 3%;
  bottom: -1%;
  transform: translateY(-50%);
  z-index: 2000;
}
.btn-instagram img {
  transition: transform 0.3s;
}
.btn-instagram img:hover {
  transform: scale(1.2);
}

/* =========================================================
   🗺️ OTROS ELEMENTOS
   ========================================================= */
footer {
  background-color: var(--footer);
  color: white;
  text-align: center;
  padding: 15px 0;
}
.desk { display: block !important; }
.mobile { display: none !important; }

.posicion { position: relative; }

.buscador {
  position: absolute;
  top: 75% !important;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: #ffffff80;
  padding: 20px;
  border-radius: 10px;
  z-index: 1000;
}

.carousel-item { height: 350px !important; }

.item img {
  position: absolute !important;
  top: 0;
  left: 0;
  min-height: 300px !important;
}

.badge-status {
  position: absolute;
  top: 38px;
  left: -39px;
  background: #e05a00;
  color: #fff;
  padding: 5px 50px;
  font-size: 0.9rem;
  font-weight: bold;
  transform: rotate(-45deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  text-transform: uppercase;
  z-index: 20;
  pointer-events: none;
}

/* --- Colores de estado --- */
.badge-status.vendido   { background: rgba(255, 251, 0, 0.65); color:black; }
.badge-status.alquilado { background: rgba(0, 177, 15, 0.65); }
.badge-status.oportunidad { background: rgba(0, 120, 255, 0.65); }
.badge-status.reservado { background: rgba(255, 165, 0, 0.65); }
.badge-status.suspendido { background: rgba(255, 0, 0, 0.65); }

#map { height: 500px; }

.titulos { color: var(--charcoal); }

#zoom-tip {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
    z-index: 9999;
}
#zoom-tip.visible {
    opacity: 1;
}



/* =========================================================
   📱 MEDIA QUERIES
   ========================================================= */
@media (max-width: 992px) {
  .navbar .logo { max-height: 60px; }
  .navbar-nav { margin-top: 10px; }
}
@media (max-width: 760px) {
  .desk { display: none !important; }
  .mobile { display: block !important; }
  .card-img-top {
    width: 100%;
    height: 80vw;
    object-fit: cover;
  }
}


