/* TPA widgets – brand colours from the live site (18 Nov 2026) */
:root{--tpa-red:#E41C3A;--tpa-red-dark:#B8152E;--tpa-purple:#301D54;--tpa-text:#131015;--tpa-grey:#F6F7F8;--tpa-line:#E3E3E3}
.tpa-h2{margin:0 0 8px;font-size:20px;line-height:1.3;color:var(--tpa-text)}
.tpa-box{border:1px solid var(--tpa-line);border-radius:10px;padding:24px;background:#fff;display:flex;flex-direction:column;gap:14px}
.tpa-box--accent{border-top:4px solid var(--tpa-purple)}
.tpa-box--grey{background:var(--tpa-grey);border-color:var(--tpa-grey)}
.tpa-box p{margin:0;font-size:15px;line-height:1.55}
.tpa-row{display:flex;gap:10px;flex-wrap:wrap}
.tpa-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 18px;min-height:44px;box-sizing:border-box;border-radius:6px;font-weight:500;text-decoration:none!important;line-height:1.2}
.tpa-row .tpa-btn{flex:1}
.tpa-btn--full{width:100%}
.tpa-btn--red{background:var(--tpa-red);color:#fff!important}
.tpa-btn--red:hover{background:var(--tpa-red-dark)}
.tpa-btn--line{border:1px solid #C8C8C8;color:var(--tpa-text)!important;background:#fff}
.tpa-btn--white{background:#fff;color:var(--tpa-purple)!important}
.tpa-ico{width:18px;height:18px;flex:none}
.tpa-link{font-size:14px;color:var(--tpa-red)}
.tpa-duo{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(300px,100%),1fr));gap:24px;margin:24px 0}
.tpa-similar{margin-top:48px}
.tpa-similar__head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;flex-wrap:wrap;margin-bottom:18px}
.tpa-similar__head a{color:var(--tpa-red);font-weight:500}
.tpa-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(260px,100%),1fr));gap:24px}
.tpa-card{border:1px solid var(--tpa-line);border-radius:10px;overflow:hidden;background:#fff}
.tpa-card__img{width:100%;height:190px;object-fit:cover;display:block}
.tpa-card__body{padding:16px;display:flex;flex-direction:column;gap:6px}
.tpa-card__title{margin:0;font-size:17px;line-height:1.35}
.tpa-card__title a{color:var(--tpa-text)}
.tpa-card__meta{margin:0;font-size:14px;color:#555}
.tpa-card__price{margin:4px 0 0;font-size:18px;font-weight:600;color:var(--tpa-red)}
.tpa-bar{margin-top:48px;background:var(--tpa-purple);color:#fff;border-radius:12px;padding:32px;display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}
.tpa-bar__title{margin:0 0 6px;font-size:22px;font-weight:600;color:#fff}
.tpa-bar__text{margin:0;font-size:15px;color:#E9E4F2}
/* Contact Form 7 inside the boxes */
.tpa-box .wpcf7-form{display:grid;gap:12px}
.tpa-box .wpcf7-form p{margin:0}
.tpa-box .wpcf7-form > fieldset,.tpa-box .wpcf7-form > div:first-child{grid-column:1/-1}
.tpa-box .wpcf7-form .tpa-full,.tpa-box .wpcf7-form .wpcf7-response-output{grid-column:1/-1}
.tpa-box .wpcf7-form input[type=text],.tpa-box .wpcf7-form input[type=email],.tpa-box .wpcf7-form input[type=tel]{width:100%;min-height:44px;padding:10px 12px;border:1px solid #C8C8C8;border-radius:6px;box-sizing:border-box}
.tpa-box .wpcf7-submit{width:100%;min-height:44px;background:var(--tpa-red);color:#fff;border:0;border-radius:6px;font-weight:500;cursor:pointer}
@media (max-width:480px){.tpa-box .wpcf7-form{grid-template-columns:1fr}}
/* Mobile WhatsApp button */
.tpa-wa-float{position:fixed;right:16px;bottom:16px;z-index:9999;width:56px;height:56px;border-radius:50%;background:var(--tpa-red);color:#fff!important;display:flex;align-items:center;justify-content:center;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.tpa-wa-float .tpa-ico{width:30px;height:30px}
@media (min-width:769px){.tpa-wa-float{display:none}}
/* Contact page: smaller H1. Selected by the contact template, so it covers the English and the Spanish page. */
body.page-template-template-contact h1{font-size:30px;line-height:1.25}
@media (max-width:767px){body.page-template-template-contact h1{font-size:24px}}
/* Form labels */
.tpa-box .wpcf7-form label{display:block;font-size:13px;color:#555}
.tpa-box .wpcf7-form label .wpcf7-form-control-wrap{display:block;margin-top:6px}
.tpa-box .wpcf7-form .tpa-small{font-size:12px;line-height:1.5;color:#6B6B6B}
/* Sold pages, once the contact box sits in the right-hand column */
.tpa-sold-layout .rh_property__sidebar #tpa-contact{margin-bottom:24px}
.tpa-sold-layout .rh_property__sidebar .rh_property_agent .wpcf7{display:none}
.tpa-sold-layout .rh_property__sidebar #tpa-contact .wpcf7-form{grid-template-columns:1fr}
/* Text below the listings on buying pages */
.tpa-buying-text{margin-top:40px}
