.search-near-me-page {
    background:
        radial-gradient(circle at 82% 10%, rgba(12, 142, 216, 0.1), transparent 34%),
        linear-gradient(180deg, #eef4fb 0%, #f8fbff 100%);
}

.search-near-me-main {
    width: min(1380px, 94vw);
    margin: 0 auto;
}

.nearme-page {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1.5rem;
    width: 100%;
}

.nearme-page > * {
    width: 100%;
    max-width: none;
}

.nearme-hero {
    position: relative;
    display: block;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(4, 120, 197, 0.28);
    border-radius: 16px;
    background:
        radial-gradient(circle at 14% 12%, rgba(253, 185, 29, 0.18), transparent 34%),
        linear-gradient(140deg, #052959 0%, #0a4f8e 50%, #0c8ed8 100%);
    color: #f4fbff;
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.nearme-hero::after {
    content: '';
    position: absolute;
    top: -72px;
    right: -32px;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0));
    pointer-events: none;
}

.nearme-hero__content,
.nearme-hero__panel {
    position: relative;
    z-index: 1;
}

.nearme-hero__eyebrow {
    margin: 0 0 0.35rem 0;
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(244, 251, 255, 0.88);
}

h1.nearme-hero__title {
    color: #f8fcff;
    margin: 0 0 0.9rem 0;
}

.nearme-hero__subtitle {
    margin: 0.3rem 0 0 0;
    max-width: 70ch;
    color: rgba(243, 252, 255, 0.95);
    font-size: 0.94rem;
}

.nearme-hero__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 0.65rem;
}

.nearme-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    padding: 0.36rem 0.62rem;
    border: 1px solid rgba(208, 240, 255, 0.34);
    border-radius: 999px;
    background: rgba(5, 41, 89, 0.26);
    color: #f4fbff;
    font-size: 0.84rem;
    font-weight: 600;
}

.nearme-chip .material-icons {
    font-size: 1rem;
    color: #d9f1ff;
}

.nearme-hero__supply-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.65rem;
}

.nearme-supply-pill {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0.35rem 0.62rem;
    border-radius: 999px;
    background: rgba(235, 246, 255, 0.16);
    border: 1px solid rgba(214, 239, 255, 0.24);
    color: #f6fbff;
    font-size: 0.82rem;
    font-weight: 600;
}

.nearme-supply-pill--empty {
    opacity: 0.9;
}

.nearme-state-card,
.nearme-card {
    overflow: hidden;
    border-radius: 16px;
}

.nearme-state-card {
    border: 1px solid rgba(4, 120, 197, 0.2);
    box-shadow: var(--shadow-sm);
}

.nearme-state-card .card-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.nearme-state-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: #ebf6ff;
    color: #0a4f8e;
    flex: 0 0 auto;
}

.nearme-state-card__icon .material-icons {
    font-size: 1.5rem;
}

.nearme-state-card__content {
    min-width: 0;
}

.nearme-state-card__content .card-title {
    margin-bottom: 0.4rem;
}

.nearme-state-card__content p {
    margin: 0;
    color: var(--color-text-muted);
}

.nearme-results-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding: 0.15rem 0.1rem 0;
}

.nearme-results-heading__title {
    margin: 0;
    color: #052959;
    font-size: clamp(1.2rem, 1.04rem + 0.6vw, 1.55rem);
    line-height: 1.15;
}

.nearme-results-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    align-items: start;
    width: 100%;
}

.nearme-results-grid > * {
    align-self: start;
    width: 100%;
}

.nearme-distance-value {
    display: inline-block;
    min-width: 2ch;
    margin: 0 0.25rem;
    text-align: right;
    color: var(--color-text-link);
    font-weight: 700;
}

.nearme-distance-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0.35rem;
    font-size: 0.82rem;
    color: var(--color-text-muted);
}

.nearme-options-actions {
    margin-top: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.nearme-options-actions .btn {
    width: 100%;
}

.nearme-options-reset-btn {
    width: 100%;
}

@media (max-width: 700px) {
    .nearme-results-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .nearme-state-card .card-content {
        flex-direction: column;
    }
}
