/* BEST ESTATE - Stage 6a: single listing page only.
   Load AFTER themes/atlas/css/style.css. No gallery or tab JS changes. */
body.viewlisting .pdg-apartment-block .title.highlight-left-right {
  text-align: left;
  padding: 16px 18px;
  margin: 0 0 18px;
  background: #fff;
  border-left: 5px solid #FFC700;
  border-bottom: 1px solid #e8e8e8;
  line-height: 1.35;
}
body.viewlisting .pdg-apartment-block .title.highlight-left-right > div {
  padding: 0;
  background: transparent;
}
body.viewlisting .pdg-apartment-block .title.highlight-left-right h1 {
  font-family: Arial, sans-serif;
  font-size: 25px;
  line-height: 1.3;
  font-weight: 700;
  color: #111;
  text-transform: none;
  background: transparent;
}
body.viewlisting .b_item__slider {
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  overflow: hidden;
}
body.viewlisting .b_item__info.block-right {
  box-sizing: border-box;
  background: #fff;
  border: 1px solid #e6e6e6;
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 4px 18px rgba(0,0,0,.045);
}
body.viewlisting .b_item__info .name {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: #424242;
}
body.viewlisting .b_item__info .price {
  font-family: Arial, sans-serif;
  padding: 14px 12px;
  margin: 0 0 12px;
  background: #fff9df;
  border-left: 4px solid #FFC700;
  border-radius: 4px;
  color: #111;
  font-weight: 700;
  line-height: 1.35;
}
body.viewlisting .b_item__info .price .number,
body.viewlisting .b_item__info .price .currency { color: #111 !important; font-weight: 700; }
body.viewlisting .b_item__info .block_item {
  margin-top: 18px;
  padding: 14px;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
}
body.viewlisting .b_item__info .title_block_item {
  font-weight: 700;
  color: #111;
  border-bottom: 2px solid #FFC700;
  padding-bottom: 8px;
}
body.viewlisting .b_item_aux__tabs .tabs { margin-top: 20px !important; }
body.viewlisting .b_item_aux__tabs .resp-tabs-list li.resp-tab-active,
body.viewlisting .b_item_aux__tabs .resp-tabs-list li a.active_tabs {
  border-bottom-color: #FFC700;
  background: #fff9df;
  color: #111;
}
body.viewlisting .b_item_aux__tabs .resp-tab-content {
  border-color: #e5e5e5;
  background: #fff;
}
body.viewlisting .b_item_aux__tabs .ap-descr dt { color: #555; }
body.viewlisting .b_item_aux__tabs .ap-descr dd { color: #111; }
@media (max-width: 768px) {
  body.viewlisting .pdg-apartment-block .title.highlight-left-right { padding: 12px; }
  body.viewlisting .pdg-apartment-block .title.highlight-left-right h1 { font-size: 21px; }
  body.viewlisting .b_item__info.block-right {
    position: static;
    display: block;
    width: auto;
    margin: 15px 0;
    padding: 14px;
  }
  body.viewlisting .b_item__slider { max-width: 100%; }
  body.viewlisting #imgHolder { max-width: 100%; width: auto; }
  body.viewlisting #imgHolder img { max-width: 100%; height: auto; }
  body.viewlisting .b_item_aux__tabs { max-width: 100%; }
}

/* BEST ESTATE 6b - one-column property layout; scoped to updated view.php */
.bestate-property-6b .b_item,
.bestate-property-6b .b_item__slider,
.bestate-property-6b .b_item__info.block-right,
.bestate-property-6b .b_item_aux,
.bestate-property-6b .b_item_aux__tabs {
  float: none !important;
  clear: both !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  position: static !important;
  left: auto !important;
  right: auto !important;
}
.bestate-property-6b .b_item__info.block-right {
  margin: 18px 0 22px !important;
  padding: 20px !important;
}
.bestate-property-6b .b_item__info .name {
  margin-bottom: 12px;
}
.bestate-property-6b .b_item__info .block_item {
  width: auto !important;
  float: none !important;
  margin: 16px 0 !important;
}
/* Tabs: remove outlines, including active and focus states. */
.bestate-property-6b .b_item_aux__tabs .resp-tabs-list li,
.bestate-property-6b .b_item_aux__tabs .resp-tabs-list li a,
.bestate-property-6b .b_item_aux__tabs .resp-tabs-list li.resp-tab-active,
.bestate-property-6b .b_item_aux__tabs .resp-tabs-list li a.active_tabs {
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}
.bestate-property-6b .b_item_aux__tabs .resp-tabs-list li.resp-tab-active,
.bestate-property-6b .b_item_aux__tabs .resp-tabs-list li a.active_tabs {
  background: #fff5cb !important;
}
/* Gallery active thumbnail: yellow rather than blue. */
.bestate-property-6b .jcarousel li.active,
.bestate-property-6b .jcarousel li.selected,
.bestate-property-6b .jcarousel li.active img,
.bestate-property-6b .jcarousel li.selected img,
.bestate-property-6b .jcarousel-item.active,
.bestate-property-6b .jcarousel-item.selected,
.bestate-property-6b .jcarousel-item.active img,
.bestate-property-6b .jcarousel-item.selected img,
.bestate-property-6b .active-thumb,
.bestate-property-6b .active-thumb img {
  border-color: #FFC700 !important;
  outline-color: #FFC700 !important;
}
@media (max-width: 768px) {
  .bestate-property-6b .b_item__info.block-right { padding: 14px !important; }
}

/* Stage 6c: listing metadata and price before the gallery */
.bestate-property-6c .bestate-property-summary {margin: 0 0 12px; padding: 0 4px; font: 15px/1.55 Arial,sans-serif; color: #555;}
.bestate-property-6c .bestate-property-summary__type {font-weight: 600; color: #333;}
.bestate-property-6c .bestate-property-summary__location {color: #666; margin-top: 3px;}
.bestate-property-6c .bestate-property-price-row {display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:12px; padding:14px 18px; margin:0 0 18px; background:#fff9df; border-left:4px solid #ffc700; border-radius:5px; box-sizing:border-box;}
.bestate-property-6c .bestate-property-price-row__price {min-width:0; flex:1 1 220px;}
.bestate-property-6c .bestate-property-price-row .price {margin:0!important; padding:0!important; border:0!important; background:none!important; font:bold 25px/1.3 Arial,sans-serif; color:#111!important;}
.bestate-property-6c .bestate-property-price-row .price * {color:#111!important;}
.bestate-property-6c .bestate-property-price-row__compare {flex:0 1 auto;}
.bestate-property-6c .bestate-property-price-row .b_itemlinks,
.bestate-property-6c .bestate-property-price-row .b_itemlinks__links,
.bestate-property-6c .bestate-property-price-row .compare-check-control {margin:0!important; padding:0!important; float:none!important; width:auto!important;}
.bestate-property-6c .bestate-property-price-row .compare-check-control {display:flex; align-items:center; gap:7px;}
.bestate-property-6c .bestate-property-price-row .compare-check {float:none!important; margin:0!important; accent-color:#ffc700;}
.bestate-property-6c .bestate-property-price-row .compare-label {color:#222; white-space:nowrap;}
.bestate-property-6c .b_item,
.bestate-property-6c .b_item__slider,
.bestate-property-6c .b_item_aux,
.bestate-property-6c .b_item_aux__tabs {float:none!important; clear:both!important; position:static!important; width:100%!important; max-width:100%!important; box-sizing:border-box!important;}
.bestate-property-6c .bestate-property-bottom-grid {display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:18px; margin:26px 0 22px; clear:both;}
.bestate-property-6c .bestate-property-bottom-card {min-width:0; box-sizing:border-box; padding:18px; background:#fff; border:1px solid #e6e6e6; border-radius:8px;}
.bestate-property-6c .bestate-property-bottom-card .block_item {float:none!important; width:auto!important; max-width:100%!important; margin:0!important; padding:0!important; border:0!important; box-shadow:none!important;}
.bestate-property-6c .bestate-property-bottom-card .title_block_item {font-weight:700; color:#111; border-bottom:2px solid #ffc700; padding-bottom:8px; margin-bottom:12px;}
.bestate-property-6c .bestate-property-bottom-card .qr-code {display:block; margin-bottom:12px;}
.bestate-property-6c .b_item_aux__tabs .resp-tabs-list li,
.bestate-property-6c .b_item_aux__tabs .resp-tabs-list li a,
.bestate-property-6c .b_item_aux__tabs .resp-tabs-list li.resp-tab-active,
.bestate-property-6c .b_item_aux__tabs .resp-tabs-list li a.active_tabs,
.bestate-property-6c .b_item_aux__tabs .resp-tab-content {border:0!important; outline:0!important; box-shadow:none!important;}
.bestate-property-6c .b_item_aux__tabs .resp-tabs-list li.resp-tab-active,
.bestate-property-6c .b_item_aux__tabs .resp-tabs-list li a.active_tabs {background:#fff5cb!important;}
/* Gallery: selected thumbnail, across common widget class names */
.bestate-property-6c .jcarousel .active,
.bestate-property-6c .jcarousel .selected,
.bestate-property-6c .jcarousel .active img,
.bestate-property-6c .jcarousel .selected img,
.bestate-property-6c .jcarousel .current,
.bestate-property-6c .jcarousel .current img,
.bestate-property-6c .jcarousel .active a,
.bestate-property-6c .jcarousel .selected a,
.bestate-property-6c .jcarousel .current a,
.bestate-property-6c .active-thumb,
.bestate-property-6c .active-thumb img {border-color:#ffc700!important; outline-color:#ffc700!important;}
@media(max-width:700px){
  .bestate-property-6c .bestate-property-bottom-grid {grid-template-columns:1fr; gap:12px;}
  .bestate-property-6c .bestate-property-price-row {padding:12px;}
  .bestate-property-6c .bestate-property-price-row .price {font-size:21px;}
  .bestate-property-6c .bestate-property-bottom-card {padding:14px;}
}

/* Stage 6d: title and price on the same horizontal level. */
.bestate-property-6d .bestate-property-hero {display:grid; grid-template-columns:minmax(0,1fr) minmax(290px,0.83fr); align-items:start; gap:18px; margin:0 0 18px;}
.bestate-property-6d .bestate-property-hero__heading {min-width:0;}
.bestate-property-6d .pdg-apartment-block {margin:0!important; padding:0!important;}
.bestate-property-6d .pdg-apartment-block .title.highlight-left-right {display:flex; flex-wrap:wrap; align-items:center; gap:8px; margin:0 0 6px!important; padding:10px 12px!important; box-sizing:border-box;}
.bestate-property-6d .pdg-apartment-block .title.highlight-left-right > div {flex:1 1 230px; min-width:0;}
.bestate-property-6d .pdg-apartment-block .title.highlight-left-right h1 {font-size:clamp(19px,2vw,25px)!important; line-height:1.28!important; overflow-wrap:anywhere; margin:0!important;}
.bestate-property-6d .pdg-apartment-block .title.highlight-left-right > a {flex:0 0 auto;}
.bestate-property-6d .bestate-property-hero__location {font:14px/1.45 Arial,sans-serif; color:#666; padding:2px 12px;}
.bestate-property-6d .bestate-property-price-row {margin:0!important; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:10px; padding:12px 14px; min-width:0;}
.bestate-property-6d .bestate-property-price-row__price {flex:1 1 100%; min-width:0;}
.bestate-property-6d .bestate-property-price-row .price {font-size:clamp(21px,2vw,26px)!important; overflow-wrap:anywhere;}
.bestate-property-6d .bestate-property-price-row__compare {flex:1 1 135px; min-width:0;}
.bestate-property-6d .bestate-property-price-row__qr {flex:0 0 auto; margin-left:auto;}
.bestate-property-6d .bestate-property-price-row__qr .qr-code {display:block; margin:0; line-height:0;}
.bestate-property-6d .bestate-property-price-row__qr .qr-code img {display:block; width:72px!important; height:72px!important; max-width:72px!important; object-fit:contain;}
.bestate-property-6d .bestate-property-price-row .compare-label {white-space:normal!important;}
@media(max-width:760px) {
  .bestate-property-6d .bestate-property-hero {grid-template-columns:minmax(0,1fr); gap:12px;}
  .bestate-property-6d .bestate-property-price-row__price {flex-basis:180px;}
}


/* Stage 6e: gallery-aligned heading and compact right price panel. */
.bestate-property-6e .bestate-property-hero {
  display:grid!important;
  grid-template-columns:minmax(0, 2fr) minmax(0, 1fr)!important;
  gap:16px!important;
  align-items:start!important;
  width:100%!important;
  margin:0 0 18px!important;
}
.bestate-property-6e .bestate-property-hero__heading,
.bestate-property-6e .bestate-property-price-row {min-width:0!important; box-sizing:border-box!important;}
.bestate-property-6e .pdg-apartment-block .title.highlight-left-right {
  display:flex!important; flex-wrap:nowrap!important; align-items:flex-start!important;
  padding:0 0 8px!important; margin:0!important; gap:8px!important;
  border:0!important; background:none!important; box-shadow:none!important;
}
.bestate-property-6e .pdg-apartment-block .title.highlight-left-right > div {min-width:0!important; flex:1 1 auto!important;}
.bestate-property-6e .pdg-apartment-block .title.highlight-left-right h1 {
  font-family:Arial,sans-serif!important; font-size:clamp(18px,2.1vw,25px)!important;
  line-height:1.24!important; font-weight:700!important; margin:0!important;
  overflow-wrap:normal!important; word-break:normal!important;
}
.bestate-property-6e .pdg-apartment-block .title.highlight-left-right > a {flex:0 0 auto!important; margin-top:3px!important;}
.bestate-property-6e .bestate-property-hero__location {padding:3px 0 0!important; font-size:13px!important;}
.bestate-property-6e .bestate-property-price-row {
  display:flex!important; flex-direction:column!important; flex-wrap:nowrap!important;
  align-items:flex-start!important; justify-content:flex-start!important;
  gap:5px!important; padding:0!important; margin:0!important;
  background:none!important; border:0!important; border-radius:0!important; box-shadow:none!important;
}
.bestate-property-6e .bestate-property-price-row__price,
.bestate-property-6e .bestate-property-price-row__qr,
.bestate-property-6e .bestate-property-price-row__compare {
  flex:none!important; width:100%!important; min-width:0!important; margin:0!important; padding:0!important;
}
.bestate-property-6e .bestate-property-price-row .price,
.bestate-property-6e .bestate-property-price-row .price * {
  font-family:Arial,sans-serif!important; font-size:clamp(18px,2.1vw,25px)!important;
  font-weight:700!important; line-height:1.24!important; color:#111!important;
}
.bestate-property-6e .bestate-property-price-row__qr {order:2!important;}
.bestate-property-6e .bestate-property-price-row__compare {order:3!important;}
.bestate-property-6e .bestate-property-price-row__price {order:1!important;}
.bestate-property-6e .bestate-property-price-row__qr .qr-code {display:block!important; margin:0!important;}
.bestate-property-6e .bestate-property-price-row__qr .qr-code img {width:72px!important; height:72px!important;}
.bestate-property-6e .bestate-property-price-row .compare-check-control {gap:6px!important;}
.bestate-property-6e .bestate-property-price-row .compare-label {font-size:13px!important;}
/* Two unbordered equal-width blocks after the map. */
.bestate-property-6e .bestate-property-bottom-grid {
  display:grid!important; grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;
  width:100%!important; max-width:100%!important; gap:18px!important;
  clear:both!important; margin:24px 0 20px!important; box-sizing:border-box!important;
}
.bestate-property-6e .bestate-property-bottom-card {
  display:block!important; width:auto!important; min-width:0!important;
  float:none!important; margin:0!important; padding:8px 0!important;
  border:0!important; border-radius:0!important; background:transparent!important; box-shadow:none!important;
}
.bestate-property-6e .bestate-property-bottom-card .block_item {
  border:0!important; outline:0!important; box-shadow:none!important; background:transparent!important;
  padding:0!important; margin:0!important; width:100%!important;
}
.bestate-property-6e .bestate-property-bottom-card .title_block_item {
  border:0!important; padding:0!important; margin:0 0 10px!important;
}
@media(max-width:650px) {
  .bestate-property-6e .bestate-property-hero {grid-template-columns:minmax(0,1fr)!important; gap:10px!important;}
  .bestate-property-6e .bestate-property-bottom-grid {grid-template-columns:minmax(0,1fr)!important; gap:12px!important;}
}

/* Stage 6h: additions; keep ALL 6e rules active via both classes in view.php. */
.bestate-property-6h .pdg-apartment-block .title.highlight-left-right h1 {
  display:block!important; white-space:normal!important; overflow:visible!important;
  text-overflow:clip!important; max-height:none!important; height:auto!important;
  -webkit-line-clamp:unset!important; overflow-wrap:break-word!important;
}
.bestate-property-6h .bestate-property-hero__location a {color:#333; text-decoration:underline;}
.bestate-property-6h .bestate-property-hero__heading .bestate-property-price-row__compare {
  display:block!important; float:none!important; clear:both!important;
  width:auto!important; margin:8px 0 0!important; padding:0!important;
}
.bestate-property-6h .bestate-property-hero__heading .compare-check-control {
  display:flex!important; align-items:center!important; gap:7px!important;
  margin:0!important; padding:0!important;
}
.bestate-property-6h .bestate-property-hero__heading .compare-check {float:none!important; accent-color:#ffc700;}
.bestate-property-6h .bestate-property-hero__heading .compare-label {font-size:13px!important; white-space:normal!important;}
.bestate-property-6h .big-special-offer,
.bestate-property-6h .big-special-offer h4 {background:#ffc700!important; color:#111!important;}
.bestate-property-6h .bestate-property-price-row__price .price {
  display:inline-block!important; width:auto!important; max-width:100%!important;
  box-sizing:border-box!important; background:#ffc700!important; border:0!important;
  border-radius:4px!important; padding:8px 12px!important; margin:0!important; color:#111!important;
}
.bestate-property-6h .bestate-property-price-row__qr,
.bestate-property-6h .bestate-property-price-row__qr .qr-code {background:#fff!important;}

/* Stage 6i: hide location in PHP; keep comparison below heading. */
.bestate-property-6i .pdg-apartment-block {
  height:auto!important; min-height:0!important; overflow:visible!important;
}
.bestate-property-6i .pdg-apartment-block .title.highlight-left-right {
  height:auto!important; max-height:none!important; min-height:0!important;
  overflow:visible!important; position:relative!important;
}
.bestate-property-6i .pdg-apartment-block .title.highlight-left-right > div {
  height:auto!important; max-height:none!important; overflow:visible!important;
}
.bestate-property-6i .pdg-apartment-block .title.highlight-left-right h1 {
  height:auto!important; max-height:none!important; overflow:visible!important;
  white-space:normal!important; -webkit-line-clamp:unset!important;
}
/* Neutralize the theme's absolute/overlay positioning of special offer. */
.bestate-property-6i .pdg-apartment-block .big-special-offer {
  position:static!important; float:none!important; clear:both!important;
  display:table!important; width:auto!important; max-width:100%!important;
  height:auto!important; min-height:0!important; max-height:none!important;
  padding:0!important; margin:10px 0 8px!important;
  background:transparent!important; border:0!important; box-shadow:none!important;
  transform:none!important; overflow:visible!important;
}
.bestate-property-6i .pdg-apartment-block .big-special-offer h4 {
  position:static!important; float:none!important; display:block!important;
  width:auto!important; height:auto!important; max-width:100%!important;
  padding:6px 12px!important; margin:0!important; box-sizing:border-box!important;
  background:#ffc700!important; color:#111!important; border:0!important;
  font:bold 13px/1.4 Arial,sans-serif!important; text-align:left!important;
  transform:none!important;
}
.bestate-property-6i .pdg-apartment-block .big-special-offer p {
  position:static!important; background:#fff!important; margin:5px 0 0!important;
}
.bestate-property-6i .bestate-property-hero__heading .bestate-property-price-row__compare {
  margin:10px 0 0!important;
}
