/* =========================================================
   Ciudad Home · Ficha pública de inmobiliaria
   ========================================================= */

.ch-agency-profile {
    background: #f7f8fa;
    color: #242b35;
}

.ch-agency-profile__hero {
    min-height: 210px;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
}

.ch-agency-profile__hero-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 210px;
    color: #fff;
    text-align: center;
}

.ch-agency-profile__hero-inner > div {
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
}

.ch-agency-profile__hero-inner h1 {
    margin: 4px 0 0;
    color: #fff;
    font-size: 34px;
    line-height: 1.08;
    font-weight: 700;
    letter-spacing: -.035em;
}

.ch-agency-profile__hero-inner p {
    margin: 7px 0 0;
    color: rgba(255, 255, 255, .84);
    font-size: 14px;
}

.ch-agency-profile__eyebrow {
    display: block;
    color: #ffb29c;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ch-agency-profile__back {
    position: absolute;
    left: 0;
    top: 50%;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .88) !important;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none !important;
    transform: translateY(-50%);
}

.ch-agency-profile__back svg {
    width: 16px;
    height: 16px;
}

.ch-agency-profile__content {
    padding-top: 26px;
    padding-bottom: 54px;
}

/* =========================================================
   Identidad principal
   ========================================================= */

.ch-agency-profile__identity-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 22px;
    border: 1px solid #e4e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(24, 31, 42, .05);
}

.ch-agency-profile__identity {
    display: flex;
    align-items: center;
    gap: 20px;
    min-width: 0;
}

.ch-agency-profile__logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 126px;
    width: 126px;
    height: 126px;
    padding: 12px;
    overflow: hidden;
    border: 1px solid #e6e9ee;
    border-radius: 14px;
    background: #fff;
}

.ch-agency-profile__logo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.ch-agency-profile__identity-copy {
    min-width: 0;
}

.ch-agency-profile__title-row {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-wrap: wrap;
}

.ch-agency-profile__title-row h2 {
    margin: 0;
    color: #242b35;
    font-size: 25px;
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -.025em;
}

.ch-agency-profile__verified {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid #ffd0c2;
    border-radius: 9px;
    background: #fff5f1;
    color: #a23c20;
    font-size: 10px;
    font-weight: 700;
}

.ch-agency-profile__verified svg {
    width: 15px;
    height: 15px;
}

.ch-agency-profile__meta {
    display: flex;
    align-items: center;
    gap: 12px 18px;
    flex-wrap: wrap;
    margin-top: 10px;
}

.ch-agency-profile__meta span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    color: #68717d;
    font-size: 12px;
}

.ch-agency-profile__meta svg {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
    color: #66707c;
}

.ch-agency-profile__chips {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin-top: 13px;
}

.ch-agency-profile__chips span {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 9px;
    border: 1px solid #e5e8ed;
    border-radius: 9px;
    background: #f8f9fb;
    color: #5c6571;
    font-size: 10.5px;
    font-weight: 700;
}

.ch-agency-profile__quick-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.ch-agency-profile__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 13px;
    border-radius: 11px;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition:
        transform .12s ease,
        border-color .15s ease,
        background .15s ease;
}

.ch-agency-profile__action:hover {
    transform: translateY(-1px);
}

.ch-agency-profile__action svg {
    width: 17px;
    height: 17px;
}

.ch-agency-profile__action--ghost {
    border: 1px solid #dde2e8;
    background: #fff;
    color: #535d69 !important;
}

.ch-agency-profile__action--ghost:hover {
    border-color: #ffbda9;
}

.ch-agency-profile__action--whatsapp {
    border: 1px solid #16b95e;
    background: #16b95e;
    color: #fff !important;
}

/* =========================================================
   Layout principal
   ========================================================= */

.ch-agency-profile__main-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, .55fr);
    gap: 18px;
    align-items: start;
    margin-top: 18px;
}

.ch-agency-profile__main-column {
    display: grid;
    gap: 18px;
    min-width: 0;
}

.ch-agency-profile__sidebar {
    min-width: 0;
}

.ch-agency-profile__card {
    border: 1px solid #e4e7eb;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(24, 31, 42, .045);
}

.ch-agency-profile__section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 22px 0;
}

.ch-agency-profile__section-head > div > span,
.ch-agency-profile__properties-head > div > span,
.ch-agency-profile__suggested-head > div > span {
    display: block;
    margin-bottom: 4px;
    color: #ff3e0c;
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
}

.ch-agency-profile__section-head h3,
.ch-agency-profile__properties-head h3,
.ch-agency-profile__suggested-head h3 {
    margin: 0;
    color: #242b35;
    font-size: 19px;
    line-height: 1.2;
    font-weight: 700;
}

/* =========================================================
   Nivel Ciudad Home
   ========================================================= */

.ch-agency-profile__level-help {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border: 1px solid #e4e7eb;
    border-radius: 50%;
    color: #707985;
    cursor: help;
}

.ch-agency-profile__level-help svg {
    width: 16px;
    height: 16px;
}

.ch-agency-profile__level-bars {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 5px;
    padding: 16px 22px 0;
}

.ch-agency-profile__level-bars span {
    display: block;
    height: 7px;
    border-radius: 3px;
    background: #eceff2;
}

.ch-agency-profile__level-bars span.is-active:nth-child(1) {
    background: #ffd7cb;
}

.ch-agency-profile__level-bars span.is-active:nth-child(2) {
    background: #ffbaa6;
}

.ch-agency-profile__level-bars span.is-active:nth-child(3) {
    background: #ff997b;
}

.ch-agency-profile__level-bars span.is-active:nth-child(4) {
    background: #ff704a;
}

.ch-agency-profile__level-bars span.is-active:nth-child(5) {
    background: #ff3e0c;
}

.ch-agency-profile__level-note {
    margin: 10px 22px 0;
    color: #8a929d;
    font-size: 10.5px;
    line-height: 1.45;
}

.ch-agency-profile__metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1px;
    margin-top: 18px;
    overflow: hidden;
    border-top: 1px solid #edf0f3;
    background: #edf0f3;
}

.ch-agency-profile__metrics > div {
    padding: 17px 14px;
    background: #fff;
    text-align: center;
}

.ch-agency-profile__metrics strong {
    display: block;
    color: #242b35;
    font-size: 20px;
    line-height: 1;
}

.ch-agency-profile__metrics span {
    display: block;
    margin-top: 6px;
    color: #7b8490;
    font-size: 10.5px;
    line-height: 1.3;
}

/* =========================================================
   Sobre / servicios
   ========================================================= */

.ch-agency-profile__about {
    padding: 16px 22px 22px;
    color: #606a76;
    font-size: 13px;
    line-height: 1.7;
}

.ch-agency-profile__professional-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 22px;
    padding: 17px 22px 22px;
}

.ch-agency-profile__professional-grid h4 {
    margin: 0 0 10px;
    color: #4c5664;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    text-transform: uppercase;
}

.ch-agency-profile__service-list {
    display: grid;
    gap: 8px;
}

.ch-agency-profile__service-list span {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #5c6571;
    font-size: 12px;
}

.ch-agency-profile__service-list svg {
    flex: 0 0 17px;
    width: 17px;
    height: 17px;
}

/* =========================================================
   Contacto
   ========================================================= */

.ch-agency-profile__contact-card {
    position: sticky;
    top: 18px;
}

.ch-agency-profile__contact-list {
    display: grid;
    gap: 2px;
    padding: 14px 22px 4px;
}

.ch-agency-profile__contact-list a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    min-height: 52px;
    padding: 8px 0;
    border-bottom: 1px solid #edf0f3;
    color: #4f5966 !important;
    text-decoration: none !important;
}

.ch-agency-profile__contact-list a:last-child {
    border-bottom: 0;
}

.ch-agency-profile__contact-list svg {
    width: 20px;
    height: 20px;
    color: #65707d;
}

.ch-agency-profile__contact-list small,
.ch-agency-profile__contact-list strong {
    display: block;
}

.ch-agency-profile__contact-list small {
    color: #9299a3;
    font-size: 9.5px;
}

.ch-agency-profile__contact-list strong {
    margin-top: 2px;
    color: #3d4652;
    font-size: 11.5px;
    line-height: 1.35;
    word-break: break-word;
}

.ch-agency-profile__contact-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    margin: 14px 22px 20px;
    border-radius: 11px;
    background: #16b95e;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
}

.ch-agency-profile__contact-primary svg {
    width: 18px;
    height: 18px;
}

.ch-agency-profile__socials {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 14px 22px 20px;
}

.ch-agency-profile__socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid #e2e6eb;
    border-radius: 50%;
    background: #fff;
    color: #59636f !important;
}

.ch-agency-profile__socials svg {
    width: 17px;
    height: 17px;
}

/* =========================================================
   Propiedades
   ========================================================= */

.ch-agency-profile__properties-section {
    margin-top: 30px;
}

.ch-agency-profile__properties-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 15px;
}

.ch-agency-profile__properties-head p {
    margin: 6px 0 0;
    color: #7b8490;
    font-size: 11.5px;
}


.ch-agency-profile__properties-grid > div {
    margin-bottom: 20px;
}

.ch-agency-profile__property-card {
    height: 100%;
}

.ch-agency-profile__property-card .item {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
    border: 1px solid #e3e7ec;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 8px 24px rgba(24, 31, 42, .06);
    transition:
        transform .16s ease,
        box-shadow .16s ease,
        border-color .16s ease;
}

.ch-agency-profile__property-card .item:hover {
    border-color: #ffd0c2;
    box-shadow: 0 12px 28px rgba(24, 31, 42, .09);
    transform: translateY(-2px);
}

.ch-agency-profile__property-card .blii {
    overflow: hidden;
    border-radius: 0;
    background: #f0f2f4;
}

.ch-agency-profile__property-card .blii .img img.thumb {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ch-agency-profile__property-card .description {
    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 15px 16px 16px;
    background: #fff;
}

.ch-agency-profile__property-card .description > a:not(.heart) {
    color: #242b35 !important;
    text-decoration: none !important;
}

.ch-agency-profile__property-card .description .heart {
    position: absolute;
    top: 14px;
    right: 15px;
    z-index: 2;
    color: #4d5662 !important;
    font-size: 20px;
}

.ch-agency-profile__property-card .description h5 {
    display: -webkit-box;
    min-height: 42px;
    margin: 0;
    padding: 0 34px 0 0;
    overflow: hidden;
    color: #242b35;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.3;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.ch-agency-profile__property-card .description .dia_chi {
    display: -webkit-box;
    min-height: 20px;
    margin: 8px 0 0;
    padding: 0;
    overflow: hidden;
    color: #69727e;
    font-size: 12px;
    line-height: 1.4;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.ch-agency-profile__property-card .description .dia_chi i {
    color: #ff3e0c;
}

.ch-agency-profile__property-card .description .threemt {
    display: flex;
    align-items: center;
    gap: 14px;
    min-height: 28px;
    margin: 12px 0 0;
    padding: 0;
    color: #505a67;
    font-size: 12px;
}

.ch-agency-profile__property-card .description .threemt > span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin: 0;
}

.ch-agency-profile__property-card .description .threemt i {
    display: inline-flex;
    align-items: center;
    font-style: normal;
}

.ch-agency-profile__property-card .description .threemt img {
    width: 19px;
    height: 19px;
    object-fit: contain;
}

.ch-agency-profile__property-card .description .mi-source {
    margin-top: 14px !important;
    padding-top: 11px !important;
    border-top: 1px solid #edf0f3 !important;
    color: #7b8490 !important;
    font-size: 10.5px !important;
}

.ch-agency-profile__property-card .ch-compare-toggle--card {
    width: 100%;
    margin-top: 12px;
}

.ch-agency-profile__pagination {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

.ch-agency-profile__empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    padding: 28px;
    border: 1px dashed #dfe3e8;
    border-radius: 16px;
    background: #fff;
    text-align: center;
}

.ch-agency-profile__empty svg {
    width: 34px;
    height: 34px;
    margin-bottom: 10px;
    color: #69727d;
}

.ch-agency-profile__empty strong {
    color: #424b57;
    font-size: 14px;
}

.ch-agency-profile__empty span {
    margin-top: 5px;
    color: #8a929d;
    font-size: 11.5px;
}

/* =========================================================
   Otras inmobiliarias
   ========================================================= */

.ch-agency-profile__suggested-section {
    margin-top: 32px;
}

.ch-agency-profile__suggested-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 15px;
}

.ch-agency-profile__suggested-head > a {
    color: #ff3e0c !important;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 991px) {
    .ch-agency-profile__identity-card {
        align-items: flex-start;
        flex-direction: column;
    }

    .ch-agency-profile__quick-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .ch-agency-profile__main-grid {
        grid-template-columns: 1fr;
    }

    .ch-agency-profile__contact-card {
        position: static;
    }
}

@media (max-width: 767px) {
    .ch-agency-profile__hero {
        min-height: 158px;
    }

    .ch-agency-profile__hero-inner {
        min-height: 158px;
        padding: 24px 44px;
        text-align: center;
    }

    .ch-agency-profile__hero-inner > div {
        max-width: 100%;
    }

    .ch-agency-profile__back {
        left: 0;
        top: 18px;
        transform: none;
    }

    .ch-agency-profile__hero-inner h1 {
        font-size: 27px;
    }

    .ch-agency-profile__content {
        padding-top: 14px;
        padding-bottom: 36px;
    }

    .ch-agency-profile__identity-card {
        padding: 18px 15px;
    }

    .ch-agency-profile__identity {
        width: 100%;
        align-items: center;
        flex-direction: column;
        text-align: center;
    }

    .ch-agency-profile__logo-wrap {
        width: 138px;
        height: 138px;
        flex-basis: 138px;
    }

    .ch-agency-profile__title-row,
    .ch-agency-profile__meta,
    .ch-agency-profile__chips {
        justify-content: center;
    }

    .ch-agency-profile__title-row h2 {
        font-size: 23px;
    }

    .ch-agency-profile__meta {
        flex-direction: column;
        gap: 7px;
    }

    .ch-agency-profile__quick-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .ch-agency-profile__action {
        width: 100%;
        padding: 0 10px;
    }

    .ch-agency-profile__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ch-agency-profile__professional-grid {
        grid-template-columns: 1fr;
    }

    .ch-agency-profile__properties-section,
    .ch-agency-profile__suggested-section {
        margin-top: 24px;
    }

    .ch-agency-profile__property-col {
        flex: 0 0 100%;
        width: 100%;
        max-width: 100%;
    }

    .ch-agency-profile__property-card .description {
        padding: 16px;
    }

    .ch-agency-profile__property-card .description h5 {
        font-size: 17px;
    }
}

@media (max-width: 480px) {
    .ch-agency-profile__quick-actions {
        grid-template-columns: 1fr;
    }

    .ch-agency-profile__section-head,
    .ch-agency-profile__professional-grid,
    .ch-agency-profile__about,
    .ch-agency-profile__contact-list {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ch-agency-profile__level-bars {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ch-agency-profile__level-note {
        margin-left: 16px;
        margin-right: 16px;
    }

    .ch-agency-profile__contact-primary {
        margin-right: 16px;
        margin-bottom: 18px;
        margin-left: 16px;
    }

    .ch-agency-profile__hero-inner {
        padding-right: 18px;
        padding-left: 18px;
    }

    .ch-agency-profile__back {
        left: 0;
        font-size: 11px;
    }

    .ch-agency-profile__socials {
        padding-left: 16px;
        padding-right: 16px;
    }
}
