﻿/*
 * common_11.css
 * Full homepage/header/footer redesign for local classified portal.
 */

:root {
    --ink: #17211d;
    --muted: #6e7973;
    --paper: #f6f0e6;
    --paper-2: #fffaf1;
    --card: #ffffff;
    --line: rgba(23, 33, 29, 0.12);
    --forest: #17483a;
    --moss: #5f7f4f;
    --sun: #f0b64c;
    --clay: #d56f42;
    --sky: #dceceb;
    --shadow: 0 22px 70px rgba(32, 42, 34, 0.12);
    --radius-lg: 34px;
    --radius-md: 22px;
    --radius-sm: 14px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--paper);
}

body {
    margin: 0;
    min-width: 320px;
    background:
        radial-gradient(circle at 8% 8%, rgba(240, 182, 76, 0.24), transparent 28rem),
        radial-gradient(circle at 92% 14%, rgba(23, 72, 58, 0.14), transparent 24rem),
        linear-gradient(180deg, #fbf7ee 0%, var(--paper) 38%, #eef3ed 100%);
    color: var(--ink);
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
    line-height: 1.7;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover,
a:focus {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

.container {
    width: min(1180px, calc(100% - 32px));
    padding-left: 0;
    padding-right: 0;
}

#main {
    margin: 0;
}

body#index_index > .container {
    width: 100%;
    padding: 0;
}

body#index_index > .container > #main {
    width: 100%;
}

.clearfix {
    clear: both;
}

/* Top account bar from the base layout */
#topbar {
    position: relative;
    z-index: 30;
    min-height: 40px;
    padding: 8px 0;
    background: #10251e;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
}

#topbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

#topbar .pull-left,
#topbar .pull-right {
    float: none !important;
}

#topbar .left-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

#topbar .links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
    margin: 0;
    padding: 0;
    list-style: none;
}

#topbar .links li {
    margin: 0;
    white-space: nowrap;
}

#topbar a {
    color: rgba(255, 255, 255, 0.86) !important;
}

#topbar a:hover {
    color: var(--sun) !important;
}

#topbar .dropdown-menu {
    border: 0;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 25;
    margin: 0 auto;
    background: rgba(246, 240, 230, 0.9);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(18px);
}

.site-header__bar {
    width: min(1180px, calc(100% - 32px));
    min-height: 92px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: auto minmax(260px, 1fr) auto;
    align-items: center;
    gap: 26px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.site-brand__symbol {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--forest);
    color: #fff7e8;
    font-size: 24px;
    font-weight: 900;
    font-family: Georgia, "Times New Roman", serif;
    box-shadow: 8px 8px 0 rgba(240, 182, 76, 0.65);
}

.site-brand__text {
    display: grid;
    gap: 1px;
}

.site-brand__text strong {
    max-width: 220px;
    overflow: hidden;
    color: var(--ink);
    font-size: 22px;
    font-weight: 900;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-brand__text em {
    color: var(--moss);
    font-size: 12px;
    font-style: normal;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.site-search {
    display: grid;
    grid-template-columns: 1fr 52px;
    min-width: 0;
    padding: 7px;
    background: #fffaf2;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6);
}

.site-search input {
    width: 100%;
    height: 42px;
    padding: 0 18px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 14px;
}

.site-search button {
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--clay);
    color: #fff;
    transition: transform 0.2s ease, background 0.2s ease;
}

.site-search button:hover {
    background: var(--forest);
    transform: rotate(-8deg) scale(1.04);
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.site-link,
.site-publish {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 44px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
}

.site-link {
    padding: 0 16px;
    color: var(--forest);
    border: 1px solid rgba(23, 72, 58, 0.2);
}

.site-publish {
    gap: 8px;
    padding: 0 20px;
    background: var(--sun);
    color: #2d2111;
    box-shadow: 0 10px 24px rgba(240, 182, 76, 0.34);
}

.site-link:hover,
.site-publish:hover {
    transform: translateY(-1px);
}

.site-nav {
    border-top: 1px solid var(--line);
    background: rgba(255, 250, 242, 0.72);
}

.site-nav__scroll {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.site-nav__scroll::-webkit-scrollbar {
    display: none;
}

.site-nav a,
.site-nav li a,
.site-nav__scroll > a {
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 0 15px;
    border-radius: 999px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 800;
    white-space: nowrap;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-nav a:hover,
.site-nav a.active {
    background: var(--forest);
    color: #fff8e8;
}

.site-nav ul,
.site-nav li {
    display: flex;
    align-items: center;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Homepage */
.home-page {
    overflow: hidden;
}

.home-hero {
    position: relative;
    padding: 76px 0 54px;
}

.home-hero:before {
    content: "";
    position: absolute;
    inset: 28px 24px auto;
    height: 73%;
    border: 1px solid rgba(23, 72, 58, 0.12);
    border-radius: 44px;
    pointer-events: none;
}

.home-hero__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(4px);
    opacity: 0.9;
    pointer-events: none;
}

.home-hero__glow--one {
    width: 210px;
    height: 210px;
    left: -86px;
    top: 64px;
    background: rgba(213, 111, 66, 0.18);
}

.home-hero__glow--two {
    width: 280px;
    height: 280px;
    right: -120px;
    bottom: 20px;
    background: rgba(23, 72, 58, 0.13);
}

.home-hero__inner,
.home-section,
.home-ad-strip {
    position: relative;
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.home-hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.72fr);
    gap: 54px;
    align-items: center;
}

.home-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--clay);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.home-kicker:before {
    content: "";
    width: 28px;
    height: 2px;
    background: currentColor;
}

.home-hero h1 {
    max-width: 760px;
    margin: 16px 0 18px;
    color: var(--ink);
    font-size: clamp(40px, 6vw, 78px);
    font-weight: 900;
    letter-spacing: -0.07em;
    line-height: 0.98;
}

.home-hero__copy p {
    max-width: 650px;
    margin: 0;
    color: var(--muted);
    font-size: 18px;
}

.home-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 34px 0 34px;
}

.home-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 0 24px;
    border-radius: 999px;
    font-weight: 900;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.home-btn:hover {
    transform: translateY(-2px);
}

.home-btn--primary {
    background: var(--forest);
    color: #fff7e8;
    box-shadow: 0 16px 34px rgba(23, 72, 58, 0.24);
}

.home-btn--ghost {
    color: var(--forest);
    border: 1px solid rgba(23, 72, 58, 0.22);
    background: rgba(255, 250, 242, 0.76);
}

.home-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 560px;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.home-stats div {
    padding: 20px 18px;
    border-right: 1px solid var(--line);
}

.home-stats div:last-child {
    border-right: 0;
}

.home-stats strong,
.home-stats span {
    display: block;
}

.home-stats strong {
    color: var(--forest);
    font-size: 26px;
    font-weight: 900;
    line-height: 1;
}

.home-stats span {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.home-hero__panel {
    position: relative;
    padding: 18px;
    border: 1px solid rgba(23, 72, 58, 0.13);
    border-radius: var(--radius-lg);
    background: rgba(255, 250, 242, 0.82);
    box-shadow: var(--shadow);
}

.home-hero__panel:before {
    content: "";
    position: absolute;
    inset: 16px -14px -14px 16px;
    z-index: -1;
    border-radius: var(--radius-lg);
    background: repeating-linear-gradient(-45deg, rgba(23, 72, 58, 0.16) 0 2px, transparent 2px 9px);
}

.home-search-card {
    padding: 22px;
    border-radius: 26px;
    background: var(--forest);
    color: #fff8e8;
}

.home-search-card label {
    display: block;
    margin: 0 0 12px;
    font-size: 17px;
    font-weight: 900;
}

.home-search-card__row {
    display: grid;
    grid-template-columns: 1fr 88px;
    gap: 8px;
}

.home-search-card input,
.home-search-card button {
    height: 48px;
    border: 0;
    border-radius: 999px;
}

.home-search-card input {
    min-width: 0;
    padding: 0 17px;
    color: var(--ink);
    outline: 0;
}

.home-search-card button {
    background: var(--sun);
    color: #241b0d;
    font-weight: 900;
}

.home-quick-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.home-quick-grid a {
    display: grid;
    grid-template-columns: 44px 1fr;
    grid-template-areas: "icon title" "icon desc";
    gap: 3px 12px;
    min-height: 104px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.home-quick-grid a:hover {
    transform: translateY(-3px);
    border-color: rgba(213, 111, 66, 0.42);
}

.home-quick-grid span {
    grid-area: icon;
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    background: var(--sky);
    color: var(--forest);
    font-weight: 900;
}

.home-quick-grid b {
    grid-area: title;
    align-self: end;
    color: var(--ink);
    font-size: 16px;
}

.home-quick-grid em {
    grid-area: desc;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
}

.home-ad-strip {
    margin-top: 4px;
    margin-bottom: 54px;
}

.home-ad-strip a {
    display: block;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: var(--shadow);
}

.home-ad-strip img {
    display: block;
    width: 100%;
    min-height: 70px;
    object-fit: cover;
}

.home-section {
    margin-bottom: 72px;
}

.home-section--split {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 34px;
    align-items: start;
}

.home-section__head {
    position: sticky;
    top: 162px;
    align-self: start;
}

.home-section__head h2,
.home-service-band__copy h2 {
    margin: 10px 0 12px;
    color: var(--ink);
    font-size: clamp(30px, 4vw, 48px);
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 1.04;
}

.home-section__head p,
.home-service-band__copy p {
    margin: 0;
    color: var(--muted);
}

.home-section__head > a,
.home-section__head--row > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 22px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--ink);
    color: #fff7e8;
    font-weight: 900;
}

.home-section__head--row {
    position: static;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.home-section__head--row > a {
    flex: 0 0 auto;
    margin-top: 0;
}

.home-property-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.home-property-grid--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-property-card a {
    display: block;
    overflow: hidden;
    height: 100%;
    border: 1px solid var(--line);
    border-radius: 26px;
    background: var(--card);
    box-shadow: 0 18px 48px rgba(32, 42, 34, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.home-property-card a:hover {
    transform: translateY(-6px) rotate(-0.4deg);
    box-shadow: 0 28px 70px rgba(32, 42, 34, 0.14);
}

.home-property-card figure {
    position: relative;
    overflow: hidden;
    height: 172px;
    margin: 0;
    background: var(--sky);
}

.home-property-card img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.home-property-card a:hover img {
    transform: scale(1.06);
}

.home-property-card figcaption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    max-width: calc(100% - 24px);
    padding: 6px 10px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(23, 72, 58, 0.88);
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-property-card__body {
    padding: 18px;
}

.home-property-card h3 {
    height: 48px;
    margin: 0 0 12px;
    overflow: hidden;
    color: var(--ink);
    font-size: 16px;
    font-weight: 900;
    line-height: 1.5;
}

.home-property-card p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

.home-section--jobs {
    padding: 34px;
    border-radius: var(--radius-lg);
    background: #10251e;
    color: #fff8e8;
    box-shadow: var(--shadow);
}

.home-section--jobs .home-kicker,
.home-section--jobs h2 {
    color: #fff8e8;
}

.home-section--jobs p {
    color: rgba(255, 248, 232, 0.68);
}

.home-section--jobs .home-section__head--row > a {
    background: var(--sun);
    color: #241b0d;
}

.home-job-list {
    display: grid;
    gap: 12px;
}

.home-job-item a {
    display: grid;
    grid-template-columns: 54px 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border: 1px solid rgba(255, 248, 232, 0.12);
    border-radius: 22px;
    background: rgba(255, 248, 232, 0.06);
    transition: background 0.2s ease, transform 0.2s ease;
}

.home-job-item a:hover {
    background: rgba(255, 248, 232, 0.12);
    transform: translateX(6px);
}

.home-job-item__mark {
    width: 54px;
    height: 54px;
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: rgba(240, 182, 76, 0.18);
    color: var(--sun);
    font-size: 20px;
}

.home-job-item h3 {
    margin: 0 0 4px;
    color: #fff8e8;
    font-size: 17px;
    font-weight: 900;
}

.home-job-item p {
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-job-item__meta {
    display: grid;
    justify-items: end;
    gap: 5px;
    color: rgba(255, 248, 232, 0.7);
    font-size: 13px;
}

.home-job-item__meta span {
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(255, 248, 232, 0.1);
    color: #fff8e8;
    font-weight: 800;
}

.home-job-item__meta em {
    font-style: normal;
}

.home-service-band {
    display: grid;
    grid-template-columns: 0.8fr 1.2fr;
    gap: 28px;
    align-items: center;
    padding: 38px;
    border: 1px solid rgba(23, 72, 58, 0.12);
    border-radius: var(--radius-lg);
    background:
        linear-gradient(135deg, rgba(255, 250, 242, 0.94), rgba(220, 236, 235, 0.78)),
        repeating-linear-gradient(90deg, transparent 0 16px, rgba(23, 72, 58, 0.05) 16px 17px);
}

.home-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.home-steps div {
    min-height: 190px;
    padding: 22px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 18px 50px rgba(32, 42, 34, 0.08);
}

.home-steps b,
.home-steps strong,
.home-steps span {
    display: block;
}

.home-steps b {
    color: var(--clay);
    font-size: 13px;
    letter-spacing: 0.16em;
}

.home-steps strong {
    margin: 42px 0 8px;
    color: var(--ink);
    font-size: 21px;
    font-weight: 900;
}

.home-steps span {
    color: var(--muted);
    font-size: 14px;
}

/* Footer */
.site-footer {
    margin-top: 70px;
    padding: 54px 0 34px;
    background: #10251e;
    color: rgba(255, 248, 232, 0.72);
}

.site-footer__inner {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(260px, 1fr) auto;
    gap: 28px 46px;
}

.site-brand--footer .site-brand__symbol {
    background: var(--sun);
    color: #241b0d;
    box-shadow: 8px 8px 0 rgba(255, 248, 232, 0.16);
}

.site-brand--footer .site-brand__text strong,
.site-brand--footer .site-brand__text em {
    color: #fff8e8;
}

.site-footer__brand p {
    max-width: 560px;
    margin: 18px 0 0;
}

.site-footer__links {
    display: grid;
    grid-template-columns: repeat(2, minmax(96px, 1fr));
    gap: 12px;
    align-content: start;
}

.site-footer__links a {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    border: 1px solid rgba(255, 248, 232, 0.14);
    border-radius: 999px;
    color: #fff8e8;
    font-weight: 800;
}

.site-footer__links a:hover {
    background: rgba(255, 248, 232, 0.1);
}

.site-footer__meta {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 248, 232, 0.12);
    font-size: 13px;
}

.site-footer__meta p {
    margin: 0;
}

.site-footer__meta a {
    color: #fff8e8;
}

/* Legacy/common page compatibility */
.panel,
.well,
.list-group,
.table,
.breadcrumb {
    border-color: var(--line);
    border-radius: var(--radius-sm);
}

.btn-primary,
.label-primary {
    border-color: var(--forest);
    background-color: var(--forest);
}

.btn-success,
.label-success {
    border-color: var(--moss);
    background-color: var(--moss);
}

/* Auth pages loaded through common@blank */
body:has(.wall .login),
body:has(.wall .register),
body:has(.wall .forget) {
    min-height: 100vh;
    background:
        radial-gradient(circle at 18% 12%, rgba(240, 182, 76, 0.28), transparent 24rem),
        radial-gradient(circle at 82% 18%, rgba(23, 72, 58, 0.18), transparent 26rem),
        linear-gradient(135deg, #fbf7ee 0%, #edf4ef 100%);
}

.wall {
    min-height: 100vh;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 16px;
    background:
        linear-gradient(120deg, rgba(23, 72, 58, 0.92), rgba(16, 37, 30, 0.86)),
        radial-gradient(circle at 22% 18%, rgba(240, 182, 76, 0.34), transparent 18rem);
}

.wall:before {
    content: "";
    position: fixed;
    inset: 22px;
    border: 1px solid rgba(255, 248, 232, 0.16);
    border-radius: 36px;
    pointer-events: none;
}

.login,
.register,
.forget {
    width: min(600px, 100%);
    margin: 0 auto !important;
    overflow: hidden;
    border: 0;
    border-radius: 28px;
    background: rgba(255, 250, 242, 0.96);
    box-shadow: 0 28px 80px rgba(16, 37, 30, 0.28);
}

.login.panel,
.register.panel,
.forget.panel {
    margin-bottom: 0;
}

.login .panel-heading,
.register .panel-heading,
.forget .panel-heading {
    padding: 0 0 22px;
    border: 0;
    background: transparent;
}

.login .panel-heading h3,
.register .panel-heading h3,
.forget .panel-heading h3 {
    margin: 0;
    color: var(--ink);
    font-size: 30px;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.login .panel-heading a,
.register .panel-heading a,
.forget .panel-heading a {
    color: var(--forest);
    font-weight: 800;
}

.login .panel-body,
.register .panel-body,
.forget .panel-body {
    padding: 0;
}

.login .form-control,
.register .form-control,
.forget .form-control {
    height: 48px;
    padding: 0 16px;
    border: 1px solid rgba(23, 72, 58, 0.14);
    border-radius: 14px;
    background: #fff;
    box-shadow: none;
    color: var(--ink);
}

.login .form-control:focus,
.register .form-control:focus,
.forget .form-control:focus {
    border-color: rgba(213, 111, 66, 0.72);
    box-shadow: 0 0 0 4px rgba(213, 111, 66, 0.12);
}

.login .btn-danger,
.register .btn-danger,
.forget .btn-danger {
    height: 50px;
    border: 0;
    border-radius: 14px;
    background: var(--clay);
    font-weight: 900;
    letter-spacing: 0.12em;
    box-shadow: 0 14px 30px rgba(213, 111, 66, 0.24);
}

.login .btn-danger:hover,
.register .btn-danger:hover,
.forget .btn-danger:hover {
    background: var(--forest);
}

.login .checkbox-inline,
.register .checkbox-inline,
.forget .checkbox-inline,
.login .text-muted,
.register .text-muted,
.forget .text-muted {
    color: var(--muted);
}

.login .text-danger,
.register .text-danger,
.forget .text-danger {
    color: var(--clay);
    font-weight: 800;
}

.login .img-captcha,
.register .img-captcha,
.forget .img-captcha {
    height: 48px;
    border-radius: 14px;
}

/* Responsive */
@media (max-width: 1100px) {
    .home-hero__inner,
    .home-section--split,
    .home-service-band {
        grid-template-columns: 1fr;
    }

    .home-section__head {
        position: static;
    }

    .home-property-grid,
    .home-property-grid--compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .site-header {
        position: relative;
    }

    .site-header__bar {
        grid-template-columns: 1fr auto;
        min-height: 0;
        padding: 18px 0;
    }

    .site-search {
        grid-column: 1 / -1;
        order: 3;
    }

    .site-header__actions {
        justify-content: flex-end;
    }

    .home-hero {
        padding-top: 44px;
    }

    .home-hero:before {
        inset: 16px 12px auto;
    }

    .home-hero__inner {
        gap: 30px;
    }

    .home-property-grid,
    .home-property-grid--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-steps {
        grid-template-columns: 1fr;
    }

    .site-footer__inner,
    .site-footer__meta {
        grid-template-columns: 1fr;
        display: grid;
    }
}

@media (max-width: 640px) {
    .container,
    .site-header__bar,
    .site-nav__scroll,
    .home-hero__inner,
    .home-section,
    .home-ad-strip,
    .site-footer__inner {
        width: min(100% - 24px, 1180px);
    }

    #topbar .container {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    #topbar .links {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }

    .site-header__bar {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .site-brand__text strong {
        max-width: calc(100vw - 118px);
        font-size: 20px;
    }

    .site-header__actions {
        width: 100%;
        justify-content: stretch;
    }

    .site-link,
    .site-publish {
        flex: 1;
    }

    .home-hero h1 {
        font-size: 42px;
    }

    .home-hero__copy p {
        font-size: 16px;
    }

    .home-stats,
    .home-quick-grid,
    .home-search-card__row,
    .home-property-grid,
    .home-property-grid--compact,
    .home-job-item a,
    .home-section__head--row {
        grid-template-columns: 1fr;
    }

    .home-stats div {
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .home-stats div:last-child {
        border-bottom: 0;
    }

    .home-hero__panel,
    .home-section--jobs,
    .home-service-band {
        padding: 16px;
        border-radius: 26px;
    }

    .home-section__head--row {
        display: grid;
        align-items: start;
    }

    .home-job-item__meta {
        justify-items: start;
    }

    .home-service-band {
        padding: 22px;
    }

    .home-steps div {
        min-height: 150px;
    }

    .home-steps strong {
        margin-top: 26px;
    }

    .site-footer__links {
        grid-template-columns: 1fr;
    }

    .wall {
        align-items: flex-start;
        padding: 28px 12px;
    }

    .wall:before {
        inset: 10px;
        border-radius: 22px;
    }

    .login,
    .register,
    .forget {
        padding: 22px !important;
        border-radius: 22px;
    }

    .login .panel-heading .row,
    .register .panel-heading .row,
    .forget .panel-heading .row {
        display: grid;
        gap: 10px;
    }

    .login .panel-heading .text-right,
    .register .panel-heading .text-right,
    .forget .panel-heading .text-right {
        text-align: left;
    }
}
