:root {
    --dm-ink: #14241f;
    --dm-muted: #60716c;
    --dm-green: #087f5b;
    --dm-green-dark: #07583f;
    --dm-mint: #e6f5ef;
    --dm-sand: #f7f8f5;
    --dm-line: #dce7e1;
    --dm-shadow: 0 18px 50px rgba(20, 57, 44, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--dm-ink);
    background: var(--dm-sand);
    font: 16px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: var(--dm-green-dark); text-decoration: none; }
a:hover { color: var(--dm-green); }
.dm-shell { min-height: 100vh; display: flex; flex-direction: column; }
.dm-container { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.skip-link {
    position: absolute;
    top: -48px;
    left: 12px;
    z-index: 200;
    padding: 10px 14px;
    border-radius: 999px;
    background: #102c24;
    color: #fff;
    font-weight: 700;
}
.skip-link:focus {
    top: 12px;
    color: #fff;
}
.dm-header { background: #fff; border-bottom: 1px solid var(--dm-line); position: sticky; top: 0; z-index: 20; }
.dm-header-inner { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.dm-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; color: var(--dm-ink); letter-spacing: -.03em; font-size: 1.2rem; }
.dm-logo img { width: 168px; height: auto; display: block; }
.dm-nav { display: flex; align-items: center; gap: 22px; font-weight: 650; }
.dm-nav a { color: var(--dm-ink); }
.dm-nav .dm-nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #fff;
    background: var(--dm-green);
    border-radius: 999px;
    padding: 9px 17px;
}
.dm-nav-cta-icon {
    display: none;
    width: 18px;
    height: 18px;
}
.dm-nav-cta-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}
.dm-main { flex: 1; }
.dm-alert {
    margin-top: 18px;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid var(--dm-line);
    background: #fff;
}
.dm-alert-warning {
    background: #fff9ea;
    border-color: #f2d27c;
    color: #6e5717;
}
.dm-alert-success {
    background: #eefaf4;
    border-color: #a6d9bc;
    color: #1f5c3a;
}
.dm-hero { padding: 72px 0 86px; background: linear-gradient(135deg, #effaf5 0%, #fff 62%); }
.dm-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 52px; align-items: center; }
.dm-eyebrow { color: var(--dm-green); text-transform: uppercase; letter-spacing: .14em; font-weight: 800; font-size: .75rem; }
.dm-hero h1 { max-width: 700px; margin: 12px 0 18px; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 1.02; letter-spacing: -.06em; }
.dm-hero p { max-width: 650px; color: var(--dm-muted); font-size: 1.1rem; }
.dm-hero-card { background: #fff; border: 1px solid var(--dm-line); border-radius: 24px; padding: 26px; box-shadow: var(--dm-shadow); }
.dm-stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 24px;
    max-width: 760px;
}
.dm-stat-card {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border: 1px solid rgba(8, 127, 91, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}
.dm-stat-card strong {
    font-size: clamp(1.2rem, 3vw, 1.8rem);
    line-height: 1;
}
.dm-stat-card span {
    color: var(--dm-muted);
    font-size: 0.92rem;
    font-weight: 600;
}
.dm-search-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
    align-items: stretch;
    max-width: none;
}
.dm-search-row > label:first-child {
    min-width: 0;
}
.dm-search-row > label:nth-child(2) {
    max-width: 9rem;
}
.dm-field { display: grid; gap: 6px; }
.dm-field-full { grid-column: 1 / -1; }
.dm-field label { color: var(--dm-muted); font-size: .82rem; font-weight: 750; }
.dm-field input, .dm-field select, .dm-field button, .dm-button {
    width: 100%; min-height: 44px; border: 1px solid var(--dm-line); border-radius: 10px; padding: 10px 12px; font: inherit;
}
.dm-search-grid--advanced {
    align-items: end;
}
.dm-search-grid--advanced .dm-field label {
    font-size: 0.85rem;
    font-weight: 700;
}
.dm-search-grid--advanced .dm-field input,
.dm-search-grid--advanced .dm-field select {
    background: #fff;
    color: #1b2d26;
}
.dm-search-grid--advanced .dm-field input::placeholder {
    color: #8c9993;
}
.dm-search-grid--advanced .dm-field select:disabled {
    background: #f8faf9;
    color: #8c9993;
}
.dm-field input:focus, .dm-field select:focus { outline: 3px solid rgba(8,127,91,.14); border-color: var(--dm-green); }
.dm-button { border: 0; color: #fff; background: var(--dm-green); font-weight: 750; cursor: pointer; }
.dm-button:hover { background: var(--dm-green-dark); color: #fff; }
.dm-section { padding: 68px 0; }
.dm-section-muted { background: linear-gradient(180deg, rgba(230,245,239,.55), rgba(247,248,245,0)); }
.dm-section h2 { margin: 0 0 10px; font-size: clamp(1.8rem, 3vw, 2.7rem); letter-spacing: -.04em; }
.dm-section-intro { max-width: 680px; color: var(--dm-muted); }
.dm-section-header { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.dm-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 28px; }
.dm-feature { background: #fff; border: 1px solid var(--dm-line); border-radius: 16px; padding: 24px; }
.dm-feature h3 { margin: 10px 0 6px; font-size: 1.12rem; }
.dm-feature p { color: var(--dm-muted); margin: 0; }
.dm-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--dm-mint); color: var(--dm-green-dark); font-weight: 850; }
.dm-timeline-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dm-footer { margin-top: 70px; color: #dfeee8; background: #102c24; }
.dm-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 28px; padding: 48px 0; }
.dm-footer a { color: #dfeee8; }
.dm-footer p { color: #a8c4b9; }
.dm-footer h3, .dm-footer h4 { color: #fff; margin-top: 0; }
.dm-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.dm-footer-bottom { border-top: 1px solid rgba(255,255,255,.15); padding: 16px 0; color: #a8c4b9; font-size: .9rem; }
.dm-page-header { padding: 48px 0 30px; }
.dm-page-header h1 { margin: 0 0 8px; font-size: clamp(2rem, 4vw, 3.5rem); letter-spacing: -.05em; }
.dm-breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding-top: 24px;
    color: var(--dm-muted);
    font-size: 0.92rem;
}
.dm-breadcrumbs a { color: var(--dm-muted); }
.dm-breadcrumbs [aria-current="page"] { color: var(--dm-ink); font-weight: 700; }
.dm-pill-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px;
}
.dm-pill-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid var(--dm-line);
    border-radius: 999px;
    background: #fff;
    font-weight: 700;
    color: var(--dm-ink);
}
.dm-pill-nav a.active {
    border-color: var(--dm-green);
    background: var(--dm-green);
    color: #fff;
}
.dm-muted { color: var(--dm-muted); }
.dm-content-card { background: #fff; border: 1px solid var(--dm-line); border-radius: 18px; padding: clamp(22px, 4vw, 42px); box-shadow: 0 8px 30px rgba(20,57,44,.05); }
.dm-card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dm-card { background: #fff; border: 1px solid var(--dm-line); border-radius: 16px; overflow: hidden; box-shadow: 0 8px 28px rgba(20,57,44,.06); transition: transform .2s ease, box-shadow .2s ease; }
.dm-card:hover { transform: translateY(-3px); box-shadow: var(--dm-shadow); }
.dm-card .card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.dm-card img, .dm-card-placeholder { width: 100%; height: 210px; object-fit: cover; display: block; background: #e7efeb; }
.dm-card-body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 18px; }
.dm-card-meta-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-width: 0; }
.dm-tag { color: var(--dm-green); text-transform: uppercase; letter-spacing: .1em; font-size: .7rem; font-weight: 850; }
.dm-card-location { display: inline-flex; align-items: center; gap: 4px; min-width: 0; color: var(--dm-muted); font-size: .78rem; font-weight: 750; }
.dm-card-location span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-card-location-icon { display: inline-flex; width: 13px; height: 13px; flex: 0 0 auto; color: var(--dm-green); }
.dm-card-location-icon svg { width: 100%; height: 100%; }
.dm-card h2 { font-size: 1.12rem; line-height: 1.25; margin: 7px 0; }
.dm-card .price, .dm-price { color: var(--dm-green-dark); font-size: 1.2rem; font-weight: 850; }
.dm-card .subtitle { color: var(--dm-muted); }
.dm-card .subtitle { margin-bottom: 10px; }
.dm-card .price { margin-bottom: 14px; }
.dm-card .source {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin-top: auto;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    background: var(--dm-green);
    color: #fff;
    font-weight: 800;
    text-align: center;
}
.dm-card-core-specs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 16px;
    margin: 0;
    padding: 14px 0 16px;
    border-top: 1px solid #d8e2ea;
    border-bottom: 0;
}
.dm-card-core-spec {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    margin: 0;
}
.dm-card-core-spec-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    border-radius: 14px;
    background: #eef4fb;
    color: #123d7a;
}
.dm-card-core-spec-icon svg {
    width: 20px;
    height: 20px;
}
.dm-card-core-spec-copy {
    display: grid;
    gap: 2px;
    margin: 0;
}
.dm-card-core-spec-label {
    color: #74818c;
    font-size: .74rem;
    line-height: 1.15;
}
.dm-card-core-spec-value {
    color: #26333e;
    font-size: .98rem;
    font-weight: 800;
    line-height: 1.15;
}
.dm-filter-panel { background: #fff; border: 1px solid var(--dm-line); border-radius: 16px; padding: 18px; margin-bottom: 25px; }
.dm-search-form label {
    display: grid;
    gap: 6px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--dm-muted);
}
.dm-search-row {
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) minmax(7.5rem, 9rem) minmax(18rem, .9fr);
    gap: 12px;
    align-items: end;
}
.dm-search-field--wide {
    grid-column: span 2;
}
.dm-search-advanced-fields {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
}
.dm-search-advanced-fields[hidden] {
    display: none;
}
.dm-search-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}
.dm-search-actions .btn,
.dm-search-actions .dm-button {
    width: 100%;
    min-height: 44px;
    border-radius: 10px;
    padding: 10px 12px;
    font: inherit;
    font-weight: 750;
}
.dm-search-actions .dm-search-advanced-toggle {
    border: 1px solid var(--dm-green);
    background: #fff;
    color: var(--dm-green);
}
.dm-search-actions .dm-search-advanced-toggle:hover,
.dm-search-actions .dm-search-advanced-toggle:focus {
    border-color: var(--dm-green-dark);
    background: var(--dm-mint);
    color: var(--dm-green-dark);
}
.dm-search-actions .btn-success,
.dm-search-actions .dm-button {
    border-color: var(--dm-green);
    background: var(--dm-green);
    color: #fff;
}
.dm-search-actions .btn-success:hover,
.dm-search-actions .btn-success:focus,
.dm-search-actions .dm-button:hover,
.dm-search-actions .dm-button:focus {
    border-color: var(--dm-green-dark);
    background: var(--dm-green-dark);
    color: #fff;
}
.dm-results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 18px;
}
.results-summary { color: var(--dm-muted); font-weight: 600; margin: 0; }
.dm-sort-form {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--dm-muted);
    font-size: .86rem;
    font-weight: 700;
}
.dm-sort-form .form-select {
    min-width: 170px;
}
.empty {
    padding: 28px;
    border: 1px dashed var(--dm-line);
    border-radius: 18px;
    background: #fff;
    color: var(--dm-muted);
}
.dm-detail-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); gap: 28px; align-items: start; }
.dm-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.dm-gallery img, .dm-gallery .dm-card-placeholder { height: 250px; border-radius: 12px; }
.dm-detail-panel { background: #fff; border: 1px solid var(--dm-line); border-radius: 18px; padding: 26px; }
.dm-detail-panel h1 { margin: 5px 0 10px; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.05; letter-spacing: -.05em; }
.dm-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; margin: 24px 0; }
.dm-specs div { border-bottom: 1px solid #edf2ef; padding-bottom: 9px; }
.dm-specs dt { color: var(--dm-muted); font-size: .8rem; }
.dm-specs dd { margin: 2px 0 0; font-weight: 700; }
.dm-distance { background: var(--dm-mint); border-radius: 13px; padding: 16px; margin-top: 20px; }
.dm-distance input { max-width: 130px; }
.dm-prose { color: #344740; }
.dm-prose p,
.dm-prose ul,
.dm-prose ol { margin-bottom: 1rem; }
.dm-prose ul,
.dm-prose ol { padding-left: 1.2rem; }
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 34px 0;
}
.pagination-link,
.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 58px;
    height: 58px;
    padding: 0 18px;
    border: 1px solid #a9bdd8;
    border-radius: 999px;
    background: #fff;
    color: #395579;
    font-size: 1.1rem;
    font-weight: 800;
    line-height: 1;
}
.pagination-link {
    text-decoration: none;
}
.pagination-link:hover {
    border-color: #5b7dad;
    color: #1d4277;
}
.pagination-link.active {
    border-color: #173f78;
    background: #173f78;
    color: #fff;
}
.pagination-link--nav {
    gap: 0.55rem;
    min-width: 148px;
    padding: 0 28px;
    font-size: 0.95rem;
}
.pagination-link.is-disabled {
    border-color: #d2dae5;
    color: #9aa8ba;
    pointer-events: none;
}
.pagination-ellipsis {
    border-color: #d2dae5;
    color: #8b98aa;
}
.dm-link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.dm-link-card { display: block; transition: transform .2s ease, box-shadow .2s ease; }
.dm-link-card:hover { transform: translateY(-2px); box-shadow: var(--dm-shadow); }
@media (max-width: 850px) {
    .dm-hero-grid, .dm-detail-grid { grid-template-columns: 1fr; }
    .dm-feature-grid, .dm-card-grid, .dm-timeline-grid, .dm-stat-row, .dm-link-grid { grid-template-columns: repeat(2, 1fr); }
    .dm-footer-grid { grid-template-columns: repeat(2, 1fr); }
    .dm-search-row { grid-template-columns: minmax(0, 1fr) minmax(7.5rem, 9rem); }
    .dm-search-row > label:nth-child(2) { max-width: none; }
    .dm-search-actions { grid-column: 1 / -1; }
    .dm-search-advanced-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .dm-header-inner { min-height: 64px; }
    .dm-logo img { width: 145px; }
    .dm-nav { gap: 11px; font-size: .9rem; }
    .dm-nav a:nth-child(2) { display: none; }
    .dm-page-header { padding: 0; }
    .dm-nav .dm-nav-cta {
        min-width: 42px;
        width: 42px;
        height: 42px;
        padding: 0;
    }
    .dm-nav-cta-label {
        display: none;
    }
    .dm-nav-cta-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .dm-hero { padding: 45px 0 55px; }
    .dm-feature-grid, .dm-card-grid, .dm-footer-grid, .dm-timeline-grid, .dm-stat-row, .dm-search-row, .dm-search-advanced-fields, .dm-link-grid { grid-template-columns: 1fr; }
    .dm-search-row > label:nth-child(2) { max-width: none; }
    .dm-search-field--wide { grid-column: span 1; }
    .dm-results-toolbar { align-items: stretch; flex-direction: column; }
    .dm-sort-form { justify-content: space-between; }
    .dm-sort-form .form-select { min-width: 0; width: 100%; }
    .dm-gallery { grid-template-columns: 1fr; }
    .dm-gallery img, .dm-gallery .dm-card-placeholder { height: 230px; }
    .dm-search-actions { grid-template-columns: 1fr; }
    .dm-card-core-specs { grid-template-columns: 1fr; }
    .pagination {
        gap: 10px;
    }
    .pagination-link,
    .pagination-ellipsis {
        min-width: 48px;
        height: 48px;
        padding: 0 14px;
        font-size: 1rem;
    }
    .pagination-link--nav {
        min-width: 120px;
        padding: 0 18px;
        font-size: 0.9rem;
    }
}
