/* ОБИВО V0.5 — каталог без рекламы, независимый от старой вёрстки au.ru. */
body.obivo-catalog{margin:0;background:#f8fafc;color:#172b42;font-family:Arial,Helvetica,sans-serif}
body.obivo-catalog *,body.obivo-catalog *::before,body.obivo-catalog *::after{box-sizing:border-box}
.obv-catalog-site{min-height:100dvh}
.obv-catalog-site button,.obv-catalog-site input{font-family:Arial,Helvetica,sans-serif}
.obv-catalog-site .obv-main-nav .obv-current{color:var(--obv-blue);font-weight:780}
.obv-catalog-main{padding-top:23px;padding-bottom:76px}
.obv-breadcrumb{display:flex;align-items:center;gap:10px;color:#8090a4;font-size:12px;margin-bottom:23px}
.obv-breadcrumb a:hover{color:#0868ff}
.obv-breadcrumb span:last-child{color:#334a64}
.obv-catalog-heading{display:flex;align-items:center;justify-content:space-between;gap:22px;margin-bottom:27px}
.obv-catalog-heading h1{font-size:34px;line-height:1.16;letter-spacing:-1px;font-weight:820;margin:7px 0 7px}
.obv-catalog-heading p{font-size:14px;color:#7a8da1;margin:0}
.obv-filter-form{display:flex;gap:9px;align-items:stretch;background:white;border:1px solid #e4eaf2;border-radius:15px;padding:12px;margin-bottom:27px;box-shadow:0 6px 20px #274d8210}
.obv-filter-query{display:flex;align-items:center;gap:10px;flex:1;min-width:180px;background:#f8fafc;border:1px solid #ebeff6;border-radius:9px;padding:0 13px;color:#96a5b8}
.obv-filter-query input{background:transparent;border:0;outline:0;min-width:0;width:100%;font-size:13px;color:#172b42}
.obv-filter-price{display:flex;align-items:center;gap:5px;padding:0 9px;width:120px;min-height:45px;border:1px solid #e8edf3;border-radius:9px;font-size:12px;color:#8a99a9;white-space:nowrap}
.obv-filter-price input{min-width:0;width:100%;border:0;outline:0;background:transparent;color:#172b42;font-size:13px}
.obv-filter-price input::-webkit-inner-spin-button,.obv-filter-price input::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}
.obv-filter-city{display:flex;align-items:center;justify-content:center;gap:6px;background:#fff;border:1px solid #e8edf3;border-radius:9px;color:#40536c;min-width:135px;max-width:174px;padding:0 12px;font-size:12px}
.obv-filter-city span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.obv-filter-city svg{width:16px;height:16px;color:#0868ff}
.obv-filter-submit{background:#0868ff;color:#fff;border:0;border-radius:9px;padding:0 29px;font-weight:750;font-size:13px;min-height:45px}
.obv-filter-submit:hover,.obv-post:hover{background:#0055d6;box-shadow:0 6px 16px #0868ff24}
.obv-catalog-layout{display:grid;grid-template-columns:218px minmax(0,1fr);gap:26px}
.obv-catalog-sidebar{background:#fff;border:1px solid #e9edf3;border-radius:16px;padding:18px 12px;align-self:start}
.obv-catalog-sidebar h2{font-size:15px;font-weight:800;margin:2px 10px 13px}
.obv-catalog-sidebar nav{display:grid;gap:2px}
.obv-catalog-sidebar nav a{display:flex;align-items:center;justify-content:space-between;gap:8px;border-radius:10px;padding:11px 12px;color:#45617b;font-size:13px;font-weight:600}
.obv-catalog-sidebar nav a span{color:#a3b1c0;font-size:17px}
.obv-catalog-sidebar nav a:hover{background:#f1f6fd;color:#0868ff}
.obv-catalog-sidebar nav a.is-active{background:#e8f2ff;color:#0868ff;font-weight:780}
.obv-sidebar-tip{background:linear-gradient(135deg,#eaf3ff,#f0faff);padding:15px;border-radius:12px;margin:18px 4px 3px}
.obv-sidebar-tip strong{font-size:13px;color:#2e4f77}
.obv-sidebar-tip p{font-size:12px;color:#7992ad;margin:7px 0 0}
.obv-catalog-results{min-width:0}
.obv-results-top{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin:4px 0 19px}
.obv-results-top h2{font-size:22px;font-weight:800;letter-spacing:-.4px;margin:0 0 6px}
.obv-results-top p{font-size:12px;color:#8392a4;margin:0}
.obv-results-tools{display:flex;align-items:center;justify-content:flex-end;gap:5px;flex-wrap:wrap}
.obv-results-tools button{border:1px solid #e3e9f1;color:#567087;background:white;border-radius:8px;padding:8px 10px;min-height:34px;font-size:11px;font-weight:650}
.obv-results-tools button.active{background:#e8f2ff;border-color:#cde0ff;color:#0868ff}
.obv-results-tools .obv-view-btn{padding:7px 9px}
.obv-view-btn svg{width:17px;height:17px}
.obv-tool-divider{height:24px;border-left:1px solid #e0e6ef;margin:0 3px}
.obv-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.obv-card-grid.obv-card-list{grid-template-columns:minmax(0,1fr)}
.obv-card{background:#fff;border:1px solid #e7edf3;border-radius:15px;position:relative;min-width:0;overflow:hidden;display:flex;flex-direction:column;transition:transform .15s,box-shadow .15s}
.obv-card:hover{transform:translateY(-2px);box-shadow:0 12px 25px #24548012;border-color:#d4e4fb}
.obv-card-photo{height:175px;min-width:0;background:#f2f6fa;display:grid;place-items:center;overflow:hidden}
.obv-card-photo img{width:100%;height:100%;object-fit:contain;display:block}
.obv-photo-fallback{display:grid;place-items:center;width:100%;height:100%;color:#9db3cb}
.obv-card-fav{position:absolute;right:11px;top:11px;display:grid;place-items:center;background:#fff;border:1px solid #e6edf4;border-radius:50%;width:33px;height:33px;color:#7c8da1;box-shadow:0 3px 12px #33546d20;z-index:1;padding:0}
.obv-card-fav svg{width:17px;height:17px}
.obv-card-fav:hover,.obv-card-fav.is-favorite{color:#ed6b53;background:#fff8f6}
.obv-card-info{padding:14px;display:flex;flex-direction:column;flex:1;min-width:0}
.obv-card-title{font-weight:700;font-size:13px;line-height:1.4;color:#253e57!important;min-height:37px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.obv-card-title:hover{color:#0868ff!important}
.obv-card-price{font-size:19px;letter-spacing:-.2px;font-weight:800;margin-top:8px;color:#172b42}
.obv-card-city{display:flex;align-items:center;gap:5px;font-size:11px;color:#8494a8;margin-top:9px;min-width:0}
.obv-card-city svg{width:13px;height:13px;color:#9aafc6}
.obv-card-city span{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.obv-card-list .obv-card{flex-direction:row;min-height:164px}
.obv-card-list .obv-card-photo{width:225px;min-width:225px;height:auto}
.obv-card-list .obv-card-info{padding:22px}
.obv-card-list .obv-card-title{min-height:0}
.obv-card-list .obv-card-price{margin-top:20px}
.obv-card-list .obv-card-fav{right:15px;top:15px}
.obv-catalog-pagination{display:flex;justify-content:center;gap:8px;margin-top:28px;flex-wrap:wrap}
.obv-catalog-pagination button{border:1px solid #dce6f4;background:#fff;border-radius:9px;color:#4c6682;min-width:38px;min-height:38px;padding:8px 13px;font-size:12px}
.obv-catalog-pagination button.selected{background:#0868ff;color:#fff;border-color:#0868ff}
.obv-catalog-empty{grid-column:1/-1;background:#fff;border:1px dashed #cad9e9;border-radius:17px;padding:52px 22px;text-align:center}
.obv-empty-sign{background:#eaf3ff;color:#0868ff;border-radius:50%;width:54px;height:54px;display:grid;place-items:center;font-size:32px;margin:0 auto 18px}
.obv-catalog-empty h3{font-weight:800;margin:0 0 7px;font-size:18px}
.obv-catalog-empty p{color:#72869a;margin:0 0 19px;font-size:13px}
.obv-catalog-empty button{border:1px solid #c5d9f3;background:#f6faff;color:#0868ff;font-weight:750;border-radius:9px;padding:10px 18px}
#overlay .obv-detail-modal{width:min(880px,100%);padding:30px;border-radius:18px;background:#fff;color:#172b42}
#overlay .obv-detail h2{font-size:24px;letter-spacing:-.5px;font-weight:800;line-height:1.2;margin:11px 40px 24px 0}
#overlay .obv-detail-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.75fr);gap:25px}
#overlay .obv-detail-photo{background:#f1f6fa;border-radius:13px;min-height:250px;display:grid;place-items:center;overflow:hidden}
#overlay .obv-detail-photo img{display:block;width:100%;height:300px;object-fit:contain}
#overlay .obv-detail-photo>span{color:#a6b6c7}
#overlay .obv-detail-side{display:flex;flex-direction:column;gap:13px;align-items:stretch}
#overlay .obv-detail-price{font-size:30px;font-weight:800;color:#172b42}
#overlay .obv-detail-location{display:flex;align-items:center;gap:6px;font-size:13px;color:#71869b}
#overlay .obv-detail-location svg{width:17px;height:17px;color:#0868ff}
#overlay .obv-detail-contact{background:#0868ff;color:#fff;border:0;border-radius:10px;padding:13px;font-weight:750}
#overlay .obv-detail-favorite{display:flex;align-items:center;justify-content:center;gap:7px;background:white;color:#0868ff;border:1px solid #c6dbfa;border-radius:10px;padding:12px;font-weight:750}
#overlay .obv-detail-disclaimer{margin:4px 0 0;font-size:12px;color:#8a9bad;line-height:1.5}
#overlay .obv-detail-description{margin:9px 0 8px;padding:17px 18px;background:#f2f7fd;border:1px solid #d6e6f7;border-left:4px solid #ff922e;border-radius:13px;min-width:0}
#overlay .obv-detail-description h3{margin:0 0 9px;font-size:17px;line-height:1.3;font-weight:750;color:#143854}
#overlay .obv-detail-description p{font-size:15px;color:#284154;line-height:1.65;margin:0;white-space:pre-wrap;overflow-wrap:anywhere}
@media(max-width:1100px){
 .obv-catalog-layout{grid-template-columns:195px minmax(0,1fr);gap:17px}
 .obv-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .obv-filter-form{flex-wrap:wrap}
 .obv-filter-query{flex:1 1 100%;min-height:45px}
 .obv-filter-submit{margin-left:auto}
}
@media(max-width:740px){
 .obv-catalog-main{padding-top:18px}
 .obv-catalog-heading h1{font-size:28px}
 .obv-catalog-heading>.obv-post{display:none}
 .obv-filter-form{gap:8px}
 .obv-filter-query{flex:1 1 100%}
 .obv-filter-price{flex:1 1 100px;min-height:42px}
 .obv-filter-city{flex:1 1 135px;min-height:42px}
 .obv-filter-submit{flex:0 1 95px}
 .obv-catalog-layout{display:block}
 .obv-catalog-sidebar{margin-bottom:24px;padding:12px}
 .obv-catalog-sidebar h2{font-size:14px;margin:4px 8px 9px}
 .obv-catalog-sidebar nav{display:flex;overflow:auto;gap:7px;scrollbar-width:thin;padding:0 3px 5px}
 .obv-catalog-sidebar nav a{flex:none;border:1px solid #e1e8f2;padding:9px 12px;font-size:12px}
 .obv-catalog-sidebar nav a span{display:none}
 .obv-sidebar-tip{display:none}
 .obv-results-top{display:block}
 .obv-results-tools{justify-content:flex-start;margin-top:12px}
 .obv-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
 .obv-card-photo{height:155px}
 .obv-card-info{padding:11px}
 .obv-card-price{font-size:17px}
 .obv-card-title{font-size:12px}
 .obv-card-city{font-size:10px}
 .obv-card-list .obv-card-photo{width:145px;min-width:145px}
 #overlay .obv-detail-layout{grid-template-columns:minmax(0,1fr)}
 #overlay .obv-detail-photo img{height:220px}
}
@media(max-width:420px){
 .obv-filter-form{padding:10px}
 .obv-filter-price{width:auto;min-width:0;flex:1 1 85px}
 .obv-filter-city{flex:1 1 125px;max-width:none}
 .obv-filter-submit{flex:0 0 78px;padding:0 12px}
 .obv-catalog-heading h1{font-size:26px}
 .obv-catalog-heading p{font-size:12px}
 .obv-results-top h2{font-size:21px}
 .obv-results-tools button{font-size:10px;padding:7px 8px}
 .obv-card-photo{height:138px}
 .obv-card-price{font-size:16px}
 .obv-card-fav{right:8px;top:8px;width:30px;height:30px}
 .obv-card-list .obv-card-photo{width:115px;min-width:115px}
 .obv-card-list .obv-card-info{padding:12px}
 #overlay .obv-detail-modal{padding:22px 16px}
}

/* Демонстрационные фотографии стороннего сайта не показываем.
   Реальные фото появятся только после публикации собственных объявлений ОБИВО. */
.obv-card-photo{background:linear-gradient(135deg,#eff5fb,#e6f0fb)}
.obv-photo-fallback{flex-direction:column;gap:12px;color:#8ba5c1}
.obv-photo-fallback svg{width:37px;height:37px}
.obv-photo-fallback small{font:500 11px/1.35 Arial,sans-serif;color:#8ea2b8;text-align:center;padding:0 12px}
.obv-detail-photo:has(>span){background:linear-gradient(135deg,#eef5fe,#e5f0fa)}

@media(max-width:740px){
 .obv-catalog-sidebar nav{scrollbar-width:none}
 .obv-catalog-sidebar nav::-webkit-scrollbar{display:none}
}

/* V0.21 — shared listing actions and multi-photo gallery */
.obv-detail-reserve,.obv-detail-share{width:100%;min-height:44px;border-radius:11px;border:1px solid #d3e1f2;padding:10px 14px;font:inherit;font-weight:650;cursor:pointer;display:block;margin:8px 0}
.obv-detail-reserve:not(:disabled){background:#126af2;color:#fff;border-color:#126af2}
.obv-detail-reserve:disabled{background:#e7edf5;color:#64778e;cursor:not-allowed}
.obv-detail-share{background:#fff;color:#1767c9}
.obv-photo-thumbs button:focus-visible{outline:2px solid #1478f9;outline-offset:2px}
.obv-detail-media{min-width:0}
.obv-detail-media .obv-detail-photo{overflow:hidden}
.obv-detail-media .obv-detail-photo img{object-fit:contain}
.obv-catalog-grid .obv-card{min-width:0}
.obv-max-quick-post .obv-post{visibility:visible!important}

.obv-card-photo{grid-template:minmax(0,1fr)/minmax(0,1fr)}
.obv-card-photo img{min-width:0;min-height:0;max-width:100%;max-height:100%}
