.tp-root{--tp-yellow:#ffd521;--tp-ink:#171717;--tp-line:#e8e8e8;color:var(--tp-ink);font-family:inherit;max-width:1440px;margin:0 auto}.tp-root *{box-sizing:border-box}.tp-toolbar{display:flex;align-items:end;justify-content:space-between;gap:24px;margin:0 0 28px}.tp-toolbar h2{font-size:clamp(30px,3vw,48px);letter-spacing:-.04em;line-height:1.08;margin:5px 0 0}.tp-eyebrow{font-size:11px;font-weight:750;letter-spacing:.16em;color:#888}.tp-toolbar label{font-size:13px;font-weight:600;display:flex;gap:12px;align-items:center}.tp-floor{padding:11px 35px 11px 14px;border:1px solid #ddd;border-radius:4px;background:#fff;color:#171717;font:inherit;min-width:135px}.tp-layout{display:grid;grid-template-columns:minmax(390px,.95fr) minmax(0,1.25fr);gap:22px;align-items:stretch}.tp-table-panel,.tp-plan-panel{border:1px solid var(--tp-line);background:#fff;border-radius:8px;overflow:hidden}.tp-table-wrap{overflow:auto}.tp-table{width:100%;border-collapse:collapse;text-align:left;white-space:nowrap;font-size:14px}.tp-table th{font-size:11px;letter-spacing:.07em;text-transform:uppercase;color:#777;font-weight:700;background:#fafafa;padding:18px 12px;border-bottom:1px solid var(--tp-line)}.tp-table td{padding:16px 12px;border-bottom:1px solid var(--tp-line);transition:background .2s}.tp-table td:first-child,.tp-table th:first-child{padding-left:22px}.tp-table td:last-child,.tp-table th:last-child{padding-right:22px}.tp-unit-row{cursor:pointer;outline-offset:-2px}.tp-unit-row:hover td{background:#fff9db}.tp-unit-row.is-active td{background:var(--tp-yellow)}.tp-unit-row:focus-visible{outline:2px solid #171717}.tp-table td small{display:block;color:#777;font-size:11px;margin-top:3px}.tp-unit-row.is-active td small{color:#514600}.tp-arrow{font-size:18px}.tp-hint{font-size:12px;color:#777;margin:18px 22px 22px;line-height:1.6}.tp-plan-panel{display:flex;flex-direction:column;min-width:0}.tp-plan-top{display:flex;justify-content:space-between;align-items:center;gap:15px;padding:18px 22px;border-bottom:1px solid var(--tp-line)}.tp-plan-title{display:block;font-size:20px;letter-spacing:-.025em;margin-top:3px}.tp-actions{display:flex;gap:8px;align-items:center}.tp-actions button{background:#fff;color:#171717;border:1px solid #ddd;border-radius:4px;padding:9px 12px;cursor:pointer;font:inherit;font-size:12px;font-weight:600}.tp-actions button:hover{background:var(--tp-yellow);border-color:var(--tp-yellow)}.tp-stage{position:relative;overflow:hidden;background:#f7f7f7;height:490px;cursor:grab;touch-action:none;outline:none}.tp-stage.is-dragging{cursor:grabbing}.tp-paper{position:absolute;left:0;top:0;transform-origin:0 0;will-change:transform;background:white;box-shadow:0 6px 35px #00000012}.tp-canvas{display:block}.tp-focus{position:absolute;border:2px solid #ffd521;box-shadow:0 0 0 9999px #00000008;pointer-events:none;opacity:0;transition:opacity .25s}.tp-loading{position:absolute;inset:0;display:grid;place-items:center;background:#f7f7f7;z-index:2;color:#777;font-size:13px}.tp-plan-bottom{padding:15px 22px;display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:12px;color:#777;border-top:1px solid var(--tp-line)}.tp-pdf-link{color:#171717;text-decoration:underline;text-underline-offset:3px}.tp-root.tp-expanded .tp-stage{height:min(75vh,850px)}@media(max-width:980px){.tp-layout{grid-template-columns:1fr}.tp-stage{height:430px}}@media(max-width:560px){.tp-toolbar{align-items:start;flex-direction:column;gap:16px}.tp-table{font-size:12px}.tp-table td{padding:12px 8px}.tp-table th{padding:14px 8px}.tp-table td:first-child,.tp-table th:first-child{padding-left:12px}.tp-table td:last-child,.tp-table th:last-child{padding-right:12px}.tp-stage{height:360px}.tp-plan-top,.tp-plan-bottom{padding:14px}.tp-plan-title{font-size:17px}.tp-actions button{font-size:11px;padding:8px}.tp-hint{margin:14px}}

/* v1.0.3: branded floor dropdown, compact two-panel mobile layout */
.tp-toolbar .tp-floor-label{gap:12px;font-weight:700}
.tp-select-wrap{position:relative;display:inline-flex;align-items:center}
.tp-select-wrap:after{content:"";position:absolute;right:16px;top:50%;width:8px;height:8px;border-right:2px solid #171717;border-bottom:2px solid #171717;transform:translateY(-70%) rotate(45deg);pointer-events:none}
.tp-floor{appearance:none;-webkit-appearance:none;background:#fff;border:1px solid #171717;border-radius:7px;padding:13px 44px 13px 16px;min-width:152px;font-size:13px;font-weight:700;box-shadow:0 2px 0 #17171714;cursor:pointer}
.tp-floor:focus-visible{outline:3px solid #ffd521;outline-offset:3px}
.tp-focus{border:2px solid var(--tp-yellow);box-shadow:none}
.tp-stage{cursor:crosshair}
.tp-stage.is-dragging{cursor:grabbing}
@media(max-width:700px){
 .tp-toolbar{flex-direction:row;align-items:center;gap:10px;margin-bottom:15px}
 .tp-toolbar h2{font-size:clamp(22px,5vw,30px)}
 .tp-toolbar .tp-floor-label{font-size:0;gap:0}
 .tp-floor{min-width:110px;font-size:12px;padding:10px 30px 10px 9px}
 .tp-select-wrap:after{right:12px;width:6px;height:6px}
 .tp-layout{grid-template-columns:minmax(0,43%) minmax(0,57%);gap:8px;align-items:start}
 .tp-table-panel,.tp-plan-panel{min-width:0;border-radius:6px}
 .tp-table-wrap{overflow:visible}
 .tp-table{table-layout:fixed;width:100%;font-size:11px;white-space:normal}
 .tp-table th,.tp-table td{padding:9px 5px!important;overflow-wrap:anywhere}
 .tp-table th:first-child,.tp-table td:first-child{padding-left:8px!important;width:27%}
 .tp-table th:nth-child(2),.tp-table td:nth-child(2),.tp-table th:nth-child(4),.tp-table td:nth-child(4),.tp-table th:nth-child(5),.tp-table td:nth-child(5){display:none}
 .tp-table th:nth-child(3),.tp-table td:nth-child(3){width:73%}
 .tp-hint{font-size:10px;margin:10px 8px;line-height:1.4}
 .tp-plan-panel{position:sticky;top:12px}
 .tp-plan-top{padding:9px 8px;gap:4px;flex-wrap:wrap}
 .tp-plan-top .tp-eyebrow{font-size:8px}
 .tp-plan-title{font-size:13px;line-height:1.2}
 .tp-actions{margin-left:auto}
 .tp-actions button{font-size:10px;padding:6px 7px}
 .tp-stage{height:clamp(260px,72vh,500px)}
 .tp-plan-bottom{padding:9px 8px;display:block;font-size:10px}
 .tp-pdf-link{display:block;margin-top:7px}
}

/* v1.0.5: sold units visible, muted and distinct from available units */
.tp-unit-row.is-sold td{background:#f0f0f0!important;color:#929292!important}
.tp-unit-row.is-sold td small,.tp-unit-row.is-sold .tp-arrow{color:#aaa!important}
.tp-unit-row.is-sold:hover td{background:#e7e7e7!important}
.tp-unit-row.is-sold.is-active td{background:#dedede!important;color:#656565!important}
/* Mobile: compact stacked table and plan, both visible within the first viewport where possible */
@media(max-width:700px){
 .tp-root .tp-layout{display:flex;flex-direction:column;gap:9px;align-items:stretch}
 .tp-root .tp-table-panel,.tp-root .tp-plan-panel{width:100%;min-width:0;position:static}
 .tp-root .tp-table-wrap{max-height:clamp(175px,29dvh,255px);overflow-y:auto;overscroll-behavior:contain}
 .tp-root .tp-table{table-layout:auto;font-size:11px;white-space:nowrap}
 .tp-root .tp-table th,.tp-root .tp-table td{padding:7px 6px!important;overflow-wrap:normal}
 .tp-root .tp-table th:first-child,.tp-root .tp-table td:first-child{padding-left:10px!important;width:auto}
 .tp-root .tp-table th:nth-child(2),.tp-root .tp-table td:nth-child(2),
 .tp-root .tp-table th:nth-child(4),.tp-root .tp-table td:nth-child(4){display:table-cell}
 .tp-root .tp-table th:nth-child(5),.tp-root .tp-table td:nth-child(5){display:none}
 .tp-root .tp-table th:nth-child(3),.tp-root .tp-table td:nth-child(3){width:auto}
 .tp-root .tp-table td small{font-size:9px;margin-top:1px}
 .tp-root .tp-hint{margin:6px 10px;font-size:10px}
 .tp-root .tp-plan-top{padding:8px 11px;flex-wrap:nowrap}
 .tp-root .tp-plan-bottom{padding:7px 11px;display:flex;font-size:10px}
 .tp-root .tp-pdf-link{margin:0}
 .tp-root .tp-stage{height:clamp(190px,32dvh,300px)}
}

/* v1.0.6: highlight the hovered apartment in the full-floor preview */
.tp-root .tp-unit-row.is-preview td{background:#fff2aa}
.tp-root .tp-unit-row.is-active.is-preview td{background:var(--tp-yellow)}
.tp-root .tp-focus{border:3px solid var(--tp-yellow);background:rgba(255,213,33,.13);box-shadow:0 0 0 1px rgba(0,0,0,.1);transition:opacity .2s ease}

.tp-root .tp-unit-row.is-sold{cursor:default}
.tp-root .tp-unit-row.is-sold:hover td{background:#f0f0f0!important}
.tp-root .tp-unit-row.is-sold .tp-arrow{display:none}
/* v1.1.0: additional price columns and apartment detail modal */
.tp-root .tp-table{white-space:nowrap}
.tp-root .tp-table th,.tp-root .tp-table td{padding-left:9px;padding-right:9px}
.tp-root .tp-table td:nth-child(6){font-weight:700;color:#bd2535}
.tp-modal[hidden]{display:none!important}
.tp-modal{position:fixed;inset:0;z-index:999999;display:grid;place-items:center;padding:20px}
.tp-modal-backdrop{position:absolute;inset:0;background:rgba(0,0,0,.77)}
.tp-modal-window{position:relative;z-index:1;background:#fff;color:#171717;border-radius:22px;width:min(1100px,100%);max-height:min(92dvh,960px);overflow-y:auto;padding:clamp(20px,3vw,42px);box-shadow:0 20px 80px #0005;outline:none}
.tp-modal-close{position:absolute;top:14px;right:16px;border:0;background:#f2f2f2;border-radius:50%;width:40px;height:40px;cursor:pointer;font-size:30px;line-height:1;color:#171717}
.tp-modal-heading{font-size:clamp(26px,3vw,42px);margin:0 50px 22px 0;line-height:1.1}
.tp-modal-grid{display:grid;grid-template-columns:minmax(0,1.12fr) minmax(0,.88fr);gap:32px}
.tp-modal-plan{border:1px solid #e5e5e5;border-radius:16px;overflow:hidden;background:#f7f7f7;text-align:center}
.tp-modal-plan-content{display:flex;align-items:center;justify-content:center;min-height:210px;max-height:450px;overflow:auto;padding:12px}
.tp-modal-plan-content img,.tp-modal-plan-content canvas{display:block;max-width:100%;max-height:420px;width:auto;height:auto;object-fit:contain}
.tp-modal-plan-note{font-size:12px;color:#777;margin:0;padding:8px 12px 14px}
.tp-modal-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-top:12px}
.tp-modal-gallery a{display:block;aspect-ratio:1;border-radius:10px;overflow:hidden;background:#eee}
.tp-modal-gallery img{display:block;width:100%;height:100%;object-fit:cover}
.tp-detail-line{display:flex;justify-content:space-between;gap:16px;padding:10px 0;border-bottom:1px solid #e9e9e9;font-size:14px}
.tp-detail-line strong{text-align:right}.tp-detail-sale strong{color:#b51e32}
.tp-modal-info h3{font-size:22px;margin:28px 0 15px}
.tp-interest-form{display:grid;gap:12px}.tp-interest-form label{display:grid;gap:5px;font-size:13px;font-weight:600}
.tp-interest-form input:not([type=checkbox]),.tp-interest-form textarea{display:block;width:100%;background:#fff;border:1px solid #ccc;border-radius:8px;padding:11px 12px;color:#171717;font:inherit;font-size:15px}
.tp-interest-form .tp-check{display:flex;align-items:flex-start;gap:9px;line-height:1.4;font-weight:400}.tp-interest-form .tp-check input{margin-top:3px;accent-color:#171717}
.tp-form-submit{background:#ffd521;color:#171717;border:1px solid #171717;border-radius:50px;padding:15px 20px;font-weight:800;cursor:pointer;font:inherit}
.tp-form-submit:disabled{opacity:.5;cursor:wait}.tp-form-feedback{font-size:13px;margin:0}.tp-honeypot{position:absolute;left:-99999px;width:1px;height:1px;overflow:hidden}
body.tp-modal-open{overflow:hidden}
@media(max-width:800px){.tp-modal{padding:8px}.tp-modal-window{max-height:96dvh;padding:24px 16px;border-radius:14px}.tp-modal-grid{grid-template-columns:1fr;gap:16px}.tp-modal-gallery{grid-template-columns:repeat(4,1fr)}.tp-modal-plan-content{max-height:320px}}
/* Keep the compact mobile table readable with new columns via horizontal scrolling. */
@media(max-width:700px){.tp-root .tp-table-wrap{overflow-x:auto}.tp-root .tp-table{min-width:610px}.tp-root .tp-table th:nth-child(5),.tp-root .tp-table td:nth-child(5),.tp-root .tp-table th:nth-child(6),.tp-root .tp-table td:nth-child(6){display:table-cell}.tp-root .tp-table th:nth-child(7),.tp-root .tp-table td:nth-child(7){display:none}}

/* v1.2.0 – clean popup, price reductions and aligned form */
.tp-root .tp-table td:nth-child(6),.tp-root .tp-table th:nth-child(6){display:none!important}
.tp-root .tp-price-old{text-decoration:line-through;color:#929292;font-weight:400}
.tp-root .tp-price-sale{display:block;color:#c5233b;font-weight:800;margin-top:4px;white-space:nowrap}
.tp-root .tp-modal{position:fixed;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden;padding:clamp(10px,3vw,28px);z-index:999999}
.tp-root .tp-modal-window{box-sizing:border-box;position:relative;width:min(1100px,100%);height:auto;max-height:calc(100dvh - 40px);overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;-webkit-overflow-scrolling:touch;margin:0 auto;padding:clamp(24px,3vw,42px);scrollbar-gutter:stable;}
.tp-root .tp-modal-grid{min-width:0;align-items:start}
.tp-root .tp-modal-visual,.tp-root .tp-modal-info{min-width:0}
.tp-root .tp-interest-form{display:flex;flex-direction:column;align-items:stretch;gap:15px;width:100%}
.tp-root .tp-interest-form>label:not(.tp-check){display:flex;flex-direction:column;align-items:stretch;gap:7px;width:100%;margin:0;text-align:left;font-size:14px;line-height:1.45}
.tp-root .tp-interest-form input:not([type=checkbox]),.tp-root .tp-interest-form textarea{box-sizing:border-box;width:100%;max-width:100%;min-width:0;margin:0}
.tp-root .tp-interest-form .tp-check{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-start!important;gap:11px!important;width:100%;margin:3px 0!important;padding:0!important;text-align:left!important;font-size:14px;font-weight:500;line-height:1.4}
.tp-root .tp-interest-form .tp-check input[type=checkbox]{appearance:auto!important;-webkit-appearance:checkbox!important;flex:0 0 19px!important;width:19px!important;height:19px!important;min-width:19px!important;margin:0!important;padding:0!important;position:static!important;opacity:1!important;vertical-align:middle}
.tp-root .tp-form-submit{border:0!important;outline:0;box-shadow:none!important;background:#ffd521;color:#171717;border-radius:999px;min-height:54px;font-weight:800}
.tp-root .tp-form-submit:hover{background:#f2c900}
@media(max-width:800px){.tp-root .tp-modal{padding:10px}.tp-root .tp-modal-window{width:100%;max-width:100%;max-height:calc(100dvh - 20px);padding:24px 18px;scrollbar-gutter:auto}.tp-root .tp-modal-grid{grid-template-columns:minmax(0,1fr)}.tp-root .tp-modal-close{position:sticky;float:right;top:0;z-index:4;margin:-4px 0 0 8px}}
@media(max-width:700px){.tp-root .tp-table{min-width:510px}.tp-root .tp-table th:nth-child(5),.tp-root .tp-table td:nth-child(5){display:table-cell!important}}

/* v1.2.1 – Only show furnished-price column when a furnished price exists. */
.tp-root:not(.tp-has-furnished-column) .tp-table th:nth-child(5),
.tp-root:not(.tp-has-furnished-column) .tp-table td:nth-child(5){display:none!important}
.tp-root:not(.tp-has-furnished-column) .tp-table{min-width:0}
/* Keep the opt-in visible even when the theme applies custom checkbox styling. */
.tp-root .tp-interest-form label.tp-check{display:flex!important;visibility:visible!important;opacity:1!important;flex-direction:row!important;align-items:center!important;gap:11px!important;cursor:pointer}
.tp-root .tp-interest-form label.tp-check span{display:inline!important;visibility:visible!important;opacity:1!important;color:inherit}
.tp-root .tp-interest-form label.tp-check input[type=checkbox]{display:inline-block!important;visibility:visible!important;opacity:1!important;appearance:auto!important;-webkit-appearance:checkbox!important;position:static!important;width:19px!important;height:19px!important;min-width:19px!important;flex:0 0 19px!important;clip:auto!important;clip-path:none!important;transform:none!important}
@media(max-width:700px){
 .tp-root:not(.tp-has-furnished-column) .tp-table{min-width:0!important;width:100%}
 .tp-root .tp-unit-row{touch-action:pan-y}
}

/* v1.2.2: Peida mööblisoovi rida ka siis, kui teema label-stiil kasutab display'd. */
.tp-root .tp-interest-form .tp-check[hidden]{display:none!important}

/* v1.2.4: müüdud korteri staatus kuvatakse hinna asemel, ilma duplikaadita */
.tp-root .tp-sold-price{display:block;font-size:1.15em;font-weight:800;line-height:1.35;color:#929292}

/* Korteri hüpikakna kaks plaanivaadet */
.tp-modal-view-switch{display:flex;gap:8px;margin-bottom:12px;flex-wrap:wrap}
.tp-modal-view-btn{appearance:none;background:#f2f2f2;color:#171717;border:1px solid #dedede;border-radius:999px;padding:10px 16px;font:inherit;font-size:14px;font-weight:700;cursor:pointer;line-height:1.25}
.tp-modal-view-btn.is-active{background:#ffd521;border-color:#ffd521}
.tp-modal-view-btn:focus-visible{outline:2px solid #171717;outline-offset:2px}
.tp-modal-floor-map{position:relative;display:block;width:100%;max-width:100%;line-height:0}
.tp-modal-floor-map>img{display:block;width:100%;height:auto;max-height:none;object-fit:contain}
.tp-modal-plan-content:has(.tp-modal-floor-map){display:block;padding:12px;max-height:none;overflow:visible;min-height:0}
.tp-modal-floor-highlight{position:absolute;border:3px solid #171717;background:rgba(255,213,33,.38);box-shadow:0 0 0 2px #ffd521 inset;pointer-events:none;line-height:1.2}
.tp-modal-floor-highlight span{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);background:#ffd521;color:#171717;border-radius:6px;padding:4px 7px;font-size:clamp(10px,1.4vw,15px);font-weight:800;white-space:nowrap}
@media(max-width:800px){.tp-modal-view-btn{flex:1;padding:10px 8px;font-size:13px}.tp-modal-floor-highlight{border-width:2px}}
