/* ==========================================================
   CIUDADHOME — Estilos secciones del medio de la home
   Subir a: public_html/css/ciudadhome-home.css

   CÓMO EDITAR:
   Cada sección está comentada. Buscá la sección que querés
   cambiar y modificá los valores. Después subís el archivo
   al servidor y listo, sin compilar nada.
   ========================================================== */


/* ==========================================================
   SECCIONES — Fondos y espaciado
   ========================================================== */

/* Secciones con fondo gris (proyectos, agentes, noticias) */
.box_shadow {
    background: #f5f5f5;   /* ← color de fondo de sección */
    margin: 30px 0;
    padding: 40px 0;
}

/* Espaciado superior de secciones */
.padtop70, .padtop702 { padding-top: 20px; }
.padtop30 { padding-top: 20px; }

/* ==========================================================
   TÍTULOS DE SECCIÓN (h2)
   ========================================================== */

.projecthome h2,
.homehouse h2,
.areahome h2,
.discover h2 {
    font-size: 2rem;       /* ← tamaño del título */
    font-weight: 700 !important;
    color: #222;             /* ← color del texto */
    margin-bottom: 1px;
    line-height: 1.6;
}

/* Subtítulo debajo del título */
.projecthome > .row > .col-12 > p,
.homehouse   > .row > .col-12 > p,
.areahome    > .row > .col-12 > p,
.discover    > .row > .col-12 > p {
    color: #666;             /* ← color del subtítulo */
    font-size: 0.95rem;
    margin-bottom: 20px;
}


/* ==========================================================
   CARDS DE PROYECTOS
   ========================================================== */

/* Tarjeta contenedora */
.projecthome .item {
    height: 100%;
    background-color: #f6f6f6;  /* ← fondo de la card */
    border-radius: 6px;          /* ← redondez de esquinas. 0 = cuadrado */
    overflow: hidden;
}

/* Espacio entre cards */
.projecthome > .row > div {
    margin-bottom: 20px;
}

/* Imagen de la card */
.projecthome .item .img img.thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 6px;          /* ← redondez de la imagen */
}

/* Zona de texto de la card */
.projecthome .item .description {
    background: #fff;            /* ← fondo del texto */
    padding: 8px 10px 12px;
}

/* Nombre del proyecto */
.projecthome .item .description h5 {
    font-weight: 700;
    font-size: 1rem;             /* ← tamaño del nombre */
    color: #222;                 /* ← color del nombre */
    margin-top: 6px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}
.projecthome .item .description h5:hover {
    color: var(--primary-color); /* ← color al pasar el mouse */
}

/* Dirección / ciudad */
.projecthome .item .description .dia_chi {
    color: #4f4f4f;              /* ← color de la dirección */
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 26px;
}

/* Texto general dentro de la card */
.projecthome .item .description a { color: #000; text-decoration: none; }
.projecthome .item p { padding: 5px 0; margin: 0; }


/* ==========================================================
   CARDS DE PROPIEDADES (En venta / En alquiler)
   ========================================================== */

/* Tarjeta */
.hourseitem {
    margin-top: 20px;
    background: #fff;
}

/* Imagen */
.hourseitem .img .thumb {
    width: 100%;
    border-radius: 6px;          /* ← redondez de imagen */
    object-fit: cover;
    height: 100%;
}

/* Badge de tipo (Venta / Alquiler) */
.hourseitem .img .shorttitle {
    position: absolute;
    top: 5px;
    left: 10px;
    background: rgba(0,0,0,0.7); /* ← fondo del badge */
    color: #fff;                  /* ← color texto badge */
    font-size: 13px;
    padding: 4px 6px 2px;
    border-radius: 3px;
}

/* Zona de texto */
.hourseitem .info {
    padding: 10px 0;
}

/* Nombre de la propiedad */
.hourseitem h3 {
    height: 42px;
    overflow: hidden;
    font-weight: 700;
    font-size: 1rem;             /* ← tamaño nombre propiedad */
    margin-bottom: 8px;
}
.hourseitem h3 a {
    color: #000;                 /* ← color nombre */
    font-size: 16px;
}
.hourseitem h3 a:hover {
    color: var(--primary-color); /* ← color hover nombre */
}

/* Ciudad */
.hourseitem .city {
    color: #4f4f4f;              /* ← color ciudad */
    font-size: 0.85rem;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Íconos de datos (m², habitaciones, baños) */
.hourseitem p {
    margin: 0;
    padding: 0;
    margin-top: 5px;
    font-size: 15px;
    color: #333;                 /* ← color datos */
}
.hourseitem p.threemt { font-size: 0.9em; display: flex; }
.hourseitem p.threemt span { font-size: 13.5px; float: left; margin-right: 10%; }


/* ==========================================================
   SECCIÓN CIUDADES (Buscar por ciudad)
   ========================================================== */

/* Cada ciudad */
.itemarea {
    flex: auto;
    position: relative;
}
.itemarea img {
    border-radius: 6px;          /* ← redondez de imagen de ciudad */
    width: 100%;
    object-fit: cover;
    height: 100%;
}

/* Nombre de la ciudad sobre la imagen */
.itemarea h4 {
    position: absolute;
    width: 100%;
    bottom: 2px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;                 /* ← color texto ciudad */
    font-weight: 700;
    font-size: 20px;             /* ← tamaño texto ciudad */
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}


/* ==========================================================
   AGENTES
   ========================================================== */

.agents-grid .fr-grid-box {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
}

/* ==========================================================
   NOTICIAS / BLOG
   ========================================================== */

.blog-container .grid-in {
    border-radius: 6px;          /* ← redondez de cards de noticias */
    overflow: hidden;
    background: #fff;
}
.blog-container .grid-h {
    background-color: #f6f6f6;   /* ← fondo zona de texto noticia */
    padding: 15px;
    min-height: 220px;
}
.blog-container .grid-h a h2 {
    font-size: 16px;
    color: #212131;              /* ← color título noticia */
    line-height: 1.5;
}
.blog-container .grid-h a h2:hover {
    color: var(--primary-color); /* ← color hover título noticia */
}


/* ==========================================================
   RESPONSIVE — ajustes móvil
   ========================================================== */

@media (max-width: 768px) {
    .box_shadow    { padding: 30px 0; }
    .padtop70, .padtop702 { padding-top: 20px; }

    .projecthome h2,
    .homehouse h2,
    .areahome h2,
    .discover h2 { font-size: 1.6rem; }

    .itemarea h4 { font-size: 24px; }
    .hourseitem h3 { font-size: 0.95rem; }
}

@media (max-width: 480px) {
    .box_shadow { padding: 22px 0; }
    .projecthome h2,
    .homehouse h2 { font-size: 1.6rem; }
}

.item-price-wrap li.h-type {
  background-color: #ff5500;
  font-weight: 600;
  margin-right: 27px;
}

.topsearch .input-group-lg {
  background-color: hsl(0, 0%, 100%);
  justify-content: center;
  padding: 25px 20px 5px;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}

.topsearch .typesearch a.active {
  background: #ff3e0c !important;
  color: #fff;
}

.topsearch .btn {
  background: #ff3e0c;
  color: #fff;
  font-size: 15px !important;
}

.topsearch .typesearch a {
  background-color: hsl(0, 0%, 100%) !important;
  border: none !important;
  border-right-width: medium;
  border-right-style: none;
  border-right-color: currentcolor;
  border-right: 1px solid #fff !important;
  color: var(--primary-color);
  display: inline-block;
  float: left;
  font-weight: 600 !important;
  margin: 0;
  padding: 8px 12px;
}

::placeholder {
  color: #686868 !important;
  opacity: 1;
}

.status-label.label-success {
  background-color: #ff3e0c;
  border-radius: 4px;
  font-weight: 600;
}

.item-price-wrap li:not(:last-child)::after {
  border-right: 25px solid transparent;
  border-top: 30px solid rgb(255, 85, 0);
  left: 100%;
}

.list-agency .agents-grid .fr-grid-footer-flex-right .prt-view {
  align-items: center;
  background: #ff3e0c;
  border-radius: 5px;
  color: #fff !important;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  padding: 4px 18px;
  text-decoration: none;
}

.blog-container .container-grid .grid-h .blog-excerpt p {
  color: #5b5b5b;
  display: block;
  font-size: 14px;
  line-height: 24px;
  margin-bottom: 15px;
}

.blog-container .container-grid .grid-h .blog-excerpt p {
  display: -webkit-box !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 3 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.item-price-wrap li.h-type {
  font-weight: 700;
}

.btn-search {
  display: inline-block;
  font-weight: 700 !important;
}

.list-agency .agents-grid .agent-email a {
  align-items: center;
  background: #f6f6f6;
  border-radius: 50%;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  transition: all .4s ease;
  width: 40px;
  border-width: 1px;
  border-style: solid;
  border-color: #d2d2d2;
}

.list-agency .agents-grid .fr-grid-detail-flex .fr-can-name a {
  color: #000;
  text-decoration: none;
  font-weight: 700;
}

/* === BENEFICIOS === */
.ch-benefits {
    background: #fff !important;
    margin-bottom: 70px;
    overflow: visible !important;
}
.ch-benefits__title {
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: #1a1f36 !important;
    margin-bottom: 9px !important;
    letter-spacing: -.01em !important;
}
.ch-benefits__sub {
    font-size: .95rem !important;
    color: #64748b !important;
    margin-bottom: 48px !important;
    margin-top: -10px;
}
.ch-benefits__grid {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 18px !important;
    padding-top: 36px !important;
    overflow: visible !important;
}
.ch-benefits__card {
    background: #f8f9fb !important;
    border: 1px solid #eef0f4 !important;
    border-radius: 14px !important;
    padding: 16px 20px 26px !important;
    text-align: center !important;
    position: relative !important;
    transition: box-shadow .22s, transform .22s !important;
    overflow: visible !important;
}
.ch-benefits__card:hover {
    box-shadow: 0 10px 28px rgba(0,0,0,.08) !important;
    transform: translateY(-3px) !important;
}
.ch-benefits__icon {
    width: 82px !important;
    height: 82px !important;
    border-radius: 50% !important;
    background: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 auto 16px !important;
    position: relative;
    top: -60px;
    border-style: solid;
    border-width: 1px;
    border-color: #ececec;
}
.ch-benefits__icon i {
    font-size: 24px !important;
    color: #333 !important;
}
.ch-benefits__card h4 {
    font-size: .95rem !important;
    font-weight: 700 !important;
    color: #1a1f36 !important;
    margin-bottom: 7px !important;
    line-height: 1.3 !important;
    margin-top: -50px !important;
}
.ch-benefits__card p {
    font-size: .85rem !important;
    color: #64748b !important;
    line-height: 1.65 !important;
    margin: 0 !important;
}
@media (max-width: 992px) {
    .ch-benefits__grid { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 576px) {
    .ch-benefits__grid { grid-template-columns: 1fr !important; gap: 12px !important;
}
.ch-benefits__title {
  font-size: 1.6rem !important;
  font-weight: 700 !important;
  color: #1a1f36 !important;
  margin-bottom: 9px !important;
  letter-spacing: -.01em !important;
}
.ch-benefits__card {
  margin-bottom: 40px !important;
}
.ch-benefits {
  margin-bottom: 20px !important;
}
}

/* =============================================================
   MERCADO HOME
   ============================================================= */

/* ── Card general ─────────────────────────────────────────── */
.company-card .blii { position: relative !important; overflow: hidden !important; border-radius: 8px 8px 0 0 !important; }
.company-card .blii .img { height: 185px !important; background: #f5f5f5 !important; overflow: hidden !important; }
.company-card .blii .img .thumb { width: 100% !important; height: 100% !important; object-fit: cover !important; transition: transform .3s ease !important; display: block !important; }
.company-card:hover .blii .img .thumb { transform: scale(1.04) !important; }
.company-card .linkdetail { position: absolute !important; inset: 0 !important; z-index: 1 !important; }

/* ── Badge Destacado ──────────────────────────────────────── */
.company-card .status { position: absolute !important; top: 10px !important; right: 10px !important; z-index: 2 !important; }
.company-card .status .status-label { background: #ff3e0c !important; color: #fff !important; font-size: 11px !important; font-weight: 700 !important; padding: 3px 10px !important; border-radius: 4px !important; letter-spacing: .4px !important; text-transform: uppercase !important; }

/* ── Sección de info ──────────────────────────────────────── */
.company-info { padding: 12px 14px 14px !important; position: relative !important; }
.company-info .heart { position: absolute !important; top: 12px !important; right: 14px !important; font-size: 16px !important; z-index: 3 !important; }

/* ── Nombre ───────────────────────────────────────────────── */
.company-name-link { text-decoration: none !important; }
.company-name { font-size: 20px !important; font-weight: 700 !important; color: #1a1a2e !important; margin: 0 24px 8px 0 !important; line-height: 1.3 !important; }
.company-name-link:hover .company-name { color: #e74c3c !important; }

/* ── Meta rubro + localidad ───────────────────────────────── */
.company-meta { display: flex !important; flex-wrap: wrap !important; gap: 4px 14px !important; margin-bottom: 10px !important; }
.company-meta-item { font-size: 14px !important; color: #555 !important; white-space: nowrap !important; }
.company-meta-item i { color: #595959 !important; margin-right: 3px !important; }

/* ── Tags: grid justificado, igual ancho, sin espacios vacíos ─ */
.company-tags { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(80px, 1fr)) !important; gap: 5px !important; margin-top: 6px !important; }
.company-tag { display: block !important; text-align: center !important; font-size: 11px !important; color: #444 !important; background: #fff !important; border: 1px solid #ccc !important; border-radius: 4px !important; padding: 3px 6px !important; text-decoration: none !important; white-space: nowrap !important; overflow: hidden !important; text-overflow: ellipsis !important; line-height: 1.6 !important; transition: background .15s, color .15s, border-color .15s !important; }
.company-tag:hover { background: #ff3e0c !important; color: #fff !important; border-color: #ff3e0c !important; text-decoration: none !important; }

#map .boxmarker { background-color: #ff3e0c !important; }

.toggle-filter-offcanvas.toggle-filter-mobile { border-color: #ccc !important; color: #495057 !important; border-radius: 5px !important; }

/* ================================
   Mercado inmobiliario externo
   ================================ */

.mercado-inmobiliario-section {
    margin-top: 35px;
    margin-bottom: 45px;
}

.mercado-inmobiliario-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.mercado-inmobiliario-head h2 {
    margin-bottom: 6px;
}

.mercado-inmobiliario-head p {
    max-width: 760px;
    margin-bottom: 0;
}

.mercado-inmobiliario-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 75, 57, 0.09);
    color: #ff4b39;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.mercado-inmobiliario-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0 0 22px;
}

.mercado-inmobiliario-tabs button {
    border: 1px solid #e8e8e8;
    background: #fff;
    color: #333;
    border-radius: 999px;
    padding: 8px 18px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mercado-inmobiliario-tabs button:hover,
.mercado-inmobiliario-tabs button.active {
    background: #ff4b39;
    border-color: #ff4b39;
    color: #fff;
}

.mercado-inmobiliario-grid {
    row-gap: 24px;
}

.mercado-external-card {
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.mercado-external-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.1);
}

.mercado-external-card .blii {
    position: relative;
}

.mercado-external-card .img {
    background: #f4f4f4;
}

.mercado-external-card .thumb {
    width: 100%;
    height: 210px;
    object-fit: cover;
    display: block;
}

.mercado-source-badge {
    background: #111 !important;
    color: #fff !important;
    font-size: 11px;
    font-weight: 700;
    border-radius: 999px;
    padding: 6px 10px;
}

.mercado-operation-row {
    margin-bottom: 7px;
}

.mercado-operation-row span {
    display: inline-flex;
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 75, 57, 0.08);
    color: #ff4b39;
    font-size: 12px;
    font-weight: 700;
}

.mercado-external-card .description {
    padding-bottom: 18px;
}

.mercado-external-card .description h5 {
    min-height: 42px;
    margin-bottom: 8px;
    font-size: 16px;
    line-height: 1.3;
}

.mercado-description {
    min-height: 48px;
    margin: 10px 0 12px;
    color: #555;
    font-size: 13px;
    line-height: 1.5;
}

.mercado-features {
    margin-bottom: 13px;
}

.mercado-source-line {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 8px 0 13px;
    color: #333;
    font-size: 12px;
    line-height: 1.35;
}

.mercado-source-logo {
    max-width: 70px;
    max-height: 26px;
    object-fit: contain;
}

.mercado-external-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 38px;
    padding: 9px 12px;
    border-radius: 8px;
    background: #ff4b39;
    color: #fff !important;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
    text-decoration: none !important;
    transition: all 0.2s ease;
}

.mercado-external-button:hover {
    background: #e63d2c;
    color: #fff !important;
    transform: translateY(-1px);
}

.mercado-inmobiliario-note {
    margin-top: 20px;
    padding: 13px 16px;
    border-radius: 10px;
    background: #f8f8f8;
    color: #666;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .mercado-inmobiliario-section {
        margin-top: 25px;
        margin-bottom: 30px;
    }

    .mercado-inmobiliario-head {
        flex-direction: column;
        gap: 10px;
    }

    .mercado-inmobiliario-label {
        align-self: flex-start;
    }

    .mercado-inmobiliario-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
    }

    .mercado-inmobiliario-tabs button {
        flex: 0 0 auto;
    }

    .mercado-external-card .thumb {
        height: 220px;
    }

    .mercado-description {
        min-height: auto;
    }
}