/* Vender-piso (/vender-piso) and Valorar-vivienda (/valorar-vivienda) virtual
   landing pages — same editorial design as the rest of the site. */

/* Content column.
   /valorar-vivienda/ keeps the 1180px cap (valorar-tech.css then overrides it
   to full-bleed for its own hero). /vender-piso/ goes full-bleed HERE instead:
   its background photo has to reach both viewport edges, and the content
   column is still centred by .wrap inside .lp-direct-grid. */
.gai-valorar-vivienda-page .site-content > .ast-container {
    max-width: 1180px;
    margin-inline: auto;
}
.gai-vender-piso-page .site-content > .ast-container {
    max-width: 100%;
    padding-inline: 0;
}

.gai-vender-piso-page .content-area,
.gai-valorar-vivienda-page .content-area {
    padding-top: 64px;
    padding-bottom: 120px;
}

/* Header (eyebrow + Source Serif h1) */
.gai-vender-piso-page .lp-hero,
.gai-valorar-vivienda-page .lp-hero {
    max-width: 820px;
    margin-inline: auto;
    text-align: center;
    padding: 0 0 12px;
}
.gai-vender-piso-page .lp-hero h1,
.gai-valorar-vivienda-page .lp-hero h1 {
    font-family: "Source Serif 4", Georgia, serif;
    font-weight: 600;
    font-size: clamp(2.1rem, 4.2vw, 3.1rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 16px;
}
.gai-vender-piso-page .lp-intro,
.gai-valorar-vivienda-page .lp-intro {
    max-width: 640px;
    margin: 0 auto;
    color: var(--muted);
}

/* Cream form/iframe card */
.gai-vender-piso-page .lp-form-section,
.gai-valorar-vivienda-page .lp-form-section {
    display: flex;
    justify-content: center;
    padding: 34px 0 0;
}
.gai-vender-piso-page .lp-card,
.gai-valorar-vivienda-page .lp-card {
    width: min(760px, calc(100% - 48px));
    background: var(--cream);
    border: 1px solid var(--line);
    padding: 40px 46px;
}

/* Gravity Form 4 inside the card */
.gai-vender-piso-page .lp-card .gform_wrapper form {
    display: block;
    width: 100%;
}
.gai-vender-piso-page .lp-card .gform_footer {
    margin-top: 6px;
}
.gai-vender-piso-page .lp-card .gfield textarea {
    min-height: 110px;
}
.gai-vender-piso-page .lp-card .gfield label.gfield_label {
    font-family: "Manrope", Arial, sans-serif;
    font-weight: 800;
    font-size: 0.82rem;
    color: var(--ink);
}
.gai-vender-piso-page .lp-card .gfield--type-consent .gfield_label,
.gai-vender-piso-page .lp-card .gfield--type-checkbox .gfield_label {
    display: none;
}
.gai-vender-piso-page .lp-card .gfield--type-consent .ginput_container_consent,
.gai-vender-piso-page .lp-card .gfield--type-checkbox .ginput_container_checkbox {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 0.72rem;
    font-weight: 500;
}
.gai-vender-piso-page .lp-card .gfield--type-consent a,
.gai-vender-piso-page .lp-card .gfield--type-checkbox a {
    color: #414043;
    font-weight: 700;
    text-decoration: underline;
}
.gai-vender-piso-page .lp-card .gfield--type-consent input[type="checkbox"],
.gai-vender-piso-page .lp-card .gfield--type-checkbox input[type="checkbox"] {
    width: 18px;
    min-height: 18px;
    margin-top: 2px;
    accent-color: var(--berry);
}
/* Berry submit (full width) */
.gai-vender-piso-page .lp-card .gform_button,
.gai-vender-piso-page .lp-card .gform_footer .button {
    width: 100%;
    min-height: 52px;
    border: 1px solid var(--berry);
    border-radius: 0;
    background: var(--berry);
    color: #fff;
    font-family: "Manrope", Arial, sans-serif;
    font-size: 0.86rem;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}
.gai-vender-piso-page .lp-card .gform_button:hover {
    background: var(--berry-dark);
    transform: translateY(-1px);
}

/* Help / trust rows under the card */
.gai-vender-piso-page .lp-help {
    margin: 22px 0 0;
    text-align: center;
    color: var(--muted);
    font-size: 0.85rem;
}
.gai-vender-piso-page .lp-help a {
    color: var(--berry);
    font-weight: 700;
}
.gai-vender-piso-page .lp-trust {
    max-width: 760px;
    margin-inline: auto;
    padding-top: 40px;
    text-align: center;
}
.gai-vender-piso-page .lp-trust .price-note strong {
    color: var(--berry);
}
.gai-vender-piso-page .lp-trust .check-list {
    list-style: none;
    padding: 0;
    margin: 18px 0 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 24px;
    justify-content: center;
    font-size: 0.9rem;
    color: var(--ink);
}
.gai-vender-piso-page .lp-trust .check-list li::before {
    content: "✓";
    color: var(--green);
    margin-right: 8px;
    font-weight: 800;
}

/* Valorar-vivienda iframe placeholder */
.gai-valorar-vivienda-page .iframe-slot {
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 2px dashed var(--line);
    background: rgba(255, 255, 255, 0.5);
    padding: 30px;
}
.gai-valorar-vivienda-page .iframe-slot-icon {
    font-size: 34px;
    margin-bottom: 12px;
}
.gai-valorar-vivienda-page .iframe-slot h2 {
    font-family: "Source Serif 4", Georgia, serif;
    font-weight: 600;
    font-size: 1.5rem;
    color: var(--ink);
    margin: 0 0 8px;
}
.gai-valorar-vivienda-page .iframe-slot p {
    margin: 0 0 6px;
    color: var(--muted);
}
.gai-valorar-vivienda-page .iframe-slot small {
    color: var(--berry);
    font-weight: 700;
    font-size: 0.78rem;
}
.gai-valorar-vivienda-page .lp-note {
    max-width: 760px;
    margin-inline: auto;
    padding-top: 40px;
}
.gai-valorar-vivienda-page .lp-note .check-list {
    list-style: none;
    padding: 0;
    margin: 0;
    color: var(--ink);
    font-size: 0.95rem;
}
.gai-valorar-vivienda-page .lp-note .check-list li {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
}
.gai-valorar-vivienda-page .lp-note .check-list li::before {
    content: "✓";
    color: var(--green);
    margin-right: 10px;
    font-weight: 800;
}

/* Vender-piso: two-column LP layout (matches vender-piso.html mockup) */
.gai-vender-piso-page .content-area {
    padding-top: 0;
    padding-bottom: 0;
}
.gai-vender-piso-page .lp-direct {
    display: flex;
    justify-content: center;
    padding-block: clamp(56px, 7vw, 96px);
    /* Madrid rooftop panorama behind a light scrim: the photo is a texture,
       the copy keeps its contrast. Left side is the most opaque because that
       is where the headline sits; the middle shows more of the photo.
       Image: "View north frm Hotel rooftop, Gran Via, Madrid" by Gerda Arendt,
       Wikimedia Commons, CC0 (public domain dedication). */
    background: linear-gradient(90deg,
            rgba(255, 255, 255, 0.91) 0%,
            rgba(255, 255, 255, 0.80) 36%,
            rgba(255, 255, 255, 0.72) 58%,
            rgba(255, 255, 255, 0.90) 100%),
        url("../images/vender-piso-madrid.jpg") center 42% / cover no-repeat #fff;
}
.gai-vender-piso-page .lp-direct-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 6vw, 85px);
    align-items: start;
}
.gai-vender-piso-page .lp-direct-copy {
    padding-top: 14px;
}
.gai-vender-piso-page .lp-direct-copy .eyebrow {
    margin-bottom: 16px;
}
.gai-vender-piso-page .lp-direct-copy h1 {
    font-family: "Source Serif 4", Georgia, serif;
    font-weight: 600;
    font-size: clamp(2rem, 3.8vw, 3rem);
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: var(--ink);
    margin: 0 0 18px;
}
.gai-vender-piso-page .lp-direct-copy > p:not(.eyebrow) {
    margin: 0;
    max-width: 460px;
    color: var(--muted);
    font-size: 1rem;
}
.gai-vender-piso-page .lp-direct-copy .check-list {
    margin: 22px 0 26px;
    color: var(--ink);
    font-size: 0.9rem;
}
.gai-vender-piso-page .lp-direct-copy .check-list li::before {
    color: var(--berry);
}
/* Form card: white like the mockup .formcard */
.gai-vender-piso-page .lp-form-card {
    width: 100%;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 20px 55px rgba(48, 21, 31, 0.06);
    padding: 32px;
}
.gai-vender-piso-page .lp-form-card h2 {
    font-family: "Source Serif 4", Georgia, serif;
    font-weight: 600;
    font-size: clamp(1.4rem, 2vw, 1.7rem);
    color: var(--ink);
    margin: 0 0 6px;
}
.gai-vender-piso-page .lp-form-card .lp-card-intro {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 0.85rem;
}
@media (max-width: 900px) {
    .gai-vender-piso-page .lp-direct-grid {
        grid-template-columns: 1fr;
        gap: 34px;
    }
}

@media (max-width: 640px) {
    .gai-vender-piso-page .lp-card,
    .gai-valorar-vivienda-page .lp-card {
        padding: 26px 22px;
    }
    .gai-vender-piso-page .content-area,
    .gai-valorar-vivienda-page .content-area {
        padding-top: 44px;
        padding-bottom: 80px;
    }
}
