/* ESTILOS GENERALES */
body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f9f9f9;
  color: #333;
}

.hidden {
  display: none !important;
}

/* CABECERA */
.header-image {
  width: 100%;
  height: auto;
  display: block;
}

.main-header h1 .highlight {
  color: #005f7f;
}

/* LISTADO DE PROPIEDADES */
.properties {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 20px;
}

.content-detail,
.content-detail > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.property-card {
  background: #fff;
  border-radius: 12px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  text-align: center;
  margin-top: 5%;
  width: 22%;
}

.one-or-two .property-card {
  width: 44%;
}

.three .property-card {
  width: 35%;
}

.greenmark-icon {
  width: 10%;
}

.ubication {
  margin-bottom: 10px;
  color: #005f7f;
}

.propertyCode {
  background-color: #b4bd00;
  color: #fff;
  padding: 3px 11px;
  border-radius: 10px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  display: inline-block;
  text-align: center;
  width: 45%;
  margin-bottom: 10px;
}

.propertyCode p {
  margin: 0;
  font-size: 10px;
}

.propertyCode h3 {
  margin: 6px 0 0;
  font-size: 14px;
  font-weight: bold;
}

.serviceType {
  background-color: #005f7f;
  color: #fff;
  padding: 3px 11px;
  border-radius: 15px;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
  display: inline-block;
  text-align: center;
  width: 50%;
}

.serviceType h3 {
  margin: 0;
  font-size: 14px;
  font-weight: bold;
}

.icon-img {
  width: 27%;
}

.details {
  color: #005f7f;
  margin-top: 7px;
}

.property-card-img {
  margin-top: 20px;
  width: 54%;
  border-radius: 10px;
}

.morebutton-img {
  width: 54%;
  margin-bottom: 20px;
  cursor: pointer;
}

/*  BOTÓN WHATSAPP */
.whatsapp-btn {
  text-align: center;
  margin: 30px 0;
}

.whatsapp-btn a {
  background-color: #25d366;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 25px;
  font-weight: bold;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* FOOTER */

footer {
  background-color: #9fb21f;
  color: white;
  text-align: center;
  padding: 20px;
  font-size: 14px;
}

.social-icons {
  font-size: 18px;
}

/* VISTA DETALLE PROPIEDAD */
#property-detail-view {
  padding: 20px;
  max-width: 800px;
  margin: 20px auto;
  background: white;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.detail-container {
  padding: 20px;
}

.back-button {
  background: #005f7f;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 15px;
  cursor: pointer;
  font-size: 16px;
  margin-bottom: 10px;
}

.detail-header {
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 10px;
}

.detail-header h2 {
  color: #005f7f;
  margin: 0;
}

.detail-header p {
  color: #666;
  margin-top: 5px;
}

.detail-main-image {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 20px;
}

.detail-main-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 24px;
  font-weight: bold;
  color: #005f7f;
  margin-bottom: 10px;
}

.detail-specs {
  display: flex;
  justify-content: space-around;
  text-align: center;
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.detail-specs > div {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.detail-specs .icon-img {
  width: 40px;
}

.detail-specs p {
  margin-top: 10px;
  color: #005f7f;
  font-weight: bold;
}

.detail-description h3 {
  color: #005f7f;
  border-bottom: 2px solid #9fb21f;
  padding-bottom: 5px;
  margin-bottom: 10px;
}

.detail-description p {
  line-height: 1.6;
  color: #333;
}

/* TARJETA DETALLE */
.card {
  border: 1.5px solid #005f7f;
  border-radius: 20px;
  padding: 30px;
  background-color: #fff;
  position: relative;
  max-width: 800px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.etiqueta {
  position: absolute;
  top: -20px;
  right: 20px;
  background-color: #b0cc2f;
  color: white;
  padding: 10px 25px;
  border-radius: 15px;
  font-weight: bold;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.2);
}

.titulo-descripcion img {
  width: 40%;
  margin-right: 10px;
}

.titulo-apartamento {
  font-size: 1.5em;
  color: #005f7f;
  font-weight: bold;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.titulo-apartamento img {
  width: 20px;
  margin-right: 10px;
}

.descripcion {
  color: #005f7f;
  font-size: 1em;
  margin-bottom: 10px;
}

.codigo {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.codigo-icono {
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 15px solid #b0cc2f;
}

.codigo-texto {
  background-color: #005f7f;
  color: white;
  padding: 10px 20px;
  border-radius: 10px;
  font-weight: bold;
  font-size: 1em;
}

.codigo-texto span {
  display: block;
  font-size: 1.3em;
}

/* INFORMACIÓN PROPIEDAD */
.property-info {
  background-color: #a9bf3d;
  border-radius: 15px;
  padding: 15px 25px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 900px;
  margin: 25px auto;
  color: white;
}

.property-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 120px;
}

.property-item img {
  width: 28px;
  margin-bottom: 5px;
}

.property-item span {
  font-size: 14px;
}

.separator {
  width: 1px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.5);
}

.custom-border {
  border: 1px solid #005f7f !important;
}

/*  MAPA Y BOTONES */
.container {
  max-width: 900px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
}

.div-info {
  display: flex;
  justify-content: center; 
  margin: 6px auto;       
}

.btn-info {
  background: none;        
  border: none;            
  padding: 0;              
  cursor: pointer;
}

.btn-info img {
  width: 320px;            
  height: auto;            
}

.map-container {
  flex: 1 1 300px;
}

.no-map-image{
  width: 100%; 
  height: 100%; 
  object-fit: cover;
}

iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.location-text {
  display: flex;
  flex-direction: column;   
  align-items: flex-start;  
  gap: 4px;                 
  margin: 0;                
  line-height: 1;
}

.location-text h2 {
  font-size: 46px;
  margin: 0;
  font-weight: bold;
  line-height: 1.05; 
  color: #005f7f;
}

.location-text span {
  font-size: 46px;
  color: #a9bf3d;   
  font-weight: bold;
   margin-top: 2px;
  display: inline-block;
}

.location-text .location-sub {
  display: inline-block;
  margin: 0;
  font-size: 55px;
  color: #a9bf3d;
  font-weight: 700;
  letter-spacing: .6px;
}

.location-text span::before {
  content: " "; 
}

.location-text span::after {
  content: " ▶";
  margin-left: 58px; 
}

.bottom-contact img{
  width: 40%;
}

/*  GALERÍA */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  max-width: 900px;
  /* margin: 40px auto; */
}

.card-gallery {
  border-radius: 15px;
  background-color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 200px;
}

.card-gallery img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
  border-radius: 15px; 
  opacity: 1; 
  background-color: white;
}

/* CONTACTO */
.contact-banner {
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: white;
}

.contact-info {
  display: flex;
  flex-direction: column;
  width: 33%;
}

.contact-info h2 {
  margin: 0;
  font-size: 20px;
  font-weight: normal;
}

.contact-info span {
  color: #005f7f;
  font-weight: bold;
}

.contact-details {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px;
  width: 33%;
}

.contact-details img {
  width: 29px;
  padding: 10px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
}

.contact-item:nth-child(3) {
  grid-column: 1 / span 2;
}

.social {
  display: flex;
  align-items: center;
  gap: 15px;
}

.social img {
  width: 29px;
  padding: 10px;
}

.social a {
  color: white;
  font-size: 14px;
  text-decoration: none;
}

.social div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.social .fulldiv {
  flex: 1 1 100%;   
  display: block;  
  text-align: center;
  margin-top: 10px;
}

/* LOADER */
.loader-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  font-family: Arial, sans-serif;
}

.loader-overlay.hidden {
  display: none !important;
}

.loader {
  border: 8px solid #f3f3f3;       
  border-top: 8px solid #005f7f;    
  border-radius: 50%;
  width: 60px;
  height: 60px;
  animation: spin 1s linear infinite;
  margin-bottom: 15px;
}

/* Animación del loader */
@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader-overlay p {
  color: #005f7f;
  font-size: 18px;
  font-weight: bold;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .contact-banner {
    flex-direction: column;
    text-align: center;
  }

  .contact-info {
    width: 100%; 
    margin-bottom: 10px;
  }

  .contact-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    margin-left: 15px; 
    margin-bottom: 15px;
  }

  .contact-item {
    margin-bottom: 10px;
  }

  .separator {
    display: none;
  }
  .social {
    margin-top: 10px;
    justify-content: center;
  }

  .property-card {
    width: 44% !important;
  }

   .property-info {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 10px; 
    text-align: center;
  }

  .property-item {
    min-width: unset; 
  }

  .separator {
    display: none;
  }
}

@media (max-width: 600px) {
  .gallery {
    grid-template-columns: 1fr;
  }
}