/* Public-site refinements. Preserve the existing grids, controls and content. */
:root {
    --estate-line: #e1e8f1;
    --estate-muted: #52647c;
    --estate-soft: #f4f7fc;
    --estate-shadow: 0 8px 24px rgba(11, 31, 68, .06);
}

/* A consistent keyboard focus indicator, including custom search controls. */
a:focus-visible, button:focus-visible, input:focus-visible,
select:focus-visible, textarea:focus-visible, [tabindex="0"]:focus-visible {
    outline: 3px solid #0066FF;
    outline-offset: 4px;
}
.site-header .header-glass {
    box-shadow: 0 8px 24px rgba(11, 31, 68, .14);
}
.site-header .center-nav a { font-weight: 500; }

/* Keep the photograph and centered composition, with a calmer reading scale. */
.rezdowns-banner-section-v1 {
    height: auto;
    min-height: clamp(640px, 82vh, 820px);
    padding: 148px 0 96px;
}
.rezdowns-banner-section-v1 .banner-content {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: min(100%, 980px);
}
.rezdowns-banner-section-v1 > .container {
    padding-top: 0;
    padding-bottom: 0;
}
.rezdowns-banner-section-v1 .banner-content > span {
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: .025em;
    color: #e1ebfa;
}
.rezdowns-banner-section-v1 .banner-content h1 {
    max-width: 920px;
    margin: 0 auto 22px;
    font-size: clamp(34px, 4.2vw, 60px);
    line-height: 1.12;
    font-weight: 700;
    letter-spacing: -.035em;
    text-transform: none;
    text-wrap: balance;
}
.rezdowns-banner-section-v1 .banner-subtitle {
    max-width: 660px;
    margin: 0 auto 32px;
    font-size: 16px;
    line-height: 1.7;
    color: #e1ebfa;
}
.rezdowns-banner-section-v1 .banner-content .form-tab-pane form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 4px;
    height: auto;
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 16px 40px rgba(11, 31, 68, .2);
}
.rezdowns-banner-section-v1 .banner-content .form-tab-pane form .form_boxes {
    width: auto;
    height: 56px;
    min-width: 0;
}
.rezdowns-banner-section-v1 .banner-content .form-submit {
    width: auto;
    height: auto;
    margin: 0;
    right: auto;
}
.rezdowns-banner-section-v1 .banner-content .form-submit button {
    border-radius: 10px;
    font-weight: 600;
    padding: 0 24px;
}
.rezdowns-banner-section-v1 .drop-menu .dropdown {
    border: 1px solid var(--estate-line);
    border-radius: 12px;
    box-shadow: var(--estate-shadow);
}

/* Section headings and category links share a restrained editorial style. */
.cat-strip-section { margin-top: 24px; }
.cat-strip-card {
    border-radius: 18px;
    border: 1px solid var(--estate-line);
    box-shadow: var(--estate-shadow);
}
.cat-strip-grid .cat-pill {
    background: #fff;
    border: 1px solid var(--estate-line);
    border-radius: 12px;
    box-shadow: none;
}
.cat-strip-grid .cat-pill:hover {
    background: var(--estate-soft);
    border-color: #a6c9ff;
    transform: translateY(-3px);
    box-shadow: var(--estate-shadow);
}
.cat-strip-grid .cat-pill-icon {
    color: var(--estate-blue);
    background: #edf4ff;
    box-shadow: none;
    border-radius: 12px;
}
.cat-strip-grid .cat-pill:hover .cat-pill-icon { transform: none; }
.cat-pill::before, .cat-pill::after { display: none; }
.cat-strip-label, .commercial-badge, .explore-badge, .why-badge, .action-badge {
    border: 1px solid #dbe8fa;
    border-radius: 6px;
    background: #f0f5fd;
    color: var(--estate-blue);
    box-shadow: none;
    letter-spacing: .06em;
}
.commercial-badge-dot, .explore-badge-dot, .why-badge-dot,
.action-badge-dot, .recent-badge-dot { animation: none; }
.cat-strip-title, .explore-title, .commercial-title, .why-rich .why-title, .action-title {
    color: var(--estate-navy);
    background: none;
    -webkit-text-fill-color: currentColor;
    font-size: clamp(24px, 2.4vw, 34px) !important;
    line-height: 1.25;
    letter-spacing: -.025em;
}
.commercial-tabs-nav .commercial-tab {
    border-radius: 12px;
    box-shadow: none;
}
.explore-tabs-nav,
.commercial-tabs-nav {
    display: flex;
    justify-content: center;
}
.explore-tabs-nav .explore-tabs,
.commercial-tabs-nav .commercial-tabs {
    max-width: 100%;
}
.commercial-view-all, .explore-view-all, .commercial-empty-btn {
    border-radius: 9px;
    box-shadow: none;
}

/* Russian hero uses one headline in place of the three introductory texts. */
.rezdowns-banner-section-v1 .banner-content h1.ru-banner-title {
    max-width: 940px;
    margin: 12px auto 40px;
    font-size: clamp(28px, 4vw, 54px);
    line-height: 1.22;
    letter-spacing: -.025em;
    text-wrap: balance;
}

/* Listing cards keep their existing image ratios, list mode and metadata. */
.lc-card {
    border-color: var(--estate-line);
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(11, 31, 68, .035);
    transition: border-color .2s, box-shadow .2s, transform .2s;
}
.lc-card:hover, .rez-section-commercial .lc-card:hover {
    border-color: #b6d2f8;
    box-shadow: 0 12px 28px rgba(11, 31, 68, .10);
    transform: translateY(-3px);
}
.lc-title a { color: var(--estate-navy); }
.lc-location, .lc-grid-desc { color: var(--estate-muted); }
.lc-price { color: var(--estate-navy); font-weight: 700; }
.lc-grid-footer { border-top-color: var(--estate-line); }
.lc-detail-btn-sm { border-radius: 8px; box-shadow: none; }

/* Feature and action cards: reduce ornament while retaining their content. */
.why-rich .why-card, .action-rich .action-card {
    background: #fff !important;
    border: 1px solid var(--estate-line) !important;
    border-radius: 16px !important;
    box-shadow: var(--estate-shadow);
}
.why-rich .why-card:hover, .action-rich .action-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 28px rgba(11, 31, 68, .09);
}
.why-card::before, .why-card::after, .action-rich .action-card::after,
.why-card .feature-icon-wrapper::before { display: none; }
.why-rich .why-card .feature-icon-wrapper, .action-rich .icon-wrapper {
    background: var(--estate-navy) !important;
    border-radius: 14px !important;
    box-shadow: none !important;
}
.why-rich .why-card:hover .feature-icon-wrapper,
.action-rich .action-card:hover .icon-wrapper { transform: none !important; }
.action-rich .card-btn {
    border-radius: 10px;
    background: var(--estate-blue) !important;
    box-shadow: none;
}
.action-rich .card-btn:hover { background: var(--estate-navy) !important; box-shadow: none; }

/* Search and filter surfaces keep their mobile open/close behavior. */
.ai-search-container {
    background: var(--estate-navy);
    border-radius: 16px;
    padding: 26px;
}
.ai-search-box { border-radius: 10px; box-shadow: none; }
.ai-search-box:focus-within { border-color: #8bbaff; box-shadow: 0 0 0 3px rgba(0,102,255,.2); }
.inventory-sidebar .inventroy-widget {
    border-color: var(--estate-line);
    border-radius: 14px;
    box-shadow: var(--estate-shadow);
}
.filter-section-modern .section-title { color: var(--estate-navy); font-weight: 600; }
.inventory-sidebar .form-select, .inventory-sidebar .form-control {
    border-color: var(--estate-line);
    border-radius: 8px;
}
.inventory-sidebar .chip-btn { border-radius: 8px; }
.btn-filter-primary { background: var(--estate-blue); border-radius: 9px; }
.btn-filter-primary:hover { background: var(--estate-navy); }

/* Improve footer readability without changing its links or partner notice. */
.rt-footer-modern { border-radius: 28px 28px 0 0; }
.rt-footer-brand-logo { padding: 0; border: 0; background: none; backdrop-filter: none; }
.rt-footer-brand-tagline { color: #d6e1f0; line-height: 1.7; }
.rt-footer-modern .footer-links a { border-radius: 8px; }

/* Kompakt footer: kart linkler yerine düz metin, daha az dikey boşluk. */
.rt-footer-compact .widgets-section { padding: 36px 0 14px; }
.rt-footer-compact .rt-footer-brand { gap: 10px; }
.rt-footer-compact .rt-footer-brand-logo img { max-height: 34px; filter: none; }
.rt-footer-compact .rt-footer-brand-tagline { max-width: 300px; font-size: 13px; line-height: 1.6; }
.rt-footer-compact .widgets-section h5 { font-size: 13px !important; text-transform: uppercase; letter-spacing: .08em !important; color: #8fa3c0 !important; padding-bottom: 0; margin-bottom: 12px !important; }
.rt-footer-compact .widgets-section h5::after { display: none; }
.rt-footer-compact .widgets-section ul.footer-links { gap: 2px; }
.rt-footer-compact .glass-link {
    padding: 4px 0;
    border: 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: #d6e1f0;
    font-size: 14px;
    font-weight: 500;
}
.rt-footer-compact .glass-link::before,
.rt-footer-compact .glass-icon { display: none; }
.rt-footer-compact .glass-link:hover { background: none; box-shadow: none; transform: none; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.rt-footer-compact hr { margin: 20px 0 14px !important; opacity: .12; }

@media (max-width: 767px) {
    .rezdowns-banner-section-v1 { min-height: 0; padding: 132px 0 56px; }
    .rezdowns-banner-section-v1 .banner-content { width: 100%; }
    .rezdowns-banner-section-v1 .banner-content > span { font-size: 13px; line-height: 1.6; }
    .rezdowns-banner-section-v1 .banner-content h1 { font-size: clamp(32px, 7vw, 44px); }
    .rezdowns-banner-section-v1 .banner-subtitle { font-size: 14px; margin-bottom: 24px; }
    .rezdowns-banner-section-v1 .banner-content .form-tab-pane form { grid-template-columns: 1fr; padding: 12px; }
    .rezdowns-banner-section-v1 .banner-content .form-tab-pane form .form_boxes {
        border-bottom: 1px solid var(--estate-line);
    }
    .rezdowns-banner-section-v1 .banner-content .form-submit { margin-top: 6px; }
    .cat-strip-section { margin-top: 20px; }
    .cat-strip-card { padding: 24px 16px 16px; }
    .ai-search-container { padding: 20px 16px; }
    .rt-footer-modern { border-radius: 20px 20px 0 0; }
}
@media (prefers-reduced-motion: reduce) {
    .lc-card, .cat-pill, .why-card, .action-card { transition: none !important; }
}
