/* FAMA Propiedades — Frontend styles */

/* ==== WRAPPER · Ancho tipo Elementor (más generoso que header/footer) ==== */
.fama-single-wrap, .fama-archive-wrap { max-width: 1280px; margin: 0 auto; padding: 40px 24px; box-sizing: border-box; }
@media (max-width: 1320px) { .fama-single-wrap, .fama-archive-wrap { padding: 30px 18px; } }

/* ==== BUSCADOR ==== */
.fama-buscador {
    background: white;
    border-radius: 18px;
    padding: 22px;
    box-shadow: 0 12px 40px rgba(0,60,86,0.08);
    border: 0.5px solid #eef2f5;
    max-width: 760px;
    margin: 0 auto;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
.fama-buscador-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.fama-buscador-tabs label {
    background: #f5f8fb;
    padding: 8px 18px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #5a7080;
    cursor: pointer;
    transition: all 0.2s;
}
.fama-buscador-tabs label:has(input:checked) {
    background: #003C56;
    color: white;
}
.fama-buscador-tabs input { display: none; }
.fama-buscador-fields {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 10px;
    align-items: end;
}
.fama-buscador-fields .fb-field { display: flex; flex-direction: column; }
.fama-buscador-fields .fb-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.5px;
    color: #5a7080;
    margin-bottom: 6px;
    text-transform: uppercase;
}
.fama-buscador-fields select {
    background: #f5f8fb;
    border: none;
    border-radius: 10px;
    padding: 12px 14px;
    font: 600 13px 'Plus Jakarta Sans', sans-serif;
    color: #003C56;
    cursor: pointer;
    width: 100%;
}
.fama-buscador-fields select:focus { outline: 2px solid #00D0FF; }
.fama-buscador-fields .fb-submit {
    background: #00D0FF;
    color: #003C56;
    padding: 13px 24px;
    border: none;
    border-radius: 12px;
    font: 700 14px 'Plus Jakarta Sans', sans-serif;
    cursor: pointer;
    height: 46px;
    transition: background 0.2s;
}
.fama-buscador-fields .fb-submit:hover { background: #00B8E0; }
@media (max-width: 768px) {
    .fama-buscador-fields { grid-template-columns: 1fr; }
    .fama-buscador-fields .fb-submit { width: 100%; }
}

/* ==== GRID DE LISTADO ==== */
.fama-grid-listado {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin: 30px 0;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}
@media (max-width: 1024px) { .fama-grid-listado { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .fama-grid-listado { grid-template-columns: 1fr; } }

/* ==== CARD DE PROPIEDAD ==== */
.fama-prop-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 0.5px solid #e6edf2;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}
.fama-prop-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(0,60,86,0.12);
}
.fama-prop-img {
    height: 200px;
    background-color: #003C56;
    background-size: cover;
    background-position: center;
    position: relative;
}
.fama-no-img {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.6);
    font-size: 13px;
    font-weight: 500;
}
.fama-prop-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #00D0FF;
    color: #003C56;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
}
.fama-prop-estado {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    color: white;
}
.fama-prop-estado.fama-reservada { background: #f59e0b; }
.fama-prop-estado.fama-vendida { background: #ef4444; }
.fama-prop-estado.fama-alquilada { background: #6366f1; }
.fama-prop-body {
    padding: 18px 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.fama-prop-price {
    font-size: 22px;
    font-weight: 800;
    color: #003C56;
    letter-spacing: -0.5px;
    margin-bottom: 4px;
}
.fama-prop-title {
    font-size: 15px;
    font-weight: 600;
    color: #003C56;
    margin-bottom: 6px;
    line-height: 1.3;
}
.fama-prop-addr {
    font-size: 13px;
    color: #5a7080;
    margin-bottom: 12px;
}
.fama-prop-feats {
    display: flex;
    gap: 14px;
    padding-top: 12px;
    border-top: 1px solid #eef2f5;
    font-size: 12px;
    color: #5a7080;
    flex-wrap: wrap;
    margin-top: auto;
}

/* ==== PAGINACIÓN ==== */
.fama-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin: 30px 0;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.fama-pagination .page-numbers {
    background: white;
    border: 1px solid #e6edf2;
    color: #003C56;
    padding: 10px 14px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s;
}
.fama-pagination .page-numbers:hover { background: #00D0FF; border-color: #00D0FF; color: #003C56; }
.fama-pagination .page-numbers.current { background: #003C56; border-color: #003C56; color: white; }

.fama-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: #5a7080;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
}

/* ==== SINGLE PROPIEDAD ==== */
.fama-single {
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: #003C56;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}
.fama-single-header {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    align-items: end;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #e6edf2;
}
.fama-single-header h1 {
    font-size: 32px;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.8px;
    color: #003C56;
    margin: 0 0 6px;
}
.fama-single-addr {
    font-size: 15px;
    color: #5a7080;
}
.fama-single-price {
    text-align: right;
}
.fama-single-price .price {
    font-size: 32px;
    font-weight: 800;
    color: #003C56;
    letter-spacing: -1px;
    line-height: 1;
}
.fama-single-price .badge {
    display: inline-block;
    background: #00D0FF;
    color: #003C56;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.fama-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    height: 460px;
    margin-bottom: 30px;
    border-radius: 16px;
    overflow: hidden;
}
.fama-gallery .img {
    background-size: cover;
    background-position: center;
    background-color: #f5f8fb;
    cursor: pointer;
    position: relative;
    transition: opacity 0.2s;
}
.fama-gallery .img:hover { opacity: 0.92; }
.fama-gallery .img:first-child { grid-row: span 2; }
.fama-gallery .more {
    position: absolute;
    inset: 0;
    background: rgba(0,60,86,0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
}
@media (max-width: 768px) {
    .fama-gallery { grid-template-columns: 1fr; grid-template-rows: 250px; height: auto; }
    .fama-gallery .img { display: none; }
    .fama-gallery .img:first-child { display: block; grid-row: auto; }
}

.fama-single-body {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
}
@media (max-width: 900px) { .fama-single-body { grid-template-columns: 1fr; } }

.fama-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    grid-auto-flow: column;
    gap: 8px;
    margin-bottom: 30px;
    overflow-x: auto;
}
.fama-feature {
    background: #f7fafc;
    border-radius: 12px;
    padding: 14px 10px;
    text-align: center;
    min-width: 90px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}
.fama-feature .ic { width: 22px; height: 22px; color: #00D0FF; margin-bottom: 4px; display: flex; align-items: center; justify-content: center; }
.fama-feature .ic svg { width: 100%; height: 100%; stroke: currentColor; fill: none; stroke-width: 1.8; }
.fama-feature .v {
    display: block;
    font-size: 20px;
    font-weight: 800;
    color: #003C56;
    line-height: 1;
}
.fama-feature .l {
    font-size: 10px;
    color: #5a7080;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}
@media (max-width: 800px) {
    .fama-features { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 500px) {
    .fama-features { grid-template-columns: repeat(2, 1fr); }
}

.fama-section-title {
    font-size: 20px;
    font-weight: 800;
    color: #003C56;
    margin: 30px 0 14px;
    letter-spacing: -0.3px;
}
.fama-description {
    font-size: 15px;
    line-height: 1.7;
    color: #5a7080;
}
.fama-amen-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 14px;
}
.fama-amen-grid .a {
    background: #f7fafc;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    color: #003C56;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}
.fama-amen-grid .a .amen-ic { width: 20px; height: 20px; flex-shrink: 0; stroke: #00D0FF; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: #00D0FF; }
@media (max-width: 700px) {
    .fama-amen-grid { grid-template-columns: 1fr 1fr; }
}

.fama-side-card {
    background: white;
    border: 0.5px solid #e6edf2;
    border-radius: 16px;
    padding: 24px;
    position: sticky;
    top: 100px;
}
.fama-side-card h3 {
    font-size: 16px;
    font-weight: 800;
    color: #003C56;
    margin: 0 0 14px;
}
.fama-side-card .wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: #25D366 !important;
    color: white !important;
    padding: 14px;
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
    transition: opacity 0.15s;
    border: 0;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
}
.fama-side-card .wa-btn svg { flex-shrink: 0; }
.fama-side-card .wa-btn:hover { opacity: 0.92; color: white !important; }
.fama-side-card .call-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: #003C56 !important;
    color: white !important;
    padding: 14px;
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
    transition: background 0.15s;
    border: 0;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
}
.fama-side-card .call-btn:hover { background: #00D0FF !important; color: #003C56 !important; }
.fama-side-card .form-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: white !important;
    color: #003C56 !important;
    padding: 14px;
    border: 1.5px solid #003C56;
    border-radius: 10px;
    text-decoration: none !important;
    font-weight: 700;
    font-size: 14px;
    transition: all 0.15s;
    cursor: pointer;
    width: 100%;
    font-family: inherit;
}
.fama-side-card .form-btn:hover { background: #003C56 !important; color: white !important; }
.fama-side-card .form-btn:hover svg { stroke: white; }

/* MODAL MENSAJE */
.fama-msg-modal { position: fixed; inset: 0; z-index: 999999; display: flex; align-items: center; justify-content: center; padding: 16px; }
.fama-msg-modal-bg { position: absolute; inset: 0; background: rgba(0,60,86,0.55); backdrop-filter: blur(3px); }
.fama-msg-modal-box { position: relative; background: white; border-radius: 16px; padding: 32px 30px 28px; max-width: 480px; width: 100%; box-shadow: 0 24px 60px rgba(0,0,0,0.25); max-height: 90vh; overflow-y: auto; }
.fama-msg-close { position: absolute; top: 14px; right: 18px; background: transparent; border: 0; font-size: 28px; line-height: 1; cursor: pointer; color: #5a7080; padding: 4px 8px; }
.fama-msg-close:hover { color: #003C56; }
.fama-msg-modal-box h3 { font-size: 22px; font-weight: 800; color: #003C56; margin: 0 0 6px; letter-spacing: -0.3px; }
.fama-msg-sub { font-size: 13px; color: #5a7080; margin: 0 0 22px; }
.fama-msg-form { margin: 0; }
.fama-msg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width:520px) { .fama-msg-row { grid-template-columns: 1fr; } }
.fama-msg-field { margin-bottom: 14px; }
.fama-msg-field label { display: block; font-size: 11px; font-weight: 800; letter-spacing: 1px; color: #5a7080; margin-bottom: 6px; text-transform: uppercase; }
.fama-msg-field input, .fama-msg-field textarea { width: 100%; padding: 11px 13px; background: #f7fafc; border: 1.5px solid #e6edf2; border-radius: 9px; font-size: 14px; color: #003C56; font-family: inherit; transition: all 0.15s; }
.fama-msg-field textarea { resize: vertical; min-height: 80px; }
.fama-msg-field input:focus, .fama-msg-field textarea:focus { outline: 0; border-color: #00D0FF; background: white; box-shadow: 0 0 0 4px rgba(0,208,255,0.12); }
.fama-msg-submit { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; background: #003C56 !important; color: white !important; padding: 13px; border: 0; border-radius: 11px; font-weight: 800; font-size: 14px; cursor: pointer; font-family: inherit; transition: all 0.15s; }
.fama-msg-submit:hover { background: #00D0FF !important; color: #003C56 !important; }
.fama-msg-submit:disabled { opacity: 0.55; cursor: wait; }
.fama-msg-result { margin-top: 14px; padding: 11px 14px; border-radius: 9px; font-size: 13px; font-weight: 600; }
.fama-msg-result:empty { display: none; }
.fama-msg-result.ok  { background: rgba(34,197,94,0.12); color: #15803d; }
.fama-msg-result.err { background: rgba(239,68,68,0.10); color: #b91c1c; }

.fama-mapa {
    margin: 30px 0;
    border-radius: 16px;
    overflow: hidden;
    border: 0.5px solid #e6edf2;
}
.fama-mapa iframe { display: block; width: 100%; height: 380px; border: 0; }

/* Archive title */
.fama-archive-header {
    text-align: center;
    padding: 50px 20px 30px;
    font-family: 'Plus Jakarta Sans', sans-serif;
}
.fama-archive-header h1 {
    font-size: 38px;
    font-weight: 800;
    color: #003C56;
    letter-spacing: -1px;
    margin: 0 0 10px;
}
.fama-archive-header p { color: #5a7080; font-size: 15px; }

/* ==== FILTROS ACTIVOS EN ARCHIVE ==== */
.fama-active-filters { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; font-size: 13px; }
.fama-active-filters > span:first-child { font-weight: 700; color: #003C56; margin-right: 4px; }
.fama-fchip { background: rgba(0,208,255,0.15); color: #003C56; padding: 5px 12px; border-radius: 999px; font-weight: 600; font-size: 12px; }
.fama-fclear { background: #f5f8fb; color: #5a7080; padding: 5px 12px; border-radius: 999px; font-weight: 600; font-size: 12px; text-decoration: none; transition: all 0.15s; }
.fama-fclear:hover { background: #ef4444; color: white; }

/* ==== ARCHIVE HEADER ==== */
.fama-archive-header { text-align: center; margin-bottom: 30px; }
.fama-archive-header h1 { font-size: 36px; font-weight: 800; color: #003C56; letter-spacing: -0.8px; margin: 0 0 8px; }
.fama-archive-header p { font-size: 15px; color: #5a7080; margin: 0; }

.fama-pagination { text-align: center; margin: 40px 0 0; display: flex; justify-content: center; gap: 6px; }
.fama-pagination .page-numbers { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 10px; background: white; border: 1px solid #e6edf2; border-radius: 10px; color: #003C56; font-weight: 700; font-size: 13px; text-decoration: none; transition: all 0.15s; }
.fama-pagination .page-numbers:hover { border-color: #00D0FF; background: rgba(0,208,255,0.06); }
.fama-pagination .page-numbers.current { background: #003C56; color: white; border-color: #003C56; }

.fama-no-results { grid-column: 1 / -1; text-align: center; padding: 60px 30px; background: #f7fafc; border-radius: 16px; color: #5a7080; font-size: 14px; }

/* =========================================================
 * OVERRIDE GLOBAL · Reemplaza cualquier rosa heredado del tema
 * por el cyan/navy del manual de marca FAMA
 * ========================================================= */
body a[style*="cc3366"],
body a[style*="CC3366"],
body [style*="color: #cc3366"],
body [style*="color:#cc3366"],
body [style*="color: rgb(204, 51, 102)"] { color: #00D0FF !important; }
body [style*="background:#cc3366"],
body [style*="background: #cc3366"],
body [style*="background-color:#cc3366"],
body [style*="background-color: #cc3366"] { background: #003C56 !important; }
/* En el 404 del tema Hello Biz, el link "return to homepage" se vuelve cyan */
.error404 a, .not-found a, .search-no-results a { color: #00D0FF !important; }
.error404 a:hover, .not-found a:hover { color: #003C56 !important; }

/* =========================================================
 * ARCHIVE STYLE ZONAPROP
 * ========================================================= */
.fama-zp-wrap { max-width: 1320px; margin: 0 auto; padding: 30px 24px 60px; }
.fama-zp-wrap .fama-archive-header { margin-bottom: 18px; }

.fama-zp-toolbar { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.fama-zp-mob-btn { display: none; background: #003C56; color: white; padding: 10px 16px; border: 0; border-radius: 10px; font-size: 13px; font-weight: 700; cursor: pointer; gap: 7px; align-items: center; }
.fama-zp-count { font-size: 14px; color: #5a7080; }
.fama-zp-count strong { color: #003C56; font-weight: 800; }

.fama-zp-layout { display: grid; grid-template-columns: 270px 1fr; gap: 24px; }
@media (max-width: 900px) {
	.fama-zp-layout { grid-template-columns: 1fr; }
	.fama-zp-mob-btn { display: inline-flex; }
	.fama-zp-sidebar { display: none; background: white; border-radius: 14px; padding: 24px; }
	body.fama-zp-filters-open .fama-zp-sidebar { display: block; position: fixed; inset: 0; z-index: 99999; overflow-y: auto; padding: 30px; }
	body.fama-zp-filters-open { overflow: hidden; }
}

.fama-zp-sidebar { background: white; border: 1px solid #e6edf2; border-radius: 14px; padding: 22px 20px; height: fit-content; position: sticky; top: 24px; }

.fama-zp-section { padding-bottom: 18px; margin-bottom: 18px; border-bottom: 1px solid #f0f4f7; }
.fama-zp-section:last-child { border: 0; padding-bottom: 0; margin-bottom: 0; }
.fama-zp-section h4 { font-size: 12px; font-weight: 800; color: #003C56; margin: 0 0 12px; letter-spacing: 0.4px; text-transform: uppercase; display: flex; justify-content: space-between; align-items: center; }

/* Pills (Operación) */
.fama-zp-pills { display: flex; flex-wrap: wrap; gap: 6px; }
.fama-zp-pills label { cursor: pointer; }
.fama-zp-pills input { display: none; }
.fama-zp-pills span { display: inline-block; padding: 6px 12px; font-size: 12px; font-weight: 700; color: #5a7080; background: #f7fafc; border-radius: 999px; transition: all 0.15s; border: 1.5px solid transparent; }
.fama-zp-pills input:checked + span { background: #003C56; color: white; }

/* Select */
.fama-zp-select { width: 100%; padding: 10px 12px; background: #f7fafc; border: 1.5px solid #e6edf2; border-radius: 10px; font-size: 13px; font-weight: 500; color: #003C56; font-family: inherit; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%235a7080' stroke-width='2' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 30px; }
.fama-zp-select:focus { outline: 0; border-color: #00D0FF; background-color: white; box-shadow: 0 0 0 4px rgba(0,208,255,0.12); }

/* Toggle USD/ARS */
.fama-zp-mon { display: flex; background: #f7fafc; border: 1.5px solid #e6edf2; border-radius: 10px; padding: 3px; margin-bottom: 8px; }
.fama-zp-mon label { flex: 1; cursor: pointer; text-align: center; }
.fama-zp-mon input { display: none; }
.fama-zp-mon span { display: block; padding: 7px; font-size: 12px; font-weight: 800; color: #5a7080; border-radius: 7px; transition: all 0.15s; letter-spacing: 0.4px; }
.fama-zp-mon input:checked + span { background: #003C56; color: white; }

/* Range Min/Max */
.fama-zp-range { display: flex; align-items: center; gap: 6px; }
.fama-zp-range input { flex: 1; padding: 9px 11px; background: #f7fafc; border: 1.5px solid #e6edf2; border-radius: 9px; font-size: 13px; font-weight: 600; color: #003C56; font-family: inherit; width: 100%; -moz-appearance: textfield; }
.fama-zp-range input::-webkit-outer-spin-button,
.fama-zp-range input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fama-zp-range input:focus { outline: 0; border-color: #00D0FF; background-color: white; }
.fama-zp-range span { color: #8a9ba8; font-weight: 700; }

/* Buttons (Ambientes, dorms, baños) */
.fama-zp-buttons { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.fama-zp-section .fama-zp-buttons { display: flex; flex-wrap: wrap; gap: 4px; }
.fama-zp-buttons label { cursor: pointer; flex: 1 1 auto; min-width: 38px; }
.fama-zp-buttons input { display: none; }
.fama-zp-buttons span { display: block; padding: 8px 6px; font-size: 12px; font-weight: 700; color: #5a7080; background: #f7fafc; border: 1.5px solid #e6edf2; border-radius: 8px; text-align: center; transition: all 0.15s; }
.fama-zp-buttons input:checked + span { background: #003C56; color: white; border-color: #003C56; }

/* Colapsable (Características) */
.fama-zp-collapsible h4 { cursor: pointer; user-select: none; }
.fama-zp-collapsible h4 svg { transition: transform 0.2s; }
.fama-zp-collapsible.open h4 svg { transform: rotate(180deg); }
.fama-zp-amen-list { display: none; flex-direction: column; gap: 7px; max-height: 230px; overflow-y: auto; padding: 4px 2px; }
.fama-zp-collapsible.open .fama-zp-amen-list { display: flex; }
.fama-zp-amen { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #003C56; cursor: pointer; padding: 5px 0; }
.fama-zp-amen input { accent-color: #00D0FF; }

/* Actions */
.fama-zp-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; padding-top: 8px; }
.fama-zp-apply { background: #003C56; color: white !important; padding: 12px; border: 0; border-radius: 10px; font-weight: 800; font-size: 14px; cursor: pointer; font-family: inherit; transition: all 0.15s; width: 100%; }
.fama-zp-apply:hover { background: #00D0FF; color: #003C56 !important; }
.fama-zp-clear { display: block; text-align: center; padding: 9px; font-size: 12px; color: #5a7080; text-decoration: none !important; font-weight: 600; }
.fama-zp-clear:hover { color: #dc2626; }

/* Resultados */
.fama-zp-results { min-width: 0; }
.fama-zp-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.fama-zp-chip { background: rgba(0,208,255,0.12); color: #003C56; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.fama-zp-results .fama-grid-listado { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.fama-zp-empty { background: white; border: 1px dashed #e6edf2; border-radius: 14px; padding: 60px 20px; text-align: center; }
.fama-zp-empty h3 { font-size: 18px; font-weight: 800; color: #003C56; margin: 16px 0 6px; }
.fama-zp-empty p { color: #5a7080; font-size: 13px; margin: 0; }

/* Iconos en cards (vertical-align) */
.fama-prop-addr svg,
.fama-prop-feats span svg,
.fama-el-addr svg,
.fama-el-feats span svg { vertical-align: -2px; flex-shrink: 0; color: #00D0FF; }
.fama-prop-feats span,
.fama-el-feats span { display: inline-flex; align-items: center; gap: 5px; }

/* =========================================================
 * ARCHIVE ESTILO ZONAPROP · v2
 * Filtros horizontales arriba + cards horizontales abajo
 * ========================================================= */
.fama-zp-wrap { max-width: 1320px; margin: 0 auto; padding: 30px 24px 60px; font-family: 'Plus Jakarta Sans', sans-serif; }

.fama-zp-header { margin-bottom: 20px; }
.fama-zp-header h1 { font-size: 26px; font-weight: 800; color: #003C56; letter-spacing: -0.5px; margin: 0 0 6px; line-height: 1.2; }
.fama-zp-header p { font-size: 14px; color: #5a7080; margin: 0; }
.fama-zp-header p strong { color: #003C56; }

/* Barra de filtros */
.fama-zp-bar { background: white; border: 1px solid #e6edf2; border-radius: 14px; padding: 16px; margin-bottom: 16px; position: sticky; top: 0; z-index: 90; box-shadow: 0 1px 0 rgba(0,60,86,0.04); }
.fama-zp-bar-tabs { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.fzp-tab { background: transparent; border: 0; padding: 8px 16px; font-size: 13px; font-weight: 700; color: #5a7080; border-radius: 999px; cursor: pointer; font-family: inherit; transition: all 0.15s; }
.fzp-tab:hover { color: #003C56; background: #f7fafc; }
.fzp-tab.act { background: #003C56; color: white; }

.fama-zp-bar-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.fzp-chip { background: #f7fafc; border: 1.5px solid #e6edf2; border-radius: 10px; padding: 0 12px; height: 42px; display: flex; align-items: center; gap: 8px; transition: all 0.15s; position: relative; }
.fzp-chip:hover { border-color: #c0d4dd; }
.fzp-chip svg { color: #5a7080; flex-shrink: 0; }
.fzp-chip select { background: transparent; border: 0; outline: 0; font-size: 13px; font-weight: 600; color: #003C56; font-family: inherit; cursor: pointer; padding: 0; min-width: 110px; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%235a7080' stroke-width='2' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 0 center; padding-right: 18px; }
.fzp-chip-loc { flex: 1; min-width: 200px; max-width: 280px; }
.fzp-chip-loc input { background: transparent; border: 0; outline: 0; flex: 1; font-size: 13px; font-weight: 600; color: #003C56; font-family: inherit; min-width: 0; }
.fzp-chip-loc input::placeholder { color: #8a9ba8; font-weight: 500; }

/* Autocomplete dropdown */
.fzp-autocomplete { position: absolute; top: calc(100% + 6px); left: 0; right: 0; background: white; border: 1px solid #e6edf2; border-radius: 10px; max-height: 320px; overflow-y: auto; z-index: 100; box-shadow: 0 10px 30px rgba(0,60,86,0.15); }
.fzp-ac-item { padding: 10px 14px; font-size: 13px; color: #003C56; cursor: pointer; transition: background 0.1s; border-bottom: 1px solid #f0f4f7; }
.fzp-ac-item:last-child { border-bottom: 0; }
.fzp-ac-item:hover { background: rgba(0,208,255,0.08); }
.fzp-ac-item b { color: #00D0FF; font-weight: 700; }
.fzp-ac-item span { color: #8a9ba8; font-size: 11px; font-weight: 400; }

/* Precio */
.fzp-chip-precio { gap: 6px; padding-left: 4px; padding-right: 4px; }
.fzp-mon-pills { display: flex; background: white; border-radius: 7px; padding: 2px; }
.fzp-mon-pill { background: transparent; border: 0; padding: 5px 8px; font-size: 11px; font-weight: 800; color: #5a7080; border-radius: 5px; cursor: pointer; font-family: inherit; }
.fzp-mon-pill.act { background: #003C56; color: white; }
.fzp-chip-precio input { background: transparent; border: 0; outline: 0; font-size: 13px; font-weight: 600; color: #003C56; font-family: inherit; width: 75px; padding: 0; -moz-appearance: textfield; }
.fzp-chip-precio input::-webkit-outer-spin-button,
.fzp-chip-precio input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fzp-chip-precio input::placeholder { color: #8a9ba8; }
.fzp-chip-precio span { color: #c0d4dd; font-weight: 600; }

/* Más filtros */
.fzp-more { background: white !important; border-color: #003C56 !important; cursor: pointer; font-size: 13px; font-weight: 700; color: #003C56; font-family: inherit; }
.fzp-more-badge { background: #00D0FF; color: #003C56; font-size: 10px; font-weight: 800; padding: 2px 7px; border-radius: 999px; margin-left: 4px; }

.fzp-apply { background: #00D0FF; color: #003C56; border: 0; padding: 0 18px; height: 42px; border-radius: 10px; font-size: 13px; font-weight: 800; cursor: pointer; display: flex; align-items: center; gap: 7px; font-family: inherit; transition: all 0.15s; margin-left: auto; }
.fzp-apply:hover { background: #003C56; color: white; }

@media (max-width: 1000px) {
	.fzp-apply { margin-left: 0; width: 100%; justify-content: center; }
	.fzp-chip-loc { flex: 1 1 100%; max-width: none; }
}

/* DRAWER de más filtros */
.fama-zp-drawer { position: fixed; inset: 0; z-index: 9999; display: none; }
body.fzp-more-open .fama-zp-drawer { display: block; }
body.fzp-more-open { overflow: hidden; }
.fzp-drawer-bg { position: absolute; inset: 0; background: rgba(0,60,86,0.55); }
.fzp-drawer-content { position: absolute; top: 0; right: 0; bottom: 0; width: 440px; max-width: 100vw; background: white; padding: 32px; overflow-y: auto; box-shadow: -10px 0 40px rgba(0,0,0,0.2); }
.fzp-drawer-content h3 { font-size: 22px; font-weight: 800; color: #003C56; margin: 0 0 24px; letter-spacing: -0.3px; }
.fzp-drawer-close { position: absolute; top: 16px; right: 16px; background: transparent; border: 0; font-size: 28px; cursor: pointer; color: #5a7080; padding: 4px 10px; }
.fzp-drawer-row { margin-bottom: 22px; }
.fzp-drawer-row > label { display: block; font-size: 11px; font-weight: 800; color: #5a7080; letter-spacing: 0.5px; text-transform: uppercase; margin-bottom: 10px; }
.fzp-btns { display: flex; gap: 5px; flex-wrap: wrap; }
.fzp-btns label { cursor: pointer; flex: 1; min-width: 50px; }
.fzp-btns input { display: none; }
.fzp-btns span { display: block; padding: 9px; text-align: center; background: #f7fafc; border: 1.5px solid #e6edf2; border-radius: 8px; font-size: 12px; font-weight: 700; color: #5a7080; transition: all 0.15s; }
.fzp-btns input:checked + span { background: #003C56; color: white; border-color: #003C56; }
.fzp-range { display: flex; gap: 8px; align-items: center; }
.fzp-range input { flex: 1; padding: 10px 12px; background: #f7fafc; border: 1.5px solid #e6edf2; border-radius: 9px; font-size: 13px; font-weight: 600; color: #003C56; font-family: inherit; -moz-appearance: textfield; }
.fzp-range input::-webkit-outer-spin-button,
.fzp-range input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fzp-range input:focus { outline: 0; border-color: #00D0FF; background: white; }
.fzp-range span { color: #8a9ba8; }
.fzp-amen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fzp-amen { display: flex; align-items: center; gap: 7px; font-size: 13px; color: #003C56; cursor: pointer; padding: 6px 0; }
.fzp-amen input { accent-color: #00D0FF; }
.fzp-drawer-actions { display: flex; gap: 10px; margin-top: 30px; padding-top: 20px; border-top: 1px solid #f0f4f7; }
.fzp-clear-all { padding: 12px 18px; background: white; border: 1.5px solid #e6edf2; border-radius: 10px; color: #5a7080; text-decoration: none !important; font-weight: 700; font-size: 13px; }
.fzp-clear-all:hover { border-color: #003C56; color: #003C56; }
.fzp-apply-drawer { flex: 1; background: #003C56; color: white !important; padding: 12px; border: 0; border-radius: 10px; font-weight: 800; font-size: 13px; cursor: pointer; font-family: inherit; }
.fzp-apply-drawer:hover { background: #00D0FF; color: #003C56 !important; }

/* Toolbar de resultados */
.fama-zp-results-bar { display: flex; justify-content: space-between; align-items: center; margin: 18px 0 18px; flex-wrap: wrap; gap: 12px; }
.fama-zp-chips-list { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.fama-zp-chips-list .fama-zp-chip { background: rgba(0,208,255,0.12); color: #003C56; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; text-decoration: none !important; transition: all 0.15s; }
.fama-zp-chips-list .fama-zp-chip:hover { background: #003C56; color: white !important; }
.fama-zp-clear-link { font-size: 12px; color: #dc2626; text-decoration: underline !important; margin-left: 4px; font-weight: 600; }
.fama-zp-orden { display: flex; align-items: center; gap: 8px; }
.fama-zp-orden label { font-size: 12px; color: #5a7080; font-weight: 600; }
.fama-zp-orden select { padding: 7px 30px 7px 12px; background: white; border: 1px solid #e6edf2; border-radius: 8px; font-size: 13px; font-weight: 600; color: #003C56; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%235a7080' stroke-width='2' fill='none' stroke-linecap='round'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; }

/* CARDS HORIZONTALES */
.fama-zp-listing { display: flex; flex-direction: column; gap: 14px; }

.fama-hc { background: white; border: 1px solid #e6edf2; border-radius: 14px; overflow: hidden; display: grid; grid-template-columns: 360px 1fr; transition: all 0.2s; }
.fama-hc:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(0,60,86,0.10); border-color: #c0d4dd; }
@media (max-width: 800px) { .fama-hc { grid-template-columns: 1fr; } }

.fama-hc-imgwrap { position: relative; display: block; text-decoration: none !important; height: 100%; min-height: 240px; }
.fama-hc-imgs { display: grid; grid-template-columns: 2fr 1fr; gap: 3px; height: 100%; min-height: 240px; }
.fama-hc-main, .fama-hc-thumb { background-size: cover; background-position: center; background-color: #e6edf2; }
.fama-hc-side { display: flex; flex-direction: column; gap: 3px; }
.fama-hc-side .fama-hc-thumb { flex: 1; }
.fama-hc-noimg { width: 100%; height: 100%; min-height: 240px; background: #f0f4f7; display: flex; align-items: center; justify-content: center; color: #8a9ba8; font-size: 14px; font-weight: 600; }

.fama-hc-badge { position: absolute; top: 12px; left: 12px; background: #00D0FF; color: #003C56; padding: 5px 12px; border-radius: 6px; font-size: 11px; font-weight: 800; letter-spacing: 0.5px; }
.fama-hc-badge-alquiler, .fama-hc-badge-alquiler-temporario { background: #003C56; color: #00D0FF; }
.fama-hc-tag { position: absolute; top: 12px; right: 12px; background: #FBBF24; color: #003C56; padding: 5px 11px; border-radius: 6px; font-size: 11px; font-weight: 800; }
.fama-hc-tag-feat { background: #FBBF24; }
.fama-hc-estado { position: absolute; bottom: 12px; left: 12px; padding: 4px 11px; border-radius: 5px; font-size: 10px; font-weight: 800; color: white; letter-spacing: 0.3px; }
.fama-hc-est-reservada { background: #FBBF24; }
.fama-hc-est-vendida { background: #16a34a; }
.fama-hc-est-alquilada { background: #16a34a; }

.fama-hc-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.fama-hc-info { display: block; text-decoration: none !important; color: inherit; flex: 1; }
.fama-hc-price { font-size: 24px; font-weight: 800; color: #003C56; letter-spacing: -0.6px; margin-bottom: 10px; line-height: 1; }
.fama-hc-feats { display: flex; gap: 16px; font-size: 13px; color: #5a7080; margin-bottom: 12px; flex-wrap: wrap; }
.fama-hc-feats span { display: inline-block; }
.fama-hc-feats b { color: #003C56; font-weight: 800; }
.fama-hc-title { font-size: 15px; font-weight: 700; color: #003C56; margin-bottom: 6px; line-height: 1.3; }
.fama-hc-addr { font-size: 13px; color: #5a7080; display: flex; align-items: center; gap: 5px; margin-bottom: 10px; }
.fama-hc-addr svg { color: #00D0FF; flex-shrink: 0; }
.fama-hc-desc { font-size: 13px; color: #5a7080; line-height: 1.55; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.fama-hc-ctas { display: flex; gap: 8px; margin-top: auto; padding-top: 14px; border-top: 1px solid #f0f4f7; }
.fama-hc-call { width: 42px; height: 42px; border-radius: 10px; border: 1.5px solid #00D0FF; background: white; display: flex; align-items: center; justify-content: center; color: #00D0FF; transition: all 0.15s; text-decoration: none !important; flex-shrink: 0; }
.fama-hc-call:hover { background: #00D0FF; color: white !important; }
.fama-hc-wa { flex: 1; background: #25D366 !important; color: white !important; padding: 11px; border-radius: 10px; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none !important; transition: opacity 0.15s; }
.fama-hc-wa:hover { opacity: 0.92; color: white !important; }
.fama-hc-contact { flex: 1; background: #003C56 !important; color: white !important; padding: 11px; border-radius: 10px; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none !important; transition: all 0.15s; }
.fama-hc-contact:hover { background: #00D0FF !important; color: #003C56 !important; }

.fama-zp-empty { background: white; border: 1px dashed #e6edf2; border-radius: 14px; padding: 60px 20px; text-align: center; }
.fama-zp-empty h3 { font-size: 18px; font-weight: 800; color: #003C56; margin: 16px 0 6px; }
.fama-zp-empty p { color: #5a7080; font-size: 13px; margin: 0; }

/* =========================================================
 * FUERZA DE ESTÉTICA FAMA · pisa el tema Hello Biz
 * El tema agrega bordes y colores rojos/rosa a buttons e inputs.
 * Esto los anula y garantiza la paleta FAMA en todos los CTAs.
 * ========================================================= */

/* Archive · pills de operación */
body .fama-zp-bar .fzp-tab,
body .fama-zp-bar button.fzp-tab {
	background: transparent !important;
	border: 0 !important;
	color: #5a7080 !important;
	box-shadow: none !important;
	outline: none !important;
}
body .fama-zp-bar .fzp-tab:hover { background: #f7fafc !important; color: #003C56 !important; }
body .fama-zp-bar .fzp-tab.act,
body .fama-zp-bar button.fzp-tab.act { background: #003C56 !important; color: white !important; }

/* Archive · chips de filtros (inputs/selects) */
body .fama-zp-bar .fzp-chip,
body .fama-zp-bar button.fzp-chip,
body .fama-zp-bar a.fzp-chip {
	background: #f7fafc !important;
	border: 1.5px solid #e6edf2 !important;
	color: #003C56 !important;
	box-shadow: none !important;
}
body .fama-zp-bar .fzp-chip:hover { border-color: #c0d4dd !important; }
body .fama-zp-bar .fzp-chip select,
body .fama-zp-bar .fzp-chip input { background: transparent !important; color: #003C56 !important; border: 0 !important; box-shadow: none !important; }
body .fama-zp-bar .fzp-chip input:focus,
body .fama-zp-bar .fzp-chip select:focus { outline: 0 !important; box-shadow: none !important; }

/* Más filtros y pills moneda */
body .fama-zp-bar .fzp-more,
body .fama-zp-bar button.fzp-more {
	background: white !important;
	border: 1.5px solid #003C56 !important;
	color: #003C56 !important;
}
body .fama-zp-bar .fzp-more:hover { background: #003C56 !important; color: white !important; }
body .fama-zp-bar .fzp-mon-pills { background: white !important; border: 0 !important; }
body .fama-zp-bar .fzp-mon-pill { background: transparent !important; border: 0 !important; color: #5a7080 !important; box-shadow: none !important; }
body .fama-zp-bar .fzp-mon-pill.act { background: #003C56 !important; color: white !important; }

/* Buscar (botón principal) */
body .fama-zp-bar .fzp-apply,
body .fama-zp-bar button.fzp-apply {
	background: #00D0FF !important;
	color: #003C56 !important;
	border: 0 !important;
	box-shadow: none !important;
}
body .fama-zp-bar .fzp-apply:hover { background: #003C56 !important; color: white !important; }

/* Drawer · botones de adentro (baños, etc.) */
body .fama-zp-drawer .fzp-btns span { background: #f7fafc !important; border: 1.5px solid #e6edf2 !important; color: #5a7080 !important; }
body .fama-zp-drawer .fzp-btns input:checked + span { background: #003C56 !important; color: white !important; border-color: #003C56 !important; }
body .fama-zp-drawer .fzp-apply-drawer { background: #003C56 !important; color: white !important; border: 0 !important; }
body .fama-zp-drawer .fzp-apply-drawer:hover { background: #00D0FF !important; color: #003C56 !important; }
body .fama-zp-drawer .fzp-clear-all { background: white !important; border: 1.5px solid #e6edf2 !important; color: #5a7080 !important; }
body .fama-zp-drawer .fzp-drawer-close { background: transparent !important; border: 0 !important; color: #5a7080 !important; box-shadow: none !important; }

/* Modal de consulta (single page) */
body .fama-msg-modal .fama-msg-close { background: transparent !important; border: 0 !important; color: #5a7080 !important; box-shadow: none !important; }
body .fama-msg-modal .fama-msg-close:hover { color: #003C56 !important; }
body .fama-msg-modal .fama-msg-submit,
body .fama-msg-modal button.fama-msg-submit { background: #003C56 !important; color: white !important; border: 0 !important; box-shadow: none !important; }
body .fama-msg-modal .fama-msg-submit:hover { background: #00D0FF !important; color: #003C56 !important; }
body .fama-msg-modal .fama-msg-field input,
body .fama-msg-modal .fama-msg-field textarea { background: #f7fafc !important; border: 1.5px solid #e6edf2 !important; color: #003C56 !important; box-shadow: none !important; }
body .fama-msg-modal .fama-msg-field input:focus,
body .fama-msg-modal .fama-msg-field textarea:focus { border-color: #00D0FF !important; background: white !important; box-shadow: 0 0 0 4px rgba(0,208,255,0.12) !important; }

/* Cards CTAs */
body .fama-hc-wa, body a.fama-hc-wa { background: #25D366 !important; color: white !important; border: 0 !important; box-shadow: none !important; }
body .fama-hc-contact, body a.fama-hc-contact { background: #003C56 !important; color: white !important; border: 0 !important; box-shadow: none !important; }
body .fama-hc-contact:hover { background: #00D0FF !important; color: #003C56 !important; }
body .fama-hc-call, body a.fama-hc-call { background: white !important; border: 1.5px solid #00D0FF !important; color: #00D0FF !important; box-shadow: none !important; }
body .fama-hc-call:hover { background: #00D0FF !important; color: white !important; }

/* Autocomplete dropdown · selección */
body .fzp-ac-item.act, body .fzp-ac-item:hover { background: rgba(0,208,255,0.12) !important; color: #003C56 !important; }

/* Inputs del archive autocompletado */
body #fzp-barrio-input { background: transparent !important; border: 0 !important; color: #003C56 !important; box-shadow: none !important; }
body #fzp-barrio-input:focus { outline: 0 !important; box-shadow: none !important; }
