/*
 * "Keystone" (real estate): a modern agency. A deep navy-black header and opening, a white page, one strong blue,
 * Jost throughout, rounded cards. The opening is a wide photo with rounded bottom corners: the words on the left and
 * a Rent / Sale search in a frosted panel on the right. Then property types as tiles, the newest properties, about
 * you, the steps you follow (boxes with a blue corner), your numbers on a dark band, featured properties as tall
 * pictures, your agents, what clients say on a soft band and a blue call to action.
 *
 * The real estate sections (realestate.css) are drawn from the --re-* colours set here.
 */
:root {
    --ks-night: #0b1220;
    --ks-night-2: #121b2e;
    --ks-blue: #2563eb;
    --ks-blue-dark: #1d4ed8;
    --ks-tint: #eef3fe;
    --ks-soft: #f4f7fc;

    --re-accent: var(--primary-color, #2563eb);
    --re-on-accent: #ffffff;
    --re-ink: #0b1220;
    --re-text: #4b5565;
    --re-mute: #6b7384;
    --re-line: #e6eaf1;
    --re-bg: #ffffff;
    --re-soft: var(--ks-soft);
    --re-dark: var(--ks-night);
    --re-radius: 16px;
    --re-radius-sm: 10px;
    --re-head-font: "Jost", "Helvetica Neue", Arial, sans-serif;
    --re-head-weight: 600;
    --re-wrap: 1280px;
    --re-shadow: 0 1px 2px rgba(11, 18, 32, .04), 0 10px 30px rgba(11, 18, 32, .06);
    --re-shadow-lift: 0 22px 50px rgba(11, 18, 32, .14);
}

/* The page and type; the header on navy-black, so it runs into the opening. */
body[data-pf-site="realestate"] { font-family: "Jost", "Helvetica Neue", Arial, sans-serif; background: #fff !important; }
html body[data-pf-site="realestate"] h1, html body[data-pf-site="realestate"] h2, html body[data-pf-site="realestate"] h3,
html body[data-pf-site="realestate"] .sx-h1 { font-family: var(--re-head-font) !important; }
body[data-pf-site="realestate"] .header_wrap,
body[data-pf-site="realestate"] .header_wrap .middle-header,
body[data-pf-site="realestate"] .header_wrap .bottom_header,
body[data-pf-site="realestate"] .header_wrap .top-header { background: var(--ks-night) !important; border-color: transparent !important; }
body[data-pf-site="realestate"] .header_wrap .navbar-brand,
body[data-pf-site="realestate"] .header_wrap .navbar-brand span { color: #fff !important; font-size: 24px; font-weight: 600; }
/* The menu in the dark header, on a computer (a phone's menu opens on a white drawer and keeps its dark words). The
   html first: site.css colours a website's menu with its text colour, more specifically than a plain rule. */
@media (min-width: 992px) {
    html body[data-pf-site="realestate"] .header_wrap .bottom_header .navbar-nav:not(.attr-nav) > li > .nav-link { color: rgba(255, 255, 255, .82) !important; font-size: 15px !important; font-weight: 500 !important; }
    html body[data-pf-site="realestate"] .header_wrap .bottom_header .navbar-nav:not(.attr-nav) > li > .nav-link:hover,
    html body[data-pf-site="realestate"] .header_wrap .bottom_header .navbar-nav:not(.attr-nav) > li.active > .nav-link,
    html body[data-pf-site="realestate"] .header_wrap .bottom_header .navbar-nav:not(.attr-nav) > li > .nav-link.active { color: #fff !important; box-shadow: inset 0 -2px 0 var(--re-accent); }
}
body[data-pf-site="realestate"] .header_wrap .navbar-toggler,
body[data-pf-site="realestate"] .header_wrap .navbar-toggler span,
body[data-pf-site="realestate"] .header_wrap .ion-android-menu { color: #fff !important; }
/* The platform's own wordmark (a website with no logo yet) is black: white here. A logo the owner uploads is left as it is. */
body[data-pf-site="realestate"] .navbar-brand img[src*="store-wordmark"],
body[data-pf-site="realestate"] .footer_logo img[src*="store-wordmark"] { filter: brightness(0) invert(1); }
body[data-pf-site="realestate"] footer, body[data-pf-site="realestate"] footer .footer_top, body[data-pf-site="realestate"] footer .bottom_footer { background: var(--ks-night) !important; border-color: rgba(255, 255, 255, .08) !important; }
body[data-pf-site="realestate"] footer h1, body[data-pf-site="realestate"] footer h2, body[data-pf-site="realestate"] footer h3,
body[data-pf-site="realestate"] footer h4, body[data-pf-site="realestate"] footer h5, body[data-pf-site="realestate"] footer h6 { color: #fff !important; }
body[data-pf-site="realestate"] footer p, body[data-pf-site="realestate"] footer li, body[data-pf-site="realestate"] footer a { color: #aab3c5 !important; }
body[data-pf-site="realestate"] footer a:hover { color: #fff !important; }

/* Small lines in blue over the heading; headings firm and close-set. */
.re-kicker { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--ks-tint); color: var(--re-accent); font-size: 13px; font-weight: 600; letter-spacing: .02em; text-transform: none; }
.re-head h2 { font-size: clamp(30px, 3.4vw, 46px); font-weight: 600; letter-spacing: -.01em; }
.re-more { border-bottom: 0; color: var(--re-accent); }
.re-more:hover { color: var(--ks-blue-dark); }

.re-btn { min-height: 50px; border-color: var(--re-line); border-radius: 999px; font-weight: 600; }
.re-btn:hover { border-color: var(--re-accent); background: var(--re-accent); color: #fff; }
.re-btn-solid { border-color: var(--re-accent); background: var(--re-accent); color: #fff; }
.re-btn-solid:hover { border-color: var(--ks-blue-dark); background: var(--ks-blue-dark); }
.re-search-go { border-radius: 999px; }

/* ---- the opening: the photo in a frame with rounded bottom corners, the search in a frosted panel */
.re-hero-frame { border-radius: 0 0 44px 44px; background: var(--ks-night); }
/* The header's own space under it on the home page would show as a white strip above the dark opening. */
body[data-pf-site="realestate"] .header_wrap .bottom_header.mb-4 { margin-bottom: 0 !important; }
.re-hero-frame .re-hero-media::after { background: linear-gradient(90deg, rgba(11, 18, 32, .86) 0%, rgba(11, 18, 32, .55) 55%, rgba(11, 18, 32, .3)); }
.re-hero-sidegrid h1, .re-hero-sidegrid .sx-h1 { font-size: clamp(42px, 5.4vw, 74px); font-weight: 600; letter-spacing: -.02em; line-height: 1.05; }
.re-hero-sidegrid .re-kicker { border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .1); color: #fff; opacity: 1; }
.re-hero-note { gap: 12px; padding: 12px 18px; border-radius: 999px; background: rgba(255, 255, 255, .12); box-shadow: none; backdrop-filter: blur(8px); }
.re-hero-note strong { color: #fff; font-size: 24px; }
.re-hero-note span { color: rgba(255, 255, 255, .86); }
.re-hero-panel { border-radius: 22px; }
.re-hero-panel .re-search-tabs { gap: 6px; margin-bottom: 14px; }
.re-hero-panel .re-tab span { padding: 9px 22px; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; }
.re-hero-panel .re-tab input:checked + span { background: var(--re-accent); color: #fff; }
.re-hero-panel .re-field { border-radius: 12px; }
.re-hero-panel .re-field span { font-size: 12px; }
.re-hero-panel .re-search-go { min-height: 54px; }

/* The other openings, should an owner choose one. */
.re-hero-split { background: var(--ks-soft); }
.re-hero-split .re-hero-media { border-radius: var(--re-radius); }

/* ---- property types: white tiles with the icon in a blue circle */
.re-types { background: #fff; }
/* Two white sections one after the other: one gap between them, not two. */
.re-types + .re-properties, .re-about + .re-section:not(.re-reasons), .re-stats + .re-properties { padding-top: 0; }
.re-types-grid { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; }
.re-types-grid a { align-items: center; padding: 28px 16px; border: 1px solid var(--re-line); border-radius: var(--re-radius); text-align: center; box-shadow: var(--re-shadow); }
.re-types-grid a:hover { border-color: var(--re-accent); }
.re-types-icon { width: 68px; height: 68px; border-radius: 50%; background: var(--ks-tint); color: var(--re-accent); }
.re-types-grid a:hover .re-types-icon { background: var(--re-accent); color: #fff; }
.re-types-grid strong { font-size: 18px; }

/* ---- property cards: white, rounded, the price in blue, the facts in a row */
.re-properties .re-grid { --re-cols: 4; gap: 26px 22px; }
.re-card { border-color: var(--re-line); border-radius: var(--re-radius); box-shadow: var(--re-shadow); }
.re-card-media { aspect-ratio: 4 / 3.1; margin: 10px 10px 0; border-radius: 12px; }
.re-badge { border-radius: 999px; padding: 5px 12px; letter-spacing: .02em; text-transform: none; font-size: 12.5px; }
.re-badge-sale, .re-badge-rent { background: var(--re-accent); color: #fff; }
.re-badge-featured { background: var(--ks-night); }
.re-card-type { border-radius: 999px; }
.re-card-body { padding: 18px 18px 14px; }
.re-card-title { font-size: 19px !important; font-weight: 600; }
.re-card-price { color: var(--re-accent); font-size: 20px; }
.re-facts { border-top: 1px dashed var(--re-line); }
.re-facts .re-i { color: var(--re-accent); }
.re-card-foot { border-top-color: var(--re-line); }
.re-card-more { color: var(--re-accent); }
.re-pills button { border-radius: 999px; }
.re-pills button.is-on { border-color: var(--re-accent); background: var(--re-accent); color: #fff; }

/* ---- about: rounded pictures and a blue years badge */
.re-about-media > span { border-radius: 22px; }
.re-years { border-color: #fff; background: var(--re-accent); }
.re-years strong { color: #fff; }

/* ---- the steps (Why choose us): numbered boxes with a blue bracket on one corner */
.re-reasons { background: var(--ks-soft); }
.re-reasons .re-head { justify-content: center; text-align: center; }
.re-reasons .re-cards { gap: 30px; }
.re-reason { padding: 34px 30px 30px; border: 1px solid var(--re-line); border-radius: 18px; background: #fff; text-align: left; }
.re-reason::after { content: ""; position: absolute; right: -8px; bottom: -8px; width: 62%; height: 70%; z-index: -1; border-right: 6px solid var(--re-accent); border-bottom: 6px solid var(--re-accent); border-radius: 0 0 22px 0; }
.re-reasons .re-cards { isolation: isolate; }
.re-reason-no { top: 24px; right: 26px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ks-tint); color: var(--re-accent); font-size: 15px; font-weight: 700; }
.re-tile-icon { background: var(--ks-tint); color: var(--re-accent); }

/* ---- numbers on a dark rounded band */
.re-stats { padding: clamp(40px, 5vw, 70px) 0; background: #fff; }
.re-stats-row { gap: 0; padding: clamp(34px, 4vw, 52px) clamp(20px, 3vw, 40px); border-radius: 28px; background: radial-gradient(800px 300px at 90% 0%, rgba(37, 99, 235, .35), transparent 60%), var(--ks-night); }
.re-stats-row li { flex-direction: column; justify-content: center; gap: 6px; padding: 8px 16px; border-right: 1px solid rgba(255, 255, 255, .1); text-align: center; }
.re-stats-row li:last-child { border-right: 0; }
.re-stats-row strong { color: #fff; font-size: clamp(40px, 4.4vw, 60px); font-weight: 600; }
.re-stats-row span { max-width: none; color: #b9c3d6; font-size: 13px; font-weight: 500; letter-spacing: .06em; }

/* ---- featured properties as tall pictures, three to a row (after the four-to-a-row rule for cards above) */
.re-properties.re-properties-tall .re-grid { --re-cols: 3; }
.re-properties-tall .re-card { min-height: 480px; border-radius: 22px; box-shadow: none; }
.re-properties-tall .re-card-media { margin: 0; border-radius: 22px; }
.re-properties-tall .re-card:hover { box-shadow: var(--re-shadow-lift); }
.re-properties-tall .re-card-title { font-size: 24px !important; }
.re-properties-tall .re-card-price { display: inline-flex; align-self: flex-start; padding: 6px 14px; border-radius: 999px; background: var(--re-accent); font-size: 17px; }

/* ---- locations */
.re-cities-grid a { border-radius: 18px; }

/* ---- agents: white cards, rounded, the name in bold */
.re-agent-card { border-radius: 18px; box-shadow: var(--re-shadow); }
.re-agent-card-body { text-align: center; }
.re-agent-card p { color: var(--re-accent); }
.re-agent-card li a { justify-content: center; }

/* ---- what clients say: a soft band, white cards with a blue edge */
.re-quotes { background: var(--ks-soft); }
.re-quote { border-right: 5px solid var(--re-accent); border-radius: 18px; }
.re-quote blockquote::before { color: var(--re-accent); }

/* ---- call to action: a blue band */
.re-cta-band { border-radius: 28px; background: linear-gradient(120deg, var(--ks-blue) 0%, var(--ks-blue-dark) 45%, var(--ks-night) 100%); }
.re-cta .re-btn-solid { border-color: #fff; background: #fff; color: var(--ks-night); }
.re-cta .re-btn-solid:hover { border-color: var(--ks-night); background: var(--ks-night); color: #fff; }

/* ---- the listing and property pages */
.re-listing-head { background: var(--ks-soft); }
.re-listing .re-grid { --re-cols: 3; }
.re-search--bar { border-radius: 18px; }
.re-property-price strong { color: var(--re-accent); }
.re-keyfacts .re-i, .re-overview .re-i, .re-amenities .re-i { color: var(--re-accent); }
.re-overview .re-i { background: var(--ks-tint); }

@media (max-width: 1199.98px) {
    .re-properties .re-grid { --re-cols: 3; }
}
@media (max-width: 991.98px) {
    .re-properties .re-grid { --re-cols: 2; }
    .re-properties.re-properties-tall .re-grid { --re-cols: 2; }
    .re-hero-frame { border-radius: 0 0 28px 28px; }
    .re-stats-row { grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
    .re-stats-row li { border-right: 0; }
}
@media (max-width: 767.98px) {
    .re-properties .re-grid, .re-properties.re-properties-tall .re-grid { --re-cols: 1; }
    .re-hero-panel { padding: 18px; }
    .re-reason::after { right: -6px; bottom: -6px; border-width: 0 4px 4px 0; }
}
