/* ==========================================================
   PROPIEDADES-SAIA — PROPIEDADES
   Adaptación visual del diseño entregado por el cliente.
   ========================================================== */
:root {
    --sa-green-50: #eff6ff;
    --sa-green-100: #dbeafe;
    --sa-green-500: #3b82f6;
    --sa-primary: #2563eb;
    --sa-primary: #1d4ed8;
    --sa-green-900: #1e3a8a;
    --sa-secondary: #0f172a;
    --sa-text: #334155;
    --sa-muted: #64748b;
    --sa-border: #e2e8f0;
    --sa-soft: #f8fafc;
    --sa-radius: 24px;
    --sa-shadow: 0 18px 45px rgba(15, 23, 42, .08);
}

/* ---------- Cards / grids ---------- */
/* ---------- Diferenciación sutil por categoría ---------- */
.sa-property-card {
    --sa-category: #94a3b8;
    --sa-category-soft: #f8fafc;
}

.sa-property-card[data-type="casa"],
.sa-property-card[data-type*="casa"] { --sa-category:#4f8a68; --sa-category-soft:#eef7f1; }
.sa-property-card[data-type="departamento"],
.sa-property-card[data-type*="depart"] ,
.sa-property-card[data-type*="depto"] { --sa-category:#4f78a8; --sa-category-soft:#eef4fb; }
.sa-property-card[data-type="local"],
.sa-property-card[data-type*="local"] { --sa-category:#b4863d; --sa-category-soft:#fbf5e9; }
.sa-property-card[data-type="oficina"],
.sa-property-card[data-type*="oficina"] { --sa-category:#7a68a6; --sa-category-soft:#f3f0f9; }
.sa-property-card[data-type="parcela"],
.sa-property-card[data-type*="parcela"] { --sa-category:#4f8f91; --sa-category-soft:#edf7f7; }
.sa-property-card[data-type="terreno"],
.sa-property-card[data-type*="terreno"] { --sa-category:#8a7951; --sa-category-soft:#f6f3ea; }
.sa-property-card[data-type="auto"],
.sa-property-card[data-type*="auto"] { --sa-category:#9a6475; --sa-category-soft:#f8f0f3; }

/* La línea superior diferencia la categoría sin cambiar el diseño general. */
.sa-property-card { border-top: 3px solid var(--sa-category); }

.sa-property-card__eyebrow {
    color: var(--sa-category);
    background: var(--sa-category-soft);
    display: inline-flex;
    align-self: flex-start;
    padding: 4px 8px;
    border-radius: 7px;
}

.sa-property-card {
    height: 100%;
    background: #fff;
    border: 1px solid #f1f5f9;
    border-radius: var(--sa-radius);
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(15, 23, 42, .07);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}

.sa-property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 24px 55px rgba(15, 23, 42, .13);
    border-color: #dbeafe;
}

.sa-property-card__link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none !important;
}

.sa-property-card__image {
    position: relative;
    height: 255px;
    overflow: hidden;
    background: #e2e8f0;
}

.sa-property-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .55s ease;
}

.sa-property-card:hover .sa-property-card__image img { transform: scale(1.055); }

.sa-property-card__placeholder {
    width: 100%; height: 100%; display: grid; place-items: center;
    color: var(--sa-muted); background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
}

.sa-property-card__badge {
    position: absolute;
    top: 16px;
    left: auto;
    right: 16px;
    background: var(--sa-primary);
    color: #fff;
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 11px;
    line-height: 1;
    font-weight: 800;
    box-shadow: 0 5px 14px rgba(37, 99, 235, .25);
}

.sa-property-card__price {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: rgba(15, 23, 42, .84);
    color: #fff;
    padding: 9px 13px;
    border-radius: 14px;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.sa-property-card__body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.sa-property-card__eyebrow {
    color: var(--sa-category);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: 5px;
}
.sa-property-card__body h3 {
    color: var(--sa-secondary);
    font-size: 19px;
    line-height: 1.25;
    font-weight: 800;
    margin: 0;
}
.sa-property-card__location { margin-top: 7px; color: var(--sa-muted); font-size: 12px; }
.sa-property-card__location span { color: var(--sa-green-500); margin-right: 3px; }

.sa-property-card__specs {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 17px;
    padding: 14px 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
}
.sa-property-card__specs span { text-align: center; flex: 1; }
.sa-property-card__specs strong { display: block; color: var(--sa-primary); font-size: 14px; margin-bottom: 3px; }

.sa-property-card__button {
    margin-top: 15px;
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: center;
    padding: 12px 14px;
    border-radius: 15px;
    background: #f1f5f9;
    color: var(--sa-secondary);
    font-size: 12px;
    font-weight: 800;
    transition: background .25s ease, color .25s ease;
}
.sa-property-card:hover .sa-property-card__button { background: var(--sa-primary); color: #fff; }

.related-properties { max-width: 1280px; margin: 75px auto 0; padding: 0 24px 70px; }
.related-header { text-align: left; margin-bottom: 26px; }
.related-header h2 { color: var(--sa-secondary); font-size: 30px; line-height: 1.2; font-weight: 800; margin: 5px 0 0; }
.related-header:before { content: 'OPORTUNIDADES DESTACADAS'; color: var(--sa-primary); font-size: 11px; font-weight: 800; letter-spacing: .14em; }
.related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.related-grid .sa-property-card { min-width: 0; }

/* Swiper shortcode */
.propiedadesSwiper { padding: 10px 4px 30px; }
.propiedadesSwiper .swiper-slide { width: min(365px, 88vw); height: auto; }

/* ---------- Single property ---------- */
.single-propiedad .ct-container { max-width: 1280px; }
.seg-property { background: #f8fafc; padding: 35px 0 80px; color: var(--sa-text); }
.property-wrapper { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.property-top {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px;
}
.property-top a {
    color: var(--sa-primary); background: var(--sa-green-50); border: 1px solid var(--sa-green-100);
    border-radius: 999px; padding: 7px 12px; font-size: 11px; font-weight: 800; text-decoration: none;
}
.property-container { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 30px; align-items: start; }
.property-main { min-width: 0; }
.property-gallery-main { background: #fff; border: 1px solid #eef2f7; border-radius: 28px; padding: 22px; box-shadow: var(--sa-shadow); }
.gallery-header { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 8px; }
.property-category { color: var(--sa-primary); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .09em; }
.property-subtitle { color: var(--sa-muted) !important; background: var(--sa-soft) !important; border-radius: 999px !important; padding: 7px 12px !important; font-size: 11px !important; }
.property-title-page { color: var(--sa-secondary) !important; font-size: clamp(28px, 4vw, 43px) !important; line-height: 1.12 !important; font-weight: 800 !important; margin: 5px 0 20px !important; letter-spacing: -.025em; }
.galeria-grid { display: grid; grid-template-columns: 1.45fr 1fr; gap: 10px; min-height: 470px; }
.foto-principal, .foto-sec { position: relative; overflow: hidden; border-radius: 18px; display: block; background: #e2e8f0; }
.foto-principal img, .foto-sec img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.foto-principal:hover img, .foto-sec:hover img { transform: scale(1.025); }
.fotos-secundarias { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.fotos-secundarias .foto-sec:nth-child(1), .fotos-secundarias .foto-sec:nth-child(2) { min-height: 0; }
.galeria-mas { position: absolute; inset: auto 12px 12px 12px; display: flex; align-items: center; justify-content: space-between; gap: 8px; background: rgba(15,23,42,.84); color: #fff; border-radius: 13px; padding: 9px 11px; backdrop-filter: blur(8px); }
.galeria-mas strong { font-size: 11px; }
.galeria-mas small { font-size: 10px; color: #cbd5e1; }
.property-section { margin-top: 25px; }
.property-description { background: #fff; border: 1px solid #eef2f7; border-radius: 24px; padding: 30px 34px; box-shadow: 0 10px 30px rgba(15,23,42,.05); color: #475569; font-size: 15px; line-height: 1.85; }
.description-title { color: var(--sa-secondary); font-size: 23px; font-weight: 800; margin: 0 0 15px; }
.property-sidebar { position: sticky; top: 100px; }
.property-card { background: #fff; border: 1px solid #eef2f7; border-radius: 24px; padding: 22px; box-shadow: var(--sa-shadow); }
.property-price { background: var(--sa-primary); color: #fff; border-radius: 18px; padding: 19px; margin-bottom: 17px; text-align: left; font-size: 22px; line-height: 1.15; font-weight: 800; box-shadow: 0 12px 25px rgba(37,99,235,.18); }
.property-price-label { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .1em; opacity: .8; margin-bottom: 5px; }
.property-specs { display: grid; gap: 0; }
.spec-row { display: flex; justify-content: space-between; align-items: center; gap: 15px; padding: 13px 2px; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.spec-row span { color: var(--sa-muted); }
.spec-row strong { color: var(--sa-secondary); font-weight: 800; text-align: right; }
.property-agent { margin-top: 20px; padding-top: 20px; border-top: 1px solid #e2e8f0; }
.property-agent h3 { color: var(--sa-secondary); font-size: 16px; font-weight: 800; margin: 0; }
.property-contact-info { margin: 15px 0 0; padding: 0; border: 0; }
.contact-item { display: flex; flex-direction: column; gap: 2px; margin: 12px 0; }
.contact-label { color: var(--sa-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; }
.contact-item a { color: var(--sa-primary); font-size: 13px; font-weight: 700; text-decoration: none; }

/* ---------- Videos ---------- */
.property-videos-full { max-width: 1280px; margin: 50px auto 0; padding: 0 24px; }
.videos-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.video-card { position: relative; display: block; aspect-ratio: 16/9; overflow: hidden; border-radius: 22px; background: #0f172a; box-shadow: var(--sa-shadow); }
.video-card img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .9; transition: transform .4s ease, opacity .3s ease; }
.video-card:hover img { transform: scale(1.04); opacity: .75; }
.play-btn { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: var(--sa-primary); font-size: 20px; box-shadow: 0 10px 25px rgba(0,0,0,.2); padding-left: 3px; }

/* ---------- Fancybox / legacy gallery ---------- */
.seg-lightbox { position: fixed; inset: 0; background: rgba(2,6,23,.92); z-index: 99999; display: none; align-items: center; justify-content: center; padding: 30px; }
.seg-lightbox.active { display: flex; }
.seg-lightbox-img { max-width: 92vw; max-height: 88vh; object-fit: contain; border-radius: 12px; }
.seg-close,.seg-prev,.seg-next { position: absolute; color: #fff; cursor: pointer; user-select: none; font-size: 34px; line-height: 1; }
.seg-close { top: 25px; right: 30px; }
.seg-prev { left: 25px; top: 50%; transform: translateY(-50%); }
.seg-next { right: 25px; top: 50%; transform: translateY(-50%); }

@media (max-width: 1050px) {
    .property-container { grid-template-columns: 1fr; }
    .property-sidebar { position: relative; top: auto; }
    .galeria-grid { min-height: 430px; }
    .related-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 700px) {
    .property-wrapper, .related-properties, .property-videos-full { padding-left: 16px; padding-right: 16px; }
    .seg-property { padding-top: 20px; }
    .property-gallery-main { padding: 13px; border-radius: 20px; }
    .gallery-header { align-items: flex-start; flex-direction: column; }
    .galeria-grid { grid-template-columns: 1fr; min-height: 0; }
    .foto-principal { height: 310px; }
    .fotos-secundarias { height: 170px; }
    .property-description { padding: 24px 20px; border-radius: 20px; }
    .related-grid { grid-template-columns: 1fr; }
    .videos-grid { grid-template-columns: 1fr; }
    .sa-property-card__image { height: 230px; }
}
.sa-property-hidden-gallery-link { display: none !important; }
.property-agent img { max-width: 180px; margin: 15px auto 20px; display: block; }

.sa-property-card__operation{
 position:absolute;left:16px;top:16px;z-index:3;display:inline-flex;align-items:center;
 padding:7px 11px;border-radius:999px;background:#1e3a8a;color:#fff;font-size:11px;
 font-weight:800;letter-spacing:.06em;box-shadow:0 6px 16px rgba(30,58,138,.18)
}
.sa-property-card__operation.is-rent{background:#0f172a}

.vg-map-placeholder{margin-top:32px;padding:42px;border:1px solid #e2e8f0;border-radius:24px;background:#fff;box-shadow:0 10px 30px rgba(15,23,42,.07)}

/* ==========================================================
   PROPIEDADES-SAIA — CABECERA GLOBAL EN FICHA INDIVIDUAL
   La ficha usa el mismo header de Inicio/Propiedades/Nosotros/Contacto.
   ========================================================== */
.sa-property-single-property-page .site-header,
.sa-property-single-property-page .ct-header,
.sa-property-single-property-page .ct-header-wrapper {
    display: none !important;
}

.sa-property-single-property-page {
    margin: 0 !important;
    padding: 0 !important;
    background: #f8fafc !important;
}

.sa-property-single-property-page .seg-property {
    margin: 0 !important;
}

/* ---------- Shortcodes / catálogo Blocksy ---------- */
.sa-properties-module{width:100%;margin:0 auto;padding:20px 0 50px;box-sizing:border-box;}
.sa-module-heading{margin:0 0 26px;}
.sa-module-heading span{display:block;color:var(--sa-primary);font-size:11px;font-weight:800;letter-spacing:.14em;text-transform:uppercase;margin-bottom:7px;}
.sa-module-heading h1,.sa-module-heading h2{margin:0;color:var(--sa-secondary);font-size:clamp(28px,4vw,42px);line-height:1.12;font-weight:800;letter-spacing:-.025em;}
.sa-properties-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:28px;width:100%;}
.sa-empty{grid-column:1/-1;padding:35px;border:1px solid var(--sa-border);border-radius:20px;background:#fff;text-align:center;color:var(--sa-muted);}
.sa-property-search{display:grid;grid-template-columns:minmax(220px,1.7fr) minmax(150px,1fr) minmax(150px,1fr) auto;gap:12px;align-items:end;margin:0 0 34px;padding:18px;border:1px solid var(--sa-border);border-radius:22px;background:#fff;box-shadow:var(--sa-shadow);}
.sa-search-field{display:flex;flex-direction:column;gap:6px;min-width:0;}
.sa-search-field label{font-size:11px;font-weight:800;color:var(--sa-secondary);text-transform:uppercase;letter-spacing:.06em;}
.sa-search-field input,.sa-search-field select{height:48px;width:100%;box-sizing:border-box;border:1px solid #dbe3ec;border-radius:13px;background:#fff;color:var(--sa-secondary);padding:0 13px;outline:none;}
.sa-search-field input:focus,.sa-search-field select:focus{border-color:var(--sa-primary);box-shadow:0 0 0 3px rgba(37,99,235,.10);}
.sa-property-search button{height:48px;border:0;border-radius:13px;padding:0 22px;background:var(--sa-primary);color:#fff;font-weight:800;cursor:pointer;white-space:nowrap;}
.sa-property-search button:hover{filter:brightness(.95);}
@media (max-width:1050px){.sa-properties-grid{grid-template-columns:repeat(2,minmax(0,1fr));}.sa-property-search{grid-template-columns:1fr 1fr;}.sa-search-field--text{grid-column:1/-1;}.sa-property-search button{width:100%;}}
@media (max-width:650px){.sa-properties-grid{grid-template-columns:1fr;gap:18px;}.sa-property-search{grid-template-columns:1fr;padding:14px;}.sa-search-field--text{grid-column:auto;}.sa-property-search button{width:100%;}.sa-property-card__image{height:230px;}}

/* ==========================================================
   PROPIEDADES-SA 3.2 — CATÁLOGO Y BUSCADOR PROFESIONAL
   ========================================================== */
.sa-properties-module,
.sa-properties-grid,
.sa-property-search,
.sa-search-hero { box-sizing:border-box; }
.sa-properties-module { max-width:1280px !important; margin:0 auto !important; padding:32px 20px 70px !important; }
.sa-properties-grid { display:grid !important; grid-template-columns:repeat(3,minmax(0,1fr)) !important; gap:24px !important; align-items:stretch; }
.sa-property-card { min-width:0 !important; width:100% !important; border:1px solid #e8edf3 !important; border-radius:22px !important; overflow:hidden !important; background:#fff !important; box-shadow:0 10px 30px rgba(15,23,42,.07) !important; transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease !important; }
.sa-property-card:hover { transform:translateY(-5px) !important; box-shadow:0 20px 50px rgba(15,23,42,.13) !important; border-color:#d6e0ec !important; }
.sa-property-card__link { display:flex !important; flex-direction:column !important; height:100% !important; text-decoration:none !important; color:inherit !important; }
.sa-property-card__image { height:245px !important; aspect-ratio:16/10 !important; position:relative !important; overflow:hidden !important; background:#edf1f5 !important; }
.sa-property-card__image img { width:100% !important; height:100% !important; object-fit:cover !important; display:block !important; transition:transform .5s ease !important; }
.sa-property-card:hover .sa-property-card__image img { transform:scale(1.045) !important; }
.sa-property-card__body { padding:19px 20px 20px !important; }
.sa-property-card__topline { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom:8px; min-height:18px; }
.sa-property-card__type { font-size:10px !important; font-weight:800 !important; letter-spacing:.1em !important; text-transform:uppercase !important; color:var(--sa-primary) !important; }
.sa-property-card__city { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:11px !important; color:#64748b !important; }
.sa-property-card__body h3 { margin:0 !important; color:var(--sa-secondary) !important; font-size:19px !important; line-height:1.28 !important; font-weight:800 !important; letter-spacing:-.02em !important; }
.sa-property-card__specs { display:grid !important; grid-template-columns:repeat(3,1fr) !important; gap:8px !important; margin:17px 0 0 !important; padding:13px 0 !important; border-top:1px solid #edf1f5 !important; border-bottom:1px solid #edf1f5 !important; }
.sa-property-card__specs span { text-align:center !important; color:#64748b !important; font-size:10px !important; line-height:1.3 !important; }
.sa-property-card__specs strong { display:block !important; color:var(--sa-secondary) !important; font-size:13px !important; font-weight:800 !important; margin-bottom:3px !important; }
.sa-property-card__specs--auto { grid-template-columns:repeat(4,1fr) !important; }
.sa-property-card__specs--auto strong { font-size:10px !important; text-transform:uppercase !important; color:#94a3b8 !important; }
.sa-property-card__button { display:flex !important; align-items:center !important; justify-content:space-between !important; margin-top:15px !important; padding:12px 14px !important; border-radius:12px !important; background:#f5f7fa !important; color:var(--sa-secondary) !important; font-size:12px !important; font-weight:800 !important; transition:.2s ease !important; }
.sa-property-card:hover .sa-property-card__button { background:var(--sa-primary) !important; color:#fff !important; }
.sa-property-card__operation { left:14px !important; top:14px !important; padding:7px 11px !important; font-size:10px !important; background:var(--sa-primary) !important; }
.sa-property-card__badge { right:14px !important; top:14px !important; left:auto !important; padding:7px 10px !important; font-size:10px !important; }
.sa-property-card__price { left:14px !important; bottom:14px !important; padding:9px 12px !important; border-radius:10px !important; font-size:13px !important; background:rgba(15,23,42,.88) !important; }

.sa-search-hero { max-width:1280px; margin:28px auto 0; padding:0 20px; }
.sa-search-hero__content { padding:34px 34px 24px; border-radius:28px 28px 0 0; background:linear-gradient(135deg,#0f172a,#1e293b); color:#fff; }
.sa-search-kicker { display:block; font-size:10px; font-weight:800; letter-spacing:.15em; color:#93c5fd; margin-bottom:8px; }
.sa-search-hero__content h2 { margin:0 !important; color:#fff !important; font-size:clamp(25px,3vw,38px) !important; line-height:1.12 !important; font-weight:800 !important; letter-spacing:-.03em !important; }
.sa-search-hero__content p { margin:9px 0 0 !important; color:#cbd5e1 !important; font-size:14px !important; }
.sa-property-search { display:grid !important; grid-template-columns:2fr 1.15fr 1.1fr 1fr 1fr 1.15fr auto !important; gap:10px !important; align-items:end !important; margin:0 !important; padding:18px !important; border:1px solid #e2e8f0 !important; border-top:0 !important; border-radius:0 0 28px 28px !important; background:#fff !important; box-shadow:0 15px 35px rgba(15,23,42,.09) !important; }
.sa-search-field { min-width:0 !important; gap:6px !important; }
.sa-search-field label { font-size:9px !important; color:#64748b !important; letter-spacing:.08em !important; }
.sa-search-field input,.sa-search-field select { height:46px !important; border:1px solid #dbe3ec !important; border-radius:11px !important; padding:0 11px !important; font-size:12px !important; color:#0f172a !important; background:#fff !important; }
.sa-search-field input:focus,.sa-search-field select:focus { border-color:var(--sa-primary) !important; box-shadow:0 0 0 3px rgba(37,99,235,.1) !important; }
.sa-search-actions { display:flex; flex-direction:column; gap:5px; }
.sa-property-search button { height:46px !important; border:0 !important; border-radius:11px !important; padding:0 17px !important; background:var(--sa-primary) !important; color:#fff !important; font-size:12px !important; font-weight:800 !important; cursor:pointer !important; white-space:nowrap !important; }
.sa-property-search button span { margin-right:5px; }
.sa-search-clear { display:block; text-align:center; color:#64748b !important; font-size:10px !important; text-decoration:none !important; }
.sa-search-clear:hover { color:var(--sa-primary) !important; }
.sa-module-heading { margin:0 0 22px !important; }
.sa-module-heading span { font-size:10px !important; letter-spacing:.14em !important; }
.sa-module-heading h1,.sa-module-heading h2 { font-size:clamp(27px,3vw,38px) !important; }
.sa-empty { grid-column:1/-1; display:flex; flex-direction:column; gap:5px; padding:50px 25px !important; border:1px dashed #cbd5e1 !important; background:#fff !important; color:#64748b !important; }
.sa-empty strong { color:var(--sa-secondary); font-size:17px; }
.sa-empty span { font-size:13px; }

@media (max-width:1150px){
 .sa-property-search{grid-template-columns:repeat(3,minmax(0,1fr)) !important;}
 .sa-search-field--text{grid-column:1/-1;}
 .sa-search-actions{grid-column:1/-1; flex-direction:row; align-items:center;}
 .sa-search-actions button{flex:1;}
 .sa-search-clear{padding:0 10px;}
 .sa-properties-grid{grid-template-columns:repeat(2,minmax(0,1fr)) !important;}
}
@media (max-width:680px){
 .sa-properties-module{padding:24px 14px 50px !important;}
 .sa-search-hero{padding:0 14px; margin-top:16px;}
 .sa-search-hero__content{padding:26px 22px 20px; border-radius:20px 20px 0 0;}
 .sa-property-search{grid-template-columns:1fr !important; padding:14px !important; border-radius:0 0 20px 20px !important;}
 .sa-search-field--text{grid-column:auto;}
 .sa-search-actions{grid-column:auto; flex-direction:column;}
 .sa-search-actions button,.sa-search-clear{width:100%;}
 .sa-properties-grid{grid-template-columns:1fr !important; gap:18px !important;}
 .sa-property-card__image{height:230px !important;}
}

/* ==========================================================
   PROPIEDADES-SA 3.3 — LIGHTBOX PROFESIONAL DE PROPIEDADES
   ========================================================== */
.sa-property-lightbox {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 70px 80px 55px;
    box-sizing: border-box;
    background: rgba(2, 6, 23, .96);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .22s ease, visibility .22s ease;
    overscroll-behavior: contain;
}

.sa-property-lightbox.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.sa-property-lightbox__stage {
    position: relative;
    width: min(1200px, 92vw);
    height: min(78vh, 820px);
    display: flex;
    align-items: center;
    justify-content: center;
    touch-action: pan-y;
}

.sa-property-lightbox__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 14px;
    box-shadow: 0 30px 90px rgba(0,0,0,.42);
    user-select: none;
    -webkit-user-drag: none;
    transition: opacity .12s ease, transform .18s ease;
}

.sa-property-lightbox__image.is-changing {
    opacity: .65;
    transform: scale(.99);
}

.sa-property-lightbox__close,
.sa-property-lightbox__prev,
.sa-property-lightbox__next {
    position: fixed;
    z-index: 4;
    border: 0;
    cursor: pointer;
    display: grid;
    place-items: center;
    color: #fff;
    background: rgba(15, 23, 42, .72);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    transition: background .2s ease, transform .2s ease;
}

.sa-property-lightbox__close:hover,
.sa-property-lightbox__prev:hover,
.sa-property-lightbox__next:hover {
    background: rgba(37, 99, 235, .95);
}

.sa-property-lightbox__close {
    top: 20px;
    right: 22px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 32px;
    line-height: 1;
}

.sa-property-lightbox__prev,
.sa-property-lightbox__next {
    top: 50%;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    font-size: 24px;
}

.sa-property-lightbox__prev {
    left: 22px;
}

.sa-property-lightbox__next {
    right: 22px;
}

.sa-property-lightbox__prev:hover { transform: translateY(-50%) scale(1.05); }
.sa-property-lightbox__next:hover { transform: translateY(-50%) scale(1.05); }

.sa-property-lightbox__counter {
    position: absolute;
    left: 50%;
    bottom: -38px;
    transform: translateX(-50%);
    min-width: 55px;
    padding: 7px 12px;
    border-radius: 999px;
    box-sizing: border-box;
    text-align: center;
    color: #fff;
    background: rgba(15, 23, 42, .72);
    backdrop-filter: blur(10px);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;
}

.sa-property-lightbox__hint {
    position: fixed;
    left: 50%;
    bottom: 17px;
    transform: translateX(-50%);
    color: rgba(255,255,255,.62);
    font-size: 11px;
    font-weight: 600;
    pointer-events: none;
}

.sa-property-lightbox__close:focus-visible,
.sa-property-lightbox__prev:focus-visible,
.sa-property-lightbox__next:focus-visible {
    outline: 3px solid rgba(147, 197, 253, .95);
    outline-offset: 3px;
}

@media (max-width: 700px) {
    .sa-property-lightbox {
        padding: 58px 10px 55px;
    }

    .sa-property-lightbox__stage {
        width: 100%;
        height: 76vh;
    }

    .sa-property-lightbox__image {
        max-width: 100%;
        max-height: 100%;
        border-radius: 9px;
    }

    .sa-property-lightbox__close {
        top: 12px;
        right: 12px;
        width: 46px;
        height: 46px;
        font-size: 30px;
    }

    .sa-property-lightbox__prev,
    .sa-property-lightbox__next {
        top: auto;
        bottom: 20px;
        width: 48px;
        height: 48px;
        font-size: 21px;
    }

    .sa-property-lightbox__prev { left: 18px; }
    .sa-property-lightbox__next { right: 18px; }

    .sa-property-lightbox__counter {
        bottom: 33px;
    }

    .sa-property-lightbox__hint {
        display: none;
    }
}

/* Los enlaces ocultos siguen formando parte de la galería para que
   las flechas y el swipe puedan recorrer todas las fotografías. */
.sa-property-hidden-gallery-link {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.sa-property-card__image{position:relative}
.sa-watermark{position:absolute;opacity:.35;z-index:2;pointer-events:none}
.sa-watermark.centro{top:50%;left:50%;transform:translate(-50%,-50%)}
.sa-watermark.esquina_sup_izq{top:10px;left:10px}
.sa-watermark.esquina_sup_der{top:10px;right:10px}
.sa-watermark.esquina_inf_izq{bottom:10px;left:10px}
.sa-watermark.esquina_inf_der{bottom:10px;right:10px}
.sa-status-ribbon{position:absolute;top:12px;left:12px;background:red;color:#fff;padding:6px 10px;font-weight:700;z-index:3}
.sa-status-single{position:fixed}
