:root {
    --primary: #0d7ec4;
    --primary-deep: #0b5e96;
    --primary-soft: #eaf8ff;
    --accent: #3fcf7e;
    --accent-deep: #1ca15f;
    --dark: #17334d;
    --muted: #69839c;
    --line: rgba(15, 60, 91, 0.16);
    --page-bg: #dfeef2;
    --white: #ffffff;
    --shadow: 0 20px 40px rgba(13, 54, 98, 0.15);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    background: var(--page-bg);
    color: var(--dark);
    line-height: 1.6;
}

.custom-input,
.custom-textarea {
    width: 100%;
    padding: 10px 14px;
    font-size: 1rem;
    font-family: inherit;
    color: #333333;
    background-color: #ffffff;
    border: 1px solid #ced4da;
    border-radius: 6px;
    transition: border-color 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    outline: none;
    box-sizing: border-box;
    margin-bottom: 1rem;
}

.custom-input:focus,
.custom-textarea:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.custom-textarea {
    resize: vertical;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1280px, calc(100% - 40px));
    margin: 0 auto;
}

.topbar {
    background: linear-gradient(90deg, #0a7cc1 0%, #0a5e97 100%);
    color: var(--white);
    font-size: 0.94rem;
    font-weight: 600;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 58px;
    gap: 14px;
    padding: 8px 0;
}

.topbar-left,
.topbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.topbar-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.08);
    padding: 7px 12px;
    border-radius: 999px;
    font-weight: 700;
}

.topbar-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #7ff0b1;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

.navbar {
    background: rgba(255, 255, 255, 0.76);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 10;
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    min-height: 94px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 240px;
}

.brand-mark {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(10, 122, 188, 0.12), rgba(63, 207, 126, 0.12));
    display: grid;
    place-items: center;
    border: 1px solid rgba(13, 126, 196, 0.15);
}

.brand-mark img {
    width: 42px;
    height: 42px;
}

.brand-copy {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.brand-name {
    font-size: clamp(1.2rem, 1.5vw, 2rem);
    font-weight: 800;
    color: var(--primary);
}

.brand-name .brand-accent {
    color: var(--accent-deep);
}

.brand-tagline {
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    color: var(--muted);
    font-weight: 700;
}

.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(18px, 2.5vw, 42px);
    flex: 1;
    font-weight: 700;
    color: var(--dark);
}

.nav-links a {
    transition: color 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    color: var(--primary);
}

.nav-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85rem 1.6rem;
    min-width: 160px;
    border-radius: 999px;
    border: 1.5px solid rgba(16, 101, 150, 0.55);
    background: transparent;
    color: var(--primary-deep);
    font-weight: 700;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.2);
}

.button-filled {
    background: linear-gradient(135deg, var(--primary) 0%, #1da0d6 100%);
    border: none;
    color: var(--white);
    box-shadow: var(--shadow);
}

.button-solid {
    background: linear-gradient(135deg, var(--accent) 0%, #55d49f 100%);
    border: none;
    color: var(--white);
    box-shadow: var(--shadow);
}

.hero-shell {
    position: relative;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(209, 237, 245, 0.95) 0%, rgba(239, 246, 248, 0.92) 100%);
}

.hero-shell::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 20% 20%, rgba(255,255,255,0.7) 0%, rgba(255,255,255,0) 35%);
    pointer-events: none;
}

.hero {
    position: relative;
    display: grid;
    grid-template-columns: 1.2fr 0.9fr;
    align-items: center;
    gap: 10px;
    min-height: 760px;
}

.hero-copy {
    position: relative;
    z-index: 1;
    padding: 52px 0 32px;
}

.hero-title {
    margin: 0;
    font-size: clamp(3.8rem, 7vw, 10rem);
    font-weight: 900;
    line-height: 0.86;
    letter-spacing: -0.06em;
    color: rgba(17, 105, 165, 0.15);
}

.hero-title span {
    display: block;
    color: var(--primary);
}

.hero-copy .hero-title .highlight {
    color: var(--accent);
    text-shadow: 0 0 12px rgba(63, 207, 126, 0.1);
}

.hero-sub {
    margin-top: 20px;
    max-width: 770px;
    font-size: clamp(1.15rem, 2vw, 2.1rem);
    color: rgba(17, 61, 92, 0.92);
    font-weight: 500;
}

.hero-sub strong {
    color: var(--primary);
    font-weight: 800;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 34px;
}

.primary-btn,
.secondary-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    min-height: 64px;
    padding: 0 30px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn:hover,
.secondary-btn:hover,
.primary-btn:focus-visible,
.secondary-btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(15, 116, 183, 0.16);
}

.hero-visual {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    min-height: 680px;
}

.hero-visual img {
    width: min(680px, 95%);
    object-fit: cover;
    filter: drop-shadow(0 24px 30px rgba(15, 81, 117, 0.28));
}

.hero-visual::before {
    content: "";
    position: absolute;
    inset: 14% 10% 7% 12%;
    background: radial-gradient(circle, rgba(34, 173, 225, 0.16), rgba(34, 173, 225, 0) 62%);
    border-radius: 50%;
}

.section {
    padding: 96px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-kicker {
    display: inline-block;
    font-size: 0.8rem;
    color: var(--primary);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-weight: 800;
    margin-bottom: 12px;
}

.section-header h2 {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3.2rem);
    line-height: 1.08;
    letter-spacing: -0.05em;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.info-card {
    background: rgba(255,255,255,0.82);
    border: 1px solid var(--line);
    border-radius: 26px;
    padding: 42px 30px 34px;
    box-shadow: 0 18px 32px rgba(14, 70, 109, 0.06);
}

.step-icon {
    width: 72px;
    height: 72px;
    display: grid;
    place-items: center;
    border-radius: 20px;
    background: linear-gradient(135deg, rgba(13,126,196,0.14), rgba(63,207,126,0.14));
    font-size: 2rem;
    margin-bottom: 18px;
}

.info-card h3 {
    font-size: 1.75rem;
    margin: 0 0 12px;
    letter-spacing: -0.04em;
}

.info-card p {
    margin: 0;
    font-size: 1.02rem;
    color: rgba(23, 51, 77, 0.78);
}

.split-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
}

.panel {
    background: rgba(255,255,255,0.85);
    border: 1px solid var(--line);
    border-radius: 30px;
    padding: 34px 30px;
    box-shadow: 0 18px 30px rgba(20, 64, 94, 0.07);
}

.panel h3 {
    font-size: 2.15rem;
    margin: 0 0 22px;
    letter-spacing: -0.04em;
}

.panel ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 18px;
}

.panel li {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: rgba(23, 51, 77, 0.82);
    font-size: 1.04rem;
}

.check {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #5dd0a2);
    color: var(--white);
    display: inline-grid;
    place-items: center;
    font-weight: 800;
    flex-shrink: 0;
    margin-top: 2px;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.value-item {
    background: rgba(255,255,255,0.8);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 24px 18px 20px;
    text-align: center;
}

.value-icon {
    width: 62px;
    height: 62px;
    border-radius: 18px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    color: var(--primary);
    background: linear-gradient(135deg, rgba(13,126,196,0.12), rgba(63,207,126,0.12));
    font-size: 1.8rem;
}

.value-item h4 {
    margin: 0 0 10px;
    font-size: 1.08rem;
}

.value-item p {
    margin: 0;
    color: rgba(23, 51, 77, 0.72);
    font-size: 0.96rem;
}

.plan-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    margin-top: 28px;
}

.plan {
    background: rgba(255,255,255,0.82);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 26px 22px 24px;
    position: relative;
    overflow: hidden;
}

.plan.featured {
    background: linear-gradient(180deg, rgba(13,126,196,0.04), rgba(255,255,255,0.9));
    border-color: rgba(13,126,196,0.38);
    transform: scale(1.02);
}

.plan-badge {
    position: absolute;
    right: 18px;
    top: 18px;
    background: linear-gradient(135deg, var(--accent), #66d9af);
    color: var(--white);
    font-size: 0.72rem;
    border-radius: 999px;
    padding: 7px 12px;
    font-weight: 700;
}

.plan h3 {
    margin: 0 0 10px;
    font-size: 1.6rem;
}

.price {
    font-size: 2.4rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 16px;
}

.price small {
    font-size: 0.9rem;
    color: var(--muted);
    font-weight: 700;
}

.plan ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 10px;
    color: rgba(23, 51, 77, 0.8);
}

.plan li::before {
    content: "•";
    color: var(--accent-deep);
    font-weight: 900;
    margin-right: 8px;
}

.activity-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.activity-item {
    background: rgba(255,255,255,0.82);
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 18px 18px 14px;
}

.activity-item .pill {
    display: inline-flex;
    background: rgba(13,126,196,0.08);
    color: var(--primary-deep);
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    margin-bottom: 12px;
}

.activity-item h4 {
    margin: 0 0 6px;
    font-size: 1.18rem;
}

.activity-item p {
    margin: 0;
    color: rgba(23, 51, 77, 0.78);
    font-size: 0.92rem;
}

.cta-panel {
    background: linear-gradient(135deg, rgba(13,126,196,0.94), rgba(13, 94, 150, 0.94));
    border-radius: 30px;
    color: var(--white);
    text-align: center;
    padding: 52px 28px;
    box-shadow: var(--shadow);
}

.cta-panel h2 {
    margin: 0 0 12px;
    font-size: clamp(2.2rem, 4vw, 3.3rem);
    letter-spacing: -0.05em;
}

.cta-panel p {
    margin: 0 auto 28px;
    max-width: 700px;
    color: rgba(255,255,255,0.8);
    font-size: 1.08rem;
}

.cta-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
}

.cta-actions .primary-btn,
.cta-actions .secondary-btn {
    min-width: 220px;
}

.footer {
    background: #0f2439;
    color: rgba(255,255,255,0.8);
    padding: 68px 0 26px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 1fr;
    gap: 24px;
    margin-bottom: 36px;
}

.footer h4 {
    margin: 0 0 20px;
    font-size: 1.2rem;
    color: var(--white);
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 10px;
}

.footer a {
    color: rgba(255,255,255,0.8);
}

.footer-copy {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 18px;
    text-align: center;
    font-size: 0.94rem;
    color: rgba(255,255,255,0.7);
}

.content-page {
    padding: 70px 0 90px;
}

.content-card {
    background: rgba(255,255,255,0.86);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 46px 38px;
    box-shadow: 0 18px 32px rgba(20,64,94,0.06);
}

.content-card h1,
.content-card h2,
.content-card h3 {
    color: var(--dark);
    letter-spacing: -0.04em;
}

.content-card p,
.content-card li {
    color: rgba(23, 51, 77, 0.8);
    font-size: 1.03rem;
}

.content-card ul {
    padding-left: 22px;
}

@media (max-width: 980px) {
    .navbar-inner,
    .topbar-inner,
    .hero {
        grid-template-columns: 1fr;
        display: grid;
    }

    .navbar-inner {
        justify-content: center;
        text-align: center;
    }

    .nav-links {
        flex-wrap: wrap;
        order: 3;
    }

    .brand {
        justify-content: center;
    }

    .card-grid,
    .split-grid,
    .plan-grid,
    .activity-grid,
    .footer-grid,
    .value-grid {
        grid-template-columns: 1fr 1fr;
    }

    .hero {
        padding-bottom: 30px;
    }
}

@media (max-width: 720px) {
    .topbar-inner,
    .card-grid,
    .split-grid,
    .plan-grid,
    .activity-grid,
    .footer-grid,
    .value-grid {
        grid-template-columns: 1fr;
    }

    .nav-links {
        gap: 10px 18px;
        font-size: 0.96rem;
    }

    .hero-copy {
        padding-top: 30px;
    }

    .hero-title {
        font-size: 3.2rem;
    }

    .hero-sub {
        font-size: 1.1rem;
    }

    .hero-actions,
    .cta-actions {
        flex-direction: column;
    }

    .primary-btn,
    .secondary-btn {
        width: 100%;
    }
}

.nav-button-submit {
    font: inherit;
    cursor: pointer;
}

.flash-messages {
    padding-top: 18px;
}

.flash-message {
    margin: 0 0 10px;
    padding: 13px 18px;
    border-radius: 12px;
    background: #e8f7ef;
    color: #17653d;
    font-weight: 650;
}

.flash-error {
    background: #fff0ed;
    color: #983a29;
}

.search-section {
    background: #f4f9fb;
}

.search-section .section-header p {
    max-width: 720px;
    margin: 14px auto 0;
    color: var(--muted);
}

.search-form {
    padding: 26px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: 0 18px 32px rgba(20, 64, 94, 0.07);
}

.search-fields {
    display: grid;
    grid-template-columns: minmax(220px, 2fr) minmax(180px, 1.4fr) minmax(120px, 0.7fr);
    gap: 16px;
}

.form-field {
    display: grid;
    gap: 7px;
    margin-bottom: 16px;
}

.form-field label {
    color: var(--dark);
    font-size: 0.92rem;
    font-weight: 750;
}

.form-field input,
.form-field select,
.form-field textarea,
.search-form input:not([type="hidden"]),
.search-form select {
    width: 100%;
    min-height: 48px;
    padding: 11px 13px;
    border: 1px solid #c7d8e1;
    border-radius: 10px;
    background: #fff;
    color: var(--dark);
    font: inherit;
}

.form-field textarea {
    min-height: 120px;
    resize: vertical;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
    outline: 3px solid rgba(13, 126, 196, 0.17);
    border-color: var(--primary);
}

.search-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 12px;
}

.search-actions .primary-btn,
.search-actions .secondary-btn,
.form-submit {
    min-height: 50px;
    border-radius: 11px;
    font-size: 1rem;
}

.location-button {
    background: #f2f8fb;
    border: 1px solid var(--line);
    color: var(--primary-deep);
    box-shadow: none;
    cursor: pointer;
}

.form-hint {
    color: var(--muted);
    font-size: 0.88rem;
}

.form-errors,
.field-error {
    color: #a53325;
    font-size: 0.9rem;
    font-weight: 650;
}

.results-heading,
.map-heading,
.dashboard-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
    margin: 52px 0 22px;
}

.results-heading h1,
.results-heading h2,
.results-heading h3,
.map-heading h3,
.dashboard-heading h1 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    line-height: 1.15;
    letter-spacing: -0.045em;
}

.text-link {
    color: var(--primary-deep);
    font-weight: 800;
}

.text-link:hover,
.account-switch a:hover {
    text-decoration: underline;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.listing-card,
.dashboard-card {
    min-width: 0;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 14px 28px rgba(14, 70, 109, 0.05);
}

.listing-card-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
}

.listing-category,
.distance-badge {
    display: inline-flex;
    width: fit-content;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(13, 126, 196, 0.1);
    color: var(--primary-deep);
    font-size: 0.77rem;
    font-weight: 800;
}

.distance-badge {
    background: rgba(63, 207, 126, 0.14);
    color: #137744;
}

.listing-card h3 {
    margin: 14px 0 5px;
    font-size: 1.4rem;
    letter-spacing: -0.035em;
}

.listing-card h3 a:hover {
    color: var(--primary);
}

.listing-provider,
.listing-area,
.listing-description {
    color: rgba(23, 51, 77, 0.76);
}

.listing-provider {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 700;
}

.listing-description {
    min-height: 3.2em;
    margin: 16px 0 10px;
}

.listing-area {
    font-size: 0.92rem;
}

.listing-link {
    display: inline-flex;
    gap: 8px;
    margin-top: 8px;
    color: var(--primary-deep);
    font-weight: 800;
}

.listing-actions {
    display: flex;
    gap: 18px;
    margin-top: 14px;
}

.text-danger {
    color: #a53325;
}

.request-search {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto;
    align-items: end;
    gap: 16px;
}

.request-search .form-field {
    margin: 0;
}

.request-search .primary-btn {
    min-height: 50px;
    border-radius: 11px;
    padding: 0 22px;
}

.empty-state {
    padding: 38px 24px;
    border: 1px dashed #a8c1ce;
    border-radius: 18px;
    background: rgba(255,255,255,0.65);
    text-align: center;
}

.empty-state h2,
.empty-state h3 {
    margin-top: 0;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 28px;
    color: var(--muted);
}

.pagination a {
    color: var(--primary-deep);
    font-weight: 800;
}

.map-heading {
    align-items: center;
    margin-top: 44px;
}

.map-heading p {
    max-width: 420px;
    color: var(--muted);
}

.map-panel {
    min-height: 390px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #e1edf1;
    z-index: 0;
}

.map-panel-small {
    min-height: 320px;
    margin: 12px 0 20px;
}

.narrow-container {
    max-width: 820px;
}

.account-card {
    padding: clamp(24px, 5vw, 48px);
}

.account-card h1,
.listing-detail h1 {
    margin: 0 0 12px;
    font-size: clamp(2rem, 5vw, 3.2rem);
    line-height: 1.05;
    letter-spacing: -0.05em;
}

.form-layout {
    margin-top: 24px;
}

.form-submit {
    width: auto;
    min-width: 190px;
    margin-top: 10px;
    padding: 0 22px;
}

.account-switch {
    margin: 20px 0 0;
    color: var(--muted);
}

.account-switch a {
    color: var(--primary-deep);
    font-weight: 800;
}

.dashboard-heading {
    margin-top: 0;
    align-items: center;
}

.dashboard-heading p {
    margin: 8px 0 0;
    color: var(--muted);
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
    margin: 30px 0 42px;
}

.dashboard-card h2 {
    margin: 4px 0;
    font-size: 2rem;
}

.dashboard-card p {
    color: var(--muted);
}

.listing-detail-description {
    margin: 24px 0;
    font-size: 1.07rem;
}

.contact-callout {
    margin: 30px 0;
    padding: 24px;
    border-radius: 18px;
    background: var(--primary-soft);
}

.contact-callout h2 {
    margin-top: 0;
}

.contact-callout .primary-btn {
    min-height: 52px;
    border-radius: 11px;
    padding: 0 22px;
}

.message-list {
    display: grid;
    gap: 12px;
}

.message-row {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--white);
}

.message-row:hover {
    border-color: rgba(13, 126, 196, 0.5);
}

.message-row h2 {
    margin: 4px 0;
    font-size: 1.2rem;
}

.message-row p {
    margin: 5px 0;
    color: var(--muted);
}

.message-row time {
    flex-shrink: 0;
    color: var(--muted);
    font-size: 0.86rem;
}

.message-unread {
    border-left: 4px solid var(--accent-deep);
}

.message-direction {
    color: var(--primary-deep);
    font-size: 0.88rem;
    font-weight: 800;
}

.message-body {
    margin: 24px 0;
    padding: 20px;
    border-radius: 14px;
    background: #f3f8fa;
}

@media (max-width: 900px) {
    .listing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .search-fields {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 620px) {
    .listing-grid,
    .search-fields {
        grid-template-columns: 1fr;
    }

    .results-heading,
    .map-heading,
    .dashboard-heading,
    .message-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .search-form {
        padding: 18px;
    }

    .search-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .search-actions .primary-btn,
    .search-actions .secondary-btn {
        width: 100%;
    }

    .map-panel {
        min-height: 300px;
    }
}

.provider-avatar-small {
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    object-fit: cover;
    background: var(--primary-soft);
}

.provider-avatar-fallback {
    display: inline-grid;
    place-items: center;
    color: var(--primary-deep);
    font-weight: 900;
}

.listing-provider {
    display: flex;
    align-items: center;
    gap: 9px;
}

.listing-provider a {
    color: var(--primary-deep);
}

.provider-cover {
    width: 100%;
    height: clamp(190px, 28vw, 340px);
    border-radius: 18px;
    object-fit: cover;
    background: linear-gradient(135deg, #0d7ec4, #3fcf7e);
}

.provider-cover-placeholder {
    background:
        radial-gradient(circle at 80% 10%, rgba(255,255,255,.35), transparent 30%),
        linear-gradient(135deg, #0d7ec4, #3fcf7e);
}

.provider-public-profile {
    overflow: hidden;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 28px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 18px 32px rgba(20,64,94,.07);
}

.provider-public-identity,
.provider-detail-identity,
.provider-dashboard-identity {
    display: flex;
    align-items: center;
    gap: 20px;
}

.provider-public-identity {
    padding: 0 22px;
    margin-top: -54px;
    position: relative;
}

.provider-avatar-large {
    display: inline-grid;
    width: 112px;
    height: 112px;
    flex: 0 0 112px;
    place-items: center;
    object-fit: cover;
    border: 5px solid #fff;
    border-radius: 50%;
    background: #eaf8ff;
    box-shadow: 0 8px 20px rgba(20,64,94,.16);
    color: var(--primary-deep);
    font-size: 2.5rem;
    font-weight: 900;
}

.provider-public-title {
    flex: 1;
    padding-top: 47px;
}

.provider-public-title h1,
.provider-detail-identity h2,
.provider-dashboard-identity h2 {
    margin: 0;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: -0.045em;
}

.provider-public-title .section-kicker,
.provider-detail-identity .section-kicker {
    margin: 0 0 4px;
}

.provider-public-title p,
.provider-detail-identity p,
.provider-dashboard-identity p {
    margin: 5px 0 0;
    color: var(--muted);
}

.provider-public-identity > .primary-btn {
    flex-shrink: 0;
    min-height: 50px;
    padding: 0 22px;
    border-radius: 11px;
}

.provider-public-bio {
    max-width: 900px;
    margin: 22px 22px 10px;
    color: rgba(23,51,77,.82);
}

.listing-detail > .provider-cover {
    margin: -18px -18px 22px;
    width: calc(100% + 36px);
    max-width: none;
    border-radius: 18px 18px 0 0;
}

.listing-detail > .provider-cover-placeholder {
    height: 200px;
}

.provider-detail-identity {
    margin: 12px 0 25px;
}

.provider-dashboard-profile {
    overflow: hidden;
    margin: 24px 0 38px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: #fff;
}

.provider-cover-preview {
    width: 100%;
    height: 210px;
    border-radius: 14px;
    object-fit: cover;
}

.provider-dashboard-identity {
    padding: 0 16px;
    margin-top: -42px;
    position: relative;
}

.provider-dashboard-identity .provider-avatar-large {
    width: 92px;
    height: 92px;
    flex-basis: 92px;
    font-size: 2rem;
}

.provider-bio-preview {
    margin: 14px 18px 8px;
    color: rgba(23,51,77,.78);
}

.dashboard-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}

@media (max-width: 620px) {
    .provider-public-identity,
    .provider-detail-identity {
        align-items: flex-start;
        flex-wrap: wrap;
        padding-right: 8px;
        padding-left: 8px;
    }

    .provider-public-identity {
        margin-top: -40px;
    }

    .provider-avatar-large {
        width: 84px;
        height: 84px;
        flex-basis: 84px;
        font-size: 2rem;
    }

    .provider-public-title {
        padding-top: 43px;
    }

    .provider-public-identity > .primary-btn {
        width: 100%;
    }

    .dashboard-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .dashboard-actions > a {
        width: 100%;
    }

    .provider-dashboard-identity {
        padding: 0 6px;
    }
}
