/* N-NAnews Market Analytics | Rentals theme.
 * Restored from A-Rentals v0.1.44; adapted to stable markup from A v0.1.45.
 * All selectors are scoped to .nanews-market--rentals. Fonts inherit the NAnews WordPress theme.
 */
.nanews-market--rentals {
  --nanews-rental-border: #d9e4ef;
  --nanews-rental-blue: #176cb0;
}
.nanews-market--rentals .nanews-market-city-description {line-height:1.75; overflow-wrap:anywhere}
.nanews-market--rentals .nanews-market-city-description p {margin:0 0 13px}
.nanews-market--rentals .nanews-market-city-description :is(h2,h3,h4) {margin:16px 0 9px}
.nanews-market--rentals .nanews-market-city-description :is(ul,ol) {padding-inline-start:25px;margin:10px 0}
.nanews-market--rentals .nanews-market-city-description img {max-width:100%;height:auto}

/* Two available advertising positions A and B (desktop); mobile stacks cards. */
.nanews-market--rentals .nanews-market-ad-slots {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-block:12px}
.nanews-market--rentals .nanews-market-card--ad {box-sizing:border-box;min-width:0;background:#fff;border:1px solid var(--nanews-rental-border);border-inline-start:4px solid var(--nanews-rental-blue);border-radius:11px;padding:clamp(14px,1.4vw,22px);box-shadow:0 3px 12px rgba(25,54,80,.05)}
.nanews-market--rentals .nanews-market-ad-layout {display:flex;flex-flow:row nowrap;align-items:flex-start;justify-content:flex-start;gap:clamp(14px,1.5vw,24px);width:100%;min-width:0}
.nanews-market--rentals .nanews-market-ad-media {display:block;flex:0 0 35%;width:35%;max-width:280px;min-width:0;margin:0;line-height:0}
.nanews-market--rentals .nanews-market-ad-image {display:block;width:100%;height:auto;aspect-ratio:1;object-fit:cover;border-radius:9px}
.nanews-market--rentals .nanews-market-ad-body {display:flex;flex:1 1 0%;flex-direction:column;align-items:stretch;gap:12px;min-width:0;width:auto;margin:0}
.nanews-market--rentals .nanews-market-ad-title {display:block;font-size:clamp(17px,1.4vw,21px);line-height:1.4;color:#154c79;overflow-wrap:anywhere}
.nanews-market--rentals .nanews-market-ad-body .nikk-ma-ad-heading-link {display:block;color:#154c79;text-decoration:none}
.nanews-market--rentals .nanews-market-ad-body .nikk-ma-ad-heading-link:hover {text-decoration:underline}
.nanews-market--rentals .nanews-market-ad-description {width:100%;min-width:0;max-height:none;overflow:visible;line-height:1.65;color:#34465c;overflow-wrap:anywhere;font-size:clamp(14px,1.15vw,17px)}
.nanews-market--rentals .nanews-market-ad-description p {margin:0 0 10px}
.nanews-market--rentals .nanews-market-ad-description :is(ul,ol) {padding-inline-start:20px;margin:8px 0}
.nanews-market--rentals .nanews-market-ad-description [hidden] {display:none!important}
.nanews-market--rentals .nanews-market-ad-expand {display:inline-flex;align-self:flex-start;align-items:center;padding:7px 0;margin:0;border:0;background:transparent;color:#1666a6;text-decoration:underline;text-underline-offset:3px;cursor:pointer;font:inherit;font-size:14px;font-weight:600}
.nanews-market--rentals .nanews-market-ad-expand:hover {color:#0d426c}
.nanews-market--rentals .nanews-market-ad-cta,
.nanews-market--rentals .nanews-market-ad-cta:link,
.nanews-market--rentals .nanews-market-ad-cta:visited {display:inline-flex;align-items:center;justify-content:center;align-self:flex-start;max-width:100%;padding:11px 18px;border:1px solid #155d9c;border-radius:8px;background:#176cb0;color:#fff!important;font-size:15px;font-weight:700;line-height:1.4;text-align:center;text-decoration:none!important;cursor:pointer}
.nanews-market--rentals .nanews-market-ad-cta:hover,
.nanews-market--rentals .nanews-market-ad-cta:focus-visible {background:#104f87;color:#fff!important}

/* Price ranges, availability and average costs use different visible rows. */
.nanews-market--rentals .nanews-market-segment-list {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:15px 0}
.nanews-market--rentals .nanews-market-card--segment {display:flex;flex-flow:column nowrap;align-items:stretch;gap:9px;min-width:0;background:#fff;border:1px solid var(--nanews-rental-border);border-radius:10px;padding:18px}
.nanews-market--rentals .nanews-market-segment-heading {line-height:1.35;color:#1e4b71}
.nanews-market--rentals .nanews-market-segment-heading strong {font-size:17px}
.nanews-market--rentals .nanews-market-segment-range {display:block;line-height:1.45;font-size:21px;font-weight:700;color:#194b77;overflow-wrap:anywhere}
.nanews-market--rentals .nanews-market-segment-count {display:block;color:#4e6174;font-size:15px}
.nanews-market--rentals .nanews-market-segment-average {display:flex;flex-flow:row wrap;align-items:baseline;gap:5px 10px;line-height:1.5;color:#334b63}
.nanews-market--rentals .nanews-market-segment-average strong {font-size:17px;color:#194b77;white-space:nowrap}

/* Aggregated prices and m²-statistic: no crammed text and no opposite-edge value. */
.nanews-market--rentals .nanews-market-summary-list {list-style:none;margin:0;padding:0}
.nanews-market--rentals .nanews-market-summary-list > li {display:flex!important;flex-flow:row wrap!important;justify-content:flex-start!important;align-items:baseline!important;column-gap:10px;row-gap:3px;border-bottom:1px solid #e1e9f1;padding:10px 0}
.nanews-market--rentals .nanews-market-summary-list > li:last-child {border-bottom:0}
.nanews-market--rentals .nanews-market-metric-label {display:inline!important;flex:0 1 auto}
.nanews-market--rentals .nanews-market-summary-list .nikk-market-metric-separator {display:inline!important;color:#65788d}
.nanews-market--rentals .nanews-market-metric-value {display:inline-block!important;flex:0 0 auto;width:auto!important;margin:0!important;padding:0!important;text-align:start!important;white-space:nowrap;color:#194b77;font-size:1.1em}
.nanews-market--rentals .nanews-market-stat--per-square-meter {display:grid!important;grid-template-columns:minmax(0,1fr);gap:10px;justify-items:start;align-items:start;padding:clamp(14px,2vw,24px);background:#fff;border:1px solid #d5e5f1;border-radius:10px}
.nanews-market--rentals .nanews-market-stat--per-square-meter :is(.nanews-market-stat-label,.nikk-market-key-stat-value-row,.nanews-market-stat-note) {display:block!important;width:100%;min-width:0}
.nanews-market--rentals .nanews-market-stat-value {display:block;font-size:clamp(25px,3.2vw,38px);line-height:1.2;color:#194b77}
.nanews-market--rentals .nanews-market-stat-note {color:#5d6c7c}

/* Listings, local city comparisons, and navigation. */
.nanews-market--rentals .nanews-market-card--listing {margin:0 0 12px;padding:16px 18px;background:#f9fbfd;border:1px solid #dde6ef;border-radius:10px}
.nanews-market--rentals .nanews-market-card--listing h4 {margin:0 0 10px;font-size:17px;line-height:1.4}
.nanews-market--rentals .nanews-market-listing-facts {display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:0 0 8px}
.nanews-market--rentals .nanews-market-listing-facts strong {color:#124b7b;font-size:19px}
.nanews-market--rentals .nanews-market-listing-facts span {border-radius:16px;padding:3px 10px;background:#e9f2fa;color:#31546f}
.nanews-market--rentals .nanews-market-card--listing p {line-height:1.65;margin:10px 0}
.nanews-market--rentals .nanews-market-card--listing small {color:#5b6978}
.nanews-market--rentals .nanews-market-neighbor {padding:16px 0;border-bottom:1px solid #dce5ec}
.nanews-market--rentals .nanews-market-neighbor h3 {margin:0 0 12px;font-size:19px}
.nanews-market--rentals .nanews-market-pagination {display:flex;justify-content:center;gap:10px;padding:18px 0;flex-wrap:wrap}
.nanews-market--rentals .nanews-market-pagination a {border:1px solid #ccd4dd;border-radius:7px;padding:7px 13px}
.nanews-market--rentals .nanews-market-pagination a[aria-current] {background:#253949;color:#fff}
.nanews-market--rentals .nanews-market-neighbor-summary {padding:12px 15px;border-inline-start:4px solid #1b70b8;background:#fff;border-radius:6px;line-height:1.7}

/* RU/HE share styles; the HTML dir attribute determines layout direction. */
@media (max-width:860px) {
 .nanews-market--rentals .nanews-market-ad-slots,.nanews-market--rentals .nanews-market-segment-list {grid-template-columns:minmax(0,1fr)}
}
@media (max-width:680px) {
 .nanews-market--rentals .nanews-market-card--ad {padding:12px}
 .nanews-market--rentals .nanews-market-ad-layout {flex-direction:column;align-items:stretch;gap:14px}
 .nanews-market--rentals .nanews-market-ad-media,.nanews-market--rentals .nanews-market-ad-body {display:flex;flex:none;width:100%;max-width:100%}
 .nanews-market--rentals .nanews-market-ad-media {display:block}
 .nanews-market--rentals .nanews-market-ad-image {width:100%;height:auto;aspect-ratio:1}
 .nanews-market--rentals .nanews-market-ad-title {font-size:19px}
 .nanews-market--rentals .nanews-market-ad-description {font-size:15px}
 .nanews-market--rentals .nanews-market-ad-cta {width:100%;align-self:stretch}
 .nanews-market--rentals .nanews-market-card--listing {padding:13px}
 .nanews-market--rentals .nanews-market-summary-list > li {display:flex!important;flex-wrap:wrap!important}
}

/* v1.3.4 — Advertising cards use a real two-column layout with a bounded
   image and readable copy. This guards against aggressive theme rules. */
.nanews-market--rentals .nanews-market-ad-slots {
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:clamp(12px,1.6vw,22px);
  align-items:stretch;
}
.nanews-market--rentals .nanews-market-card--ad {width:100%;max-width:100%;min-width:0;overflow:hidden}
.nanews-market--rentals .nanews-market-ad-layout {
  display:grid!important;
  grid-template-columns:minmax(110px,30%) minmax(0,1fr);
  gap:clamp(12px,1.5vw,22px);
  align-items:start; width:100%; min-width:0;
}
.nanews-market--rentals .nanews-market-ad-media,
.nanews-market--rentals .nanews-market-ad-body {
  display:block; width:100%!important; max-width:100%!important;
  min-width:0!important; margin:0; flex:none!important;
}
.nanews-market--rentals .nanews-market-ad-body {display:flex!important;flex-direction:column;gap:12px}
.nanews-market--rentals .nanews-market-card--ad :is(a,p,strong,div) {
  word-break:normal!important;overflow-wrap:break-word!important;
  writing-mode:horizontal-tb!important;
}
.nanews-market--rentals .nanews-market-ad-title,
.nanews-market--rentals .nanews-market-ad-description {width:100%;white-space:normal!important}
/* Pagination heading occupies its own row; buttons cannot overlap it. */
.nanews-market--rentals nav.nanews-market-pagination {
  display:block!important;max-width:100%;width:100%;padding:20px 0;
}
.nanews-market--rentals .nanews-market-pagination-status {
  display:block!important;text-align:center;max-width:100%;width:100%;
  margin:0 0 16px!important;line-height:1.5;
}
.nanews-market--rentals .nanews-market-pagination-grid {
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));
  align-items:start;gap:14px;max-width:100%;min-width:0;
}
.nanews-market--rentals .nanews-market-pagination-grid > details {
  display:block;box-sizing:border-box;min-width:0;width:100%;max-width:100%;
  margin:0!important;padding:10px 14px;
  border:1px solid #d4dbe4;border-radius:7px;
  background:#f8fbff;
}
.nanews-market--rentals .nanews-market-pagination-grid > details > summary {
  display:list-item;cursor:pointer;min-width:0;padding:6px 2px;
  line-height:1.5;white-space:normal;overflow-wrap:break-word;word-break:normal;
}
.nanews-market--rentals .nanews-market-pagination-grid > details[open] {grid-column:1/-1}
.nanews-market--rentals .nanews-market-pagination-grid > details > summary strong {white-space:normal}
@media (max-width:980px) {
 .nanews-market--rentals .nanews-market-ad-slots {grid-template-columns:minmax(0,1fr)!important}
}
@media (max-width:680px) {
 .nanews-market--rentals .nanews-market-ad-layout {grid-template-columns:minmax(0,1fr)}
 .nanews-market--rentals .nanews-market-pagination-grid {grid-template-columns:minmax(0,1fr)}
 .nanews-market--rentals .nanews-market-card--ad {padding:12px}
}

/* v1.3.5 — Do not allow RTL ad cards to overflow their own two-column grid;
   the site's language switch remains OUTSIDE these cards. */
.nanews-market--rentals[dir="rtl"] .nanews-market-ad-slots,
.nanews-market--rentals[dir="rtl"] .nanews-market-ad-layout {
  direction:rtl;
}
.nanews-market--rentals[dir="rtl"] .nanews-market-card--ad,
.nanews-market--rentals[dir="rtl"] .nanews-market-ad-body,
.nanews-market--rentals[dir="rtl"] .nanews-market-ad-description {
  direction:rtl;
  text-align:start;
  min-width:0;
  max-width:100%;
}
.nanews-market--rentals .nanews-market-ad-description .nikk-ma-ad-excerpt[hidden],
.nanews-market--rentals .nanews-market-ad-description .nikk-ma-ad-full[hidden] {
  display:none!important;
}
.nanews-market--rentals .nanews-market-ad-description .nikk-ma-ad-excerpt,
.nanews-market--rentals .nanews-market-ad-description .nikk-ma-ad-full {
  overflow-wrap:break-word;
  word-break:normal;
  white-space:normal;
}
.nanews-market--rentals .nanews-market-ad-expand[aria-expanded="true"] {
  text-decoration-thickness:2px;
}
