:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --background: #f2f5f3;
    --surface: #ffffff;
    --surface-soft: #f7f9f8;
    --text: #17221e;
    --muted: #68756f;
    --border: #dfe7e3;
    --accent: #1f6552;
    --accent-dark: #17483c;
    --accent-soft: #e5f2ed;
    --gold: #d7a72f;
    --danger: #a63a3a;
    --danger-soft: #fff0ef;
    --shadow: 0 18px 50px rgba(21, 48, 39, 0.09);
    --shadow-soft: 0 9px 24px rgba(21, 48, 39, 0.07);
}

* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
    min-height: 100%;
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(31, 101, 82, 0.10), transparent 34rem),
        linear-gradient(180deg, #f7faf8 0, var(--background) 22rem);
    color: var(--text);
}

button, input, select, textarea { font: inherit; }
a { color: inherit; }

.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid rgba(223, 231, 227, 0.9);
    backdrop-filter: blur(18px);
}

.header-inner {
    width: min(1320px, calc(100% - 32px));
    min-height: 74px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 11px;
    text-decoration: none;
    min-width: max-content;
}

.small-brand-mark, .brand-mark {
    display: grid;
    place-items: center;
    color: white;
    background: linear-gradient(145deg, #287b65, #173f35);
    font-weight: 900;
    letter-spacing: -0.05em;
    box-shadow: 0 10px 24px rgba(31, 101, 82, 0.24);
}

.small-brand-mark { width: 42px; height: 42px; border-radius: 14px; }
.brand-mark { width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 20px; font-size: 1.25rem; }
.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: 0.98rem; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 0.72rem; font-weight: 600; }

.site-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-right: auto;
}

.site-nav a {
    padding: 10px 12px;
    border-radius: 10px;
    color: #42514b;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}
.site-nav a:hover { background: var(--accent-soft); color: var(--accent-dark); }

.header-account { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 0.84rem; font-weight: 700; }

.page-container {
    width: min(1320px, calc(100% - 32px));
    margin: 0 auto;
    padding: 38px 0 80px;
}
.anonymous-container { width: min(1180px, calc(100% - 32px)); }

.primary-button, .secondary-button, .header-button, .danger-button {
    min-height: 44px;
    padding: 10px 17px;
    border-radius: 12px;
    border: 0;
    cursor: pointer;
    font-weight: 800;
    transition: transform 150ms ease, background 150ms ease, box-shadow 150ms ease;
}
.primary-button { color: white; background: var(--accent); box-shadow: 0 9px 20px rgba(31, 101, 82, 0.18); }
.primary-button:hover { background: var(--accent-dark); transform: translateY(-1px); }
.secondary-button, .header-button { color: var(--text); background: #edf2ef; }
.secondary-button:hover, .header-button:hover { background: #e2eae6; }
.danger-button { color: var(--danger); background: var(--danger-soft); border: 1px solid #f0d1cf; }
.danger-button:hover { background: #ffe4e1; }
.button-link { display: inline-flex; align-items: center; justify-content: center; gap: 7px; text-decoration: none; }
.compact-button { width: auto; }
.full-button { width: 100%; }
.text-danger-button { padding: 4px; border: 0; background: transparent; color: var(--danger); cursor: pointer; font-weight: 750; }

.flash-message { margin-bottom: 22px; padding: 14px 17px; border-radius: 14px; font-weight: 700; box-shadow: var(--shadow-soft); }
.flash-success { color: #18583f; background: #e8f7ef; border: 1px solid #ccebd9; }
.flash-error { color: #8a2f2f; background: var(--danger-soft); border: 1px solid #f0d1cf; }

.dashboard-heading, .page-heading {
    margin-bottom: 26px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
}
.dashboard-heading h1, .page-heading h1 {
    margin: 8px 0 10px;
    font-size: clamp(2.25rem, 5.6vw, 4.7rem);
    line-height: 0.98;
    letter-spacing: -0.065em;
}
.dashboard-heading p, .page-heading p { margin: 0; color: var(--muted); line-height: 1.6; }
.narrow-heading { max-width: 900px; }
.eyebrow { color: var(--accent); font-size: 0.74rem; font-weight: 900; letter-spacing: 0.13em; text-transform: uppercase; }
.back-link { display: block; width: fit-content; margin-bottom: 20px; color: var(--muted); font-size: 0.88rem; font-weight: 750; text-decoration: none; }
.back-link:hover { color: var(--accent); }
.add-property-button { flex: 0 0 auto; }

.filter-panel, .content-card, .form-section, .property-card, .property-hero {
    background: var(--surface);
    border: 1px solid rgba(223, 231, 227, 0.92);
    box-shadow: var(--shadow);
}
.filter-panel { margin-bottom: 28px; padding: 20px; border-radius: 22px; }
.filter-grid { display: grid; grid-template-columns: 2fr repeat(7, minmax(125px, 1fr)); gap: 13px; align-items: end; }
.filter-search { min-width: 230px; }
.filter-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 15px; }

.form-field { margin-bottom: 18px; }
.form-field label { display: block; margin-bottom: 7px; color: #33433d; font-size: 0.83rem; font-weight: 800; }
.form-field input, .form-field select, .form-field textarea, .comment-form textarea, .inline-reset-form input {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    color: var(--text);
    background: #fbfcfb;
    border: 1px solid var(--border);
    border-radius: 12px;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease, background 150ms ease;
}
.form-field textarea, .comment-form textarea { resize: vertical; line-height: 1.55; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus, .comment-form textarea:focus, .inline-reset-form input:focus {
    background: white;
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(31, 101, 82, 0.11);
}
.form-field small { display: block; margin-top: 6px; color: var(--muted); font-size: 0.77rem; line-height: 1.4; }
.validation-summary, .field-validation-error { color: var(--danger); font-size: 0.85rem; font-weight: 650; }
.validation-summary ul { margin: 0 0 18px; padding-left: 20px; }

.property-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.property-card { min-width: 0; overflow: hidden; border-radius: 23px; transition: transform 180ms ease, box-shadow 180ms ease; }
.property-card:hover { transform: translateY(-3px); box-shadow: 0 25px 60px rgba(21, 48, 39, 0.13); }
.property-image-link { position: relative; display: block; height: 245px; overflow: hidden; background: #e9efec; text-decoration: none; }
.property-image { width: 100%; height: 100%; object-fit: cover; transition: transform 350ms ease; }
.property-card:hover .property-image { transform: scale(1.025); }
.property-placeholder { display: grid; place-content: center; gap: 7px; text-align: center; background: linear-gradient(145deg, #dce9e3, #eef4f1); color: var(--accent); }
.property-placeholder span { font-size: 2rem; font-weight: 900; letter-spacing: -0.06em; }
.property-placeholder small { color: var(--muted); font-weight: 700; }
.status-badge { display: inline-flex; align-items: center; width: fit-content; padding: 7px 10px; border-radius: 999px; color: #284037; background: rgba(255,255,255,.92); border: 1px solid rgba(255,255,255,.9); font-size: 0.72rem; font-weight: 850; box-shadow: 0 5px 15px rgba(0,0,0,.08); }
.property-image-link > .status-badge { position: absolute; top: 14px; left: 14px; }
.status-rejected, .status-offmarket { color: #7d3636; background: #fff0ef; }
.status-strongcandidate, .status-offercandidate, .status-undercontract { color: #12583e; background: #e4f6ed; }
.status-toured, .status-tourrequested { color: #624b12; background: #fff5d8; }
.property-card-body { padding: 20px; }
.property-price { margin: 0 0 5px; color: var(--accent); font-size: 1.12rem; font-weight: 900; }
.property-card h2 { margin: 0; font-size: 1.35rem; letter-spacing: -0.035em; }
.property-card h2 a { text-decoration: none; }
.property-location { margin: 6px 0 0; color: var(--muted); font-size: 0.88rem; }
.property-specs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin: 18px 0; padding: 13px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.property-specs span { display: grid; gap: 2px; color: var(--muted); font-size: 0.7rem; text-transform: uppercase; letter-spacing: .03em; }
.property-specs strong { color: var(--text); font-size: 0.92rem; letter-spacing: 0; }
.rating-summary { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.82rem; }
.stars { display: inline-flex; letter-spacing: 1px; color: #ccd4d0; }
.star-active { color: var(--gold); }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.tag { display: inline-flex; padding: 5px 8px; border-radius: 999px; color: #365b4e; background: var(--accent-soft); font-size: 0.7rem; font-weight: 750; }
.property-card-footer { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 0.75rem; }
.property-card-footer a { color: var(--accent); font-weight: 800; text-decoration: none; }

.empty-state { min-height: 360px; display: grid; place-content: center; justify-items: center; padding: 40px; text-align: center; background: rgba(255,255,255,.62); border: 1px dashed #cbd9d2; border-radius: 24px; }
.empty-state h2 { margin: 10px 0 5px; }
.empty-state p { margin: 0 0 20px; color: var(--muted); }
.empty-icon { font-size: 3rem; color: var(--accent); }

.property-form { max-width: 1000px; }
.form-section { margin-bottom: 20px; padding: clamp(22px, 4vw, 38px); border-radius: 23px; }
.form-section-heading { display: flex; gap: 15px; margin-bottom: 27px; }
.form-section-heading h2 { margin: 0 0 5px; font-size: 1.35rem; }
.form-section-heading p { margin: 0; color: var(--muted); font-size: .9rem; }
.section-number { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 12px; color: var(--accent); background: var(--accent-soft); font-size: .72rem; font-weight: 900; }
.form-grid { display: grid; gap: 0 16px; }
.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metric-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.full-width { grid-column: 1 / -1; }
.compact-pair { display: grid; grid-template-columns: .55fr 1fr; gap: 12px; }
.status-field { max-width: 300px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 24px; }
.feature-toggle { min-height: 48px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-soft); font-size: .88rem; font-weight: 750; cursor: pointer; }
.feature-toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
.sticky-form-actions { position: sticky; bottom: 14px; z-index: 20; display: flex; justify-content: flex-end; gap: 10px; padding: 13px; background: rgba(255,255,255,.9); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); backdrop-filter: blur(16px); }

.details-toolbar { margin-bottom: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.details-toolbar .back-link { margin: 0; }
.details-actions { display: flex; gap: 9px; }
.property-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); min-height: 530px; overflow: hidden; border-radius: 26px; }
.property-hero-image { min-height: 450px; background: #e7efeb; }
.property-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.large-placeholder { width: 100%; height: 100%; min-height: 450px; }
.property-hero-content { padding: clamp(30px, 5vw, 62px); display: flex; flex-direction: column; justify-content: center; }
.large-price { margin-top: 24px; font-size: 1.55rem; }
.property-hero h1 { margin: 7px 0 10px; font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: .98; letter-spacing: -.065em; }
.property-address { margin: 0; color: var(--muted); line-height: 1.55; }
.hero-metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 30px 0; }
.hero-metrics div { padding: 13px 10px; border-radius: 12px; background: var(--surface-soft); border: 1px solid var(--border); }
.hero-metrics strong, .hero-metrics span { display: block; }
.hero-metrics strong { font-size: 1.05rem; }
.hero-metrics span { margin-top: 4px; color: var(--muted); font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; }
.average-rating-panel { display: flex; align-items: center; gap: 15px; padding-top: 20px; border-top: 1px solid var(--border); }
.average-score { font-size: 2.5rem; font-weight: 900; letter-spacing: -.06em; }
.large-stars { font-size: 1.25rem; }
.average-rating-panel p { margin: 5px 0 0; color: var(--muted); font-size: .8rem; }

.details-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; margin-top: 22px; align-items: start; }
.details-main, .details-sidebar { display: grid; gap: 22px; }
.content-card { padding: clamp(22px, 4vw, 34px); border-radius: 22px; }
.section-title-row { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.section-title-row h2 { margin: 5px 0 0; font-size: 1.45rem; letter-spacing: -.03em; }
.your-rating, .comment-count, .current-member-badge { padding: 6px 9px; border-radius: 999px; color: var(--accent); background: var(--accent-soft); font-size: .72rem; font-weight: 850; }
.rating-buttons { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.rating-button { min-height: 68px; display: grid; place-content: center; gap: 4px; border: 1px solid var(--border); border-radius: 13px; color: var(--text); background: var(--surface-soft); cursor: pointer; font-weight: 900; }
.rating-button:hover, .rating-button.selected { border-color: #d8b754; background: #fff8df; box-shadow: 0 0 0 3px rgba(215,167,47,.12); }
.mini-stars { color: var(--gold); font-size: .56rem; letter-spacing: -1px; }
.zero-rating { color: var(--muted); }
.individual-ratings { margin-top: 18px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.individual-ratings div { display: flex; justify-content: space-between; gap: 8px; padding: 10px 12px; border-radius: 10px; background: var(--surface-soft); color: var(--muted); font-size: .8rem; }
.individual-ratings strong { color: var(--text); }
.comment-form { display: grid; gap: 10px; margin-bottom: 24px; }
.comment-form .primary-button { justify-self: end; }
.comment-list { display: grid; gap: 15px; }
.comment-item { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 12px; padding-top: 15px; border-top: 1px solid var(--border); }
.comment-avatar { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: white; background: linear-gradient(145deg, #2f7d68, #19483c); font-weight: 900; }
.comment-header { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.comment-header strong, .comment-header span { display: block; }
.comment-header span { margin-top: 3px; color: var(--muted); font-size: .72rem; }
.comment-content p { margin: 10px 0 0; line-height: 1.6; white-space: pre-wrap; }
.muted-copy { color: var(--muted); }
.sidebar-card { padding: 24px; }
.detail-list { margin: 18px 0 0; }
.detail-list div { display: flex; justify-content: space-between; gap: 15px; padding: 11px 0; border-bottom: 1px solid var(--border); }
.detail-list div:last-child { border-bottom: 0; }
.detail-list dt { color: var(--muted); }
.detail-list dd { margin: 0; font-weight: 800; }
.expanded-tags { margin-top: 16px; }
.preserve-lines { white-space: pre-wrap; line-height: 1.65; }
.metadata-card p { margin: 0 0 8px; color: var(--muted); font-size: .8rem; }
.metadata-card p:last-child { margin-bottom: 0; }
.metadata-card strong { color: var(--text); }

.members-layout { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.member-list { display: grid; }
.member-row { padding: 15px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--border); }
.member-row:last-child { border-bottom: 0; }
.member-identity { display: flex; align-items: center; gap: 11px; }
.member-identity > div:last-child { display: flex; align-items: center; gap: 8px; }
.member-actions { display: flex; align-items: center; gap: 10px; }
.inline-reset-form { display: flex; align-items: center; gap: 7px; }
.inline-reset-form input { min-width: 180px; min-height: 42px; }
.inline-reset-form button { min-width: max-content; }
.add-member-card { position: sticky; top: 96px; }
.add-member-card h2 { margin: 7px 0; }
.add-member-card > p { margin: 0 0 22px; color: var(--muted); line-height: 1.55; }

.login-shell { min-height: calc(100vh - 76px); display: grid; place-items: center; padding: 24px 0; }
.login-card { width: min(100%, 430px); padding: clamp(28px, 7vw, 48px); background: var(--surface); border: 1px solid rgba(223,229,234,.9); border-radius: 26px; box-shadow: var(--shadow); }
.login-card h1 { margin: 0; text-align: center; font-size: clamp(1.8rem, 6vw, 2.35rem); letter-spacing: -.045em; }
.login-subtitle { margin: 8px 0 30px; color: var(--muted); text-align: center; }
.remember-row { display: flex; align-items: center; gap: 9px; margin: 6px 0 22px; color: var(--muted); font-size: .92rem; }
.login-card .primary-button { width: 100%; }

@media (max-width: 1180px) {
    .filter-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .filter-search { grid-column: span 2; }
    .property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .property-hero { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
    .header-inner { flex-wrap: wrap; padding: 10px 0; gap: 8px 16px; }
    .site-nav { order: 3; width: 100%; overflow-x: auto; }
    .header-account > span { display: none; }
    .property-hero { grid-template-columns: 1fr; }
    .property-hero-image { height: 420px; min-height: 0; }
    .details-layout, .members-layout { grid-template-columns: 1fr; }
    .details-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .details-sidebar > form { grid-column: 1 / -1; }
    .add-member-card { position: static; }
    .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 680px) {
    .page-container, .header-inner { width: min(100% - 20px, 1320px); }
    .page-container { padding-top: 22px; }
    .brand-copy small { display: none; }
    .site-nav a { padding: 8px 9px; font-size: .82rem; }
    .dashboard-heading, .page-heading, .details-toolbar { align-items: stretch; flex-direction: column; }
    .dashboard-heading h1, .page-heading h1 { font-size: clamp(2.25rem, 12vw, 3.6rem); }
    .add-property-button, .details-actions .primary-button, .details-actions .secondary-button { flex: 1; }
    .details-actions { display: flex; }
    .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filter-search { grid-column: 1 / -1; }
    .filter-actions > * { flex: 1; }
    .property-grid { grid-template-columns: 1fr; }
    .property-image-link { height: 235px; }
    .two-column, .metric-grid { grid-template-columns: 1fr; }
    .compact-pair { grid-template-columns: .55fr 1fr; }
    .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sticky-form-actions { bottom: 7px; }
    .property-hero { border-radius: 20px; }
    .property-hero-image { height: 310px; }
    .property-hero-content { padding: 26px 21px; }
    .property-hero h1 { font-size: 2.75rem; }
    .hero-metrics { grid-template-columns: repeat(2, 1fr); }
    .details-sidebar { grid-template-columns: 1fr; }
    .rating-buttons { grid-template-columns: repeat(3, 1fr); }
    .individual-ratings { grid-template-columns: 1fr; }
    .member-row, .member-actions { align-items: stretch; flex-direction: column; }
    .inline-reset-form { width: 100%; }
    .inline-reset-form input { min-width: 0; }
    .inline-reset-form button { min-width: max-content; }
}

@media (max-width: 420px) {
    .filter-grid { grid-template-columns: 1fr; }
    .filter-search { grid-column: auto; }
    .feature-grid { grid-template-columns: 1fr; }
    .compact-pair { grid-template-columns: 1fr; }
    .property-specs { grid-template-columns: repeat(2, 1fr); }
    .property-card-footer { align-items: flex-start; flex-direction: column; }
    .inline-reset-form { flex-direction: column; align-items: stretch; }
}
/* HOMESWEBSITE_GOOGLE_ROUTES_STYLES_BEGIN */

.location-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.65fr) minmax(300px, 0.75fr);
    gap: 24px;
    align-items: start;
}

.reference-location-list {
    display: grid;
    gap: 12px;
}

.reference-location-item {
    padding: 16px;

    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 15px;
    align-items: center;

    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 16px;
}

.reference-location-item.inactive {
    opacity: 0.68;
}

.reference-location-order {
    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    color: var(--accent);
    background: var(--accent-soft);
    border-radius: 12px;

    font-weight: 850;
}

.reference-location-copy h3,
.reference-location-copy p {
    margin: 0;
}

.reference-location-copy p {
    margin-top: 4px;
    color: var(--muted);
}

.reference-location-copy small {
    display: block;
    margin-top: 8px;
    color: var(--muted);
}

.reference-location-title {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.reference-location-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.property-distance-summary {
    margin-top: 14px;
    padding: 11px 13px;

    display: grid;
    gap: 8px;

    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 14px;
}

.property-distance-summary > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
    align-items: baseline;

    font-size: 0.84rem;
}

.property-distance-summary span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.property-distance-summary strong {
    color: var(--accent-dark);
}

.property-distance-summary small {
    color: var(--muted);
}

.route-distance-card h2 {
    margin: 5px 0 0;
}

.property-route-list {
    margin-top: 16px;

    display: grid;
    gap: 9px;
}

.property-route-item {
    padding: 13px;

    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 16px;
    align-items: center;

    color: var(--text);
    text-decoration: none;

    background: var(--surface-soft);
    border: 1px solid var(--border);
    border-radius: 14px;

    transition:
        transform 120ms ease,
        border-color 120ms ease,
        box-shadow 120ms ease;
}

.property-route-item:hover {
    transform: translateY(-1px);
    border-color: rgba(31, 101, 82, 0.45);
    box-shadow: var(--shadow-soft);
}

.property-route-item span {
    min-width: 0;
}

.property-route-item strong,
.property-route-item small {
    display: block;
}

.property-route-item small {
    margin-top: 3px;
    color: var(--muted);
    line-height: 1.35;
}

.property-route-result {
    text-align: right;
}

.property-route-result strong {
    color: var(--accent-dark);
}

.property-route-result.route-failed strong {
    color: var(--danger);
}

.route-refresh-form {
    margin-top: 14px;
}

.text-link {
    display: inline-block;
    margin-top: 13px;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 750;
    text-decoration: none;
}

@media (max-width: 860px) {
    .location-layout {
        grid-template-columns: 1fr;
    }

    .reference-location-item {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .reference-location-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

@media (max-width: 600px) {
    .property-distance-summary > div {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .property-distance-summary small {
        grid-column: 1 / -1;
    }

    .property-route-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .property-route-result {
        text-align: left;
    }
}

/* HOMESWEBSITE_GOOGLE_ROUTES_STYLES_END */