
:root {
    --hp-blue: #0b469b;
    --hp-blue-dark: #063a85;
    --hp-orange: #ffb400;
    --hp-border: #d7dfe8;
    --hp-surface: #ffffff;
    --hp-soft: #f5f7fa;
    --hp-text: #18283a;
    --hp-muted: #67758c;
    --hp-green: #0c8f4f;
}

.hp-hero,
.hp-results,
.hp-offers,
.hp-login-required {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
}

.hp-hero {
    background: linear-gradient(135deg, var(--hp-blue-dark), var(--hp-blue));
    color: #fff;
    min-height: 500px;
    margin: 0;
    padding: 28px 20px 0;
}

.hp-hero__inner {
    max-width: 1320px;
    min-height: 472px;
    margin: 0 auto;
    position: relative;
}

.hp-brand-row {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
}

.hp-brand {
    font-size: clamp(24px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -0.5px;
}

.hp-brand span {
    color: var(--hp-orange);
}

.hp-currency {
    font-size: 13px;
    font-weight: 700;
    opacity: 0.95;
}

.hp-copy {
    max-width: 960px;
    padding-top: 150px;
}

.hp-copy h1 {
    color: #fff;
    font-size: clamp(30px, 4vw, 52px);
    line-height: 1.1;
    margin: 0 0 18px;
}

.hp-copy p {
    color: #fff;
    font-size: clamp(18px, 2vw, 25px);
    line-height: 1.4;
    margin: 0;
    max-width: 900px;
}

.hp-search-form {
    background: var(--hp-orange);
    border-radius: 12px;
    bottom: -34px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
    display: grid;
    gap: 4px;
    grid-template-columns: 1.25fr 1fr 1fr 150px;
    left: 0;
    padding: 4px;
    position: absolute;
    right: 0;
    z-index: 5;
}

.hp-field {
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 70px;
    padding: 10px 18px;
}

.hp-field:first-child {
    border-radius: 8px 0 0 8px;
}

.hp-field span {
    color: var(--hp-muted);
    font-size: 12px;
    font-weight: 700;
    margin-bottom: 4px;
    text-transform: uppercase;
}

.hp-field input,
.hp-field select {
    background: #fff;
    border: 0 !important;
    box-shadow: none !important;
    color: var(--hp-text);
    font-size: 17px;
    margin: 0;
    min-height: auto;
    outline: 0;
    padding: 0;
    width: 100%;
}

.hp-search-button {
    background: #0866d8;
    border: 0;
    border-radius: 0 8px 8px 0;
    color: #fff;
    cursor: pointer;
    font-size: 17px;
    font-weight: 800;
    padding: 0 22px;
}

.hp-search-button:hover {
    background: #075abb;
}

.hp-results,
.hp-offers {
    margin: 0 auto;
    max-width: 1320px;
    padding: 50px 20px 30px;
}

.hp-results__header {
    margin-bottom: 18px;
}

.hp-results__header h2 {
    color: var(--hp-text);
    font-size: 32px;
    margin: 0 0 8px;
}

.hp-results__header p {
    color: var(--hp-muted);
    font-size: 17px;
    margin: 0;
}

.hp-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.hp-row-card {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) 130px 270px;
    gap: 14px;
    align-items: center;
    background: var(--hp-surface);
    border: 1px solid var(--hp-border);
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(16, 30, 54, 0.06);
    padding: 12px 16px;
}

.hp-row-card__left,
.hp-row-card__center,
.hp-row-card__right {
    min-width: 0;
}


.hp-row-card h3 {
    color: #101f33;
    font-size: 17px;
    line-height: 1.3;
    margin: 0 0 7px;
    max-width: 95%;
}

.hp-row-card__location {
    color: var(--hp-muted);
    font-size: 13px;
    margin: 0 0 9px;
}

.hp-row-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.hp-meta-pill {
    background: #e9f0fa;
    color: #123f8d;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    padding: 5px 9px;
    text-transform: uppercase;
}

.hp-meta-portal {
    color: var(--hp-muted);
    font-size: 12px;
    font-weight: 700;
}

.hp-spec-box {
    background: var(--hp-soft);
    border-radius: 8px;
    padding: 8px 12px;
    text-align: left;
}

.hp-spec-box__label {
    display: block;
    color: var(--hp-muted);
    font-size: 11px;
    font-weight: 700;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.hp-spec-box strong {
    color: var(--hp-text);
    font-size: 17px;
}

.hp-row-card__right {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.hp-price-m2 {
    color: var(--hp-green);
    font-size: 17px;
    font-weight: 800;
}

.hp-total-price {
    color: #0f2342;
    font-size: clamp(25px, 2.3vw, 36px);
    font-weight: 900;
    line-height: 1.05;
}

.hp-open-button,
.hp-primary-link {
    display: inline-block;
    min-width: 175px;
    text-align: center;
    background: #1e73cf;
    color: #fff !important;
    text-decoration: none !important;
    padding: 11px 18px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 800;
}

.hp-open-button:hover,
.hp-primary-link:hover {
    background: #175eab;
}

.hp-empty,
.hp-login-required {
    background: #f7f9fc;
    border: 1px solid var(--hp-border);
    border-radius: 12px;
    color: var(--hp-text);
    padding: 28px;
}

.hp-login-required {
    margin: 40px auto;
    max-width: 720px;
    text-align: center;
}

.hp-pagination {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: center;
    margin-top: 28px;
}

.hp-pagination a {
    background: var(--hp-blue);
    border-radius: 8px;
    color: #fff;
    font-weight: 700;
    padding: 10px 16px;
    text-decoration: none;
}

@media (max-width: 1100px) {
    .hp-row-card {
        grid-template-columns: 1fr 220px;
        grid-template-areas:
            "left right"
            "center right";
        align-items: start;
    }

    .hp-row-card__left { grid-area: left; }
    .hp-row-card__center { grid-area: center; }
    .hp-row-card__right { grid-area: right; }
}

@media (max-width: 980px) {
    .hp-hero {
        min-height: auto;
        padding-bottom: 30px;
    }

    .hp-hero__inner {
        min-height: auto;
    }

    .hp-copy {
        padding: 90px 0 50px;
    }

    .hp-search-form {
        grid-template-columns: 1fr 1fr;
        position: static;
    }

    .hp-field:first-child,
    .hp-search-button {
        border-radius: 6px;
    }

    .hp-search-button {
        min-height: 70px;
    }

    .hp-results,
    .hp-offers {
        padding-top: 45px;
    }
}

@media (max-width: 760px) {
    .hp-row-card {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .hp-row-card__right {
        align-items: flex-start;
        text-align: left;
    }

    .hp-open-button {
        width: 100%;
    }
}

@media (max-width: 640px) {
    .hp-brand-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .hp-copy {
        padding-top: 60px;
    }

    .hp-search-form {
        grid-template-columns: 1fr;
    }

    .hp-field,
    .hp-field:first-child,
    .hp-search-button {
        border-radius: 7px;
    }

    .hp-results__header h2 {
        font-size: 27px;
    }

    .hp-row-card h3 {
        font-size: 18px;
    }

    .hp-price-m2 {
        font-size: 18px;
    }

    .hp-total-price {
        font-size: 32px;
    }
}


/* Portada creada por Hunter Properties */
body.home .entry-title {
    display: none;
}

body.home .site-content .ast-container,
body.home .site-content > .ast-container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

body.home .entry-content {
    margin: 0;
}


/* Limpieza de la portada anterior de Astra / Directory Kit */
body.home #masthead,
body.home .site-header,
body.home .ast-above-header-wrap,
body.home .ast-primary-header-bar,
body.home .ast-below-header-wrap {
    display: none !important;
}

body.home .site-content,
body.home .site-main,
body.home .ast-article-single,
body.home article.page,
body.home .entry-content {
    margin: 0 !important;
    padding: 0 !important;
}

body.home .ast-article-single {
    background: transparent !important;
}

body.home .site-content > .ast-container,
body.home .ast-container {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
}

.hp-field datalist {
    display: none;
}


/* Elimina el espacio superior residual del tema Astra en la portada */
body.home #page,
body.home #content,
body.home .site-content,
body.home .content-area,
body.home #primary,
body.home .site-main,
body.home .ast-container,
body.home article.page,
body.home .ast-article-single,
body.home .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.home #primary {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

body.home .entry-header,
body.home .ast-article-single > .entry-header,
body.home article.page > .entry-header {
    display: none !important;
    height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.home .entry-content > :first-child {
    margin-top: 0 !important;
}


/* Buscador principal más compacto */
.hp-search-form {
    bottom: -26px;
}

.hp-field {
    min-height: 54px !important;
    padding: 7px 16px !important;
}

.hp-field span {
    font-size: 10px !important;
    margin-bottom: 2px !important;
}

.hp-field input,
.hp-field select {
    font-size: 15px !important;
    line-height: 1.2 !important;
}

.hp-search-button {
    min-height: 54px !important;
    font-size: 17px !important;
    padding: 0 18px !important;
}

/* En la portada no se muestran resultados ni ofertas debajo del buscador */
body.home .hp-offers,
body.home .hp-results {
    display: none !important;
}


/* Ajustes visuales incorporados para no depender del Personalizador */
.hp-copy {
    padding-top: 115px !important;
}

.hp-copy h1 {
    font-size: 50px !important;
    line-height: 1.08 !important;
    margin-bottom: 12px !important;
}

.hp-search-form {
    height: 58px !important;
    min-height: 58px !important;
    bottom: -20px !important;
    align-items: stretch !important;
}

.hp-search-form .hp-field {
    height: 58px !important;
    min-height: 0 !important;
    padding: 5px 14px !important;
    box-sizing: border-box !important;
}

.hp-search-form .hp-field span {
    font-size: 9px !important;
    line-height: 11px !important;
    margin: 0 0 3px 0 !important;
}

.hp-search-form .hp-field input,
.hp-search-form .hp-field select {
    height: 24px !important;
    min-height: 0 !important;
    line-height: 24px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
}

.hp-search-form .hp-search-button {
    height: 58px !important;
    min-height: 0 !important;
    padding: 0 18px !important;
    font-size: 16px !important;
    line-height: 58px !important;
}


/* v0.1.9: reduce el contenedor blanco completo del buscador */
.hp-search-form {
    height: 50px !important;
    min-height: 50px !important;
    padding: 3px !important;
    bottom: -17px !important;
}

.hp-search-form .hp-field {
    height: 44px !important;
    min-height: 44px !important;
    padding: 3px 12px !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.hp-search-form .hp-field span {
    font-size: 8px !important;
    line-height: 9px !important;
    margin: 0 0 1px 0 !important;
}

.hp-search-form .hp-field input,
.hp-search-form .hp-field select {
    height: 20px !important;
    min-height: 20px !important;
    line-height: 20px !important;
    font-size: 14px !important;
    padding: 0 !important;
    margin: 0 !important;
}

.hp-search-form .hp-search-button {
    height: 44px !important;
    min-height: 44px !important;
    line-height: 44px !important;
    font-size: 15px !important;
    padding: 0 16px !important;
}


/* Página de resultados sin la cabecera antigua de Astra / Directory Kit */
body.hp-results-page #masthead,
body.hp-results-page .site-header,
body.hp-results-page .ast-above-header-wrap,
body.hp-results-page .ast-primary-header-bar,
body.hp-results-page .ast-below-header-wrap {
    display: none !important;
}

body.hp-results-page #page,
body.hp-results-page #content,
body.hp-results-page .site-content,
body.hp-results-page .content-area,
body.hp-results-page #primary,
body.hp-results-page .site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.hp-results-page .site-content > .ast-container,
body.hp-results-page .ast-container {
    width: 100% !important;
    max-width: 1320px !important;
}

/* Barra de ordenamiento */
.hp-results-toolbar {
    align-items: flex-end;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 18px;
}

.hp-results-toolbar .hp-results__header {
    margin-bottom: 0;
}

.hp-sort-form {
    align-items: center;
    display: flex;
    gap: 10px;
}

.hp-sort-form label {
    color: var(--hp-muted);
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.hp-sort-form select {
    appearance: auto;
    background: #fff;
    border: 1px solid var(--hp-border);
    border-radius: 8px;
    color: var(--hp-text);
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    min-width: 210px;
    padding: 9px 34px 9px 12px;
}

.hp-sort-form select:focus {
    border-color: var(--hp-blue);
    box-shadow: 0 0 0 2px rgba(11, 70, 155, 0.12);
    outline: none;
}

@media (max-width: 700px) {
    .hp-results-toolbar {
        align-items: stretch;
        flex-direction: column;
        gap: 12px;
    }

    .hp-sort-form {
        align-items: stretch;
        flex-direction: column;
        gap: 6px;
    }

    .hp-sort-form select {
        width: 100%;
    }
}


/* Autocompletado personalizado v0.2.1 */
.hp-search-form .hp-field.hp-autocomplete-field {
    overflow: visible !important;
    position: relative !important;
}

.hp-field--disabled {
    background: #ffffff !important;
}

.hp-field--disabled input {
    background: #ffffff !important;
    color: #929aa8 !important;
    -webkit-text-fill-color: #929aa8 !important;
    cursor: not-allowed !important;
    opacity: 1 !important;
}

.hp-autocomplete-menu {
    background: #ffffff;
    border: 1px solid #d7dfe8;
    border-radius: 8px;
    box-shadow: 0 12px 28px rgba(10, 28, 58, 0.18);
    left: 0;
    margin-top: 5px;
    max-height: 240px;
    min-width: 100%;
    overflow-y: auto;
    padding: 5px;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 9999;
}

.hp-autocomplete-menu[hidden] {
    display: none !important;
}

.hp-autocomplete-option {
    background: #ffffff !important;
    border: 0 !important;
    border-radius: 6px !important;
    color: #172033 !important;
    cursor: pointer !important;
    display: block !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    line-height: 1.25 !important;
    margin: 0 !important;
    padding: 9px 10px !important;
    text-align: left !important;
    width: 100% !important;
}

.hp-autocomplete-option:hover,
.hp-autocomplete-option.is-active {
    background: #eaf3ff !important;
    color: #0b469b !important;
}

@media (max-width: 640px) {
    .hp-autocomplete-menu {
        max-height: 200px;
    }
}


/* v0.2.2: botón principal amarillo */
.hp-search-button,
.hp-search-form .hp-search-button {
    background: #FFC107 !important;
    color: #172033 !important;
    border-color: #FFC107 !important;
}

.hp-search-button:hover,
.hp-search-button:focus,
.hp-search-form .hp-search-button:hover,
.hp-search-form .hp-search-button:focus {
    background: #E5AC00 !important;
    color: #172033 !important;
}

/* Elimina por completo el crédito y footer de Astra */
.site-footer,
.ast-small-footer,
.ast-footer-overlay,
.ast-builder-footer-wrap,
.site-primary-footer-wrap,
.site-below-footer-wrap {
    display: none !important;
}

/* Footer propio Hunter Properties */
.hp-brand-footer {
    background: #0B469B;
    color: #FFFFFF;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    padding: 18px 20px;
    width: 100%;
}

.hp-brand-footer__inner {
    align-items: center;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1320px;
}

.hp-brand-footer strong {
    font-size: 18px;
    letter-spacing: -0.2px;
}

.hp-brand-footer strong span {
    color: #FFC107;
}

.hp-brand-footer small {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    text-align: right;
}

@media (max-width: 640px) {
    .hp-brand-footer__inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .hp-brand-footer small {
        text-align: left;
    }
}


/* Cuenta y autenticación v0.2.3 */
.hp-brand-actions {
    align-items: center;
    display: flex;
    gap: 14px;
}

.hp-account-link {
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 800;
    padding: 7px 12px;
    text-decoration: none !important;
}

.hp-account-link:hover {
    background: rgba(255, 255, 255, 0.12);
}

.hp-account-page #masthead,
.hp-account-page .site-header,
.hp-account-page .ast-above-header-wrap,
.hp-account-page .ast-primary-header-bar,
.hp-account-page .ast-below-header-wrap {
    display: none !important;
}

.hp-account-page #page,
.hp-account-page #content,
.hp-account-page .site-content,
.hp-account-page .content-area,
.hp-account-page #primary,
.hp-account-page .site-main,
.hp-account-page .ast-container,
.hp-account-page article.page,
.hp-account-page .ast-article-single,
.hp-account-page .entry-content {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hp-account-page .entry-header,
.hp-account-page article.page > .entry-header {
    display: none !important;
}

.hp-account-shell {
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    margin: 0 auto;
    max-width: 1060px;
    padding: 54px 20px 70px;
}

.hp-account-shell--results {
    padding-top: 26px;
}

.hp-account-heading {
    margin: 0 auto 24px;
    max-width: 720px;
    text-align: center;
}

.hp-account-heading h2,
.hp-account-logged h2 {
    color: #172033;
    font-size: 32px;
    margin: 10px 0 8px;
}

.hp-account-heading p,
.hp-account-logged p {
    color: #67758c;
    font-size: 16px;
    margin: 0;
}

.hp-account-badge {
    background: #fff4c4;
    border-radius: 999px;
    color: #6b5100;
    display: inline-block;
    font-size: 12px;
    font-weight: 800;
    padding: 7px 11px;
    text-transform: uppercase;
}

.hp-auth-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hp-auth-card,
.hp-account-logged {
    background: #fff;
    border: 1px solid #d7dfe8;
    border-radius: 14px;
    box-shadow: 0 10px 28px rgba(15, 32, 64, 0.08);
    box-sizing: border-box;
    padding: 24px;
}

.hp-auth-card h3 {
    color: #172033;
    font-size: 22px;
    margin: 0 0 18px;
}

.hp-auth-card > label:not(.hp-auth-check) {
    display: block;
    margin-bottom: 14px;
}

.hp-auth-card > label > span {
    color: #39445a;
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 6px;
}

.hp-auth-card input[type="email"],
.hp-auth-card input[type="password"] {
    background: #fff;
    border: 1px solid #cdd6e1;
    border-radius: 8px;
    box-sizing: border-box;
    color: #172033;
    font-size: 16px;
    min-height: 46px;
    padding: 10px 12px;
    width: 100%;
}

.hp-auth-card input:focus {
    border-color: #0b469b;
    box-shadow: 0 0 0 3px rgba(11, 70, 155, 0.12);
    outline: none;
}

.hp-auth-check {
    align-items: center;
    display: flex;
    gap: 8px;
    margin: 2px 0 16px;
}

.hp-auth-check span {
    color: #566177;
    font-size: 13px;
}

.hp-auth-card button,
.hp-account-primary {
    background: #FFC107;
    border: 0;
    border-radius: 8px;
    color: #172033 !important;
    cursor: pointer;
    display: inline-block;
    font-size: 15px;
    font-weight: 900;
    min-height: 46px;
    padding: 12px 18px;
    text-align: center;
    text-decoration: none !important;
    width: 100%;
}

.hp-auth-card button:hover,
.hp-account-primary:hover {
    background: #E5AC00;
}

.hp-lost-password {
    color: #0b469b;
    display: block;
    font-size: 13px;
    font-weight: 700;
    margin-top: 14px;
    text-align: center;
}

.hp-auth-note {
    color: #7a8496;
    font-size: 12px;
    margin: -4px 0 14px;
}

.hp-auth-message {
    border-radius: 9px;
    font-size: 14px;
    margin: 0 auto 18px;
    max-width: 720px;
    padding: 12px 14px;
}

.hp-auth-message--error {
    background: #fff0f0;
    border: 1px solid #efb6b6;
    color: #8b2525;
}

.hp-honeypot {
    height: 0;
    left: -9999px;
    overflow: hidden;
    position: absolute;
    width: 0;
}

.hp-account-logged {
    margin: 0 auto;
    max-width: 560px;
    text-align: center;
}

.hp-account-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 22px;
}

.hp-account-primary,
.hp-account-secondary {
    width: auto;
}

.hp-account-secondary {
    border: 1px solid #cdd6e1;
    border-radius: 8px;
    color: #39445a !important;
    display: inline-block;
    font-size: 14px;
    font-weight: 800;
    padding: 12px 18px;
    text-decoration: none !important;
}

@media (max-width: 760px) {
    .hp-brand-actions {
        align-items: flex-end;
        flex-direction: column;
        gap: 6px;
    }

    .hp-auth-grid {
        grid-template-columns: 1fr;
    }

    .hp-account-heading h2,
    .hp-account-logged h2 {
        font-size: 27px;
    }

    .hp-account-actions {
        flex-direction: column;
    }

    .hp-account-primary,
    .hp-account-secondary {
        width: 100%;
    }
}


/* v0.2.4: ícono de cuenta */
.hp-account-icon {
    align-items: center;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 50%;
    box-sizing: border-box;
    color: #ffffff !important;
    cursor: pointer;
    display: inline-flex;
    height: 42px;
    justify-content: center;
    margin: 0;
    padding: 0;
    text-decoration: none !important;
    transition: background 0.18s ease, transform 0.18s ease;
    width: 42px;
}

.hp-account-icon:hover,
.hp-account-icon:focus {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff !important;
    outline: none;
    transform: translateY(-1px);
}

.hp-account-icon svg {
    fill: currentColor;
    height: 21px;
    width: 21px;
}

/* Modal de registro e ingreso */
body.hp-auth-modal-open {
    overflow: hidden;
}

.hp-auth-modal[hidden] {
    display: none !important;
}

.hp-auth-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 18px;
    position: fixed;
    z-index: 100000;
}

.hp-auth-modal__backdrop {
    background: rgba(10, 18, 30, 0.68);
    inset: 0;
    position: absolute;
}

.hp-auth-modal__dialog {
    background: #ffffff;
    border-radius: 22px;
    box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
    box-sizing: border-box;
    max-height: calc(100vh - 36px);
    max-width: 520px;
    overflow-y: auto;
    padding: 34px;
    position: relative;
    width: 100%;
    z-index: 1;
}

.hp-auth-modal__dialog:focus {
    outline: none;
}

.hp-auth-modal__close {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 50%;
    color: #172033;
    cursor: pointer;
    display: flex;
    font-size: 30px;
    height: 38px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 15px;
    top: 13px;
    width: 38px;
}

.hp-auth-modal__close:hover {
    background: #f0f3f7;
}

.hp-auth-modal__brand {
    color: #0b469b;
    font-size: 14px;
    font-weight: 900;
    letter-spacing: 0.4px;
    margin-bottom: 18px;
}

.hp-auth-modal__brand span {
    color: #d69f00;
}

.hp-auth-modal h2 {
    color: #172033;
    font-size: 31px;
    line-height: 1.12;
    margin: 0 38px 8px 0;
}

.hp-auth-modal__intro {
    color: #67758c;
    font-size: 15px;
    line-height: 1.45;
    margin: 0 0 22px;
}

.hp-auth-tabs {
    background: #f1f4f8;
    border-radius: 10px;
    display: grid;
    gap: 4px;
    grid-template-columns: 1fr 1fr;
    margin-bottom: 20px;
    padding: 4px;
}

.hp-auth-tab {
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: #566177;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
    min-height: 42px;
    padding: 8px 12px;
}

.hp-auth-tab.is-active {
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(20, 39, 75, 0.1);
    color: #0b469b;
}

.hp-auth-modal__panel[hidden] {
    display: none !important;
}

.hp-auth-modal-form > label:not(.hp-auth-check) {
    display: block;
    margin-bottom: 14px;
}

.hp-auth-modal-form > label > span {
    color: #39445a;
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 6px;
}

.hp-auth-modal-form input[type="email"],
.hp-auth-modal-form input[type="password"] {
    background: #ffffff;
    border: 1px solid #cdd6e1;
    border-radius: 9px;
    box-sizing: border-box;
    color: #172033;
    font-size: 16px;
    min-height: 48px;
    padding: 10px 12px;
    width: 100%;
}

.hp-auth-modal-form input:focus {
    border-color: #0b469b;
    box-shadow: 0 0 0 3px rgba(11, 70, 155, 0.12);
    outline: none;
}

.hp-auth-modal-form > button {
    background: #FFC107;
    border: 0;
    border-radius: 9px;
    color: #172033;
    cursor: pointer;
    font-size: 15px;
    font-weight: 900;
    min-height: 48px;
    padding: 12px 18px;
    width: 100%;
}

.hp-auth-modal-form > button:hover {
    background: #e5ac00;
}

.hp-login-required {
    margin: 38px auto;
    max-width: 650px;
    text-align: center;
}

.hp-login-required h2 {
    margin-top: 0;
}

.hp-login-required .hp-primary-link {
    border: 0;
    cursor: pointer;
    width: auto;
}

@media (max-width: 640px) {
    .hp-auth-modal {
        align-items: flex-end;
        padding: 0;
    }

    .hp-auth-modal__dialog {
        border-radius: 20px 20px 0 0;
        max-height: 92vh;
        padding: 28px 20px 24px;
    }

    .hp-auth-modal h2 {
        font-size: 26px;
    }

    .hp-account-icon {
        height: 38px;
        width: 38px;
    }
}


/* v0.2.5: precios más compactos en resultados */
.hp-price-m2 {
    font-size: 14px !important;
}

.hp-total-price {
    font-size: clamp(22px, 1.8vw, 30px) !important;
    line-height: 1.08 !important;
}

@media (max-width: 700px) {
    .hp-price-m2 {
        font-size: 13px !important;
    }

    .hp-total-price {
        font-size: 26px !important;
    }
}


/* v0.2.6: icono de cuenta 20% más pequeño */
.hp-account-icon {
    height: 34px !important;
    width: 34px !important;
}

.hp-account-icon svg {
    height: 17px !important;
    width: 17px !important;
}

/* Integración visual con Nextend Social Login */
.hp-social-login {
    margin: 0 auto 18px;
    max-width: 520px;
}

.hp-social-login--modal {
    margin-bottom: 16px;
    max-width: none;
}

.hp-social-login .nsl-container {
    margin: 0 !important;
    padding: 0 !important;
}

.hp-social-login .nsl-container-buttons {
    display: grid !important;
    gap: 10px !important;
}

.hp-social-login .nsl-button {
    border-radius: 9px !important;
    min-height: 48px !important;
}

.hp-auth-divider {
    align-items: center;
    color: #7a8496;
    display: flex;
    font-size: 12px;
    gap: 12px;
    margin: 0 0 18px;
    text-align: center;
}

.hp-auth-divider::before,
.hp-auth-divider::after {
    background: #dce2ea;
    content: "";
    flex: 1;
    height: 1px;
}

.hp-auth-divider span {
    white-space: nowrap;
}

@media (max-width: 640px) {
    .hp-account-icon {
        height: 30px !important;
        width: 30px !important;
    }

    .hp-account-icon svg {
        height: 15px !important;
        width: 15px !important;
    }
}


/* v0.3.0: contador dinámico de propiedades activas */
.hp-property-count {
    align-items: center;
    color: rgba(255, 255, 255, 0.92);
    display: flex;
    flex-wrap: wrap;
    font-size: 15px;
    gap: 4px;
    line-height: 1.35;
    margin-top: 17px;
}

.hp-property-count::before {
    background: var(--hp-orange);
    border-radius: 50%;
    box-shadow: 0 0 0 4px rgba(255, 180, 0, 0.18);
    content: "";
    flex: 0 0 auto;
    height: 7px;
    margin-right: 7px;
    width: 7px;
}

.hp-property-count strong {
    color: #ffffff;
    font-weight: 800;
}

@media (max-width: 700px) {
    .hp-property-count {
        font-size: 13px;
        margin-top: 13px;
    }
}


/* v0.3.2 — marca superior restaurada */
.hp-brand.hp-brand--casasyaptos {
    align-items: flex-start !important;
    display: flex !important;
    flex-direction: column !important;
    font-size: initial !important;
    gap: 4px !important;
    letter-spacing: normal !important;
    line-height: 1 !important;
}

.hp-brand.hp-brand--casasyaptos .hp-brand__main {
    color: #ffffff !important;
    display: block !important;
    font-size: 25px !important;
    font-weight: 800 !important;
    letter-spacing: 0.01em !important;
    line-height: 1 !important;
    white-space: nowrap !important;
}

.hp-brand.hp-brand--casasyaptos .hp-brand__powered {
    color: rgba(255, 255, 255, 0.86) !important;
    display: block !important;
    font-size: 10px !important;
    font-weight: 600 !important;
    letter-spacing: 0.025em !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

@media (max-width: 700px) {
    .hp-brand.hp-brand--casasyaptos .hp-brand__main {
        font-size: 19px !important;
    }

    .hp-brand.hp-brand--casasyaptos .hp-brand__powered {
        font-size: 9px !important;
    }
}

/* v0.3.3: resalta "Y APTOS" en amarillo */
.hp-brand.hp-brand--casasyaptos .hp-brand__main .hp-brand__white {
    color: #ffffff !important;
}

.hp-brand.hp-brand--casasyaptos .hp-brand__main .hp-brand__yellow {
    color: #ffc107 !important;
}


/* v0.3.4: precios más equilibrados y aviso de fuente externa */
.hp-price-m2 {
    font-size: 13px !important;
}

.hp-total-price {
    font-size: clamp(20px, 1.55vw, 27px) !important;
    line-height: 1.08 !important;
}

.hp-source-disclaimer {
    background: #f7f9fc;
    border-left: 3px solid #ffc107;
    border-radius: 5px;
    color: #5c6b80;
    font-size: 11px;
    line-height: 1.45;
    margin: 10px 0 14px;
    padding: 8px 11px;
}

@media (max-width: 700px) {
    .hp-price-m2 {
        font-size: 12px !important;
    }

    .hp-total-price {
        font-size: 23px !important;
    }

    .hp-source-disclaimer {
        font-size: 10px;
    }
}


/* v0.3.8 — carrusel de mensajes de la portada */
.hp-copy h1 {
    margin-bottom: 0 !important;
}

.hp-copy .hp-copy__title,
.hp-copy .hp-copy__subtitle {
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 280ms ease,
        transform 280ms ease;
}

.hp-copy .hp-copy__title {
    min-height: 112px;
}

.hp-copy .hp-copy__subtitle {
    color: rgba(255, 255, 255, 0.96) !important;
    font-size: clamp(19px, 1.65vw, 22px) !important;
    font-weight: 500 !important;
    line-height: 1.48 !important;
    margin: 30px 0 0 !important;
    max-width: 900px !important;
    min-height: 66px;
}

.hp-copy .hp-copy__highlight {
    color: #FFC107 !important;
    font-weight: 800 !important;
}

.hp-copy.is-changing .hp-copy__title,
.hp-copy.is-changing .hp-copy__subtitle {
    opacity: 0;
    transform: translateY(7px);
}

.hp-hero-messages {
    display: none !important;
}


.hp-portals {
    background: #f3f5f8;
    padding: 84px 20px 34px;
}

.hp-portals__inner {
    max-width: 1320px;
    margin: 0 auto;
    background: #fff;
    border-radius: 24px;
    box-shadow: 0 18px 40px rgba(16, 30, 54, 0.10);
    padding: 28px 26px 30px;
    text-align: center;
}

.hp-portals__title {
    margin: 0;
    color: var(--hp-blue);
    font-size: clamp(18px, 1.8vw, 22px);
    font-weight: 800;
    line-height: 1.15;
}

.hp-portals__divider {
    width: 84px;
    height: 5px;
    background: var(--hp-orange);
    border-radius: 999px;
    margin: 14px auto 24px;
}

.hp-portals__list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 0 auto 22px;
}

.hp-portals__pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 108px;
    padding: 8px 14px;
    border: 2px solid rgba(11, 70, 155, 0.58);
    border-radius: 12px;
    color: var(--hp-blue);
    background: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.2;
}

.hp-portals__note {
    margin: 0;
    color: #23344a;
    font-size: 15px;
    line-height: 1.5;
}

@media (max-width: 980px) {
    .hp-portals {
        padding-top: 42px;
    }
}

@media (max-width: 640px) {
    .hp-portals__inner {
        border-radius: 18px;
        padding: 24px 18px 26px;
    }

    .hp-portals__list {
        gap: 10px;
    }

    .hp-portals__pill {
        min-width: calc(50% - 6px);
        padding: 11px 14px;
        font-size: 12px;
    }
}

/* Interacciones de resultados v0.4.8 */
.hp-row-card__actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.hp-favorite-button,
.hp-compare-control {
    align-items: center;
    background: #ffffff !important;
    border: 1px solid #cfd8e5 !important;
    border-radius: 999px !important;
    box-shadow: none !important;
    color: #42516a !important;
    display: inline-flex !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    gap: 6px;
    line-height: 1 !important;
    min-height: 32px !important;
    padding: 7px 11px !important;
}

.hp-favorite-button {
    cursor: pointer !important;
    margin: 0 !important;
    width: auto !important;
}

.hp-favorite-button:hover,
.hp-favorite-button:focus-visible,
.hp-compare-control:hover {
    border-color: #0b469b !important;
    color: #0b469b !important;
}

.hp-favorite-button:focus-visible,
.hp-compare-control:focus-within {
    box-shadow: 0 0 0 3px rgba(11, 70, 155, 0.13) !important;
    outline: none !important;
}

.hp-favorite-button:disabled {
    cursor: wait !important;
    opacity: 0.65;
}

.hp-favorite-button.is-active {
    background: #fff3f3 !important;
    border-color: #efb9b9 !important;
    color: #b4232c !important;
}

.hp-favorite-button__icon {
    font-size: 17px;
    line-height: 1;
}

.hp-compare-control {
    cursor: pointer;
    margin: 0;
}

.hp-compare-control input {
    accent-color: #0b469b;
    height: 15px;
    margin: 0 !important;
    min-height: 0 !important;
    width: 15px;
}

.hp-consulted-badge {
    align-items: center;
    background: #eef7f2;
    border: 1px solid #c9e7d7;
    border-radius: 999px;
    color: #167046;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    min-height: 32px;
    padding: 7px 11px;
    text-transform: uppercase;
}

.hp-consulted-badge[hidden] {
    display: none !important;
}

.hp-row-card.is-consulted {
    border-color: #cbd6e2;
    box-shadow: 0 1px 7px rgba(16, 30, 54, 0.04);
}

.hp-row-card.is-consulted h3 {
    color: #3e4d62;
}

.hp-compare-bar {
    align-items: center;
    background: #102b52;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    bottom: 22px;
    box-shadow: 0 16px 42px rgba(9, 28, 56, 0.28);
    color: #ffffff;
    display: flex;
    gap: 28px;
    justify-content: space-between;
    left: 50%;
    max-width: min(720px, calc(100vw - 32px));
    padding: 12px 14px 12px 18px;
    position: fixed;
    transform: translateX(-50%);
    width: max-content;
    z-index: 99990;
}

.hp-compare-bar[hidden] {
    display: none !important;
}

.hp-compare-bar__summary {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 170px;
}

.hp-compare-bar__summary strong {
    color: #ffffff;
    font-size: 14px;
}

.hp-compare-bar__summary span {
    color: rgba(255, 255, 255, 0.75);
    font-size: 11px;
}

.hp-compare-bar__actions {
    align-items: center;
    display: flex;
    gap: 8px;
}

.hp-compare-clear,
.hp-compare-open {
    border-radius: 8px !important;
    cursor: pointer !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 13px !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    margin: 0 !important;
    min-height: 40px !important;
    padding: 11px 15px !important;
    width: auto !important;
}

.hp-compare-clear {
    background: transparent !important;
    border: 1px solid rgba(255, 255, 255, 0.45) !important;
    color: #ffffff !important;
}

.hp-compare-open {
    background: #ffc107 !important;
    border: 1px solid #ffc107 !important;
    color: #172033 !important;
}

.hp-compare-open:hover:not(:disabled) {
    background: #e5ac00 !important;
}

.hp-compare-open:disabled {
    cursor: not-allowed !important;
    opacity: 0.52;
}

.hp-compare-modal {
    align-items: center;
    display: flex;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 99999;
}

.hp-compare-modal[hidden] {
    display: none !important;
}

.hp-compare-modal__backdrop {
    background: rgba(6, 19, 39, 0.68);
    inset: 0;
    position: absolute;
}

.hp-compare-modal__dialog {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 24px 70px rgba(4, 20, 48, 0.34);
    max-height: calc(100vh - 48px);
    max-width: 1120px;
    overflow: hidden;
    position: relative;
    width: 100%;
    z-index: 1;
}

.hp-compare-modal__dialog:focus {
    outline: none;
}

.hp-compare-modal__header {
    align-items: center;
    border-bottom: 1px solid #dde4ec;
    display: flex;
    justify-content: space-between;
    padding: 20px 22px;
}

.hp-compare-modal__eyebrow {
    color: #0b469b;
    display: block;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.hp-compare-modal__header h2 {
    color: #172033;
    font-size: 24px;
    margin: 0;
}

.hp-compare-modal__close {
    align-items: center;
    background: #f1f4f8 !important;
    border: 0 !important;
    border-radius: 999px !important;
    color: #34445d !important;
    cursor: pointer !important;
    display: inline-flex !important;
    font-size: 26px !important;
    height: 40px !important;
    justify-content: center;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 40px !important;
}

.hp-compare-table-wrap {
    max-height: calc(100vh - 150px);
    overflow: auto;
    padding: 0 22px 24px;
}

.hp-compare-table {
    border-collapse: separate;
    border-spacing: 0;
    color: #26364d;
    font-family: Arial, Helvetica, sans-serif;
    min-width: 760px;
    width: 100%;
}

.hp-compare-table th,
.hp-compare-table td {
    border-bottom: 1px solid #e1e7ee;
    border-right: 1px solid #e7ecf2;
    padding: 14px;
    text-align: left;
    vertical-align: top;
}

.hp-compare-table th:first-child,
.hp-compare-table td:first-child {
    border-left: 1px solid #e7ecf2;
}

.hp-compare-table thead th {
    background: #f6f8fb;
    color: #172033;
    min-width: 210px;
    position: sticky;
    top: 0;
    z-index: 2;
}

.hp-compare-table thead th:first-child {
    min-width: 135px;
}

.hp-compare-table tbody th {
    background: #fafbfd;
    color: #5a687c;
    font-size: 12px;
    font-weight: 900;
    min-width: 135px;
    text-transform: uppercase;
}

.hp-compare-table tbody td {
    font-size: 14px;
    font-weight: 700;
}

.hp-compare-table__remove {
    background: transparent !important;
    border: 0 !important;
    color: #b4232c !important;
    cursor: pointer !important;
    display: block !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    margin: 7px 0 0 !important;
    padding: 0 !important;
    text-decoration: underline;
    width: auto !important;
}

.hp-compare-table__link {
    background: #1e73cf;
    border-radius: 7px;
    color: #ffffff !important;
    display: inline-block;
    font-size: 12px;
    font-weight: 900;
    padding: 9px 11px;
    text-align: center;
    text-decoration: none !important;
}

.hp-interaction-toast {
    background: #172033;
    border-radius: 9px;
    bottom: 94px;
    box-shadow: 0 12px 30px rgba(5, 19, 40, 0.25);
    color: #ffffff;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 13px;
    font-weight: 800;
    left: 50%;
    max-width: calc(100vw - 40px);
    opacity: 0;
    padding: 11px 15px;
    pointer-events: none;
    position: fixed;
    text-align: center;
    transform: translate(-50%, 8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
    z-index: 100000;
}

.hp-interaction-toast[hidden] {
    display: none !important;
}

.hp-interaction-toast.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

body.hp-compare-modal-open {
    overflow: hidden;
}

@media (max-width: 760px) {
    .hp-row-card__actions {
        align-items: stretch;
    }

    .hp-favorite-button,
    .hp-compare-control,
    .hp-consulted-badge {
        justify-content: center;
    }

    .hp-compare-bar {
        align-items: stretch;
        bottom: 10px;
        flex-direction: column;
        gap: 9px;
        padding: 12px;
        width: calc(100vw - 20px);
    }

    .hp-compare-bar__summary {
        min-width: 0;
    }

    .hp-compare-bar__actions {
        display: grid;
        grid-template-columns: 0.8fr 1.2fr;
    }

    .hp-compare-clear,
    .hp-compare-open {
        width: 100% !important;
    }

    .hp-compare-modal {
        align-items: flex-end;
        padding: 0;
    }

    .hp-compare-modal__dialog {
        border-radius: 16px 16px 0 0;
        max-height: 92vh;
    }

    .hp-compare-modal__header {
        padding: 16px;
    }

    .hp-compare-modal__header h2 {
        font-size: 20px;
    }

    .hp-compare-table-wrap {
        max-height: calc(92vh - 86px);
        padding: 0 14px 18px;
    }

    .hp-interaction-toast {
        bottom: 150px;
    }
}


/* Clasificación de oportunidades v0.4.9 */
.hp-opportunity-method {
    align-items: center;
    background: #f4f8fd;
    border: 1px solid #d8e5f3;
    border-radius: 9px;
    color: #52647b;
    display: flex;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.45;
    margin: -4px 0 16px;
    padding: 9px 12px;
}

.hp-opportunity-insight {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 10px;
}

.hp-opportunity-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 0.025em;
    line-height: 1;
    min-height: 27px;
    padding: 7px 10px;
    text-transform: uppercase;
}

.hp-opportunity-text {
    color: #395268;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.hp-opportunity-insight--opportunity .hp-opportunity-badge {
    background: #e9f8ef;
    border: 1px solid #bfe6cf;
    color: #117044;
}

.hp-opportunity-insight--grand .hp-opportunity-badge {
    background: #0e7a4e;
    border: 1px solid #0e7a4e;
    color: #ffffff;
}

.hp-row-card.has-opportunity--grand {
    border-left: 4px solid #0e7a4e;
}

@media (max-width: 760px) {
    .hp-opportunity-method {
        align-items: flex-start;
    }

    .hp-opportunity-insight {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Guardados y perfiles v0.4.11 */
.hp-saved-link {
    align-items: center;
    appearance: none;
    background: #ffffff;
    border: 1px solid #cfd8e5;
    border-radius: 999px;
    box-shadow: none;
    color: #173d78 !important;
    cursor: pointer;
    display: inline-flex;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 12px;
    font-weight: 800;
    gap: 6px;
    line-height: 1;
    margin: 0;
    min-height: 36px;
    padding: 7px 10px;
    text-decoration: none !important;
    width: auto;
}

.hp-saved-link:hover,
.hp-saved-link:focus-visible {
    border-color: #0b469b;
    color: #0b469b !important;
    outline: none;
}

.hp-saved-link__heart {
    color: #c52d3a;
    font-size: 18px;
    line-height: 1;
}

.hp-saved-link__count {
    align-items: center;
    background: #0b469b;
    border-radius: 999px;
    color: #ffffff;
    display: inline-flex;
    font-size: 10px;
    height: 20px;
    justify-content: center;
    min-width: 20px;
    padding: 0 5px;
}

.hp-saved-link--hero {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff !important;
}

.hp-saved-link--hero:hover,
.hp-saved-link--hero:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    border-color: #ffffff;
    color: #ffffff !important;
}

.hp-saved-link--hero .hp-saved-link__heart,
.hp-saved-link--hero .hp-saved-link__count {
    color: #ffffff;
}

.hp-saved-link--hero .hp-saved-link__count {
    background: #ffc107;
    color: #172033;
}

.hp-results-toolbar__actions {
    align-items: center;
    display: flex;
    gap: 14px;
}

body.hp-saved-page #masthead,
body.hp-saved-page .site-header,
body.hp-saved-page .ast-above-header-wrap,
body.hp-saved-page .ast-primary-header-bar,
body.hp-saved-page .ast-below-header-wrap {
    display: none !important;
}

body.hp-saved-page #page,
body.hp-saved-page #content,
body.hp-saved-page .site-content,
body.hp-saved-page .content-area,
body.hp-saved-page #primary,
body.hp-saved-page .site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.hp-saved-page .site-content > .ast-container,
body.hp-saved-page .ast-container {
    max-width: 1320px !important;
    width: 100% !important;
}

.hp-saved-properties {
    min-height: 62vh;
}

.hp-saved-heading {
    align-items: flex-start;
    background: #f7f9fc;
    border: 1px solid #dce4ed;
    border-radius: 14px;
    display: flex;
    gap: 24px;
    justify-content: space-between;
    margin-bottom: 20px;
    padding: 22px;
}

.hp-saved-heading h2 {
    color: #172033;
    font-size: 30px;
    margin: 8px 0 6px;
}

.hp-saved-heading p {
    color: #64748a;
    margin: 0;
}

.hp-saved-heading__actions {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.hp-saved-limit {
    color: #33445c;
    font-size: 13px;
    font-weight: 800;
}

.hp-saved-empty[hidden],
.hp-list[hidden] {
    display: none !important;
}

.hp-account-actions {
    flex-wrap: wrap;
}

@media (max-width: 760px) {
    .hp-results-toolbar__actions {
        align-items: stretch;
        flex-direction: column;
        width: 100%;
    }

    .hp-saved-link--results {
        justify-content: center;
        width: 100%;
    }

    .hp-saved-heading {
        flex-direction: column;
    }

    .hp-saved-heading__actions {
        align-items: stretch;
        width: 100%;
    }

    .hp-saved-heading__actions .hp-primary-link {
        width: 100%;
    }

    .hp-saved-link--hero .hp-saved-link__label {
        display: none;
    }

    .hp-saved-link--hero {
        min-height: 30px;
        padding: 4px 7px;
    }
}

body.hp-saved-page .entry-header,
body.hp-saved-page article.page > .entry-header,
body.hp-saved-page .ast-article-single > .entry-header {
    display: none !important;
}

/* Historial de precios v0.4.12 */
.hp-price-history {
    align-items: flex-start;
    display: flex;
    flex-wrap: wrap;
    gap: 7px 10px;
    margin-top: 10px;
}

.hp-price-history__badge {
    border: 1px solid transparent;
    border-radius: 999px;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    padding: 6px 10px;
}

.hp-price-history__badge.is-down {
    background: #e9f8ef;
    border-color: #a9dfbc;
    color: #176b38;
}

.hp-price-history__badge.is-up {
    background: #fff3eb;
    border-color: #f1c4a5;
    color: #9a4818;
}

.hp-price-history__badge.is-new,
.hp-price-history__badge.is-returned {
    background: #edf4ff;
    border-color: #b8cef2;
    color: #245696;
}

.hp-price-history__first {
    align-items: center;
    color: #68778c;
    display: inline-flex;
    font-size: 12px;
    min-height: 28px;
}

.hp-price-history__details {
    flex-basis: 100%;
    max-width: 560px;
}

.hp-price-history__details > summary {
    color: #1d4f8f;
    cursor: pointer;
    display: inline-flex;
    font-size: 12px;
    font-weight: 800;
    list-style: none;
    padding: 2px 0;
}

.hp-price-history__details > summary::-webkit-details-marker {
    display: none;
}

.hp-price-history__details > summary::after {
    content: "▾";
    margin-left: 6px;
}

.hp-price-history__details[open] > summary::after {
    content: "▴";
}

.hp-price-history__panel {
    background: #f7f9fc;
    border: 1px solid #dce4ed;
    border-radius: 10px;
    margin-top: 8px;
    padding: 12px 14px;
}

.hp-price-history__overview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 18px;
    margin-bottom: 10px;
}

.hp-price-history__overview span {
    color: #59687c;
    font-size: 12px;
}

.hp-price-history__overview strong {
    color: #172033;
    display: block;
    font-size: 13px;
    margin-top: 2px;
}

.hp-price-history__panel ol {
    border-left: 2px solid #cdd8e5;
    list-style: none;
    margin: 0 0 0 4px;
    padding: 0 0 0 14px;
}

.hp-price-history__panel li {
    display: grid;
    gap: 2px;
    margin: 0 0 10px;
    position: relative;
}

.hp-price-history__panel li::before {
    background: #ffffff;
    border: 2px solid #6e86a4;
    border-radius: 50%;
    content: "";
    height: 8px;
    left: -19px;
    position: absolute;
    top: 4px;
    width: 8px;
}

.hp-price-history__panel time {
    color: #77859a;
    font-size: 11px;
    font-weight: 700;
}

.hp-price-history__panel li span {
    color: #28384d;
    font-size: 12px;
}

.hp-price-history__panel p {
    color: #7a8798;
    font-size: 11px;
    margin: 8px 0 0;
}

@media (max-width: 760px) {
    .hp-price-history__details,
    .hp-price-history__panel {
        max-width: 100%;
        width: 100%;
    }
}

/* Filtros inteligentes y resumen de mercado v0.4.13 */
.hp-market-summary {
    background: #ffffff;
    border: 1px solid #dfe6ef;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(20, 34, 55, 0.06);
    margin: 18px 0 14px;
    padding: 18px 20px 15px;
}

.hp-market-summary__heading > span {
    color: #6b778b;
    display: block;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    margin-bottom: 3px;
    text-transform: uppercase;
}

.hp-market-summary__heading h2 {
    color: #182235;
    font-size: clamp(18px, 2.2vw, 25px);
    line-height: 1.2;
    margin: 0;
}

.hp-market-summary__metrics {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: 15px;
}

.hp-market-summary__metric {
    background: #f6f8fb;
    border: 1px solid #e4e9f0;
    border-radius: 11px;
    min-width: 0;
    padding: 12px 13px;
}

.hp-market-summary__metric strong {
    color: #14233a;
    display: block;
    font-size: 18px;
    line-height: 1.15;
    overflow-wrap: anywhere;
}

.hp-market-summary__metric span {
    color: #647287;
    display: block;
    font-size: 12px;
    line-height: 1.3;
    margin-top: 4px;
}

.hp-market-summary > p {
    color: #758196;
    font-size: 11px;
    margin: 10px 0 0;
}

.hp-smart-filters {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0;
}

.hp-smart-filter {
    align-items: center;
    appearance: none;
    background: #ffffff;
    border: 1px solid #dbe3ed;
    border-radius: 999px;
    color: #34445b;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 12px;
    font-weight: 800;
    gap: 7px;
    justify-content: center;
    line-height: 1;
    min-height: 36px;
    padding: 8px 11px;
    text-decoration: none !important;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.hp-smart-filter:hover,
.hp-smart-filter:focus-visible {
    border-color: #97a9bf;
    box-shadow: 0 5px 14px rgba(20, 34, 55, 0.08);
    color: #172238;
    transform: translateY(-1px);
}

.hp-smart-filter.is-active {
    background: #172238;
    border-color: #172238;
    color: #ffffff;
}

.hp-smart-filter strong {
    align-items: center;
    background: #edf1f6;
    border-radius: 999px;
    color: #45546a;
    display: inline-flex;
    font-size: 10px;
    justify-content: center;
    min-width: 22px;
    padding: 4px 6px;
}

.hp-smart-filter.is-active strong {
    background: rgba(255, 255, 255, 0.16);
    color: #ffffff;
}

.hp-smart-filter--restricted {
    opacity: 0.72;
}

.hp-smart-filter__lock {
    font-size: 11px;
}

@media (max-width: 900px) {
    .hp-market-summary__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 560px) {
    .hp-market-summary {
        border-radius: 12px;
        padding: 15px;
    }

    .hp-market-summary__metrics {
        gap: 8px;
    }

    .hp-market-summary__metric {
        padding: 10px;
    }

    .hp-market-summary__metric strong {
        font-size: 15px;
    }

    .hp-smart-filters {
        flex-wrap: nowrap;
        margin-left: -2px;
        margin-right: -2px;
        overflow-x: auto;
        padding: 2px 2px 8px;
        scrollbar-width: thin;
    }

    .hp-smart-filter {
        flex: 0 0 auto;
        white-space: nowrap;
    }
}

/* v0.4.15 · Búsquedas guardadas y alertas */
.hp-save-search-button {
    align-items: center;
    appearance: none;
    background: #fff8df;
    border: 1px solid #f0c94d;
    border-radius: 999px;
    color: #5e4700;
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 12px;
    font-weight: 850;
    gap: 7px;
    justify-content: center;
    min-height: 38px;
    padding: 9px 13px;
    text-decoration: none !important;
    transition: box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.hp-save-search-button:hover,
.hp-save-search-button:focus-visible {
    background: #ffefad;
    box-shadow: 0 5px 14px rgba(72, 54, 0, 0.12);
    color: #3d2e00;
    transform: translateY(-1px);
}

.hp-save-search-button.is-saved {
    background: #eaf8ef;
    border-color: #9dd6ae;
    color: #176034;
}

.hp-save-search-modal[hidden] {
    display: none !important;
}

.hp-save-search-modal {
    inset: 0;
    position: fixed;
    z-index: 100080;
}

.hp-save-search-modal__backdrop {
    background: rgba(11, 20, 34, 0.72);
    inset: 0;
    position: absolute;
}

.hp-save-search-modal__dialog {
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(8, 18, 34, 0.3);
    left: 50%;
    max-height: calc(100vh - 40px);
    max-width: 520px;
    overflow: auto;
    padding: 28px;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: calc(100% - 32px);
}

.hp-save-search-modal__close {
    align-items: center;
    appearance: none;
    background: #edf1f5;
    border: 0;
    border-radius: 50%;
    color: #34445b;
    cursor: pointer;
    display: inline-flex;
    font-size: 24px;
    height: 36px;
    justify-content: center;
    line-height: 1;
    padding: 0;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 36px;
}

.hp-save-search-modal__dialog h2 {
    color: #172238;
    font-size: clamp(22px, 4vw, 30px);
    line-height: 1.15;
    margin: 12px 44px 7px 0;
}

.hp-save-search-modal__dialog > p {
    color: #617086;
    font-size: 14px;
    line-height: 1.55;
    margin: 0 0 16px;
}

.hp-save-search-modal__criteria {
    background: #f5f7fa;
    border: 1px solid #e1e7ef;
    border-radius: 12px;
    color: #34445b;
    font-size: 13px;
    font-weight: 750;
    line-height: 1.45;
    margin-bottom: 18px;
    padding: 12px 14px;
}

.hp-save-search-modal form {
    display: grid;
    gap: 14px;
}

.hp-save-search-modal form label {
    color: #2e3d53;
    display: grid;
    font-size: 12px;
    font-weight: 800;
    gap: 7px;
}

.hp-save-search-modal form label small {
    color: #7d899a;
    font-weight: 600;
}

.hp-save-search-modal input[type="text"] {
    background: #ffffff;
    border: 1px solid #cfd8e4;
    border-radius: 10px;
    color: #172238;
    font-family: inherit;
    font-size: 14px;
    min-height: 44px;
    padding: 10px 12px;
    width: 100%;
}

.hp-save-search-modal input[type="text"]:focus {
    border-color: #c99b00;
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.16);
    outline: 0;
}

.hp-save-search-modal__footer {
    align-items: center;
    display: flex;
    gap: 14px;
    justify-content: space-between;
    margin-top: 3px;
}

.hp-save-search-modal__footer span {
    color: #657287;
    font-size: 12px;
    font-weight: 750;
}

.hp-save-search-modal__footer button {
    appearance: none;
    background: #ffc107;
    border: 0;
    border-radius: 10px;
    color: #172238;
    cursor: pointer;
    font-family: inherit;
    font-size: 13px;
    font-weight: 900;
    min-height: 44px;
    padding: 11px 16px;
}

.hp-save-search-modal__footer button:disabled {
    cursor: wait;
    opacity: 0.65;
}

.hp-save-search-modal__status,
.hp-saved-search-card__status {
    font-size: 12px;
    font-weight: 750;
    margin: 0;
    min-height: 18px;
}

.hp-save-search-modal__status.is-error,
.hp-saved-search-card__status.is-error {
    color: #a61b1b;
}

.hp-save-search-modal__status.is-success,
.hp-saved-search-card__status.is-success {
    color: #18713a;
}

body.hp-save-search-modal-open {
    overflow: hidden;
}

.hp-saved-searches {
    margin: 0 auto;
    max-width: 1120px;
    padding: 28px 20px 70px;
}

.hp-saved-searches__list {
    display: grid;
    gap: 16px;
    margin-top: 20px;
}

.hp-saved-search-card {
    background: #ffffff;
    border: 1px solid #dfe6ee;
    border-radius: 16px;
    box-shadow: 0 7px 24px rgba(24, 39, 62, 0.06);
    padding: 20px;
    transition: opacity 0.18s ease, border-color 0.18s ease;
}

.hp-saved-search-card.is-paused {
    background: #f8f9fb;
    opacity: 0.78;
}

.hp-saved-search-card__top {
    align-items: flex-start;
    display: flex;
    gap: 18px;
    justify-content: space-between;
}

.hp-saved-search-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 8px;
}

.hp-search-status {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    font-size: 10px;
    font-weight: 900;
    line-height: 1;
    min-height: 24px;
    padding: 6px 9px;
    text-transform: uppercase;
}

.hp-search-status--alert {
    background: #fff2bd;
    color: #654b00;
}

.hp-search-status--paused {
    background: #e7ebf0;
    color: #59677a;
}

.hp-search-status--client {
    background: #e9f2ff;
    color: #295b93;
}

.hp-saved-search-card h3 {
    color: #172238;
    font-size: 20px;
    line-height: 1.25;
    margin: 0 0 5px;
}

.hp-saved-search-card__top p {
    color: #67758a;
    font-size: 13px;
    line-height: 1.5;
    margin: 0;
}

.hp-saved-search-card__menu {
    display: flex;
    flex: 0 0 auto;
    gap: 7px;
}

.hp-saved-search-card__menu button {
    appearance: none;
    background: #ffffff;
    border: 1px solid #d5dde7;
    border-radius: 9px;
    color: #435168;
    cursor: pointer;
    font-family: inherit;
    font-size: 11px;
    font-weight: 800;
    min-height: 34px;
    padding: 7px 10px;
}

.hp-saved-search-card__menu button.is-danger {
    color: #a72e2e;
}

.hp-saved-search-card__metrics {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 18px 0;
}

.hp-saved-search-card__metrics > div {
    background: #f5f7fa;
    border: 1px solid #e5eaf1;
    border-radius: 11px;
    padding: 12px;
}

.hp-saved-search-card__metrics strong {
    color: #172238;
    display: block;
    font-size: 18px;
    line-height: 1.1;
}

.hp-saved-search-card__metrics span {
    color: #6d798c;
    display: block;
    font-size: 11px;
    line-height: 1.3;
    margin-top: 5px;
}

.hp-saved-search-card__footer {
    align-items: center;
    border-top: 1px solid #edf0f4;
    display: flex;
    gap: 16px;
    justify-content: space-between;
    padding-top: 15px;
}

.hp-saved-search-card__footer small {
    color: #758196;
    font-size: 11px;
}

.hp-saved-searches__empty {
    margin-top: 20px;
}

@media (max-width: 820px) {
    .hp-saved-search-card__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .hp-save-search-button {
        width: 100%;
    }

    .hp-save-search-modal__dialog {
        border-radius: 14px;
        padding: 22px 18px;
    }

    .hp-save-search-modal__footer,
    .hp-saved-search-card__top,
    .hp-saved-search-card__footer {
        align-items: stretch;
        flex-direction: column;
    }

    .hp-save-search-modal__footer button,
    .hp-saved-search-card__footer .hp-primary-link {
        width: 100%;
    }

    .hp-saved-search-card__menu {
        width: 100%;
    }

    .hp-saved-search-card__menu button {
        flex: 1 1 0;
    }

    .hp-saved-search-card__metrics {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Planes y control de acceso v0.4.17 */
body.hp-plans-page #masthead,
body.hp-plans-page .site-header,
body.hp-plans-page .ast-above-header-wrap,
body.hp-plans-page .ast-primary-header-bar,
body.hp-plans-page .ast-below-header-wrap {
    display: none !important;
}

body.hp-plans-page #page,
body.hp-plans-page #content,
body.hp-plans-page .site-content,
body.hp-plans-page .content-area,
body.hp-plans-page #primary,
body.hp-plans-page .site-main {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

body.hp-plans-page .site-content > .ast-container,
body.hp-plans-page .ast-container,
body.hp-plans-page article.page,
body.hp-plans-page .ast-article-single,
body.hp-plans-page .entry-content {
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
}

body.hp-plans-page .entry-header,
body.hp-plans-page article.page > .entry-header {
    display: none !important;
}

.hp-plans-shell {
    background: linear-gradient(180deg, #f5f8fc 0%, #ffffff 48%, #f7f9fc 100%);
    color: #172033;
    min-height: 74vh;
    padding: 58px 24px 72px;
}

.hp-plans-hero {
    margin: 0 auto 34px;
    max-width: 820px;
    text-align: center;
}

.hp-plans-hero h1 {
    color: #172033;
    font-size: clamp(32px, 4.5vw, 50px);
    letter-spacing: -0.035em;
    line-height: 1.08;
    margin: 14px 0 14px;
}

.hp-plans-hero > p {
    color: #65748a;
    font-size: 17px;
    line-height: 1.65;
    margin: 0 auto;
    max-width: 700px;
}

.hp-current-plan {
    background: #ffffff;
    border: 1px solid #dbe4ee;
    border-radius: 999px;
    color: #3f4f65;
    display: inline-flex;
    font-size: 13px;
    gap: 5px;
    margin-top: 20px;
    padding: 9px 15px;
}

.hp-plan-grid {
    align-items: stretch;
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0 auto;
    max-width: 1180px;
}

.hp-plan-card {
    background: #ffffff;
    border: 1px solid #dce4ed;
    border-radius: 18px;
    box-shadow: 0 14px 38px rgba(31, 48, 73, 0.07);
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 28px;
    position: relative;
}

.hp-plan-card.is-featured {
    border: 2px solid #0b469b;
    box-shadow: 0 20px 46px rgba(11, 70, 155, 0.14);
    transform: translateY(-8px);
}

.hp-plan-card.is-current {
    box-shadow: 0 0 0 3px rgba(255, 193, 7, 0.22), 0 14px 38px rgba(31, 48, 73, 0.07);
}

.hp-plan-card__ribbon {
    align-self: flex-start;
    background: #0b469b;
    border-radius: 999px;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.04em;
    margin-bottom: 18px;
    padding: 6px 10px;
    text-transform: uppercase;
}

.hp-plan-card__ribbon--founder {
    background: #fff4c4;
    color: #7a5600;
}

.hp-plan-card h2 {
    color: #172033;
    font-size: 25px;
    margin: 0 0 9px;
}

.hp-plan-card__description {
    color: #69778b;
    font-size: 14px;
    line-height: 1.55;
    margin: 0;
    min-height: 66px;
}

.hp-plan-price {
    align-items: baseline;
    border-bottom: 1px solid #edf1f5;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 22px 0 20px;
    padding-bottom: 20px;
}

.hp-plan-price strong {
    color: #172033;
    font-size: 34px;
    letter-spacing: -0.03em;
    line-height: 1;
}

.hp-plan-price span {
    color: #6d7a8d;
    font-size: 12px;
    font-weight: 700;
}

.hp-plan-card ul {
    display: grid;
    gap: 12px;
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
}

.hp-plan-card li {
    align-items: flex-start;
    color: #3e4d63;
    display: flex;
    font-size: 13px;
    gap: 9px;
    line-height: 1.45;
}

.hp-plan-card li span {
    color: #0b8d5a;
    flex: 0 0 auto;
    font-weight: 900;
}

.hp-plan-card__action {
    margin-top: auto;
}

.hp-plan-button,
.hp-plan-current-button {
    align-items: center;
    border-radius: 10px;
    display: inline-flex;
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    justify-content: center;
    min-height: 46px;
    padding: 10px 16px;
    text-align: center;
    width: 100%;
}

.hp-plan-button {
    appearance: none;
    background: #0b469b;
    border: 1px solid #0b469b;
    color: #ffffff;
    cursor: pointer;
}

.hp-plan-button:hover,
.hp-plan-button:focus-visible {
    background: #083a81;
    border-color: #083a81;
    color: #ffffff;
}

.hp-plan-button:disabled {
    background: #e8edf3;
    border-color: #d7dee8;
    color: #69778b;
    cursor: default;
}

.hp-plan-current-button {
    background: #fff4c4;
    border: 1px solid #f3d468;
    color: #735000;
}

.hp-plan-current-button--muted {
    background: #f3f6f9;
    border-color: #dce3eb;
    color: #56657a;
}

.hp-plan-request-status {
    font-size: 14px;
    font-weight: 800;
    margin: 22px auto 0;
    max-width: 760px;
    min-height: 22px;
    text-align: center;
}

.hp-plan-request-status.is-success {
    color: #08784c;
}

.hp-plan-request-status.is-error {
    color: #b42318;
}

.hp-plans-note {
    background: #ffffff;
    border: 1px solid #dce4ed;
    border-radius: 12px;
    color: #68768a;
    font-size: 13px;
    line-height: 1.55;
    margin: 18px auto 0;
    max-width: 760px;
    padding: 13px 16px;
    text-align: center;
}

.hp-account-request {
    background: #fff7d6;
    border: 1px solid #f3da78;
    border-radius: 9px;
    color: #705100 !important;
    display: inline-block;
    font-size: 13px;
    padding: 8px 11px;
}

.hp-upgrade-required {
    background: #ffffff;
    border: 1px solid #dce4ed;
    border-radius: 16px;
    box-shadow: 0 14px 38px rgba(31, 48, 73, 0.08);
    margin: 42px auto;
    max-width: 720px;
    padding: 34px;
    text-align: center;
}

.hp-upgrade-required h2 {
    color: #172033;
    font-size: 28px;
    margin: 12px 0 10px;
}

.hp-upgrade-required p {
    color: #68768a;
    line-height: 1.6;
    margin: 0 auto 20px;
    max-width: 580px;
}

.hp-opportunity-upgrade,
.hp-history-upgrade {
    color: #0b469b;
    display: inline-flex;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.3;
    text-decoration: none;
}

.hp-opportunity-upgrade:hover,
.hp-history-upgrade:hover {
    color: #073773;
    text-decoration: underline;
}

.hp-history-upgrade {
    margin-top: 3px;
}

.hp-sort-select option:disabled {
    color: #8994a3;
}

@media (max-width: 960px) {
    .hp-plan-grid {
        grid-template-columns: 1fr;
        max-width: 650px;
    }

    .hp-plan-card.is-featured {
        transform: none;
    }

    .hp-plan-card__description {
        min-height: 0;
    }
}

@media (max-width: 640px) {
    .hp-plans-shell {
        padding: 38px 15px 52px;
    }

    .hp-plan-card {
        border-radius: 14px;
        padding: 23px 19px;
    }

    .hp-plans-hero h1 {
        font-size: 32px;
    }

    .hp-upgrade-required {
        margin: 28px 14px;
        padding: 26px 20px;
    }
}

.hp-plans-link {
    align-items: center;
    background: #ffffff;
    border: 1px solid #d5dde7;
    border-radius: 9px;
    color: #233149;
    display: inline-flex;
    font-size: 12px;
    font-weight: 900;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    text-decoration: none;
    white-space: nowrap;
}

.hp-plans-link:hover,
.hp-plans-link:focus-visible {
    border-color: #0b469b;
    color: #0b469b;
}

.hp-plans-link--hero {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.55);
    color: #ffffff;
    min-height: 32px;
    padding: 6px 10px;
}

.hp-plans-link--hero:hover,
.hp-plans-link--hero:focus-visible {
    background: rgba(255, 255, 255, 0.18);
    border-color: #ffffff;
    color: #ffffff;
}

@media (max-width: 760px) {
    .hp-results-toolbar__actions .hp-plans-link {
        width: 100%;
    }

    .hp-plans-link--hero {
        font-size: 11px;
        min-height: 30px;
        padding: 4px 7px;
    }
}

.hp-plans-topbar {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin: 0 auto 34px;
    max-width: 1180px;
}

.hp-plans-brand {
    color: #172033;
    font-size: 20px;
    font-weight: 950;
    letter-spacing: 0.02em;
    text-decoration: none;
}

.hp-plans-brand span {
    color: #e6a900;
}

.hp-plans-back {
    color: #0b469b;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.hp-plans-back:hover,
.hp-plans-back:focus-visible {
    text-decoration: underline;
}

@media (max-width: 640px) {
    .hp-plans-topbar {
        margin-bottom: 26px;
    }

    .hp-plans-brand {
        font-size: 17px;
    }

    .hp-plans-back {
        font-size: 12px;
    }
}
