:root{color-scheme:light;--ink:#2b2537;--muted:#5e5278;--blue:#49405d;--accent:#b4acc6;--paper:#f6f5f9;--line:#dedae6;font:90%/1.5 system-ui,sans-serif}
*{box-sizing:border-box}
body{margin:0;background:var(--paper);color:var(--ink)}
header{background:#272232;color:white;border-bottom:4px solid #80719f}
header a{color:white;text-decoration:none}
.shell{width:min(1360px,94vw);margin:auto}
.mast{display:flex;gap:1.5rem;min-height:4.3rem;align-items:center;flex-wrap:wrap;padding:.6rem 0}
.brand{font-weight:780;letter-spacing:-.025em;font-size:1.2rem}
nav{display:flex;gap:1.15rem;flex-wrap:wrap;align-items:center}
.mast form{margin-left:auto}
main{padding:2rem 0 4rem}
a{color:var(--blue);text-underline-offset:.2em}
a:hover{text-decoration-thickness:2px}
h1,h2,h3,p{margin:0 0 .75rem}
h1{font-size:clamp(2rem,3.6vw,3rem);letter-spacing:-.045em;line-height:1.08}
h2{font-size:1.15rem}
h3{font-size:1rem}
.heading,.sectionhead{display:flex;justify-content:space-between;gap:1rem;align-items:center;flex-wrap:wrap}
.heading{margin-bottom:1.4rem}
.heading p,.muted,.sectionhead span{color:var(--muted)}
.card{padding:1.15rem;background:#fff;border:1px solid var(--line);border-radius:.75rem;margin-bottom:1rem}
.metrics,.charts,.gallery{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,170px),1fr));gap:.75rem}
.charts{grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr))}
.metric{display:grid;gap:.2rem}
.metric strong{font-size:1.9rem;line-height:1;color:var(--blue)}
.metric span,small{color:var(--muted)}
button,.button{display:inline-block;background:var(--blue);color:white;border:0;padding:.6rem .9rem;border-radius:.4rem;font:inherit;text-decoration:none;cursor:pointer;font-weight:650}
button:hover,.button:hover{background:#342d42}
.quiet{background:var(--accent);color:#2c2638}
.quiet:hover{background:#9e93b6}
label{display:block;font-weight:600}
input,select,textarea{display:block;width:100%;padding:.45rem;border:1px solid #b0a7c3;border-radius:.35rem;background:#fff;color:var(--ink);font:inherit}
input[type=checkbox]{width:auto;display:inline;margin-right:.5rem}
textarea{min-height:5rem;max-height:16rem}
.field-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:1rem;margin:.9rem 0}
.editor{max-width:1020px}
details{margin:.6rem 0}
summary{cursor:pointer;font-weight:670}
.editor details{padding:.6rem;border-bottom:1px solid var(--line)}
.login{max-width:440px;margin:3rem auto}
.errorlist{color:#9a2321;font-weight:600}
.table-wrap{overflow-x:auto}
table{border-collapse:collapse;width:100%;text-align:left}
td,th{padding:.65rem;border-bottom:1px solid var(--line);min-width:105px}
th{font-size:.86rem;background:#f3f1f6}
td small{display:block;margin-top:.25rem}
.bar{margin:.6rem 0}
.bar span{display:flex;justify-content:space-between}
progress{width:100%;height:.7rem;accent-color:#5e5278}
.info{display:grid;grid-template-columns:minmax(130px,1fr) minmax(0,3fr);gap:.4rem .8rem}
dt{font-weight:650}dd{margin:0;overflow-wrap:anywhere;white-space:pre-wrap}
.sections{padding-top:.65rem;border-top:1px solid var(--line)}
figure{margin:0}
figure img,video{width:100%;height:150px;object-fit:contain;background:#f4f3f6;border-radius:.35rem}
.timeline{border-left:3px solid #80719f;margin:.9rem 0;padding:.2rem .8rem}
.map-widget{margin:.8rem 0}
.map-canvas:not([hidden]){position:relative;min-height:280px;background:#edebf2;border-radius:.5rem;overflow:hidden}
.plot{height:290px;position:relative;background-color:#f3f1f6;background-image:linear-gradient(#9185ac2b 1px,transparent 1px),linear-gradient(90deg,#9185ac2b 1px,transparent 1px);background-size:10% 20%}
.plot a,.plot button{position:absolute;transform:translate(-50%,-50%);background:#49405d;color:white;border-radius:50%;min-width:1.95rem;text-align:center;padding:.2rem .4rem;font-size:.85rem}
.plot-links{padding:1rem}
.map-note{padding:.65rem .8rem;margin:0}
.search{display:flex;gap:.6rem;align-items:center;flex-wrap:wrap;margin-bottom:1rem}.search input{max-width:280px}
@media(max-width:640px){.mast{gap:.6rem}.mast nav{gap:.75rem;order:3;width:100%}main{padding-top:1rem}.card{padding:.85rem}.info{grid-template-columns:minmax(105px,1fr) minmax(0,2fr)}}

.heading .button,.login button{background:#a399ba;color:#2b2537}.heading .button:hover,.login button:hover{background:#9286ac}
.map-widget{width:min(100%,540px);margin-inline:auto}
.map-canvas:not([hidden]){width:100%;height:auto;aspect-ratio:1;min-height:0}
.plot{height:calc(100% - 3.3rem);overflow:hidden;background-position:center}
.plot .location-pin{width:28px;height:28px;min-width:0;padding:0;border:2px solid white;border-radius:50% 50% 50% 0;transform:translate(-50%,-100%) rotate(-45deg);box-shadow:0 1px 4px #37304680}
.location-pin::before{content:"";position:absolute;inset:7px;background:#fff;border-radius:50%}
.coordinate-zoom{position:absolute;right:12px;bottom:12px;display:grid;gap:2px}
.coordinate-zoom button{height:36px;width:36px;padding:0;font-size:1.375rem}
.coordinate-zoom button:disabled{opacity:.55}
.map-count{display:grid;place-items:center;min-width:32px;height:32px;border-radius:50%;background:#49405d;color:white;border:2px solid white}
.plot-links:not(:empty){position:absolute;bottom:0;left:0;max-width:75%;max-height:40%;overflow:auto;background:white}


#ubicacion .map-widget, .editor ~ .map-widget {width:100%}
#ubicacion .map-canvas:not([hidden]), .editor ~ .map-widget .map-canvas:not([hidden]) {aspect-ratio:2.4;max-height:420px}
.portfolio-grid,.property-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,305px),1fr));gap:1rem}
.portfolio,.cartera-search{margin-bottom:1.4rem}
.listing{display:flex;flex-direction:column;margin:0;border-top:3px solid var(--blue)}
.listing h3{font-size:1.3rem;margin:.6rem 0 .2rem}
.listing h3 a{text-decoration:none}.listing h3 a:hover{text-decoration:underline}
.listing-status{color:var(--blue);font-weight:650}.listing footer{margin-top:auto;padding-top:.7rem;border-top:1px solid var(--line);display:flex;justify-content:space-between}
.quick-search{display:grid;grid-template-columns:1fr auto;gap:.4rem .65rem;max-width:44rem}
.quick-search label{grid-column:1/-1}
.capture{max-width:1120px;margin-inline:auto}
.capture .capture-block{padding:1rem 0;border-bottom:1px solid var(--line)}
.capture .capture-block>summary,.capture h2{font-size:1.18rem;color:var(--blue)}
.capture .field-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,218px),1fr))}
.capture .owner-new{padding:0;border:none}
.capture button[type=submit],.capture>button{margin-top:1rem}
.wide-map .map-widget,.capture .map-widget{width:100%}
.wide-map .map-canvas:not([hidden]),.capture .map-canvas:not([hidden]){aspect-ratio:2.4;max-height:420px}
.gallery figure:first-child{grid-column:span 2}
@media(max-width:640px){.gallery figure:first-child{grid-column:auto}.portfolio-grid,.property-summary{grid-template-columns:1fr}.capture .field-grid{grid-template-columns:1fr}}
.map-results{display:grid;grid-template-columns:minmax(0,1.65fr) minmax(350px,1fr);gap:1rem;align-items:start}
.map-results>.card{min-width:0}
.map-results .map-widget{width:100%}
.map-results .map-canvas:not([hidden]){height:clamp(320px,42vw,520px);max-height:none;aspect-ratio:auto}
.property-list{list-style:none;margin:0;padding:0;max-height:580px;overflow:auto}
.property-row{display:grid;grid-template-columns:96px minmax(0,1fr);gap:1rem;padding:.9rem 0;border-top:1px solid var(--line)}
.thumb{width:96px;height:72px;object-fit:cover;border-radius:.35rem;background:var(--paper)}
.missing{display:grid;place-items:center;color:var(--muted);font-size:.84rem}
.row-data{min-width:0;overflow-wrap:anywhere}.row-data h3{font-size:1.08rem;margin:.2rem 0}
.row-data p,.row-data details{margin:.3rem 0}.row-data strong{display:block}.row-data footer{display:flex;gap:.7rem;justify-content:space-between;flex-wrap:wrap}
.editor,.capture{max-width:1120px;margin-inline:auto}
.editor .field-grid,.filters .field-grid{grid-template-columns:repeat(3,minmax(0,1fr));align-items:start}
.field-grid>*{min-width:0}
input:not([type=checkbox]):not([type=radio]):not([type=hidden]),select:not([multiple]):not([size]){height:2.75rem}
textarea{height:5.5rem;min-height:5.5rem;resize:vertical}
.field-grid>div:has(textarea),.field-grid>div:has(select[multiple]){grid-column:span 2}
@media(max-width:950px){.map-results{grid-template-columns:minmax(0,1fr)}.map-results .portfolio{order:-1}.property-list{max-height:none}.editor .field-grid,.filters .field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.editor .field-grid,.filters .field-grid{grid-template-columns:minmax(0,1fr)}.field-grid>div:has(textarea),.field-grid>div:has(select[multiple]){grid-column:auto}.map-results .map-canvas:not([hidden]){height:230px}.property-row{grid-template-columns:76px minmax(0,1fr);gap:.7rem}.thumb{width:76px;height:57px}}
.property-sheet,.capture{--section-tint:#f2f0f5;--section-edge:#a196b8;--section-ink:#373046}
.property-sheet>.card{padding:clamp(1rem,2vw,1.6rem);margin-block:1.15rem}
.property-sheet h2,.capture-block>h2{color:var(--section-ink);font-size:1.28rem;line-height:1.35}
.property-sheet #tecnica>details,.capture .capture-block{border:1px solid #dcd8e5;border-radius:.55rem;padding:0;margin:.85rem 0;overflow:hidden}
.property-sheet #tecnica>details>summary,.capture .capture-block>summary,.capture .capture-block>h2{padding:.7rem 1rem;background:var(--section-tint);border-inline-start:4px solid var(--section-edge);color:var(--section-ink);font-size:1.03rem;line-height:1.45;margin:0}
.property-sheet #tecnica>details:nth-of-type(even),.capture .capture-block:nth-of-type(even){--section-tint:#f2f0f5;--section-edge:#9a91ad}
.property-sheet #tecnica>details[open]>summary,.capture details.capture-block[open]>summary{border-bottom:1px solid #dcd8e5}
.property-sheet #tecnica>details>.info{grid-template-columns:minmax(12rem,18rem) minmax(0,1fr);gap:0;margin:.25rem 1rem .65rem}
.property-sheet #tecnica .info>dt,.property-sheet #tecnica .info>dd{padding:.38rem .4rem;border-bottom:1px solid #e9e6ee}
.property-sheet #tecnica .info>dt{font-weight:600;color:#443c57}
.property-sheet #tecnica>details>p,.property-sheet #tecnica>details>a{display:block;margin:.8rem 1rem}
.detail-toggle{border:1px solid #c4bed2;background:white;color:var(--section-ink);padding:.42rem .8rem}.detail-toggle:hover{background:#edebf2}
.capture-block>.field-grid,.capture-block>.client-choice,.capture-block>.owner-new,.capture-block>.map-actions,.capture-block>.map-widget,.capture-block>#change-reason,.capture-block>div:has(>label[for=id_cover_photo]),.photo-block>p,.photo-block>img{margin:1rem}
.capture-block>.map-widget{width:calc(100% - 2rem)}
.client-choice{display:flex;gap:.6rem;flex-wrap:wrap;padding:0;border:0}.client-choice legend{font-size:.94rem;margin-bottom:.45rem}.client-choice label{display:inline-flex;align-items:center;gap:.4rem;padding:.55rem .8rem;border:1px solid #c5bed3;border-radius:.45rem;font-weight:550}.client-choice label:has(:checked){background:#eeedf2;border-color:#8a7da6}.client-choice input{width:auto;margin:0;accent-color:var(--blue)}
.photo-block input[type=file]{height:auto;min-height:2.75rem}.photo-block img{max-width:min(260px,90%);height:140px;object-fit:contain;border-radius:.35rem}
@media(max-width:640px){.property-sheet #tecnica>details>.info{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);margin:.25rem .55rem .55rem}.property-sheet #tecnica .info>dt{overflow-wrap:anywhere}.client-choice{display:grid}}
:root{--ink:#302b38;--muted:#696173;--blue:#514361;--accent:#b7afc8;--paper:#f7f5f9;--line:#ded9e3}
.workspace{display:grid;grid-template-columns:218px minmax(0,1fr);min-height:100vh}
.rail{position:sticky;top:0;height:100vh;background:#312a43;color:#edebf1;padding:2.2rem 1.15rem;display:flex;flex-direction:column;border-right:3px solid #9c91b4}
.rail-brand{font:normal 1.95rem/1.04 Georgia,serif;letter-spacing:-.045em;color:#eeecf2;text-decoration:none;margin:0 .6rem 2.3rem}
.rail-links{display:flex;flex:1;flex-direction:column}
.rail nav{display:grid;gap:.4rem}.rail nav a,.rail form button{color:#efeef3;text-decoration:none;padding:.65rem .85rem;font-size:.96rem;font-weight:550;border-radius:.35rem}
.rail nav a[aria-current=page],.rail nav a:hover{background:#504360;box-shadow:inset 3px 0 #aaa0bf}
.rail form{margin-top:auto;border-top:1px solid #5b5270;padding-top:.7rem}.rail form button{background:transparent}.rail-toggle{display:none}
.workspace>main{width:min(100%,1480px);min-width:0;padding:clamp(.85rem,2.5vw,2.5rem)}
.workspace h1{font:normal clamp(1.9rem,3.24vw,3.2rem)/1.08 Georgia,serif;color:#312a43;letter-spacing:-.04em}
.go-back{display:inline-flex;gap:.45rem;align-items:center;margin-bottom:1rem;font-weight:650;text-decoration:none}.go-back span{font-size:1.4rem}.go-back:hover{text-decoration:underline}
.heading .button,.login button{background:#312a43;color:#fff}.heading .button:hover,.login button:hover{background:#41334f}
.property-sheet,.capture{--section-ink:#2f293c;--section-tint:#eeecf2;--section-edge:#9188a5}
.map-results{grid-template-columns:minmax(0,1.35fr) minmax(340px,1fr)}
@media(max-width:1100px){.workspace{grid-template-columns:180px minmax(0,1fr)}.rail{padding-inline:.7rem}.map-results{grid-template-columns:minmax(0,1fr)}}
@media(max-width:760px){.workspace{display:block}.rail{position:relative;width:auto;height:auto;padding:.7rem 1rem;border:0;display:grid;grid-template-columns:1fr auto;align-items:center}.rail-brand{font-size:1.25rem;margin:0}.rail-brand br{display:none}.rail-brand br:after{content:" "}.rail-toggle{display:block;background:#504360}.rail-links{grid-column:1/-1;display:none;padding-top:.6rem}.rail-toggle[aria-expanded=true]+.rail-links{display:flex}.rail form{margin-top:.5rem}.workspace>main{padding:1rem}.map-results{display:flex;flex-direction:column}.map-results>.card{width:100%}}
@media(max-width:760px){
 .rail-toggle[aria-expanded=true]+.rail-links{position:absolute;left:0;top:100%;z-index:20;width:min(260px,82vw);background:#312a43;padding:1rem;box-shadow:5px 9px 22px #27223128;border-radius:0 0 .6rem 0}
}

/* Identidad de la cartera y navegación lateral compacta */
.workspace>.shell{align-self:start;margin:0 auto}
.rail-links nav{align-items:stretch}.rail-links nav a{display:flex;align-items:center;min-height:44px}
.owner-list{padding:0;list-style:none;margin:0}.owner-list li+li{border-top:1px solid var(--line)}
.owner-list a{display:grid;grid-template-columns:4.8rem 1fr auto;align-items:center;gap:1rem;padding:.8rem 0;text-decoration:none}
.owner-list img,.owner-list .no-cover{width:4.8rem;height:3.8rem;object-fit:cover;border-radius:.35rem;background:#edebf1}
.owner-list small,.owner-list strong{display:block}.owner-list a:hover strong{text-decoration:underline}
.owner-list .listing-status{font-size:.8rem}.cartera-search,.metrics .metric{border-color:#ded9e3}
.metrics .metric{border-radius:.4rem;border-top:3px solid #968aaf}
@media(max-width:760px){
.workspace{display:grid;grid-template-columns:48px minmax(0,1fr)}
.workspace>.rail{position:sticky;top:0;display:flex;align-items:center;height:100dvh;padding:.65rem 0;z-index:30}
.rail-brand{display:none}.rail-toggle{display:grid;place-items:center;gap:.1rem;padding:.3rem;background:transparent;color:#fff;font-size:.69rem;width:46px;min-height:48px}.rail-toggle span:first-child{font-size:1.35rem}
.rail-toggle[aria-expanded=true]+.rail-links{position:absolute;inset:0 auto 0 100%;width:min(240px,calc(100vw - 48px));padding:1rem .65rem;height:100dvh;border-radius:0;overflow-y:auto}
.rail-links form{margin-top:auto}.workspace>main{padding:.8rem}.owner-list a{grid-template-columns:3.8rem 1fr;gap:.65rem}.owner-list img,.owner-list .no-cover{width:3.8rem}.owner-list .listing-status{grid-column:2}
}
@media(max-width:760px){
.metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem;margin-bottom:.85rem}
.metrics .metric{padding:.48rem .65rem;margin:0;gap:.15rem}
.metrics .metric strong{font-size:1.3rem}.metrics .metric span{font-size:.8rem}
.property-list{max-height:65dvh;overflow-y:auto}
}

/* Espacio independiente entre el texto de la fila y la barra de desplazamiento. */
.property-list { scrollbar-gutter: stable; padding-inline-end: max(14px, 1rem); }
.row-data .sectionhead > *, .row-data footer > * { min-width: 0; max-width: 100%; overflow-wrap: anywhere; }
.row-data .info { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); }
.gallery [data-foto] { display: block; cursor: zoom-in; }
#visor-fotos { box-sizing: border-box; width: min(94vw, 1100px); max-width: 96vw; max-height: 94dvh; border: 0; padding: 1rem; border-radius: .75rem; background: #312a43; color: white; }
#visor-fotos::backdrop { background: rgb(21 17 29 / 86%); }
body:has(#visor-fotos[open]) { overflow: hidden; }
.visor-barra, .visor-controles { display: flex; align-items: center; gap: 1rem; }
.visor-barra { justify-content: space-between; }
#visor-pie { overflow-wrap: anywhere; }
.visor-lienzo { margin-block: .6rem; display: grid; place-items: center; }
.visor-lienzo img { display: block; width: 100%; height: min(65dvh, 760px); object-fit: contain; }
.visor-controles { justify-content: center; }
.visor-controles[hidden] { display: none; }
#visor-fotos button { min-width: 44px; min-height: 44px; background: #514361; color: white; font-size: 1.35rem; }
#visor-fotos button:focus-visible { outline: 2px solid white; outline-offset: 2px; }

.operation-line { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.operation-line small { margin-inline-end: .15rem; }
.operation-line .operation-tag { display: inline-block; border-radius: .35rem; padding: .18rem .58rem; font-size: .85rem; font-weight: 700; line-height: 1.35; }
.operation-line .for-sale { background: #514361; color: #fff; }
.operation-line .for-rent { background: #f8e4b7; color: #57370c; }

:root {
  --gama-cartera: linear-gradient(100deg, #312a43 0%, #322b44 25%, #352a3f 50%, #3f2832 75%, #482321 100%);
}
.workspace .heading {
  padding: .95rem 1.2rem;
  border-radius: .6rem;
  background: var(--gama-cartera);
  color: white;
}
.workspace .heading h1, .workspace .heading p { color: #fff; }
.workspace .heading .button { background: #faf0ee; color: #482321; }
.workspace .heading .button:hover { background: #efdad5; }
.rail { border-right-color: #9c736e; }
.metrics .metric { border-top-color: #a78b93; }
.operation-line .for-rent { background: #f3ddd7; color: #482321; }
.rail nav a[aria-current=page] { background: #493447; box-shadow: inset 3px 0 #d1a198; }


/* CARTERA_HERO_V1 */

.property-sheet .property-hero {
    padding: 0;
    overflow: hidden;
    margin-top: 0;
}

.hero-image {
    display: grid;
    place-items: center;
    background: #272232;
    cursor: zoom-in;
}

.hero-image picture {
    display: block;
    width: 100%;
}

.hero-image img {
    display: block;
    width: 100%;
    height: clamp(210px, 31.5vw, 465px);
    object-fit: contain;
}

.hero-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: .6rem;
    padding: .8rem 1rem;
    background: var(--gama-cartera);
    color: white;
}

.hero-toolbar a {
    color: white;
    padding: .55rem;
}

.hero-empty {
    min-height: 180px;
    display: grid;
    place-content: center;
    text-align: center;
    gap: .7rem;
    padding: 1rem;
    background: var(--paper);
}

.property-sheet .gallery {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 145px), 1fr));
}

.property-sheet .gallery figure {
    min-width: 0;
    overflow-wrap: anywhere;
}

.property-sheet .gallery figure:first-child {
    grid-column: auto;
}

.property-sheet .gallery img {
    width: 100%;
    height: auto;
    aspect-ratio: 4/3;
    object-fit: contain;
}

.property-sheet .heading > * {
    min-width: 0;
    overflow-wrap: anywhere;
}

button, .button {
    min-height: 44px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

@media (max-width:760px) {

    .property-sheet .heading {
        padding: .85rem;
    }

    .property-sheet .heading .button {
        width: 100%;
    }

    .hero-image img {
        height: clamp(150px, 48.75vw, 300px);
    }

    .property-sheet .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .property-sheet .sections {
        gap: .5rem .8rem;
    }

    .property-sheet .sections a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }

    input, select, textarea {
        font-size: 16px;
        min-width: 0;
    }

    #ubicacion .map-canvas:not([hidden]) {
        aspect-ratio: auto;
        height: 290px;
    }

    #visor-fotos {
        padding: .7rem;
        max-width: 96vw;
    }

    .visor-lienzo img {
        height: min(65dvh, 650px);
    }

    .sectionhead > * {
        min-width: 0;
        max-width: 100%;
        overflow-wrap: anywhere;
    }
}


/* CARTERA_GALLERY_V2 */

.property-sheet #fotos .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, 120px);
    justify-content: start;
    align-items: start;
    gap: 12px;
    margin-top: 1rem;
}

.property-sheet #fotos .gallery figure,
.property-sheet #fotos .gallery figure:first-child {
    grid-column: auto;
    width: 100%;
    min-width: 0;
    margin: 0;
}

.property-sheet #fotos .gallery figure > a {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 7px;
    overflow: hidden;
    background: #eeecf2;
    border: 1px solid var(--line);
}

.property-sheet #fotos .gallery img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    border-radius: 0;
    transition: opacity .15s ease;
}

.property-sheet #fotos .gallery a:hover img {
    opacity: .85;
}

.property-sheet #fotos figcaption {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    font-size: .78rem;
    line-height: 1.35;
    margin-top: 5px;
    color: var(--muted);
}

.property-sheet #fotos .gallery .gallery-video {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: #312a43;
    color: white;
    font-size: .72rem;
    text-align: center;
    text-decoration: none;
}

.gallery-play {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid #ffffff80;
    border-radius: 50%;
    font-size: 15px;
}

.gallery-heading h2 {
    margin: 0;
}

.gallery-heading {
    margin-bottom: .8rem;
}

.gallery-add {
    min-height: 44px;
    white-space: nowrap;
}

.property-sheet #fotos .gallery a:focus-visible {
    outline: 3px solid #9188a5;
    outline-offset: 3px;
}

@media (max-width:760px) {

    .property-sheet #fotos .gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .property-sheet #fotos .gallery figure > a {
        aspect-ratio: 1 / 1;
    }

    .property-sheet #fotos figcaption {
        font-size: .75rem;
    }

    .gallery-heading {
        gap: .7rem;
    }

    .gallery-heading h2 {
        font-size: 1.1rem;
    }

    .gallery-play {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }
}
