/* Texa — visual search */
:root{--tvs-accent:#7E5E37;--tvs-dark:#1D1C1A;--tvs-soft:#F4F1EC}
.tvs-ov{--tvs-line:#EEE9E3;--tvs-muted:#6E675F;--tvs-light:#FAF8F5;position:fixed;inset:0;z-index:100050;display:flex;align-items:center;justify-content:center;padding:24px;direction:rtl;text-align:right;color:var(--tvs-dark);font-family:inherit;line-height:1.55}
.tvs-ov[hidden]{display:none}
.tvs-ov *,.tvs-ov *::before,.tvs-ov *::after{box-sizing:border-box}
.tvs-ov :where(button,select){font-family:inherit;font-size:14px;font-weight:700;line-height:1.3;cursor:pointer;letter-spacing:0;text-transform:none;box-shadow:none;min-height:0}
.tvs-bg{position:absolute;inset:0;background:rgba(20,19,17,.58);opacity:0;transition:opacity .2s}
.tvs-ov.is-open .tvs-bg{opacity:1}
.tvs-dlg{position:relative;width:min(1120px,100%);height:min(86vh,780px);background:#fff;border-radius:24px;overflow:hidden;box-shadow:0 40px 90px -30px rgba(0,0,0,.55);opacity:0;transform:translateY(14px);transition:opacity .2s,transform .25s cubic-bezier(.2,.8,.2,1)}
.tvs-ov.is-open .tvs-dlg{opacity:1;transform:none}
.tvs-ov:not(.has-img):not(.tvs-ov--mobile) .tvs-dlg{width:min(640px,100%);height:auto}
html.tvs-lock,html.tvs-lock body{overflow:hidden!important}
.tvs-ic{flex:none;display:block}
.tvs-ov :is(button,a,select):focus-visible{outline:2px solid var(--tvs-accent);outline-offset:2px}

/* shared */
.tvs-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:22px 26px 0}
.tvs-head-t{display:flex;flex-direction:column;gap:2px;min-width:0}
.tvs-eyebrow{font-size:13px;font-weight:700;color:var(--tvs-accent)}
.tvs-ov .tvs-title{margin:0;font-size:22px;line-height:1.35;font-weight:800;color:inherit}
.tvs-x{flex:none;width:44px;height:44px;border-radius:50%;border:1px solid var(--tvs-line);background:#fff;color:var(--tvs-dark);display:flex;align-items:center;justify-content:center;padding:0}
.tvs-x:hover{background:var(--tvs-light)}
.tvs-body{padding:18px 26px 26px}
.tvs-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;height:48px;padding:0 22px;border-radius:99px;font-size:15px;font-weight:800;text-decoration:none!important;border:1.5px solid transparent;line-height:1}
.tvs-btn--dark{background:var(--tvs-dark);color:#fff!important;border-color:var(--tvs-dark)}
.tvs-btn--dark:hover{background:var(--tvs-accent);border-color:var(--tvs-accent)}
.tvs-btn--line{background:#fff;color:var(--tvs-dark)!important;border-color:var(--tvs-dark)}
.tvs-btn--line:hover{background:var(--tvs-dark);color:#fff!important}
.tvs-btn--block{display:flex;width:100%;margin-top:12px}
.tvs-mini{height:34px;padding:0 14px;border-radius:99px;border:1px solid var(--tvs-line);background:#fff;color:var(--tvs-dark);font-size:13px;font-weight:700}
.tvs-mini:hover{border-color:var(--tvs-dark)}
.tvs-mini--dark{background:rgba(255,255,255,.12);border-color:rgba(255,255,255,.3);color:#fff;align-self:flex-start}
.tvs-sw{display:inline-block;width:18px;height:18px;border-radius:6px;border:1px solid rgba(0,0,0,.12);vertical-align:-4px;margin-inline-end:6px;flex:none}
.tvs-sw--lg{width:46px;height:46px;border-radius:12px;margin:0}
.tvs-sw--xl{width:56px;height:56px;border-radius:14px;margin:0}
.tvs-err{margin:12px 0 0;padding:10px 14px;border-radius:12px;background:#FBEDE8;color:#8A2A1D;font-size:14px}
.tvs-privacy{display:block;margin-top:10px;font-size:12px;color:var(--tvs-muted)}

/* drop zone */
.tvs-drop{display:flex;flex-direction:column;align-items:center;text-align:center;gap:8px;padding:34px 22px;border:2px dashed #DDD4C8;border-radius:20px;background:var(--tvs-light);transition:border-color .2s,background .2s}
.tvs-drop.is-over{border-color:var(--tvs-accent);background:#FFF8EE}
.tvs-drop-ic{width:60px;height:60px;border-radius:18px;background:#fff;display:flex;align-items:center;justify-content:center;color:var(--tvs-accent);margin-bottom:4px}
.tvs-drop-ic .tvs-ic{width:28px;height:28px}
.tvs-drop b{font-size:18px;font-weight:800}
.tvs-drop p{margin:0;max-width:420px;font-size:14px;color:var(--tvs-muted)}
.tvs-drop-a{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin-top:10px}
.tvs-only-touch{display:none}
@media (hover:none) and (pointer:coarse){.tvs-only-touch{display:inline-flex}}

/* filters */
.tvs-filters{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;padding:0 24px 14px}
.tvs-chips{display:flex;flex-wrap:wrap;gap:8px;min-width:0}
.tvs-chip{height:38px;padding:0 14px;border-radius:99px;border:1px solid #E6E1D8;background:#fff;color:var(--tvs-dark);font-size:14px;font-weight:700;white-space:nowrap}
.tvs-chip small{font-size:12px;opacity:.7;margin-inline-start:2px}
.tvs-chip.is-on{background:var(--tvs-dark);border-color:var(--tvs-dark);color:#fff}
.tvs-seg{display:flex;padding:4px;border-radius:99px;background:var(--tvs-light);border:1px solid #E6E1D8;flex:none}
.tvs-seg button{height:30px;padding:0 13px;border:0;border-radius:99px;background:transparent;color:var(--tvs-muted);font-size:13px;font-weight:700}
.tvs-seg button.is-on{background:var(--tvs-accent);color:#fff}

/* results */
.tvs-scroll{flex:1;min-height:0;overflow:auto;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;padding:0 24px 24px}
.tvs-grid{display:grid;gap:14px;align-content:start}
.tvs-grid--3{grid-template-columns:repeat(3,minmax(0,1fr))}
.tvs-grid--2{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.tvs-card{display:flex;flex-direction:column;gap:6px;padding:8px;border:1px solid var(--tvs-line);border-radius:16px;background:#fff;color:var(--tvs-dark)!important;text-decoration:none!important;min-width:0;transition:border-color .2s,box-shadow .2s}
.tvs-card:hover{border-color:#D8CFC2;box-shadow:0 12px 26px -18px rgba(29,28,26,.45)}
.tvs-card-img{position:relative;display:block;aspect-ratio:1/1;border-radius:11px;overflow:hidden;background:var(--tvs-soft)}
.tvs-card-img img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover;margin:0!important;max-width:none!important}
.tvs-match{position:absolute;top:8px;right:8px;padding:3px 9px;border-radius:99px;background:var(--tvs-dark);color:#fff;font-size:12px;font-weight:700;line-height:1.5}
.tvs-card-n{font-size:14px;font-weight:700;line-height:1.45;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 2px}
.tvs-card-p{font-size:15px;font-weight:800;color:var(--tvs-accent);padding:0 2px}
.tvs-card-p del{font-size:12px;font-weight:400;color:var(--tvs-muted);margin-inline-start:6px}
.tvs-card-p ins{text-decoration:none}
.tvs-card-p small,.tvs-card-p .woocommerce-price-suffix{display:none}
.tvs-skel .tvs-card-img,.tvs-skel b,.tvs-skel>span:last-child{background:linear-gradient(90deg,#F1EEE9 0%,#F8F6F2 50%,#F1EEE9 100%);background-size:200% 100%;animation:tvsShim 1.1s linear infinite}
.tvs-skel b{height:14px;border-radius:6px;width:80%}
.tvs-skel>span:last-child{height:14px;border-radius:6px;width:40%}
@keyframes tvsShim{to{background-position:-200% 0}}
.tvs-empty{display:flex;flex-direction:column;gap:4px;padding:26px;border-radius:16px;background:var(--tvs-light);text-align:center}
.tvs-empty b{font-size:16px}
.tvs-empty span{font-size:14px;color:var(--tvs-muted)}
.tvs-list{grid-template-columns:1fr;gap:8px}
.tvs-list .tvs-card{flex-direction:row;align-items:center;gap:12px}
.tvs-list .tvs-card-img{width:64px;flex:none}
.tvs-list .tvs-match{top:4px;right:4px;padding:1px 6px;font-size:10px}
.tvs-list .tvs-card-n{flex:1;white-space:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.tvs-list .tvs-card-p{font-size:13px;white-space:nowrap}
.tvs-list .tvs-skel{height:82px}

.tvs-mainhead{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:20px 24px 14px}
.tvs-mainhead small{display:block;font-size:13px;color:var(--tvs-muted)}
.tvs-count{font-size:19px;font-weight:800}

/* A — modal */
.tvs-modal{display:grid;grid-template-columns:320px minmax(0,1fr);height:100%}
.tvs-side{display:flex;flex-direction:column;gap:18px;padding:24px;background:var(--tvs-light);border-inline-end:1px solid var(--tvs-line);overflow:auto}
.tvs-thumb{position:relative;border-radius:18px;overflow:hidden;background:var(--tvs-soft);aspect-ratio:4/3}
.tvs-thumb img{width:100%!important;height:100%!important;object-fit:cover;display:block;margin:0!important}
.tvs-thumb .tvs-mini{position:absolute;top:10px;left:10px}
.tvs-side h3{margin:0 0 10px;font-size:15px;font-weight:800}
.tvs-found dl{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px 14px;margin:0;font-size:14px}
.tvs-found dt{color:var(--tvs-muted)}
.tvs-found dd{margin:0;font-weight:700}
.tvs-palbar{display:flex;gap:6px}
.tvs-palb{height:42px;min-width:28px;border-radius:10px;border:1px solid rgba(0,0,0,.1);padding:0}
.tvs-palb.is-on{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--tvs-dark)}
.tvs-pal small{display:block;margin-top:8px;font-size:12px;color:var(--tvs-muted)}
.tvs-main{display:flex;flex-direction:column;min-width:0;min-height:0}

/* B — picker */
.tvs-picker{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);height:100%;background:var(--tvs-soft)}
.tvs-pk-l{display:flex;flex-direction:column;gap:14px;padding:24px;min-height:0}
.tvs-pk-r{display:flex;flex-direction:column;min-width:0;min-height:0;background:#fff;border-inline-start:1px solid var(--tvs-line)}
.tvs-photo{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:center;border-radius:20px;background:#E9E3DA;overflow:hidden}
.tvs-photo-in{position:relative;max-width:100%;max-height:100%;cursor:crosshair;line-height:0}
.tvs-photo-in img{display:block;max-width:100%!important;max-height:100%!important;width:auto!important;height:auto!important;margin:0!important;user-select:none;-webkit-user-drag:none}
.tvs-photo--pick .tvs-photo-in img,.tvs-photo--room .tvs-photo-in img{max-height:calc(86vh - 220px)!important}
.tvs-pin{position:absolute;width:40px;height:40px;margin:-20px 0 0 -20px;border-radius:50%;border:3px solid rgba(255,255,255,.9);box-shadow:0 4px 12px rgba(0,0,0,.35);padding:0;display:flex;align-items:center;justify-content:center}
.tvs-pin span{font-size:12px;font-weight:800;color:#fff;text-shadow:0 1px 2px rgba(0,0,0,.6);line-height:1}
.tvs-pin.is-on{border:4px solid #fff;box-shadow:0 0 0 2px var(--tvs-dark),0 8px 18px rgba(0,0,0,.4);width:46px;height:46px;margin:-23px 0 0 -23px}
.tvs-hint{position:absolute;bottom:12px;left:50%;transform:translateX(-50%);padding:6px 14px;border-radius:99px;background:rgba(29,28,26,.78);color:#fff;font-size:13px;font-weight:700;pointer-events:none;white-space:nowrap}
.tvs-cur{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:16px;background:#fff}
.tvs-cur div{flex:1;min-width:0}
.tvs-cur b{display:block;font-size:16px}
.tvs-cur small{font-size:12px;color:var(--tvs-muted)}
.tvs-cur>span{font-size:12px;color:var(--tvs-muted)}

/* C — room */
.tvs-ov--room .tvs-dlg{background:var(--tvs-dark);color:#EEE9E3}
.tvs-ov--room:not(.has-img) .tvs-dlg{background:#fff;color:var(--tvs-dark)}
.tvs-room{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:22px;height:100%;padding:22px}
.tvs-room-l{display:flex;flex-direction:column;gap:14px;min-height:0}
.tvs-room-l .tvs-eyebrow{color:#C9A879}
.tvs-room-l .tvs-title{color:#fff}
.tvs-photo--room{background:#2E2B27}
.tvs-room-r{display:flex;flex-direction:column;gap:12px;background:#fff;color:var(--tvs-dark);border-radius:20px;padding:6px 0 18px;min-height:0}
.tvs-room-r .tvs-mainhead{padding:12px 16px 4px}
.tvs-room-r .tvs-scroll{padding:0 16px}
.tvs-room-r>.tvs-btn,.tvs-room-r>.tvs-sub{margin:0 16px}
.tvs-ptabs{display:flex;gap:6px;flex-wrap:wrap}
.tvs-ptab{display:flex;align-items:center;height:36px;padding:0 12px 0 8px;border-radius:99px;border:1px solid var(--tvs-line);background:#fff;color:var(--tvs-dark);font-size:14px;font-weight:800}
.tvs-ptab.is-on{border-color:var(--tvs-dark);box-shadow:inset 0 0 0 1px var(--tvs-dark)}
.tvs-room-hint{margin:8px 16px;padding:22px;border-radius:16px;background:var(--tvs-light);display:flex;flex-direction:column;gap:6px}
.tvs-room-hint b{font-size:17px}
.tvs-room-hint span{font-size:14px;color:var(--tvs-muted)}
.tvs-room-cur{display:flex;align-items:flex-start;gap:12px;margin:0 16px;padding-bottom:12px;border-bottom:1px solid var(--tvs-line)}
.tvs-room-cur>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.tvs-room-cur b{font-size:18px;font-weight:800}
.tvs-sel{width:100%;display:flex;align-items:center;gap:8px;margin-top:6px;font-size:13px;color:var(--tvs-muted)}
.tvs-sel select{flex:1;min-width:0;width:100%!important;max-width:none!important;height:36px;border:1px solid #E6E1D8;border-radius:10px;padding:0 10px;background:#fff;color:var(--tvs-dark);font-size:14px}
.tvs-sub{font-size:15px;font-weight:800}
.tvs-room-r .tvs-btn--block{margin:4px 16px 0;width:auto}

/* D — mobile */
.tvs-ov--mobile{padding:0}
.tvs-ov--mobile .tvs-dlg{width:100%;height:100%;max-height:none;border-radius:0}
.tvs-m{position:relative;height:100%;display:flex;flex-direction:column;background:#fff}
.tvs-m--start{background:#2A2724;color:#fff;justify-content:space-between}
.tvs-m-top{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:max(14px,env(safe-area-inset-top)) 14px 14px}
.tvs-m-top b{font-size:16px}
.tvs-m-top span{width:44px}
.tvs-m-top--solid{background:#fff;color:var(--tvs-dark);border-bottom:1px solid var(--tvs-line)}
.tvs-x--glass{background:rgba(255,255,255,.14);border-color:rgba(255,255,255,.25);color:#fff}
.tvs-m-frame{margin:0 34px;flex:1;max-height:340px;border:3px solid #fff;border-radius:24px;display:flex;align-items:flex-end;justify-content:center;padding:14px;background:repeating-linear-gradient(90deg,rgba(255,255,255,.06) 0 3px,transparent 3px 6px)}
.tvs-m-frame span{font-size:14px;font-weight:700;text-align:center}
.tvs-m-bar{display:flex;align-items:center;justify-content:space-around;padding:24px 20px max(24px,env(safe-area-inset-bottom));background:var(--tvs-dark)}
.tvs-m-gal{width:64px;height:64px;border-radius:16px;border:2px solid rgba(255,255,255,.7);background:rgba(255,255,255,.08);color:#fff;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;font-size:11px;font-weight:700;padding:0}
.tvs-m-shot{width:78px;height:78px;border-radius:50%;border:5px solid #fff;background:#C9A879;padding:0}
.tvs-m-shot:active{transform:scale(.95)}
.tvs-m-sp{width:64px}
.tvs-privacy--m{position:absolute;left:0;right:0;bottom:calc(128px + env(safe-area-inset-bottom));text-align:center;color:rgba(255,255,255,.75);margin:0}
.tvs-err--m{margin:0 24px}
.tvs-m-shot-img{position:relative;height:45%;overflow:hidden;background:var(--tvs-soft)}
.tvs-m-shot-img img{width:100%!important;height:100%!important;object-fit:cover;margin:0!important}
.tvs-scanline{position:absolute;left:0;right:0;top:0;height:3px;background:#C9A879;box-shadow:0 0 18px 5px rgba(201,168,121,.85);animation:tvsScan 1.2s ease-in-out infinite alternate}
@keyframes tvsScan{to{top:calc(100% - 3px)}}
.tvs-m-pad{padding:22px 20px}
.tvs-m-h{display:block;font-size:20px;font-weight:800;margin-bottom:14px}
.tvs-steps{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;font-size:15px}
.tvs-steps li{display:flex;align-items:center;gap:10px;color:var(--tvs-muted);margin:0}
.tvs-steps li>span:first-child{width:26px;height:26px;border-radius:50%;border:2px solid #DDD4C8;display:flex;align-items:center;justify-content:center;flex:none}
.tvs-steps li.is-done{color:var(--tvs-dark)}
.tvs-steps li.is-done>span:first-child{background:var(--tvs-accent);border-color:var(--tvs-accent);color:#fff}
.tvs-steps .tvs-sw{margin:0}
.tvs-m--res{background:var(--tvs-soft)}
.tvs-m-rhead{display:flex;align-items:center;gap:12px;padding:max(12px,env(safe-area-inset-top)) 14px 12px;background:#fff}
.tvs-m-thumb{position:relative;width:52px;height:52px;border-radius:14px;overflow:hidden;border:1px solid var(--tvs-line);padding:0;flex:none;background:var(--tvs-soft)}
.tvs-m-thumb img{width:100%!important;height:100%!important;object-fit:cover;margin:0!important}
.tvs-m-thumb .tvs-sw{position:absolute;bottom:3px;left:3px;width:16px;height:16px;margin:0;border:2px solid #fff}
.tvs-m-rt{flex:1;min-width:0}
.tvs-m-rt b{display:block;font-size:15px;font-weight:800;line-height:1.35}
.tvs-m-rt small{display:block;font-size:12px;color:var(--tvs-muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tvs-m-filters{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:10px 14px 12px;background:#fff;border-bottom:1px solid var(--tvs-line)}
.tvs-m-filters .tvs-chips{flex-wrap:nowrap;overflow-x:auto;max-width:100%;padding-bottom:2px;scrollbar-width:none}
.tvs-m-filters .tvs-chips::-webkit-scrollbar{display:none}
.tvs-m-scroll{padding:12px 12px max(18px,env(safe-area-inset-bottom))}
.tvs-m--pick{background:#2A2724}
.tvs-photo--m{border-radius:0;background:#2A2724}
.tvs-photo--m .tvs-photo-in img{max-height:calc(100vh - 80px)!important}

/* responsive (desktop layouts on narrow windows) */
@media (max-width:900px){
	.tvs-ov{padding:0}
	.tvs-dlg{width:100%;height:100%;border-radius:0}
	.tvs-modal,.tvs-picker,.tvs-room{grid-template-columns:minmax(0,1fr);overflow:auto;height:100%}
	.tvs-side,.tvs-pk-l{border:0}
	.tvs-grid--3{grid-template-columns:repeat(2,minmax(0,1fr))}
	.tvs-photo--pick .tvs-photo-in img,.tvs-photo--room .tvs-photo-in img{max-height:50vh!important}
	.tvs-scroll{overflow:visible}
}

/* header camera button */
.tvs-hbtn,.tvs-open{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;cursor:pointer;font:inherit;line-height:1;letter-spacing:0;text-transform:none;box-shadow:none}
.tvs-hbtn{height:34px;min-width:34px;padding:0 9px;border-radius:99px;background:transparent;color:var(--tvs-dark);flex:none;margin:0 4px;z-index:2}
.tvs-hbtn:hover{background:var(--tvs-soft);color:var(--tvs-accent)}
.tvs-hbtn--text{background:var(--tvs-soft);font-size:13px;font-weight:700;padding:0 12px}
.tvs-hbtn--abs{position:absolute!important;top:50%;transform:translateY(-50%);margin:0}
.tvs-open{height:44px;min-width:44px;padding:0 14px;border-radius:99px;background:var(--tvs-dark);color:#fff;font-size:14px;font-weight:700}
.tvs-open:hover{background:var(--tvs-accent)}
.tvs-open--icon{padding:0;width:44px}
@media (prefers-reduced-motion:reduce){.tvs-dlg,.tvs-bg{transition:none}.tvs-scanline,.tvs-skel *{animation:none}}
