/* Ficha de propiedad de Habittel (Nexo). Estilos de los residentes, aislados bajo .hbd. */
.hbd{--deep:#12343b;--teal:#1f5963;--sand:#d6c3a5;--cream:#f7f4ee;--ink:#1c2526;--muted:#5c6b6d;--line:rgba(18,52,59,.14);font-family:Figtree,system-ui,sans-serif;font-size:16px;line-height:1.5;color:var(--ink);background:var(--cream);padding-bottom:48px;text-align:left;}
.hbd *,.hbd *::before,.hbd *::after{box-sizing:border-box;}
.hbd [hidden]{display:none !important;}
.hbd .wrap{width:100%;max-width:1200px;margin:0 auto;padding:0 32px;}
.hbd h1,.hbd h2,.hbd h3{font-family:Sora,Figtree,sans-serif;color:var(--deep);line-height:1.25;text-transform:none;}
.hbd p{margin:0 0 10px;}
.hbd .back{display:inline-block;color:var(--deep);font-weight:600;font-size:15px;padding:22px 0 14px;text-decoration:none;}
.hbd .back:hover{color:var(--teal);}
.hbd .gone{background:rgba(201,161,58,.2);color:#6d530b;border-radius:14px;padding:13px 18px;font-weight:600;}

.hbd .dgrid{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(300px,.8fr);gap:44px;align-items:start;padding-bottom:28px;}
.hbd .dmain{min-width:0;}
.hbd .big{aspect-ratio:16/10;border-radius:24px;overflow:hidden;background:#eeeae2;}
.hbd .big img{width:100%;height:100%;object-fit:cover;display:block;}
.hbd .nophoto{display:grid;place-items:center;color:var(--muted);}
.hbd .thumbs{display:flex;gap:10px;margin-top:10px;overflow-x:auto;padding-bottom:4px;}
.hbd .th{flex:none;width:96px;aspect-ratio:4/3;border:2px solid transparent;border-radius:12px;overflow:hidden;padding:0;margin:0;cursor:pointer;background:none;}
.hbd .th.on{border-color:var(--teal);}
.hbd .th img{width:100%;height:100%;object-fit:cover;display:block;}

.hbd .dhead{margin-top:22px;}
.hbd .tag2{display:inline-block;background:var(--teal);color:#fff;font-size:12px;font-weight:600;padding:4px 11px;border-radius:999px;}
.hbd .dhead h1{font-size:30px;font-weight:700;margin:8px 0 2px;letter-spacing:-.8px;overflow-wrap:anywhere;}
.hbd .loc{color:var(--muted);font-size:14px;margin:0 0 4px;}
.hbd .dmain h2{font-size:19px;font-weight:600;margin:26px 0 8px;}
.hbd .dfe{display:flex;flex-wrap:wrap;gap:10px;margin:16px 0 0;}
.hbd .dfe span{background:rgba(214,195,165,.42);padding:8px 14px;border-radius:999px;font-size:14px;font-weight:500;color:var(--deep);}
.hbd .desc{white-space:pre-line;overflow-wrap:anywhere;}
.hbd .dts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:28px;margin:0;}
.hbd .dts div{display:flex;justify-content:space-between;gap:14px;padding:9px 0;border-bottom:1px solid var(--line);font-size:15px;}
.hbd .dts dt{color:var(--muted);font-weight:400;}
.hbd .dts dd{margin:0;font-weight:600;color:var(--deep);text-align:right;overflow-wrap:anywhere;}
.hbd .dmap{height:340px;max-width:620px;border-radius:18px;overflow:hidden;position:relative;z-index:0;background:#e7e2d8;}
.hbd .mcap{display:flex;flex-wrap:wrap;gap:6px 18px;margin-top:10px;font-size:14px;color:var(--muted);}
.hbd .mcap a{font-weight:600;color:var(--teal);}

.hbd .dside{min-width:0;border-left:1px solid var(--line);padding-left:32px;}
.hbd .dprice{font:700 34px/1.2 Sora,sans-serif;color:var(--deep);margin-bottom:18px;}
.hbd .dprice small{font:400 15px Figtree,sans-serif;color:var(--muted);}

.hbd .sbtn{display:block;width:100%;border:0;border-radius:14px;padding:15px;background:var(--teal);color:#fff;font:600 17px Figtree,sans-serif;cursor:pointer;text-align:center;}
.hbd .sbtn:hover{background:var(--deep);color:#fff;}
.hbd .gbtn{display:flex;justify-content:center;align-items:center;gap:10px;width:100%;border:1.5px solid rgba(18,52,59,.2);background:#fff;border-radius:14px;padding:13px;font:600 16px Figtree,sans-serif;color:var(--deep);cursor:pointer;text-decoration:none;}
.hbd .gbtn:hover{border-color:var(--teal);color:var(--deep);text-decoration:none;}
.hbd .sbtn:disabled,.hbd .gbtn:disabled,.hbd .dact button:disabled,.hbd .ctb button:disabled{opacity:.55;cursor:default;}
.hbd .sbtn.small,.hbd .gbtn.small{width:auto;padding:10px 18px;font-size:15px;}
.hbd .dside > .sbtn,.hbd .dside > .gbtn{margin-bottom:10px;}

.hbd .agm{display:flex;align-items:center;gap:12px;margin:22px 0;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
.hbd .agm .mark{flex:none;width:46px;height:46px;border-radius:50%;object-fit:contain;background:#fff;}
.hbd .agm i.mark{display:grid;place-items:center;background:var(--teal);color:#fff;font:700 18px Sora,sans-serif;font-style:normal;}
.hbd .agm b{display:block;color:var(--deep);}
.hbd .agm b a{color:var(--deep);}
.hbd .agm span{font-size:14px;color:var(--muted);}
.hbd .dact{display:flex;gap:10px;}
.hbd .dact button,.hbd .dact a{flex:1;display:flex;justify-content:center;align-items:center;gap:6px;border:1.5px solid rgba(18,52,59,.2);background:#fff;border-radius:12px;padding:10px;font:600 14px Figtree,sans-serif;color:var(--deep);cursor:pointer;text-decoration:none;}
.hbd .dact button:hover,.hbd .dact a:hover{border-color:var(--teal);color:var(--deep);text-decoration:none;}
.hbd .dact button.on{color:#b3402f;border-color:#b3402f;}
.hbd .dact button.on svg{fill:currentColor;}
.hbd .dcall{margin-top:0;}

/* Panel del anunciante */
.hbd .ownh{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:4px;}
.hbd .ownh .dprice{margin:0;}
.hbd .stc{font-size:12px;font-weight:600;padding:4px 11px;border-radius:999px;background:rgba(31,89,99,.12);color:var(--teal);white-space:nowrap;}
.hbd .stc.p{background:rgba(201,161,58,.2);color:#8a6a12;}
.hbd .stc.c{background:rgba(179,64,47,.12);color:#b3402f;}
.hbd .ownt{color:var(--muted);margin:0 0 16px;}
.hbd .stg{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;padding:18px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);}
.hbd .stg b{display:block;font:700 28px/1.1 Sora,sans-serif;color:var(--deep);}
.hbd .stg span{display:block;font-size:14px;font-weight:600;color:var(--deep);}
.hbd .stg em{display:block;font-style:normal;font-size:12.5px;color:var(--muted);}
.hbd .ownh3{font-size:15px;font-weight:600;margin:24px 0 10px;}
.hbd .bars{display:flex;align-items:flex-end;gap:8px;height:120px;}
.hbd .bar{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:6px;}
.hbd .bar i{display:block;width:100%;max-height:calc(100% - 24px);border-radius:8px 8px 4px 4px;background:linear-gradient(180deg,#3d8590,#1f5963);}
.hbd .bar span{font-size:12px;color:var(--muted);}
.hbd .cts{max-height:340px;overflow:auto;}
.hbd .ct{display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:10px;padding:11px 0;border-bottom:1px solid var(--line);}
.hbd .ct > div:first-child{min-width:0;}
.hbd .ct b{display:block;color:var(--deep);font-size:15px;}
.hbd .ct span:not(.stc){display:block;font-size:13px;color:var(--muted);overflow-wrap:anywhere;}
.hbd .ct a{color:var(--teal);font-weight:600;}
.hbd .ctb{display:flex;gap:6px;}
.hbd .ctb button{border:1px solid rgba(18,52,59,.16);background:#fff;border-radius:999px;padding:6px 12px;font:600 13px Figtree,sans-serif;cursor:pointer;color:var(--deep);}
.hbd .ctb button.ok{background:var(--teal);color:#fff;border-color:var(--teal);}
.hbd .oact{display:flex;flex-wrap:wrap;gap:8px;margin-top:24px;}
.hbd a.gbtn.dng,.hbd .oact .dng{color:#b3402f;}
.hbd .cnt{color:var(--muted);font-size:14px;margin:8px 0;}

/* Comentarios */
.hbd .cm{margin-top:28px;padding-top:22px;border-top:1px solid var(--line);}
.hbd .cmh{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:12px;}
.hbd .cmh h3{font-size:17px;font-weight:600;margin:0;}
.hbd .cmh span{font-size:13px;color:var(--muted);}
.hbd .cmh b{color:var(--deep);}
.hbd .cm textarea{display:block;width:100%;padding:12px 14px;border:1px solid rgba(18,52,59,.16);border-radius:16px;background:#fff;font:400 15px Figtree,sans-serif;color:var(--ink);resize:vertical;min-height:84px;outline:0;}
.hbd .cmrf textarea{min-height:60px;border-radius:14px;}
.hbd .cm textarea:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(31,89,99,.15);}
.hbd .cmf{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:8px 0 4px;}
.hbd .cmc{font-size:12px;color:var(--muted);}
.hbd .cml{margin-top:6px;}
.hbd .cml:not(.all) .cmi.extra{display:none;}
.hbd .cmi{display:flex;gap:12px;padding:14px 0;border-bottom:1px solid var(--line);}
.hbd .cav{flex:none;width:36px;height:36px;border-radius:50%;background:var(--sand);color:var(--deep);display:grid;place-items:center;font:700 14px Sora,sans-serif;}
.hbd .cav.me{background:var(--teal);color:#fff;}
.hbd .cmb{min-width:0;flex:1;}
.hbd .cmb > b{color:var(--deep);font-size:14px;}
.hbd .cmb time{font-size:12px;color:var(--muted);margin-left:8px;}
.hbd .cmb > p{margin:3px 0 0;font-size:14.5px;line-height:1.5;overflow-wrap:anywhere;}
.hbd .cmr{margin-top:8px;padding:8px 12px;border-left:3px solid var(--sand);background:rgba(214,195,165,.22);border-radius:0 12px 12px 0;font-size:14px;overflow-wrap:anywhere;}
.hbd .cmr b{display:block;font-size:12px;color:var(--teal);margin-bottom:2px;}
.hbd .cmx{border:0;background:none;color:var(--teal);font:600 13px Figtree,sans-serif;cursor:pointer;padding:6px 0;}
.hbd .cmx:hover{text-decoration:underline;}
.hbd .cmrf{margin-top:8px;}
.hbd #hbdMore{margin-top:12px;}
.hbd .er{color:#b3402f;font-size:13px;margin:5px 0 0;}
.hbd .er:empty{display:none;}

/* Propiedades similares */
.hbd .simh{font-size:22px;font-weight:600;margin:16px 0 20px;}
.hbd .pgrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px;}
.hbd a.prop{display:block;color:var(--ink);text-decoration:none;min-width:0;}
.hbd .prop .im{aspect-ratio:4/3;border-radius:18px;overflow:hidden;position:relative;background:#eeeae2;}
.hbd .prop .im img{width:100%;height:100%;object-fit:cover;display:block;}
.hbd .prop .tag{position:absolute;left:12px;top:12px;background:var(--cream);color:var(--deep);font-size:12px;font-weight:600;padding:4px 11px;border-radius:999px;}
.hbd .prop .price{font:700 21px Sora,sans-serif;margin-top:12px;color:var(--deep);}
.hbd .prop .price small{font:400 13px Figtree,sans-serif;color:var(--muted);}
.hbd .prop h3{font:600 15px Figtree,sans-serif;color:var(--ink);margin:2px 0;overflow-wrap:anywhere;}
.hbd .prop .ft{font-size:13px;color:var(--muted);}

/* Ventana de visita y aviso */
.hbd .hbd-modal{position:fixed;inset:0;z-index:10050;background:rgba(12,48,55,.55);display:flex;padding:20px;overflow:auto;}
.hbd .mbox{position:relative;margin:auto;background:#fbf8f2;border-radius:24px;padding:32px;width:100%;max-width:460px;box-shadow:0 24px 60px rgba(0,0,0,.4);}
.hbd .mbox h2{margin:0 40px 4px 0;font-size:24px;}
.hbd .mbox .sub{margin-bottom:18px;font-size:14px;color:var(--muted);}
.hbd .px{position:absolute;right:14px;top:14px;width:34px;height:34px;border:0;border-radius:50%;background:rgba(214,195,165,.5);color:var(--deep);font-size:20px;line-height:1;cursor:pointer;}
.hbd .fd{margin-bottom:16px;min-width:0;}
.hbd .fd label{display:block;font-size:14px;font-weight:600;margin:0 0 6px;color:var(--deep);}
.hbd .fd input,.hbd .fd textarea,.hbd .fd select{display:block;width:100%;padding:13px 16px;border:1.5px solid rgba(18,52,59,.2);border-radius:14px;background:#fff;font:400 16px Figtree,sans-serif;color:var(--ink);outline:0;}
.hbd .fd input:focus,.hbd .fd textarea:focus,.hbd .fd select:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(31,89,99,.15);}
.hbd .fd.bad input,.hbd .fd.bad textarea,.hbd .fd.bad select{border-color:#b3402f;}
.hbd .two{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.hbd .ferr{margin:0 0 12px;}
.hbd .hbd-toast{position:fixed;left:50%;bottom:28px;transform:translate(-50%,20px);background:var(--deep);color:#fff;padding:13px 22px;border-radius:14px;font-weight:500;box-shadow:0 12px 30px rgba(0,0,0,.3);opacity:0;visibility:hidden;pointer-events:none;transition:.25s;z-index:10060;width:max-content;max-width:90vw;text-align:center;}
.hbd .hbd-toast.show{opacity:1;visibility:visible;transform:translate(-50%,0);}
.hbd :focus-visible{outline:3px solid var(--teal);outline-offset:2px;}

@media (max-width:1000px){
  .hbd .dgrid{grid-template-columns:minmax(0,1fr);gap:28px;}
  .hbd .dside{border-left:0;padding-left:0;}
  .hbd .pgrid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width:600px){
  .hbd .wrap{padding:0 16px;}
  .hbd .dhead h1{font-size:24px;}
  .hbd .dprice{font-size:28px;}
  .hbd .dts,.hbd .two{grid-template-columns:minmax(0,1fr);}
  .hbd .two{gap:0;}
  .hbd .dmap{height:260px;}
  .hbd .pgrid{grid-template-columns:minmax(0,1fr);}
  .hbd .mbox{padding:24px 18px;}
}
@media (prefers-reduced-motion:reduce){.hbd .hbd-toast{transition:none;}}

/* Columnas: comentarios debajo del contenido; la derecha acompaña al bajar */
.hbd .dgrid{grid-template-areas:"main side" "talk side";grid-template-rows:auto 1fr;row-gap:0;}
.hbd .dmain{grid-area:main;}
.hbd .dside{grid-area:side;}
.hbd .dgrid > .cm{grid-area:talk;min-width:0;}
@media (min-width:1001px) and (min-height:680px){
  .hbd .dside:not(.own){position:sticky;top:140px;align-self:start;}
}

/* Contacto: WhatsApp principal, agendar segundo, el resto pequeño */
.hbd a.sbtn{text-decoration:none;}
.hbd a.sbtn.wa{display:flex;justify-content:center;align-items:center;gap:10px;background:#12703f;color:#fff;}
.hbd a.sbtn.wa:hover{background:#0d5a32;color:#fff;}
.hbd .dsec button,.hbd .dsec a{border-color:transparent;background:none;color:var(--teal);padding:6px;}

/* Galería */
.hbd .bigw{position:relative;}
.hbd button.big{display:block;width:100%;border:0;padding:0;margin:0;cursor:zoom-in;touch-action:pan-y;}
.hbd .gcount{position:absolute;right:14px;bottom:14px;background:rgba(12,48,55,.82);color:#fff;font:600 13px Figtree,sans-serif;padding:6px 12px;border-radius:999px;pointer-events:none;}
.hbd .gnav{position:absolute;top:50%;transform:translateY(-50%);width:42px;height:42px;border:0;border-radius:50%;background:rgba(251,248,242,.94);color:var(--deep);font:400 28px/1 Figtree,sans-serif;padding:0 0 4px;cursor:pointer;box-shadow:0 4px 12px rgba(0,0,0,.2);}
.hbd .gnav.prev{left:14px;}
.hbd .gnav.next{right:14px;}
.hbd .hbd-lb{position:fixed;inset:0;z-index:10070;background:rgba(6,20,24,.96);display:flex;align-items:center;justify-content:center;padding:60px 70px;touch-action:pan-y;}
.hbd .hbd-lb img{max-width:100%;max-height:100%;object-fit:contain;}
.hbd .lbn{position:absolute;top:20px;left:20px;color:#fff;font-weight:600;}
.hbd .lbx{position:absolute;top:12px;right:12px;width:44px;height:44px;border:0;border-radius:50%;background:rgba(255,255,255,.14);color:#fff;font-size:26px;line-height:1;cursor:pointer;}
.hbd .hbd-lb :focus-visible{outline-color:#fff;}

/* Barra fija en celular */
.hbd .hbd-bar{display:none;}
@media (max-width:1000px){
  .hbd .dgrid{grid-template-areas:"main" "side" "talk";grid-template-rows:none;row-gap:28px;}
  .hbd .dgrid > .cm{margin-top:0;}
  .hbd .hbd-bar{display:flex;align-items:center;gap:10px;position:fixed;left:0;right:0;bottom:0;z-index:800;background:#fbf8f2;border-top:1px solid var(--line);box-shadow:0 -8px 24px rgba(18,52,59,.14);padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));}
  .hbd .bprice{flex:1;min-width:0;line-height:1.2;}
  .hbd .bprice b{display:block;font:700 19px Sora,sans-serif;color:var(--deep);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;}
  .hbd .bprice span{font-size:12px;color:var(--muted);}
  .hbd .hbd-bar .sbtn,.hbd .hbd-bar .gbtn{flex:none;width:auto;margin:0;padding:11px 14px;font-size:14px;border-radius:12px;white-space:nowrap;}
  body.hbd-has-bar{padding-bottom:78px;}
  body.hbd-has-bar .omc-bell{bottom:calc(90px + env(safe-area-inset-bottom,0px));}
  .hbd .hbd-toast{bottom:96px;}
}
@media (max-width:600px){
  .hbd .gnav{width:36px;height:36px;font-size:24px;}
  .hbd .hbd-lb{padding:60px 8px;}
}
@media (max-width:420px){
  .hbd .hbd-bar{flex-wrap:wrap;}
  .hbd .bprice{flex:1 1 100%;display:flex;align-items:baseline;gap:8px;}
  .hbd .hbd-bar .sbtn,.hbd .hbd-bar .gbtn{flex:1;}
  body.hbd-has-bar{padding-bottom:116px;}
  body.hbd-has-bar .omc-bell{bottom:calc(128px + env(safe-area-inset-bottom,0px));}
  .hbd .hbd-toast{bottom:134px;}
}
