:root{--simh-accent:#ff0000;--simh-r:18px;--simh-ink:#111827;--simh-mute:#6b7280;--simh-line:#eceef1}
.simh-wrap,.simh-wrap *{font-family:'Poppins',sans-serif;box-sizing:border-box}
.simh-wrap{width:100%;color:inherit}
.simh-i{width:16px;height:16px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.simh-i.simh-fill{fill:currentColor;stroke:none}

/* ---------- Animations ---------- */
.simh-reveal{opacity:0}
.simh-reveal.simh-in{opacity:1;animation:simhUp .75s cubic-bezier(.2,.7,.2,1) var(--d,0ms) backwards}
@keyframes simhUp{from{opacity:0;transform:translateY(28px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:reduce){.simh-reveal.simh-in{animation:none}*{scroll-behavior:auto!important}}

/* ---------- Filters ---------- */
.simh-filters{display:grid;grid-template-columns:2fr repeat(4,1fr) auto;gap:10px;margin:0 0 28px}
.simh-filters input,.simh-filters select{width:100%;height:48px;padding:0 14px;border:1px solid #dcdfe4;border-radius:12px;background:#fff;font-size:14px;color:var(--simh-ink)}
.simh-filters input:focus,.simh-filters select:focus{outline:none;border-color:var(--simh-accent);box-shadow:0 0 0 3px rgba(255,0,0,.08)}

/* ---------- Grid ---------- */
.simh-grid{display:grid;grid-template-columns:repeat(var(--simh-cols,3),minmax(0,1fr));gap:26px}

/* ---------- Common card ---------- */
.simh-card{position:relative;background:#fff;border-radius:var(--simh-r);overflow:hidden;box-shadow:0 6px 22px rgba(17,24,39,.08);transition:transform .35s cubic-bezier(.2,.7,.2,1),box-shadow .35s;display:flex;flex-direction:column;min-width:0}
.simh-card:hover{transform:translateY(-7px);box-shadow:0 16px 38px rgba(17,24,39,.16)}
.simh-media{position:relative;display:block;overflow:hidden;background:#eef0f3;text-decoration:none!important}
.simh-img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .7s cubic-bezier(.2,.7,.2,1)}
.simh-card:hover .simh-img{transform:scale(1.08)}
.simh-noimg{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;color:#9ca3af;font-size:12px;background:linear-gradient(135deg,#f3f4f6,#e5e7eb)}
.simh-noimg .simh-i{width:38px;height:38px}
.simh-badge{position:absolute;top:12px;left:12px;z-index:3;display:inline-flex;align-items:center;gap:4px;background:var(--simh-accent);color:#fff;font-size:11px;font-weight:600;letter-spacing:.4px;text-transform:uppercase;padding:5px 12px;border-radius:30px;line-height:1.4}
.simh-b-feat{left:auto;right:12px;background:linear-gradient(135deg,#f59e0b,#f97316)}
.simh-b-feat .simh-i{width:12px;height:12px}
.simh-b-status{left:12px;top:44px;background:#374151}
.simh-st-sold .simh-b-status{background:#991b1b}
.simh-st-hold .simh-b-status{background:#d97706}
.simh-st-sold .simh-img{filter:grayscale(.85)}
.simh-count{position:absolute;right:10px;bottom:10px;z-index:3;display:flex;align-items:center;gap:5px;background:rgba(17,24,39,.72);color:#fff;font-size:12px;padding:4px 10px;border-radius:20px;backdrop-filter:blur(4px)}
.simh-count .simh-i{width:13px;height:13px}
.simh-logo{position:absolute;left:8px;bottom:8px;z-index:3;height:22px!important;width:auto!important;max-width:64px!important;object-fit:contain;background:rgba(255,255,255,.9);padding:2px 5px;border-radius:5px;box-shadow:0 1px 4px rgba(0,0,0,.15);margin:0}
.simh-type{display:inline-block;font-size:11px;font-weight:600;color:var(--simh-accent);text-transform:uppercase;letter-spacing:1px}
.simh-price{font-size:20px;font-weight:700;color:var(--simh-accent);line-height:1.2}
.simh-title{margin:0;font-size:16px;font-weight:600;line-height:1.4}
.simh-title a{color:var(--simh-ink);text-decoration:none;transition:color .2s}
.simh-title a:hover{color:var(--simh-accent)}
.simh-loc{margin:0;font-size:13px;color:var(--simh-mute);display:flex;align-items:center;gap:6px}
.simh-loc .simh-i{width:14px;height:14px;color:var(--simh-accent)}
.simh-specs{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:8px 14px}
.simh-specs li{display:flex;align-items:center;gap:6px;font-size:12.5px;color:#374151;margin:0;padding:0}
.simh-specs .simh-i{color:var(--simh-accent)}
.simh-body{padding:18px 20px 20px;display:flex;flex-direction:column;gap:9px;flex:1}
.simh-actions{display:flex;gap:10px;margin-top:auto;padding-top:6px}
.simh-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;flex:1;text-align:center;padding:11px 16px;border-radius:12px;font-size:13px;font-weight:600;text-decoration:none!important;border:0;cursor:pointer;background:var(--simh-ink);color:#fff!important;transition:transform .2s,opacity .2s,background .2s}
.simh-btn:hover{opacity:.92;transform:translateY(-2px)}
.simh-btn .simh-i{width:16px;height:16px;transition:transform .25s}
.simh-btn:hover .simh-i{transform:translateX(4px)}
.simh-btn-main{background:var(--simh-accent)}
.simh-btn-wa{background:#25d366}
.simh-wa{flex:none;width:44px;height:44px;border-radius:12px;background:#25d366;color:#fff!important;display:flex;align-items:center;justify-content:center;transition:transform .25s}
.simh-wa:hover{transform:scale(1.1) rotate(-6deg)}
.simh-wa .simh-i{width:20px;height:20px}
.simh-empty{text-align:center;padding:44px 0;color:var(--simh-mute)}

/* ---------- Style 1: Classic ---------- */
.simh-s1 .simh-media{aspect-ratio:4/3}
.simh-s1 .simh-pricetag{position:absolute;left:0;bottom:16px;z-index:3;background:var(--simh-accent);color:#fff;font-weight:700;font-size:14px;padding:7px 16px 7px 14px;border-radius:0 30px 30px 0;box-shadow:0 4px 12px rgba(0,0,0,.2)}
.simh-s1 .simh-logo{left:auto;right:10px;bottom:auto;top:76px;display:none}
.simh-s1 .simh-count{bottom:12px}
.simh-s1 .simh-specs{padding:11px 0;border-top:1px solid var(--simh-line);border-bottom:1px solid var(--simh-line)}

/* ---------- Style 2: Overlay ---------- */
.simh-s2{border-radius:22px;background:#111}
.simh-s2 .simh-media{aspect-ratio:3/4;color:#fff}
.simh-s2 .simh-shade{position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(0,0,0,.05) 25%,rgba(0,0,0,.88) 100%);transition:opacity .4s}
.simh-s2 .simh-ov{position:absolute;left:0;right:0;bottom:0;z-index:2;display:flex;flex-direction:column;gap:7px;padding:22px 20px;transform:translateY(34px);transition:transform .45s cubic-bezier(.2,.7,.2,1)}
.simh-s2:hover .simh-ov{transform:translateY(0)}
.simh-s2 .simh-type{color:#fff;opacity:.85}
.simh-s2 .simh-price{color:#fff;font-size:22px}
.simh-s2 .simh-ovtitle{font-size:16px;font-weight:600;line-height:1.35}
.simh-s2 .simh-loc,.simh-s2 .simh-specs li{color:rgba(255,255,255,.88)}
.simh-s2 .simh-loc .simh-i,.simh-s2 .simh-specs .simh-i{color:#fff}
.simh-s2 .simh-specs{opacity:0;transition:opacity .4s .05s}
.simh-s2:hover .simh-specs{opacity:1}
.simh-s2 .simh-count,.simh-s2 .simh-logo{display:none}

/* ---------- Style 3: Horizontal ---------- */
.simh-s3{flex-direction:row;min-height:260px}
.simh-s3 .simh-media{flex:0 0 42%;min-height:260px}
.simh-s3 .simh-media .simh-img{position:absolute;inset:0}
.simh-s3 .simh-body{justify-content:center}
.simh-s3 .simh-actions{margin-top:6px}

/* ---------- Style 4: Modern ---------- */
.simh-s4{border-radius:26px;background:transparent;box-shadow:none;overflow:visible}
.simh-s4:hover{box-shadow:none}
.simh-s4 .simh-media{aspect-ratio:4/3.2;border-radius:26px;box-shadow:0 10px 28px rgba(17,24,39,.16)}
.simh-s4 .simh-body{position:relative;z-index:4;background:#fff;margin:-46px 16px 0;border-radius:20px;padding:18px 18px 16px;box-shadow:0 12px 32px rgba(17,24,39,.12);transition:transform .35s}
.simh-s4:hover .simh-body{transform:translateY(-6px)}
.simh-s4 .simh-foot{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:6px;padding-top:12px;border-top:1px dashed #e5e7eb}
.simh-go{width:42px;height:42px;border-radius:50%;background:var(--simh-accent);color:#fff!important;display:flex;align-items:center;justify-content:center;transition:transform .3s}
.simh-go:hover{transform:translateX(5px) scale(1.06)}
.simh-s4 .simh-count{bottom:58px}
.simh-s4 .simh-logo{bottom:58px}

/* ---------- Pagination ---------- */
.simh-pager{margin-top:34px;text-align:center}
.simh-pager .page-numbers{display:inline-block;min-width:42px;padding:9px 13px;margin:0 3px;border-radius:10px;background:#f3f4f6;color:var(--simh-ink);text-decoration:none;font-size:14px;transition:all .2s}
.simh-pager .page-numbers.current,.simh-pager .page-numbers:hover{background:var(--simh-accent);color:#fff}

/* ---------- Carousel ---------- */
.simh-carousel{position:relative}
.simh-ctitle{margin:0 0 22px;font-size:26px;font-weight:700}
.simh-track{display:flex;gap:24px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;padding:8px 4px 26px;scrollbar-width:none;overscroll-behavior-x:contain}
.simh-track::-webkit-scrollbar{display:none}
.simh-slide{flex:0 0 calc((100% - (var(--simh-cols,3) - 1)*24px)/var(--simh-cols,3));scroll-snap-align:start;display:flex;min-width:0}
.simh-slide .simh-card{width:100%}
.simh-nav{position:absolute;top:45%;z-index:6;width:46px;height:46px;border-radius:50%;border:0;background:#fff;color:var(--simh-accent);font-size:28px;line-height:1;cursor:pointer;box-shadow:0 6px 18px rgba(0,0,0,.2);display:flex;align-items:center;justify-content:center;padding:0;transition:all .25s}
.simh-nav:hover{background:var(--simh-accent);color:#fff;transform:scale(1.08)}
.simh-prev{left:-14px}.simh-next{right:-14px}

/* ---------- Single page ---------- */
.simh-single{margin:10px 0 30px}
.simh-gallery{position:relative;border-radius:22px;overflow:hidden;background:#0b0f19;box-shadow:0 12px 36px rgba(17,24,39,.18);margin-bottom:20px}
.simh-gtrack{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;aspect-ratio:16/8.5;outline:none}
.simh-gtrack::-webkit-scrollbar{display:none}
.simh-gslide{flex:0 0 100%;margin:0;scroll-snap-align:start;cursor:zoom-in;background:#0b0f19}
.simh-gimg{width:100%;height:100%;object-fit:cover;display:block}
.simh-gnav{position:absolute;top:calc(50% - 40px);z-index:5;width:48px;height:48px;border-radius:50%;border:0;background:rgba(255,255,255,.92);color:#111;font-size:30px;line-height:1;cursor:pointer;display:flex;align-items:center;justify-content:center;padding:0;transition:all .25s;box-shadow:0 4px 14px rgba(0,0,0,.3)}
.simh-gnav:hover{background:var(--simh-accent);color:#fff}
.simh-gprev{left:16px}.simh-gnext{right:16px}
.simh-counter{position:absolute;right:16px;top:16px;z-index:5;background:rgba(17,24,39,.75);color:#fff;font-size:13px;padding:5px 14px;border-radius:20px}
.simh-gbadge{top:16px;left:16px;font-size:12px;padding:6px 16px}
.simh-gfeat{top:16px;right:auto;left:130px;font-size:12px;padding:6px 14px}
.simh-gthumbs{display:flex;gap:8px;overflow-x:auto;padding:10px;background:#0b0f19;scrollbar-width:none}
.simh-gthumbs::-webkit-scrollbar{display:none}
.simh-gthumb{flex:0 0 auto;width:92px;height:62px;padding:0;border:2px solid transparent;border-radius:10px;overflow:hidden;cursor:pointer;opacity:.55;background:#111;transition:all .25s}
.simh-gthumb img{width:100%;height:100%;object-fit:cover;display:block}
.simh-gthumb.on,.simh-gthumb:hover{opacity:1;border-color:var(--simh-accent)}
.simh-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:10px}
.simh-chip{background:#f3f4f6;color:#374151;font-size:12px;font-weight:600;padding:6px 14px;border-radius:30px}
.simh-chip-red{background:var(--simh-accent);color:#fff}
.simh-chip-available{background:#dcfce7;color:#166534}
.simh-chip-hold{background:#fef3c7;color:#92400e}
.simh-chip-sold{background:#fee2e2;color:#991b1b}
.simh-loc-lg{font-size:15px;margin:0 0 16px}
.simh-pricebar{display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap;background:#fff;border:1px solid var(--simh-line);border-left:5px solid var(--simh-accent);border-radius:16px;padding:18px 24px;box-shadow:0 6px 22px rgba(17,24,39,.06)}
.simh-label{font-size:12px;color:var(--simh-mute);text-transform:uppercase;letter-spacing:1px}
.simh-price-xl{font-size:30px}
.simh-bar-btns{display:flex;gap:10px}
.simh-bar-btns .simh-btn{min-width:150px;padding:14px 22px;flex:none}
.simh-h{font-size:19px;font-weight:700;margin:34px 0 16px;padding-left:12px;border-left:4px solid var(--simh-accent);line-height:1.2}
.simh-tiles{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}
.simh-tile{display:flex;align-items:center;gap:12px;background:#fff;border:1px solid var(--simh-line);border-radius:14px;padding:14px 16px;transition:transform .25s,box-shadow .25s}
.simh-tile:hover{transform:translateY(-3px);box-shadow:0 8px 20px rgba(17,24,39,.08)}
.simh-tile>.simh-i{width:38px;height:38px;padding:9px;border-radius:12px;background:rgba(255,0,0,.08);color:var(--simh-accent)}
.simh-tile span{display:block;font-size:11.5px;color:var(--simh-mute)}
.simh-tile strong{font-size:14px;font-weight:600;line-height:1.3;display:block}
.simh-feats{display:flex;flex-wrap:wrap;gap:10px}
.simh-feat{display:inline-flex;align-items:center;gap:7px;background:#f7f8fa;border:1px solid var(--simh-line);padding:8px 14px;border-radius:30px;font-size:13px}
.simh-feat .simh-i{color:#16a34a;width:15px;height:15px}
.simh-desc{line-height:1.85;font-size:15px}
.simh-map{position:relative;height:380px;border-radius:18px;overflow:hidden;box-shadow:0 6px 22px rgba(17,24,39,.1)}
.simh-map iframe{width:100%;height:100%;border:0;display:block}
.simh-openmap{position:absolute;right:14px;bottom:14px;background:#fff;color:#111!important;font-size:12px;font-weight:600;padding:9px 14px;border-radius:30px;text-decoration:none!important;box-shadow:0 2px 10px rgba(0,0,0,.2)}
.simh-h-rel{margin-top:46px}
.simh-mobilebar{display:none}

/* ---------- Lightbox ---------- */
.simh-lb{position:fixed;inset:0;z-index:999999;background:rgba(0,0,0,.92);display:none;align-items:center;justify-content:center}
.simh-lb.on{display:flex;animation:simhFade .3s}
@keyframes simhFade{from{opacity:0}to{opacity:1}}
.simh-lb img{max-width:92vw;max-height:88vh;border-radius:8px;object-fit:contain}
.simh-lb button{position:absolute;background:rgba(255,255,255,.14);color:#fff;border:0;width:48px;height:48px;border-radius:50%;font-size:30px;line-height:1;cursor:pointer;padding:0}
.simh-lb button:hover{background:var(--simh-accent)}
.simh-lb-x{top:18px;right:18px}.simh-lb-p{left:18px}.simh-lb-n{right:18px}

/* ---------- Responsive ---------- */
@media(max-width:1100px){.simh-tiles{grid-template-columns:repeat(3,1fr)}.simh-filters{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:1024px){
 .simh-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .simh-slide{flex-basis:calc((100% - 24px)/2)}
 .simh-carousel[data-style="3"] .simh-slide{flex-basis:100%}
 .simh-g3{grid-template-columns:1fr}
}
@media(max-width:768px){
 .simh-grid{grid-template-columns:1fr}
 .simh-filters{grid-template-columns:1fr 1fr}
 .simh-filters input{grid-column:span 2}
 .simh-slide,.simh-carousel[data-style="3"] .simh-slide{flex-basis:88%}
 .simh-prev{left:4px}.simh-next{right:4px}
 .simh-s3{flex-direction:column}
 .simh-s3 .simh-media{flex:none;min-height:0;aspect-ratio:4/3}
 .simh-tiles{grid-template-columns:1fr 1fr}
 .simh-gtrack{aspect-ratio:4/3.2}
 .simh-gnav{width:38px;height:38px;font-size:24px;top:calc(50% - 30px)}
 .simh-gthumb{width:70px;height:50px}
 .simh-gfeat{left:auto;right:16px;top:52px}
 .simh-map{height:300px}
 .simh-bar-btns{display:none}
 .simh-single{padding-bottom:72px}
 .simh-mobilebar{display:flex;gap:10px;position:fixed;left:0;right:0;bottom:0;z-index:999;padding:10px 14px;background:#fff;box-shadow:0 -4px 16px rgba(0,0,0,.12)}
}
@media(max-width:480px){.simh-filters{grid-template-columns:1fr}.simh-filters input{grid-column:auto}}

/* ---- Style 2 & 3: photo always covers the whole area, centred ---- */
.simh-s2 .simh-media,.simh-s3 .simh-media{position:relative;overflow:hidden}
.simh-s2 .simh-media .simh-img,.simh-s3 .simh-media .simh-img{position:absolute;top:0;left:0;width:100%;height:100%;object-fit:cover;object-position:center center}

/* =========================================================
   Carousel: arrows OUTSIDE the cards  [<]  card card card  [>]
   ========================================================= */
.simh-carousel{display:flex;flex-wrap:wrap;align-items:center;gap:12px}
.simh-ctitle{flex:0 0 100%;margin-bottom:10px}
.simh-carousel .simh-track{flex:1 1 0;min-width:0;order:2}
.simh-carousel .simh-prev{order:1}
.simh-carousel .simh-next{order:3}
.simh-carousel .simh-nav{position:static;top:auto;left:auto;right:auto;flex:none;margin-bottom:26px}

/* =========================================================
   Mobile: 2 cards per row (grid, similar properties, carousel)
   ========================================================= */
@media(max-width:768px){
 .simh-grid,.simh-g3{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
 .simh-track{gap:12px;padding-bottom:20px}
 .simh-slide,.simh-carousel[data-style="3"] .simh-slide{flex-basis:calc((100% - 12px)/2)}
 .simh-carousel{gap:8px}
 .simh-carousel .simh-nav{width:32px;height:32px;font-size:22px;margin-bottom:20px;box-shadow:0 3px 10px rgba(0,0,0,.2)}

 .simh-card{border-radius:14px}
 .simh-card:hover{transform:none}
 .simh-body{padding:10px 11px 12px;gap:5px}
 .simh-price{font-size:14px}
 .simh-title{font-size:12.5px;line-height:1.35;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .simh-type{font-size:9.5px;letter-spacing:.6px}
 .simh-loc{font-size:11px;gap:4px}
 .simh-loc .simh-i{width:12px;height:12px}
 .simh-loc span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
 .simh-specs{gap:4px 8px}
 .simh-specs li{font-size:10.5px;gap:4px}
 .simh-specs .simh-i{width:12px;height:12px}
 .simh-badge{font-size:9px;padding:3px 8px;top:8px;left:8px;letter-spacing:.2px}
 .simh-badge .simh-i{width:10px;height:10px}
 .simh-b-feat{left:auto;right:8px}
 .simh-b-status{left:8px;top:32px}
 .simh-count{font-size:10px;padding:2px 7px;right:6px;bottom:6px;gap:3px}
 .simh-count .simh-i{width:11px;height:11px}
 .simh-logo{height:16px!important;max-width:44px!important;left:6px;bottom:6px;padding:1px 4px}
 .simh-actions{gap:6px;padding-top:2px}
 .simh-btn{padding:8px;font-size:11px;border-radius:9px;gap:4px}
 .simh-btn .simh-i{width:13px;height:13px}
 .simh-wa{width:34px;height:34px;border-radius:9px}
 .simh-wa .simh-i{width:16px;height:16px}

 .simh-s1 .simh-pricetag{font-size:11px;padding:5px 11px 5px 9px;bottom:10px}
 .simh-s1 .simh-specs{padding:7px 0}
 .simh-s2{border-radius:16px}
 .simh-s2 .simh-ov{transform:none;padding:12px 11px;gap:4px}
 .simh-s2 .simh-price{font-size:15px}
 .simh-s2 .simh-ovtitle{font-size:12px;line-height:1.3;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
 .simh-s2 .simh-specs{display:none}
 .simh-s3 .simh-body{padding:10px 11px 12px}
 .simh-s4{border-radius:18px}
 .simh-s4 .simh-media{border-radius:18px;aspect-ratio:4/3.4}
 .simh-s4 .simh-body{margin:-26px 8px 0;padding:11px 11px 10px;border-radius:14px}
 .simh-s4:hover .simh-body{transform:none}
 .simh-s4 .simh-foot{padding-top:8px;margin-top:2px}
 .simh-go{width:32px;height:32px}
 .simh-go .simh-i{width:14px;height:14px}
 .simh-s4 .simh-count,.simh-s4 .simh-logo{bottom:36px}
}

/* Mobile carousel: single card */
@media(max-width:768px){
 .simh-slide,.simh-carousel[data-style="3"] .simh-slide{flex-basis:100%}
}

/* Carousel: no arrows */
.simh-nav{display:none!important}
