
/* Mobile listing alignment — 2026-10-06 */
.sr-page .sr-page__result__navigation{display:flex!important;align-items:center;gap:12px;height:auto!important;min-height:54px;margin:12px 0 20px!important;padding:12px 0!important;position:relative;clear:both;box-sizing:border-box}
.sr-page .sr-page__result__navigation__title{float:none!important;flex:1 1 auto;width:auto!important;height:auto!important;min-width:0;overflow:visible!important;margin:0!important}
.sr-page .sr-page__result__navigation__title:after{display:none!important}
#main .sr-page__result__navigation h1{float:none!important;margin:0!important;padding:0!important;font-size:26px!important;line-height:1.25!important;overflow-wrap:anywhere}
.sr-page .sr-page__list__navigation_view{float:none!important;flex:0 0 auto;position:static!important;margin:0!important}
.sr-page .sr-page__result__navigation>.clearfix{display:none!important}
@media(max-width:767px){
.sr-page .sr-page__result__navigation{align-items:flex-start;flex-wrap:wrap;padding:14px 12px!important;margin:12px 0 18px!important;gap:12px;border-radius:12px;background:#fff}
#main .sr-page__result__navigation h1{font-size:24px!important;line-height:1.25!important}
.sr-page .sr-page__result__navigation__title{flex:1 1 220px}
.sr-page #j-f-listtype{display:flex;gap:8px}
.sr-page #j-f-listtype a{display:flex;align-items:center;justify-content:center;min-width:42px;min-height:42px;padding:0!important;border:1px solid #dce8ee;border-radius:10px;background:#f2f7fa}
.sr-page .sr-2-page-list,.sr-page .sr-2-page-grid{clear:both;position:relative;margin-top:0!important;padding:0 8px;box-sizing:border-box}
.sr-page .sr-2-page-grid .sr-2-box{display:flex!important;flex-wrap:wrap!important;gap:16px;border:0!important}
.sr-page .sr-2-page-grid .spacer,.sr-page .sr-2-box>.clearfix{display:none!important}
.sr-page .sr-2-box .sr-2-grid-item,.sr-page .sr-2-page-grid .sr-2-grid-item{float:none!important;flex:0 0 100%!important;width:100%!important;max-width:100%;height:auto!important;margin:0!important;padding:0!important;box-sizing:border-box}
.sr-page .sr-2-grid-item-in,.sr-page .sr-2-list-item-n-in{display:flex!important;flex-direction:column!important;position:relative!important;inset:auto!important;height:auto!important;min-height:0!important;width:100%!important;padding:12px!important;border:1px solid #deE8ee!important;border-radius:16px;overflow:hidden;box-shadow:0 5px 18px rgba(20,56,85,.06);box-sizing:border-box}
.sr-page .sr-2-list-item-n{margin:0 0 16px!important;width:100%!important}
.sr-page .sr-2-list-item-n-l,.sr-page .sr-2-list-item-n-r{width:100%!important;min-width:0!important;max-width:none!important;float:none!important;padding:0!important;margin:0!important;box-sizing:border-box}
.sr-page .sr-2-item-pic-box{display:flex!important;align-items:center!important;justify-content:center!important;width:100%!important;height:clamp(220px,62vw,320px)!important;min-height:clamp(220px,62vw,320px)!important;max-height:none!important;margin:0!important;background:#f1f5f8;border-radius:11px;overflow:hidden}
.sr-page .sr-2-item-pic-in{display:flex!important;align-items:center;justify-content:center;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important}
.sr-page .sr-2-item-pic-in img{display:block;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:contain!important}
.sr-page .sr-2-grid-item-desc,.sr-page .sr-2-list-item-n-body{position:relative!important;padding:14px 2px 2px!important;margin:0!important;min-width:0}
.sr-page .sr-2-grid-item-cat-box,.sr-page .sr-2-list-item-n-cat-box{line-height:1.4!important;margin-bottom:8px!important;color:#617489}
.sr-page .sr-2-grid-item-title,.sr-page .sr-2-list-item-n-title{height:auto!important;max-height:none!important;margin:0 0 8px!important;line-height:1.35!important;white-space:normal!important;overflow:visible!important}
.sr-page .sr-2-grid-item-title a,.sr-page .sr-2-list-item-n-title a{display:block;font-size:18px!important;font-weight:750;line-height:1.35!important;overflow-wrap:anywhere;color:#173858}
.sr-page .sr-2-grid-item-title:after,.sr-page .sr-2-grid-item-price:after{display:none!important}
.sr-page .sr-2-grid-item-price,.sr-page .sr-2-list-item-n-brice-box{height:auto!important;white-space:normal!important;display:flex!important;flex-wrap:wrap;align-items:flex-start;gap:4px;margin:0 0 8px!important}
.sr-page .sr-2-grid-item-price strong,.sr-page .sr-2-list-item-n-price strong{font-size:20px!important;line-height:1.3!important}
.sr-page .sr-2-item-address{font-size:14px!important;line-height:1.5!important;margin:4px 0!important}
.sr-page .sr-2-item-desc,.sr-page .sr-2-extra-content{font-size:15px!important;line-height:1.5!important;overflow-wrap:anywhere}
.sr-page .sr-2-item-desc{display:-webkit-box!important;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden!important;margin:10px 0!important}
.sr-page .sr-2-item-fav{position:absolute!important;top:20px!important;right:20px!important;z-index:3;border-radius:50%;background:#fff;width:36px;height:36px}
#main{padding-bottom:100px!important}
#j-view-container .v-descr_photos{margin-left:0!important;margin-right:0!important;width:100%!important;max-width:100%}
.ab-promotion,.ab-business{box-sizing:border-box;max-width:100%}
}
/* AB-Baza visual refresh, 2026-10-04. Kept separate from the platform styles. */
:root { --ab-ink:#14263d; --ab-blue:#175d96; --ab-accent:#087f94; --ab-surface:#fff; --ab-line:#e3ebf1; --ab-muted:#617489; }
body { color:var(--ab-ink); background:#f5f8fb; font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif; }
a { color:var(--ab-blue); }
a:hover { color:#0c7796; }
.rn-header { background:#fff; box-shadow:0 4px 24px rgba(20,38,61,.07); }
.rn-header-in { min-height:76px; }
.rn-header-logo-title { color:#143f6c; font-weight:800; letter-spacing:-.035em; }
.rn-header-logo-subtitle { color:var(--ab-muted); }
.rn-header-nav-in a { font-weight:600; }
.rn-f-search-h-index { background:linear-gradient(120deg,#113c67 0%,#176697 62%,#138b9b 100%) !important; border-radius:18px; box-shadow:0 16px 34px rgba(20,67,105,.17); padding:22px 24px; }
.rn-f-search-h-index .rn-f-search-h-line { border-radius:12px; overflow:hidden; background:#fff; border:0; }
.rn-f-search-h-index input, .rn-f-search-h-index button { min-height:48px; }
#main.container { max-width:1200px; }
#main h1 { color:#173858; font-size:clamp(24px,2.4vw,34px); line-height:1.2; letter-spacing:-.035em; font-weight:800; margin:32px auto 25px; }
.index__catlist { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:16px; margin:10px 0 38px; }
.index__catlist__item { width:auto !important; min-height:185px; float:none !important; box-sizing:border-box; padding:22px 18px !important; border:1px solid var(--ab-line); border-radius:16px; background:#fff; box-shadow:0 5px 18px rgba(25,57,83,.045); transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease; }
.index__catlist__item:hover { transform:translateY(-3px); border-color:#aacbdc; box-shadow:0 15px 28px rgba(25,57,83,.1); }
.index__catlist__item .img { display:inline-flex; align-items:center; justify-content:center; width:54px; height:54px; border-radius:14px; background:#eaf5f8; }
.index__catlist__item .img img { max-width:38px; max-height:38px; object-fit:contain; }
.index__catlist__item .title { margin:12px 0 8px; font-size:17px; line-height:1.25; font-weight:750; }
.index__catlist__item .title a { color:#173858; }
.index__catlist__item .links { color:#94a3b3; font-size:13px; line-height:1.65; }
.index__catlist__item .links a { color:#526b81; }
.index__heading, .news__link-all-box { margin:36px 0 18px; }
.index__heading .l-content__title, .news__link-all { color:#173858; font-size:25px; font-weight:800; letter-spacing:-.025em; }
.news__item, .sr-2-grid-item-in { background:#fff; border:1px solid var(--ab-line); border-radius:14px; overflow:hidden; box-shadow:0 5px 18px rgba(25,57,83,.045); }
.sr-2-grid-item-in img { object-fit:cover; }
.l-info { background:#fff; border:1px solid var(--ab-line); border-radius:16px; padding:25px 30px; line-height:1.75; color:#41566b; }
.l-info p:first-child { color:#173858; font-size:24px; font-weight:800; }
.l-footer { margin-top:48px; background:#102a44; color:#d8e6f0; }
.l-footer a { color:#e7f5fd; }
@media(max-width:1100px) { .index__catlist { grid-template-columns:repeat(3,minmax(0,1fr)); } }
@media(max-width:760px) { .index__catlist { grid-template-columns:repeat(2,minmax(0,1fr)); } .rn-f-search-h-index { border-radius:12px; padding:15px; } #main h1 { margin:22px 0 15px; } }
@media(max-width:480px) { .index__catlist { grid-template-columns:1fr; } .l-info { padding:18px; } }
.index__catlist > .clearfix { display:none !important; }
.index__catlist > .collapse.show { display:contents !important; }
.index__catlist > .index__more { grid-column:1/-1; width:auto !important; }
.index__catlist__item { margin:0 !important; height:auto !important; min-height:205px; }
.index__catlist__item .title, .index__catlist__item .links { margin-left:0 !important; margin-right:0 !important; }
.index__catlist > .collapse.show > .clearfix { display:none !important; }

/* Historical blog posts are accessible in the archive, but not featured on the homepage. */
.index-page > .news { display:none; }

/* Readable editorial text on the homepage. */
.l-info { font-size:16px; line-height:1.7; }
.l-info h2 { color:#173858; font-size:27px; line-height:1.25; font-weight:800; margin:0 0 14px; }
.l-info p { margin:0 0 12px; }
.l-info p:last-child { margin-bottom:0; }

/* Keep category icons centered inside their tile. */
.index__catlist__item .img { position:relative; }
.index__catlist__item .img img { position:static !important; left:auto !important; top:auto !important; }

/* Homepage navigation refresh — 2026-10-05 */
.index-page { padding-bottom: 24px; }
.index-page > h1 { max-width: 850px; text-align: center; }
.index-page > h1::before { content: 'НАЙДИТЕ СВОЁ В АБХАЗИИ'; display:block; margin:0 auto 12px; color:#087f94; font-size:12px; line-height:1.4; letter-spacing:.16em; font-weight:800; }
.index-page .l-spacer { height: 4px; }
.index-page .index__catlist { grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; margin-top:20px; margin-bottom:38px; }
.index-page .index__catlist > .clearfix { display:none!important; }
.index-page #index-categories { display:contents!important; }
.index-page .index__catlist__item { position:relative; display:flex; flex-direction:column; min-width:0; min-height:0; padding:18px; border:1px solid #e2ebf2; border-radius:20px; background:#fff; box-shadow:0 8px 25px rgba(20,57,87,.06); transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease; }
.index-page .index__catlist__item:hover { transform:translateY(-3px); border-color:#b4d8e1; box-shadow:0 16px 35px rgba(20,57,87,.11); }
.index-page .index__catlist__item > .img { display:grid; place-items:center; width:56px; height:56px; margin:0 0 13px; border-radius:16px; background:#eaf4f7; }
.index-page .index__catlist__item > .img img { display:block; width:38px; height:38px; object-fit:contain; }
.index-page .index__catlist__item .title { margin:0 0 11px; line-height:1.25; }
.index-page .index__catlist__item .title a { color:#183a58; font-size:19px; font-weight:800; text-decoration:none; }
.index-page .index__catlist__item .title a:hover { color:#087f94; }
.index-page .index__catlist__item .links { display:flex; flex-wrap:wrap; align-content:flex-start; gap:7px; margin:0; color:transparent; font-size:0; line-height:1; }
.index-page .index__catlist__item .links a { display:inline-flex; align-items:center; max-width:100%; min-height:31px; padding:5px 10px; border:1px solid #e4edf3; border-radius:9px; background:#f5f9fb; color:#38546a; font-size:12px; line-height:1.25; text-decoration:none; white-space:normal; }
.index-page .index__catlist__item .links a:hover { border-color:#8bc4d1; background:#e8f5f7; color:#075d73; }
.index-page .index__catlist > .index__catlist__item:nth-child(-n+5) { min-height:238px; background:linear-gradient(145deg,#fff 57%,#f0f9fa); }
.index-page .index__catlist > .index__catlist__item:nth-child(-n+5) .links a:nth-of-type(n+4) { display:none; }
.index-page #index-categories > .index__catlist__item { min-height:106px; padding:15px 17px; display:grid; grid-template-columns:45px 1fr; align-items:center; column-gap:12px; }
.index-page #index-categories > .index__catlist__item > .img { width:45px; height:45px; margin:0; border-radius:13px; }
.index-page #index-categories > .index__catlist__item > .img img { width:31px; height:31px; }
.index-page #index-categories > .index__catlist__item .title { margin:0; }
.index-page #index-categories > .index__catlist__item .title a { font-size:16px; }
.index-page #index-categories > .index__catlist__item .links { display:none; }
.index-page .index__more { grid-column:1/-1; margin-top:2px; text-align:center; }
.index-page .index__more a { display:inline-flex; justify-content:center; align-items:center; min-height:40px; padding:7px 18px; border:1px solid #cfdee8; border-radius:11px; background:#fff; font-weight:700; text-decoration:none; }
.index-page .index__heading { color:#183a58; font-size:25px; font-weight:800; letter-spacing:-.025em; }
@media (max-width:1000px) { .index-page .index__catlist { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media (max-width:767px) {
  .index-page > h1.hidden-phone, .index-page .index__catlist.hidden-phone { display:grid!important; visibility:visible!important; }
  .index-page > h1.hidden-phone { display:block!important; margin:18px 8px 18px!important; font-size:25px!important; line-height:1.2!important; }
  .index-page > h1::before { margin-bottom:8px; font-size:10px; }
  .index-page .index__catlist { grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin:12px 0 27px; }
  .index-page .index__catlist__item { padding:13px; border-radius:16px; }
  .index-page .index__catlist > .index__catlist__item:nth-child(-n+5) { min-height:190px; }
  .index-page .index__catlist__item > .img { width:46px; height:46px; margin-bottom:9px; }
  .index-page .index__catlist__item > .img img { width:32px; height:32px; }
  .index-page .index__catlist__item .title a { font-size:17px; }
  .index-page .index__catlist__item .links { gap:5px; }
  .index-page .index__catlist__item .links a { min-height:29px; padding:5px 7px; font-size:11px; }
  .index-page .index__catlist > .index__catlist__item:nth-child(-n+5) .links a:nth-of-type(n+3) { display:none; }
  .index-page #index-categories > .index__catlist__item { min-height:77px; padding:10px; grid-template-columns:34px 1fr; gap:7px; }
  .index-page #index-categories > .index__catlist__item > .img { width:34px; height:34px; margin:0; border-radius:10px; }
  .index-page #index-categories > .index__catlist__item > .img img { width:26px; height:26px; }
  .index-page #index-categories > .index__catlist__item .title a { font-size:13px; line-height:1.25; }
  .rn-f-search-h-index { border-radius:16px!important; padding:12px!important; box-shadow:0 10px 25px rgba(20,67,105,.13)!important; }
}
@media (max-width:380px) { .index-page .index__catlist { gap:8px; } .index-page .index__catlist > .index__catlist__item:nth-child(-n+5) { min-height:200px; } }

/* Mobile listing and gallery refresh — 2026-10-05 */
@media (max-width:767px) {
  .index-page > h1.hidden-phone { max-width:none!important; padding:0 5px; text-align:left!important; font-size:clamp(24px,6.5vw,30px)!important; line-height:1.18!important; }
  .index-page > h1::before { text-align:left; letter-spacing:.13em; }
  .index-page .index__catlist > .index__catlist__item:nth-child(-n+5) .title a { font-size:17px; line-height:1.25; }
  .index-page .index__catlist > .index__catlist__item:nth-child(-n+5) .links a { font-size:12px; line-height:1.3; min-height:34px; display:inline-flex; align-items:center; }
  .index-page .l-info.hidden-phone { display:block!important; visibility:visible!important; margin:24px 0!important; padding:20px 18px!important; border:1px solid #deebf0; border-radius:18px; background:#fff; box-shadow:0 10px 28px rgba(18,54,82,.07); }
  .index-page .l-info h2 { font-size:22px!important; line-height:1.25!important; margin:0 0 12px!important; color:#173858; }
  .index-page .l-info p { font-size:15px!important; line-height:1.6!important; color:#41566a; margin:0 0 12px!important; }
  .index-page .l-info a { color:#087c9a; font-weight:700; text-decoration:underline; text-underline-offset:3px; }
  #j-bbs-index-latest-block { margin:26px 0 20px; }
  #j-bbs-index-latest-block .l-content__title { font-size:23px!important; line-height:1.2!important; font-weight:800; color:#173858; }
  #j-bbs-index-latest-block .in-slider-item.slick-slide { height:auto!important; }
  #j-bbs-index-latest-block .sr-2-grid-item-in { height:auto!important; min-height:380px; padding:10px!important; border:1px solid #dce8ee; border-radius:18px; background:#fff; box-shadow:0 12px 28px rgba(22,60,90,.12); overflow:hidden; }
  #j-bbs-index-latest-block .sr-2-item-pic-box { width:100%!important; height:clamp(205px,58vw,285px)!important; display:flex; align-items:center; justify-content:center; border-radius:13px; background:#f1f5f8; overflow:hidden; }
  #j-bbs-index-latest-block .sr-2-item-pic-in { width:100%!important; height:100%!important; display:flex!important; align-items:center; justify-content:center; overflow:hidden; }
  #j-bbs-index-latest-block .sr-2-item-pic-in img { width:100%!important; height:100%!important; max-width:none!important; max-height:none!important; object-fit:contain!important; }
  #j-bbs-index-latest-block .sr-2-item-pic-count { right:10px!important; bottom:10px!important; top:auto!important; left:auto!important; padding:5px 9px; border-radius:10px; background:rgba(18,49,73,.84); color:#fff; font-size:13px; }
  #j-bbs-index-latest-block .sr-2-grid-item-desc { padding:12px 3px 4px!important; margin:0!important; }
  #j-bbs-index-latest-block .sr-2-grid-item-title a { display:block; font-size:17px!important; line-height:1.3!important; font-weight:750; color:#173858; }
  #j-bbs-index-latest-block .sr-2-grid-item-price strong { font-size:19px!important; color:#173858; }
  #j-bbs-index-latest-block .sr-2-item-address small { font-size:13px; color:#506578; }
  #j-view-container .v-descr_photos { margin:16px -8px 22px; background:#f2f6f9; border-radius:18px; overflow:hidden; }
  #j-view-container .v-descr_photos .fotorama__stage { background:#f2f6f9; }
  #j-view-container .v-descr_photos .fotorama__nav-wrap { padding:10px 0 12px; background:#fff; }
  #j-view-container .v-descr_photos .fotorama__nav--dots .fotorama__nav__frame { width:22px!important; height:22px!important; }
  #j-view-container .v-descr_photos .fotorama__nav--dots .fotorama__dot { width:9px; height:9px; border:1px solid #438ba4; border-radius:50%; }
  #j-view-container .v-descr_photos .fotorama__nav--dots .fotorama__active .fotorama__dot { width:11px; height:11px; background:#087d99; border-color:#087d99; }
  #j-view-container .v-descr_photos .fotorama__arr { opacity:1!important; visibility:visible!important; filter:drop-shadow(0 2px 4px rgba(0,0,0,.45)); }
}

@media (min-width:768px) {
  #j-bbs-index-latest-block .in-slider-item.slick-slide { height:370px!important; }
  #j-bbs-index-latest-block .sr-2-grid-item-in { height:100%!important; border-radius:16px; overflow:hidden; }
  #j-bbs-index-latest-block .sr-2-item-pic-box { display:flex; align-items:center; justify-content:center; height:190px!important; width:100%!important; border-radius:10px; background:#f0f5f8; overflow:hidden; }
  #j-bbs-index-latest-block .sr-2-item-pic-in { display:flex!important; align-items:center; justify-content:center; width:100%!important; height:100%!important; overflow:hidden; }
  #j-bbs-index-latest-block .sr-2-item-pic-in img { width:100%!important; height:100%!important; max-width:none!important; object-fit:contain!important; }
  #j-bbs-index-latest-block .sr-2-grid-item-desc { padding-top:10px!important; }
}

/* Remove legacy 140px photo cap. */
@media (max-width:767px) {
  #j-bbs-index-latest-block .sr-2-item-pic-box { min-height:clamp(205px,58vw,285px)!important; max-height:none!important; }
  #j-bbs-index-latest-block .sr-2-item-pic-in { max-width:none!important; max-height:none!important; flex:1 1 auto!important; }
}
@media (min-width:768px) {
  #j-bbs-index-latest-block .sr-2-item-pic-box { min-height:190px!important; max-height:none!important; }
  #j-bbs-index-latest-block .sr-2-item-pic-in { max-width:none!important; max-height:none!important; flex:1 1 auto!important; }
}
