.controller-nearby {
    max-width: 1040px;
}

.nearby-page,
.nearby-guest-page {
    display: grid;
    gap: 0.85rem;
}

/* Shared page headers */
.nearby-hero,
.nearby-guest-hero {
    border: 1px solid color-mix(in srgb, var(--hub-accent) 20%, var(--bs-border-color));
    border-radius: 18px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--hub-accent) 9%, transparent), transparent 58%),
        linear-gradient(180deg, color-mix(in srgb, var(--bs-card-bg) 96%, transparent), color-mix(in srgb, var(--bs-card-bg) 91%, transparent));
    box-shadow: var(--hub-shadow-soft);
}

.nearby-hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
}

.nearby-eyebrow,
.nearby-guest-kicker,
.nearby-guest-section-heading > span,
.nearby-guest-cta > div > span {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: color-mix(in srgb, var(--hub-accent) 78%, var(--bs-body-color));
    font-size: 0.76rem;
    font-weight: 850;
}

.nearby-hero h1 {
    margin: 0.25rem 0 0.3rem;
    font-size: clamp(1.45rem, 4vw, 2rem);
    line-height: 1.15;
}

.nearby-hero p {
    max-width: 38rem;
    margin: 0;
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
    line-height: 1.5;
}

.nearby-live-count {
    min-width: 92px;
    min-height: 68px;
    display: flex;
    flex: 0 0 auto;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.65rem 0.85rem;
    border: 1px solid color-mix(in srgb, var(--bs-success) 24%, var(--bs-border-color));
    border-radius: 14px;
    background: color-mix(in srgb, var(--bs-success) 9%, var(--bs-secondary-bg));
}

.nearby-live-count span {
    color: var(--bs-success);
    font-size: 1.25rem;
    font-weight: 900;
    line-height: 1;
}

.nearby-live-count small {
    margin-top: 0.25rem;
    color: var(--bs-secondary-color);
    font-size: 0.72rem;
    font-weight: 700;
}

/* Authenticated toolbar and settings */
.nearby-toolbar,
.nearby-privacy-setting {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.85rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 16px;
    background: color-mix(in srgb, var(--bs-card-bg) 94%, transparent);
    box-shadow: var(--hub-shadow-soft);
}

.nearby-status {
    min-width: 0;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--bs-secondary-color);
    font-size: 0.86rem;
}

.nearby-status-dot {
    width: 0.7rem;
    height: 0.7rem;
    flex: 0 0 auto;
    border: 2px solid var(--bs-body-bg);
    border-radius: 50%;
    background: var(--bs-secondary-color);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--bs-secondary-color) 20%, transparent);
}

.nearby-status.is-live {
    color: var(--bs-success);
}

.nearby-status.is-live .nearby-status-dot {
    animation: nearbyPulse 1.6s infinite;
    background: var(--bs-success);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--bs-success) 18%, transparent);
}

.nearby-status.is-error {
    color: var(--bs-danger);
}

.nearby-status.is-error .nearby-status-dot {
    background: var(--bs-danger);
}

.nearby-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.nearby-actions .btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.nearby-privacy-setting-copy {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.nearby-privacy-setting-icon,
.nearby-info-grid article > i,
.nearby-guest-benefits article > span {
    width: 42px;
    height: 42px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--hub-accent) 20%, var(--bs-border-color));
    border-radius: 13px;
    color: color-mix(in srgb, var(--hub-accent) 82%, var(--bs-body-color));
    background: color-mix(in srgb, var(--bs-secondary-bg) 72%, transparent);
}

.nearby-privacy-setting-copy > div > strong,
.nearby-privacy-setting-copy > div > span {
    display: block;
}

.nearby-privacy-setting-copy > div > strong {
    line-height: 1.25;
}

.nearby-privacy-setting-copy > div > span {
    margin-top: 0.2rem;
    color: var(--bs-secondary-color);
    font-size: 0.78rem;
    line-height: 1.35;
}

.nearby-privacy-setting-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.nearby-privacy-setting-icon i {
    display: block;
    line-height: 1;
}

.nearby-privacy-setting-control {
    width: min(100%, 620px);
    flex: 0 1 620px;
}

.nearby-settings-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.55rem;
}

.nearby-privacy-setting-control label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--bs-secondary-color);
    font-size: 0.72rem;
    font-weight: 750;
}

.nearby-privacy-setting-control .form-select {
    margin-bottom: 0.25rem;
}

.nearby-settings-feedback {
    grid-column: 1 / -1;
    display: block;
    min-height: 1rem;
    margin-bottom: 0.35rem;
    color: var(--bs-secondary-color);
    font-size: 0.68rem;
    text-align: center;
}

.nearby-settings-feedback.is-saved {
    color: var(--bs-success);
}

.nearby-settings-feedback.is-error {
    color: var(--bs-danger);
}

.nearby-privacy-setting-control .btn {
    grid-column: 1 / -1;
    width: 100%;
}

/* Map */
.nearby-map-shell {
    height: min(66vh, 660px);
    min-height: 460px;
    position: relative;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--hub-accent) 16%, var(--bs-border-color));
    border-radius: 20px;
    background: var(--bs-card-bg);
    box-shadow: var(--hub-shadow-soft);
}

.nearby-map {
    width: 100%;
    height: 100%;
}

.nearby-map-legend {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 3;
    display: grid;
    gap: 0.3rem;
    padding: 0.55rem 0.65rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 12px;
    color: var(--bs-body-color);
    background: color-mix(in srgb, var(--bs-card-bg) 92%, transparent);
    box-shadow: var(--hub-shadow-soft);
    backdrop-filter: blur(12px);
    font-size: 0.7rem;
}

.nearby-map-legend span {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nearby-legend-dot {
    width: 0.65rem;
    height: 0.65rem;
    display: inline-block;
    border: 2px solid var(--bs-body-bg);
    border-radius: 50%;
    background: var(--bs-success);
}

.nearby-legend-dot.is-public {
    background: var(--hub-accent);
}

.nearby-map-overlay {
    position: absolute;
    inset: 0;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    color: var(--bs-body-color);
    text-align: center;
    background: color-mix(in srgb, var(--bs-body-bg) 86%, transparent);
    backdrop-filter: blur(6px);
    transition: opacity 0.2s ease, visibility 0.2s ease;
}

.nearby-map-overlay-default {
    display: grid;
    justify-items: center;
}

.nearby-permission-help {
    width: min(100%, 560px);
    max-height: 100%;
    overflow-y: auto;
    padding: 1rem;
    border: 1px solid color-mix(in srgb, var(--bs-danger) 28%, var(--bs-border-color));
    border-radius: 18px;
    text-align: left;
    background: color-mix(in srgb, var(--bs-card-bg) 96%, transparent);
    box-shadow: var(--hub-shadow-soft);
}

.nearby-permission-help-head {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.nearby-permission-help-icon {
    width: 46px;
    height: 46px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    border: 1px solid color-mix(in srgb, var(--bs-danger) 30%, var(--bs-border-color));
    border-radius: 14px;
    color: var(--bs-danger);
    background: color-mix(in srgb, var(--bs-danger) 10%, var(--bs-secondary-bg));
    font-size: 1.05rem;
}

.nearby-permission-help-head > div {
    min-width: 0;
}

.nearby-permission-help-head > div > span {
    display: block;
    margin-bottom: 0.16rem;
    color: var(--bs-danger);
    font-size: 0.7rem;
    font-weight: 850;
}

.nearby-permission-help .nearby-permission-help-head h2 {
    margin: 0 0 0.18rem;
    font-size: clamp(1.05rem, 3vw, 1.28rem);
}

.nearby-permission-help .nearby-permission-help-head p {
    max-width: none;
    margin: 0;
    color: var(--bs-secondary-color);
    font-size: 0.8rem;
    line-height: 1.4;
}

.nearby-permission-steps {
    display: grid;
    gap: 0.5rem;
    margin: 0.85rem 0;
    padding-left: 1.35rem;
    color: var(--bs-body-color);
    font-size: 0.8rem;
    line-height: 1.4;
}

.nearby-permission-steps li::marker {
    color: var(--hub-accent);
    font-weight: 850;
}

.nearby-permission-note {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.65rem;
    border-radius: 12px;
    color: var(--bs-secondary-color);
    background: color-mix(in srgb, var(--bs-secondary-bg) 72%, transparent);
    font-size: 0.74rem;
    line-height: 1.4;
}

.nearby-permission-note i {
    margin-top: 0.12rem;
    color: color-mix(in srgb, var(--hub-accent) 78%, var(--bs-body-color));
}

.nearby-permission-actions {
    margin-top: 0.75rem;
}

.nearby-permission-actions .btn {
    width: 100%;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.nearby-permission-feedback {
    min-height: 1rem;
    display: block;
    margin-top: 0.4rem;
    color: var(--bs-danger);
    font-size: 0.7rem;
    text-align: center;
}

.nearby-map-overlay.is-hidden {
    visibility: hidden;
    pointer-events: none;
    opacity: 0;
}

.nearby-map-overlay-icon {
    width: 52px;
    height: 52px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.75rem;
    border: 1px solid color-mix(in srgb, var(--hub-accent) 26%, var(--bs-border-color));
    border-radius: 15px;
    color: color-mix(in srgb, var(--hub-accent) 86%, var(--bs-body-color));
    background: color-mix(in srgb, var(--hub-accent) 10%, var(--bs-secondary-bg));
    font-size: 1.25rem;
}

.nearby-map-overlay h2 {
    margin: 0;
    font-size: 1.2rem;
}

.nearby-map-overlay p {
    max-width: 34rem;
    margin: 0.4rem 0 0;
    color: var(--bs-secondary-color);
    font-size: 0.82rem;
    line-height: 1.5;
}

.nearby-info-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.nearby-info-grid article {
    min-width: 0;
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    padding: 0.85rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 16px;
    background: color-mix(in srgb, var(--bs-card-bg) 92%, transparent);
    box-shadow: var(--hub-shadow-soft);
}

.nearby-info-grid strong,
.nearby-info-grid span {
    display: block;
}

.nearby-info-grid strong {
    font-size: 0.85rem;
    line-height: 1.25;
}

.nearby-info-grid span {
    margin-top: 0.2rem;
    color: var(--bs-secondary-color);
    font-size: 0.72rem;
    line-height: 1.35;
}

/* Google map markers */
.nearby-marker,
.nearby-public-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 3px solid var(--hub-accent);
    border-radius: 50%;
    color: var(--bs-body-color);
    background: var(--bs-card-bg);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
    font-weight: 900;
}

.nearby-marker {
    width: 46px;
    height: 46px;
    font-size: 0.82rem;
}

.nearby-marker.is-viewer {
    border-color: var(--bs-success);
}

.nearby-public-marker {
    width: 42px;
    height: 42px;
    border-color: #fff;
    color: #fff;
    background: var(--hub-accent);
}

.nearby-marker img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nearby-info-window {
    width: 226px;
    position: relative;
    box-sizing: border-box;
    padding: 0.35rem 0.55rem 1rem;
    color: #172033;
    line-height: 1.25;
}

.nearby-info-window.is-viewer {
    width: auto;
    min-width: 170px;
}

.nearby-info-window.is-user {
    width: 100%;
    padding: 0.7rem 1.35rem 1.2rem 1rem;
}

.nearby-info-window.is-user .nearby-info-header {
    padding-right: 2.15rem;
}

.nearby-info-window.is-user .nearby-info-close {
    top: 0.45rem;
    right: 1rem;
}

.nearby-info-header {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    min-width: 0;
    padding-right: 1.35rem;
}

.nearby-info-avatar {
    width: 38px;
    height: 38px;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0;
    border: 2px solid #b8325f;
    border-radius: 50%;
    color: #a32650;
    background: #f8eaf0;
    font-size: 0.78rem;
    font-weight: 850;
}

.nearby-info-window.is-viewer .nearby-info-avatar {
    border-color: #198754;
    color: #146c43;
    background: #e8f5ee;
}

.nearby-info-avatar img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.nearby-info-copy {
    min-width: 0;
}

.nearby-info-copy strong {
    display: block;
    overflow: hidden;
    color: #172033;
    font-size: 0.86rem;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.nearby-info-premium {
    color: #d39e00;
    font-size: 0.72rem;
}

.nearby-info-window .nearby-info-meta {
    display: block;
    margin: 0.16rem 0 0;
    color: #64748b;
    font-size: 0.68rem;
    line-height: 1.25;
}

.nearby-info-window > strong {
    display: block;
    padding-right: 1.35rem;
    color: #172033;
    font-size: 0.84rem;
    line-height: 1.2;
}

.nearby-info-window > span:not(.nearby-intent-label) {
    display: block;
    margin: 0.18rem 0 0;
    color: #64748b;
    font-size: 0.68rem;
    line-height: 1.3;
}

.nearby-info-window .nearby-intent-label {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    margin: 0.5rem 0 0.45rem;
    padding: 0.22rem 0.45rem;
    border-radius: 999px;
    color: #a32650;
    background: #f8eaf0;
    font-size: 0.66rem;
    font-weight: 750;
    line-height: 1.2;
}

.nearby-info-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.3rem;
    margin-top: 0.5rem;
}

.nearby-intent-label + .nearby-info-actions {
    margin-top: 0;
}

.nearby-info-actions a,
.nearby-info-actions button {
    min-height: 30px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.3rem 0.4rem;
    border: 1px solid #d8dee9;
    border-radius: 8px;
    color: #27364d;
    background: #fff;
    font-size: 0.68rem;
    line-height: 1;
    font-weight: 750;
    text-decoration: none;
}

.nearby-info-actions .is-danger {
    color: #b4233d;
    background: #fff7f8;
}

.nearby-info-close {
    width: 24px;
    height: 24px;
    position: absolute;
    top: 0.1rem;
    right: 0.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: #64748b;
    background: #eef1f5;
    font-size: 0.72rem;
    line-height: 1;
}

.nearby-info-close:hover {
    color: #172033;
    background: #e2e7ed;
}

.nearby-map .gm-style-iw-d {
    overflow: hidden !important;
}

.nearby-map .gm-style-iw-c {
    overflow: hidden !important;
}

.nearby-map .gm-style-iw-c.nearby-info-container-user {
    width: 286px !important;
    max-width: calc(100vw - 40px) !important;
    padding: 0 !important;
}

.nearby-map .gm-style-iw-c.nearby-info-container-user .gm-style-iw-d {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
}

.nearby-users-panel {
    display: none;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: 16px;
    background: color-mix(in srgb, var(--bs-card-bg) 94%, transparent);
    box-shadow: var(--hub-shadow-soft);
}

.nearby-users-panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.8rem;
    border-bottom: 1px solid var(--bs-border-color);
}

.nearby-users-panel-head span,
.nearby-users-panel-head strong {
    display: block;
}

.nearby-users-panel-head > div > span {
    color: var(--bs-secondary-color);
    font-size: 0.68rem;
    font-weight: 750;
}

.nearby-users-panel-head > div > strong {
    font-size: 0.9rem;
}

.nearby-users-list {
    display: grid;
}

.nearby-user-list-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 0.7rem;
    padding: 0.75rem;
    border-bottom: 1px solid color-mix(in srgb, var(--bs-border-color) 72%, transparent);
}

.nearby-user-list-item:last-child {
    border-bottom: 0;
}

.nearby-user-list-avatar {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2px solid color-mix(in srgb, var(--hub-accent) 54%, var(--bs-border-color));
    border-radius: 50%;
    color: var(--hub-accent);
    background: var(--bs-secondary-bg);
    font-weight: 850;
}

.nearby-user-list-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.nearby-user-list-main {
    min-width: 0;
}

.nearby-user-list-title,
.nearby-user-list-meta,
.nearby-user-list-actions {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.nearby-user-list-title {
    justify-content: space-between;
}

.nearby-user-list-title strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.86rem;
}

.nearby-user-list-intent {
    color: var(--hub-accent);
    font-size: 0.66rem;
    font-weight: 750;
}

.nearby-user-list-meta {
    flex-wrap: wrap;
    margin-top: 0.12rem;
    color: var(--bs-secondary-color);
    font-size: 0.68rem;
}

.nearby-user-list-actions {
    margin-top: 0.5rem;
}

.nearby-user-list-actions .btn {
    flex: 1 1 0;
    min-height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    font-size: 0.72rem;
    line-height: 1.2;
}

.nearby-user-list-actions .btn i {
    flex: 0 0 auto;
    line-height: 1;
}

.nearby-users-empty {
    padding: 1rem;
    color: var(--bs-secondary-color);
    font-size: 0.78rem;
    text-align: center;
}

/* Guest page */
.nearby-guest-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
    align-items: center;
    gap: 1.25rem;
    padding: 1rem;
}

.nearby-guest-copy h1 {
    max-width: 34rem;
    margin: 0.35rem 0 0.45rem;
    font-size: clamp(1.55rem, 4vw, 2.25rem);
    line-height: 1.12;
}

.nearby-guest-copy > p {
    max-width: 36rem;
    margin: 0;
    color: var(--bs-secondary-color);
    font-size: 0.9rem;
    line-height: 1.55;
}

.nearby-guest-actions,
.nearby-guest-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.nearby-guest-actions {
    margin-top: 0.9rem;
}

.nearby-guest-actions .btn,
.nearby-guest-cta-actions .btn {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.42rem;
    font-size: 0.88rem;
    font-weight: 750;
}

.nearby-guest-trust {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 0.8rem;
    color: var(--bs-secondary-color);
    font-size: 0.72rem;
}

.nearby-guest-trust span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nearby-guest-trust i {
    color: var(--bs-success);
}

.nearby-guest-preview {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--bs-border-color);
    border-radius: 16px;
    background: color-mix(in srgb, var(--bs-card-bg) 94%, transparent);
}

.nearby-preview-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--bs-border-color);
    font-size: 0.75rem;
    font-weight: 800;
}

.nearby-preview-topbar > span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.nearby-preview-topbar > span:first-child i {
    color: var(--hub-accent);
}

.nearby-preview-live {
    color: var(--bs-success);
    font-size: 0.66rem;
    letter-spacing: 0.06em;
}

.nearby-preview-live i {
    width: 0.45rem;
    height: 0.45rem;
    border-radius: 50%;
    background: var(--bs-success);
    animation: nearbyPulse 1.6s infinite;
}

.nearby-preview-map {
    min-height: 300px;
    position: relative;
    overflow: hidden;
    background:
        linear-gradient(color-mix(in srgb, var(--bs-border-color) 34%, transparent) 1px, transparent 1px),
        linear-gradient(90deg, color-mix(in srgb, var(--bs-border-color) 34%, transparent) 1px, transparent 1px),
        color-mix(in srgb, var(--bs-secondary-bg) 58%, var(--bs-card-bg));
    background-size: 28px 28px, 28px 28px, auto;
}

.nearby-preview-road {
    width: 125%;
    height: 20px;
    position: absolute;
    display: block;
    border: 1px solid color-mix(in srgb, var(--bs-border-color) 70%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--bs-card-bg) 72%, transparent);
}

.road-one {
    top: 23%;
    left: -12%;
    transform: rotate(-17deg);
}

.road-two {
    top: 68%;
    left: -10%;
    transform: rotate(13deg);
}

.road-three {
    top: 44%;
    left: 16%;
    height: 16px;
    transform: rotate(75deg);
}

.nearby-preview-pin,
.nearby-preview-own {
    width: 38px;
    height: 38px;
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--bs-card-bg);
    border-radius: 50%;
    color: #fff;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.24);
}

.nearby-preview-pin {
    background: var(--hub-accent);
}

.pin-one {
    top: 18%;
    left: 15%;
}

.pin-two {
    top: 27%;
    right: 14%;
    background: var(--hub-accent-2);
}

.pin-three {
    bottom: 13%;
    left: 28%;
}

.nearby-preview-own {
    right: 27%;
    bottom: 23%;
    background: var(--bs-success);
}

.nearby-preview-own::after {
    width: 86px;
    height: 86px;
    position: absolute;
    content: "";
    border: 1px solid color-mix(in srgb, var(--bs-success) 52%, transparent);
    border-radius: 50%;
    background: color-mix(in srgb, var(--bs-success) 6%, transparent);
}

.nearby-preview-lock {
    width: min(84%, 290px);
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.9rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 14px;
    color: var(--bs-body-color);
    text-align: center;
    background: color-mix(in srgb, var(--bs-card-bg) 90%, transparent);
    box-shadow: var(--hub-shadow-soft);
    backdrop-filter: blur(8px);
    transform: translate(-50%, -50%);
}

.nearby-preview-lock > span {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 0.5rem;
    border: 1px solid color-mix(in srgb, var(--hub-accent) 22%, var(--bs-border-color));
    border-radius: 11px;
    color: color-mix(in srgb, var(--hub-accent) 84%, var(--bs-body-color));
    background: color-mix(in srgb, var(--hub-accent) 9%, var(--bs-secondary-bg));
}

.nearby-preview-lock strong {
    font-size: 0.82rem;
}

.nearby-preview-lock small {
    margin-top: 0.25rem;
    color: var(--bs-secondary-color);
    font-size: 0.68rem;
}

.nearby-guest-benefits,
.nearby-guest-step-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.nearby-guest-benefits article,
.nearby-guest-step-grid article {
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 16px;
    background: color-mix(in srgb, var(--bs-card-bg) 92%, transparent);
    box-shadow: var(--hub-shadow-soft);
}

.nearby-guest-benefits article {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
}

.nearby-guest-benefits strong,
.nearby-guest-step-grid strong {
    display: block;
    font-size: 0.86rem;
    line-height: 1.25;
}

.nearby-guest-benefits p,
.nearby-guest-step-grid p {
    margin: 0.2rem 0 0;
    color: var(--bs-secondary-color);
    font-size: 0.72rem;
    line-height: 1.4;
}

.nearby-guest-steps {
    padding: 1rem;
    border: 1px solid var(--bs-border-color);
    border-radius: 18px;
    background: color-mix(in srgb, var(--bs-card-bg) 94%, transparent);
    box-shadow: var(--hub-shadow-soft);
}

.nearby-guest-section-heading {
    margin-bottom: 0.8rem;
}

.nearby-guest-section-heading h2 {
    margin: 0.25rem 0 0;
    font-size: 1.2rem;
}

.nearby-guest-step-grid article {
    position: relative;
    background: color-mix(in srgb, var(--bs-secondary-bg) 42%, var(--bs-card-bg));
    box-shadow: none;
}

.nearby-guest-step-grid b {
    position: absolute;
    top: 0.5rem;
    right: 0.7rem;
    color: color-mix(in srgb, var(--bs-secondary-color) 28%, transparent);
    font-size: 1.4rem;
}

.nearby-guest-step-grid i {
    display: block;
    margin-bottom: 0.65rem;
    color: color-mix(in srgb, var(--hub-accent) 82%, var(--bs-body-color));
    font-size: 1.1rem;
}

.nearby-guest-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid color-mix(in srgb, var(--hub-accent) 24%, var(--bs-border-color));
    border-radius: 18px;
    background:
        linear-gradient(135deg, color-mix(in srgb, var(--hub-accent) 9%, transparent), transparent 58%),
        color-mix(in srgb, var(--bs-card-bg) 94%, transparent);
    box-shadow: var(--hub-shadow-soft);
}

.nearby-guest-cta h2 {
    max-width: 38rem;
    margin: 0.25rem 0;
    font-size: 1.15rem;
}

.nearby-guest-cta p {
    margin: 0;
    color: var(--bs-secondary-color);
    font-size: 0.8rem;
}

@keyframes nearbyPulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.42;
    }
}

@media (max-width: 991.98px) {
    .nearby-guest-hero {
        grid-template-columns: 1fr;
    }

    .nearby-guest-preview {
        width: 100%;
        max-width: 620px;
        justify-self: center;
    }
}

@media (max-width: 767.98px) {
    .nearby-hero,
    .nearby-toolbar,
    .nearby-privacy-setting,
    .nearby-guest-cta {
        align-items: stretch;
        flex-direction: column;
    }

    .nearby-hero {
        display: block;
        padding: 0.95rem;
        border-radius: 14px;
    }

    .nearby-live-count {
        width: 100%;
        min-height: 58px;
        margin-top: 0.75rem;
        flex-direction: row;
        gap: 0.35rem;
    }

    .nearby-live-count small {
        margin: 0;
    }

    .nearby-actions {
        width: 100%;
    }

    .nearby-actions .btn {
        flex: 1 1 0;
    }

    .nearby-privacy-setting-control {
        width: 100%;
        flex-basis: auto;
    }

    .nearby-settings-grid {
        grid-template-columns: 1fr;
    }

    .nearby-users-panel {
        display: block;
    }

    .nearby-map-shell {
        height: 60vh;
        min-height: 410px;
        border-radius: 16px;
    }

    .nearby-info-grid,
    .nearby-guest-benefits,
    .nearby-guest-step-grid {
        grid-template-columns: 1fr;
        gap: 0.65rem;
    }

    .nearby-guest-hero,
    .nearby-guest-steps,
    .nearby-guest-cta {
        padding: 0.9rem;
        border-radius: 14px;
    }

    .nearby-guest-copy h1 {
        font-size: 1.55rem;
    }

    .nearby-guest-actions,
    .nearby-guest-cta-actions {
        flex-direction: column;
    }

    .nearby-guest-actions .btn,
    .nearby-guest-cta-actions .btn {
        width: 100%;
    }

    .nearby-preview-map {
        min-height: 280px;
    }
}
