.listado-page {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    min-height: calc(100vh - 140px);
    background: var(--color-background);
}

.propiedades {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 55px clamp(25px, 4vw, 60px) 70px;
}

.section-heading {
    margin-bottom: 35px;
}

.section-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--color-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.section-heading h1 {
    margin: 0 0 8px;
    color: var(--color-primary);
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 800;
    line-height: 1.15;
}

.section-heading p {
    margin: 0;
    color: var(--color-text-light);
    font-size: 15px;
}

.property-card {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(250px, 38%) minmax(0, 1fr);
    margin-bottom: 24px;
    overflow: hidden;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition:
        transform var(--transition),
        box-shadow var(--transition),
        border-color var(--transition);
}

.property-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 155, 222, 0.35);
    box-shadow: var(--shadow-lg);
}

.property-image {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    background: #eef1f5;
}

.property-image > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .property-image > img {
    transform: scale(1.05);
}

.property-gallery {
    position: absolute;
    right: 16px;
    bottom: 16px;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(5px);
}

.property-gallery img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}

.property-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px 30px;
}

.property-heading h2 {
    margin: 0 0 7px;
    color: var(--color-primary);
    font-size: clamp(19px, 2vw, 25px);
    font-weight: 800;
    line-height: 1.25;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    color: var(--color-text-light);
    font-size: 13px;
}

.property-location span {
    font-size: 14px;
}

.property-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 25px 0;
    padding: 18px 0;
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
}

.feature {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--color-text);
    font-size: 12px;
    font-weight: 600;
}

.feature img {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    object-fit: contain;
}

.property-description {
    margin: 0;
    color: var(--color-text-light);
    font-size: 13px;
    line-height: 1.65;
}

.property-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    margin-top: auto;
    padding-top: 22px;
}

.property-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 42px;
    padding: 10px 18px;
    border-radius: var(--radius-sm);
    background: var(--color-primary);
    color: var(--color-white);
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 6px 15px rgba(1, 0, 128, 0.18);
    transition:
        background-color var(--transition),
        transform var(--transition),
        box-shadow var(--transition);
}

.property-button span {
    font-size: 18px;
    line-height: 0;
}

.property-button:hover {
    background: var(--color-accent);
    transform: translateY(-2px);
    box-shadow: 0 9px 20px rgba(0, 155, 222, 0.25);
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 42px;
}

.pagination-label {
    margin-right: 5px;
    color: var(--color-text-light);
    font-size: 13px;
    font-weight: 600;
}

.pagination-number,
.pagination-next {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-white);
    color: var(--color-primary);
    font-size: 13px;
    font-weight: 700;
    transition:
        background-color var(--transition),
        color var(--transition),
        border-color var(--transition);
}

.pagination-number:hover,
.pagination-next:hover,
.pagination-number.active {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-white);
}

.agent-sidebar {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    padding: 45px 35px 180px;
    background: linear-gradient( 180deg, var(--color-accent) 0%, #008bc8 100%);
    color: var(--color-white);
}

.agent-card {
    position: relative;
    z-index: 5;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 28px 25px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
    backdrop-filter: blur(8px);
}

.agent-photo {
    width: 150px;
    height: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 50%;
    background: var(--color-white);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    overflow: hidden;
}

.agent-photo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.agent-name {
    text-align: center;
}

.agent-name h2 {
    margin: 0 0 4px;
    color: var(--color-white);
    font-size: 23px;
    font-weight: 800;
}

.agent-name span {
    font-size: 12px;
    font-style: italic;
    opacity: 0.9;
}

.agent-content {
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.95);
    font-size: 13px;
    line-height: 1.7;
    text-align: justify;
}

.agent-content p {
    margin: 0 0 16px;
}

.agent-content .agent-thanks {
    margin-bottom: 0;
    text-align: center;
    font-weight: 700;
}

.agent-buildings {
    position: absolute;

    right: 0;
    bottom: 0;
    width: 100%;
    z-index: 2;
    pointer-events: none;
}

.agent-buildings img {
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0.85;
}


@media (min-width: 1450px) {

    .listado-page {
        grid-template-columns:
            minmax(0, 1fr)
            400px;
    }

    .propiedades {
        max-width: 1200px;

        padding: 65px 60px 80px;
    }

    .property-card {
        grid-template-columns: 40% 60%;
    }

    .property-image {
        min-height: 330px;
    }

    .property-content {
        padding: 32px 35px;
    }

    .agent-sidebar {
        padding: 55px 40px 200px;
    }

}

@media (max-width: 1100px) {

    .listado-page {
        grid-template-columns: minmax(0, 1fr) 300px;
    }

    .propiedades {
        padding: 45px 25px 60px;
    }

    .agent-sidebar {
        padding: 40px 20px 160px;
    }

    .agent-card {
        padding: 24px 18px;
    }

    .agent-photo {
        width: 125px;
        height: 125px;
    }

    .property-card {
        grid-template-columns: 35% 65%;
    }

    .property-content {
        padding: 22px;
    }

    .property-features {
        grid-template-columns: repeat(2, 1fr);
    }

}

@media (max-width: 768px) {

    .listado-page {
        display: block;

        min-height: auto;
    }

    .propiedades {
        width: 100%;
        padding:40px 18px 45px;
    }

    .section-heading {
        margin-bottom: 25px;
    }

    .section-heading h1 {
        font-size: 29px;
    }

    .property-card {
        display: block;

        border-radius: 16px;
    }

    .property-image {
        min-height: 250px;

        aspect-ratio: 16 / 10;
    }

    .property-content {
        padding: 22px 20px;
    }

    .property-heading h2 {
        font-size: 20px;
    }

    .property-features {
        margin: 20px 0;
        padding: 16px 0;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px 10px;
    }

    .feature {
        font-size: 11px;
    }

    .feature img {
        width: 22px;
        height: 22px;
    }

    .property-footer {
        justify-content: stretch;
    }

    .property-button {
        width: 100%;
    }

    .agent-sidebar {
        min-height: auto;

        padding:
            45px
            20px
            170px;
    }

    .agent-card {
        max-width: 500px;

        margin: 0 auto;
    }

    .agent-buildings {
        width: 110%;
        right: -5%;
    }

}

@media (max-width: 500px) {

    .propiedades {
        padding:
            32px
            14px
            40px;
    }

    .section-eyebrow {
        font-size: 10px;
    }

    .section-heading h1 {
        font-size: 25px;
    }

    .section-heading p {
        font-size: 13px;
    }

    .property-image {
        min-height: 210px;
    }

    .property-gallery {
        width: 38px;
        height: 38px;

        right: 12px;
        bottom: 12px;
    }

    .property-content {
        padding: 20px 16px;
    }

    .property-heading h2 {
        font-size: 18px;
    }

    .property-location {
        font-size: 12px;
    }

    .property-features {
        gap: 12px 7px;
    }

    .feature {
        gap: 6px;

        font-size: 10px;
    }

    .feature img {
        width: 20px;
        height: 20px;
    }

    .property-description {
        font-size: 12px;
    }

    .pagination {
        margin-top: 30px;
    }

    .agent-sidebar {
        padding:
            35px
            14px
            150px;
    }

    .agent-card {
        padding: 22px 18px;
    }

    .agent-photo {
        width: 115px;
        height: 115px;
    }

    .agent-name h2 {
        font-size: 20px;
    }

    .agent-content {
        font-size: 12px;
    }

}

.property-button:focus-visible,
.pagination-number:focus-visible,
.pagination-next:focus-visible {
    outline: 3px solid rgba(0, 155, 222, 0.35);
    outline-offset: 3px;
}