/* 🔹 Contenedor general */
#single-listing {
  max-width: 100%;
  margin: auto;
  padding: 20px;
}

/* 🔹 Sección superior (imagen + info) */
.single-listing-header {
  display: flex;
  align-items: center;
  gap: 20px;
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  margin: 0 auto;
}

/* 🔹 Imagen */
.listing-image {
  flex: 40%;
}

.listing-image img {
  width: 100%;
  border-radius: 10px;
}

/* 🔹 Información */
.listing-info {
  flex: 60%;
}

.listing-title {
  font-size: 24px;
  font-weight: bold;
}

/* 🔹 Destacado */
.featured-badge {
  background: #e83e8c;
  color: white;
  font-size: 14px;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: bold;
  display: inline-block;
  margin-bottom: 10px;
}

/* 🔹 Descripción limpia */
.single-listing-description {
  background: #fff;
  padding: 20px;
  margin: 20px auto;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 900px;
}

/* 🔹 Evitar bloques internos con márgenes innecesarios */
.single-listing-description * {
  margin: 10px 0;
  padding: 0;
}

/* 🔹 Evitar widgets dentro de la descripción con márgenes adicionales */
.widget-job_listing {
  margin: 0;
  padding: 0;
  border: none;
  box-shadow: none;
}

/* 🔹 Evitar márgenes grandes en los párrafos */
.single-listing-description p {
  margin-bottom: 10px;
}

/* 🔹 Mapa ocupando 100% */
.single-listing-map {
  width: 100%;
  margin-top: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.single-listing-map h2 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 10px;
}

.single-listing-description {
  border: none !important;
  box-shadow: none;
}

.single-listing-header {
  box-shadow: none;
}

#single-listing {
  max-width: 100%;
  margin: auto;
  padding: 0;
  box-shadow: none !important;
  border: none !important;
}

.single-listing-description * {
  margin: 0;
  padding: 0;
  box-shadow: none;
}

.single-listing-description {
  background: #fff;
  padding: 0;
  margin: 0px auto;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  box-shadow: none;
}


.listing-image {
  flex: 20%;
}
.listing-info {
  flex: 80%;
}

.single-listing-description {
  margin-top: 20px !important;
  margin-bottom: 40px;
}

.single-listing-description .single-listing-header {
  display: none;
}

.single-listing-header {
  margin: 25px auto;
  padding: 0;
}


/* 🔹 Versión móvil (máximo 720px de ancho) */
@media (max-width: 720px) {
  
  /* Contenedor general sin márgenes laterales */
  #single-listing {
    padding: 10px;
  }

  /* Asegurar que los elementos ocupen todo el ancho */
  .single-listing-header,
  .single-listing-description,
  .single-listing-map {
    max-width: 100%;
    margin: 10px 0;
    padding: 15px;
  }

  /* Alinear contenido de cabecera en columna */
  .single-listing-header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 15px;
    gap: 10px;
  }

  /* Ajustar imagen en móvil */
  .listing-image {
    flex: 100%;
    width: 80%;
    max-width: 200px;
    margin: 0 auto;
  }

  .listing-image img {
    width: 100%;
    border-radius: 10px;
  }

  /* Ajustar información en móvil */
  .listing-info {
    flex: 100%;
    width: 100%;
  }

  .listing-title {
    font-size: 20px;
    font-weight: bold;
  }

  /* Mejorar visibilidad de datos */
  .listing-address,
  .listing-phone,
  .listing-website {
    font-size: 14px;
    margin-top: 5px;
  }

  /* Ajuste del badge de "Destacado" */
  .featured-badge {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
  }

  /* Evitar que la descripción tenga márgenes grandes */
  .single-listing-description {
    padding: 10px;
    margin: 0;
    border-radius: 5px;
  }

  /* Ajustar el mapa para ocupar toda la pantalla */
  .single-listing-map {
    width: 100%;
    padding: 10px;
  }

  .single-listing-map h2 {
    font-size: 18px;
    text-align: center;
  }

  /* Evitar márgenes en elementos internos */
  .single-listing-description * {
    margin: 5px 0;
    padding: 0;
  }

  /* Quitar margen superior e inferior en el header */
  .single-listing-header {
    margin: 5px 0;
  }

  /* Ajustar el espaciado en el contenedor */
  .single-listing-description {
    margin-top: 10px !important;
    margin-bottom: 20px;
  }
}


.single-listing-map {
  width: 100%;
  margin-top: 20px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.single-listing-map h2 {
  text-align: center;
  font-size: 20px;
  margin-bottom: 10px;
}

#map {
  width: 100%;
  height: 400px;
  border-radius: 10px;
}

.single-listing-map {
  width: 100%;
  margin-top: 0;
  padding: 0;
  background: #fff;
  border-radius: 10px;
  box-shadow: none;
}

/* 🔹 Ajustes generales para mejorar la presentación dentro de */


/* 🔹 Títulos con espaciado adecuado */
#content .job_listing-template-default h1,
#content .job_listing-template-default h2 {
  font-weight: bold;
  color: #444;
  margin-top: 30px;
  margin-bottom: 15px;
  padding-bottom: 5px;
}

#content .job_listing-template-default h1 a,
#content .job_listing-template-default h2 a {
  color: #444;
  text-decoration: none;
  font-weight: bold;
}

.single-listing-description h1,
.single-listing-description h2 {
  font-weight: bold;
  color: #444;
  margin-top: 30px;
  margin-bottom: 15px;
  padding-bottom: 5px;
}

.job_listing-template-default h3 {
  font-weight: bold;
  color: #444;
  margin-top: 25px;
  margin-bottom: 10px;
}

/* 🔹 Estilo de listas con bullets visibles */
.job_listing-template-default ul {
  list-style-type: disc;
  padding-left: 20px;
  margin-top: 10px;
  margin-bottom: 20px;
}

.job_listing-template-default li {
  margin-bottom: 5px;
}

/* 🔹 Negritas mejor destacadas */
.job_listing-template-default strong {
  font-weight: bolder;
}

/* 🔹 Separación entre párrafos */
.job_listing-template-default p {
  margin-bottom: 15px;
}

/* 🔹 Enlaces con mejor visibilidad */
.job_listing-template-default a {
  color: #f72277;
  text-decoration: none;
  font-weight: bold;
}

.job_listing-template-default a:hover {
  text-decoration: underline;
}

.site-title a, .site-title a:hover, .site-description {
  color: #fff !important;
}

.site-footer-widgets {
  color: #ffffff !important;
  background-color: #de1e74;
}