/* Locations discovery landing — premium area-based discovery */

.location-page {
    overflow-x: clip;
    --location-chip-bg: rgba(246, 249, 255, .08);
    --location-chip-color: rgba(246, 249, 255, .84);
    --location-chip-border: rgba(223, 232, 247, .22);
    --location-chip-hover-bg: rgba(24, 216, 197, .16);
    --location-chip-hover-color: #fff;
    --location-chip-active-bg: rgba(24, 216, 197, .22);
    --location-chip-active-color: #fff;
    --location-empty-bg: rgba(7, 13, 22, .72);
    --location-empty-border: rgba(151, 180, 230, .2);
}

[data-bs-theme="light"] .location-page {
    --location-chip-bg: rgba(7, 13, 22, .72);
    --location-chip-color: rgba(246, 249, 255, .9);
    --location-chip-border: rgba(151, 180, 230, .28);
    --location-chip-hover-bg: rgba(14, 23, 38, .86);
    --location-chip-hover-color: #fff;
    --location-chip-active-bg: #0f1c2f;
    --location-chip-active-color: #fff;
    --location-empty-bg: rgba(255, 255, 255, .92);
    --location-empty-border: rgba(15, 28, 47, .16);
}

.location-root-hero {
    position: relative;
    min-height: clamp(24rem, 34vw, 32rem);
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid rgba(151, 180, 230, .16);
    background:
        radial-gradient(circle at 50% 22%, rgba(24, 216, 197, .12), transparent 23rem),
        #030913;
}

.location-root-hero__image,
.location-root-hero__scrim {
    position: absolute;
    inset: 0;
}

.location-root-hero__image {
    width: 54%;
    height: 100%;
    object-fit: cover;
    filter: saturate(1.08) contrast(1.05);
}

.location-root-hero__image--left {
    right: auto;
    object-position: 48% 48%;
    opacity: .82;
}

.location-root-hero__image--right {
    left: auto;
    width: 50%;
    object-position: 58% 50%;
    opacity: .78;
}

.location-root-hero__scrim {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(3, 9, 19, .72) 0%, rgba(3, 9, 19, .96) 36%, rgba(3, 9, 19, .96) 64%, rgba(3, 9, 19, .68) 100%),
        linear-gradient(180deg, rgba(3, 9, 19, .06) 0%, rgba(3, 9, 19, .42) 70%, #070b12 100%);
}

.location-root-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: inherit;
    align-items: center;
    justify-content: center;
    padding-block: clamp(4.5rem, 7vw, 6.25rem) clamp(3rem, 5vw, 4.5rem);
    text-align: center;
}

.location-root-hero__content {
    width: min(100%, 44rem);
}

.location-root-hero__title {
    margin: 0;
    color: #fff;
    font-size: clamp(3.4rem, 6.7vw, 6.75rem);
    font-weight: 850;
    letter-spacing: 0;
    line-height: .92;
}

.location-root-hero__eyebrow {
    margin: clamp(.8rem, 1.8vw, 1rem) auto 0;
    color: #32f0ea;
    font-size: clamp(1.05rem, 1.7vw, 1.35rem);
    font-weight: 820;
    line-height: 1.28;
}

.location-root-hero__description {
    max-width: 34rem;
    margin: .85rem auto 0;
    color: rgba(223, 232, 247, .78);
    font-size: clamp(1rem, 1.25vw, 1.12rem);
    line-height: 1.58;
}

.location-root-hero__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-top: clamp(1.35rem, 2.4vw, 1.8rem);
}

.location-root-hero__action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .65rem;
    min-height: 3rem;
    padding: .78rem 1.35rem;
    border: 1px solid rgba(223, 232, 247, .24);
    border-radius: 999px;
    color: #fff;
    background: rgba(7, 13, 22, .5);
    box-shadow: 0 1rem 2.6rem rgba(0, 0, 0, .24);
    font-size: .96rem;
    font-weight: 780;
    line-height: 1;
    text-decoration: none;
    backdrop-filter: blur(14px);
    transition: transform .18s ease, border-color .18s ease, background .18s ease;
}

.location-root-hero__action--primary {
    border-color: rgba(50, 240, 234, .7);
    color: #041016;
    background: linear-gradient(135deg, #2ce6e6, #8af7ff);
}

.location-root-hero__action--secondary {
    background: rgba(15, 25, 40, .62);
}

.location-root-hero__action:hover,
.location-root-hero__action:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(50, 240, 234, .86);
    color: #fff;
    background: rgba(24, 216, 197, .18);
}

.location-root-hero__action--primary:hover,
.location-root-hero__action--primary:focus-visible {
    color: #041016;
    background: linear-gradient(135deg, #35f3ee, #a3fbff);
}

.location-discovery-hero {
    position: relative;
    min-height: clamp(21rem, 33vw, 28rem);
    overflow: hidden;
    isolation: isolate;
    border-bottom: 1px solid rgba(151, 180, 230, .16);
    background:
        radial-gradient(circle at 16% 10%, rgba(24, 216, 197, .1), transparent 22rem),
        #030913;
}

.location-discovery-hero__image,
.location-discovery-hero__scrim {
    position: absolute;
    inset: 0;
}

.location-discovery-hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 62% 48%;
    transform: scale(1.01);
    filter: saturate(1.05) contrast(1.04);
}

.location-discovery-hero__scrim {
    z-index: 1;
    background:
        linear-gradient(90deg, rgba(3, 9, 19, .98) 0%, rgba(3, 9, 19, .9) 36%, rgba(3, 9, 19, .48) 66%, rgba(3, 9, 19, .18) 100%),
        linear-gradient(180deg, rgba(3, 9, 19, .12) 0%, rgba(3, 9, 19, .36) 68%, #070b12 100%);
}

.location-discovery-hero__inner {
    position: relative;
    z-index: 2;
    display: flex;
    min-height: inherit;
    flex-direction: column;
    justify-content: center;
    padding-block: clamp(4.25rem, 7vw, 6rem) clamp(2rem, 4vw, 3.25rem);
}

.location-discovery-hero__nav {
    position: absolute;
    top: clamp(1.25rem, 2.4vw, 1.85rem);
    left: 1rem;
}

.location-discovery-hero__content {
    width: min(100%, 43rem);
}

.location-discovery-hero__title {
    margin: 0;
    color: #fff;
    font-size: clamp(2.8rem, 5vw, 5.15rem);
    font-weight: 830;
    letter-spacing: 0;
    line-height: .96;
    text-wrap: balance;
}

.location-discovery-hero__description {
    max-width: 38rem;
    margin: .85rem 0 0;
    color: rgba(223, 232, 247, .78);
    font-size: clamp(1rem, 1.25vw, 1.1rem);
    line-height: 1.58;
}

.location-privacy-note {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 1rem 0 0;
    padding: 0.5rem 0.875rem;
    font-size: 0.8125rem;
    color: rgba(223, 232, 247, .72);
    background: rgba(24, 216, 197, .08);
    border: 1px solid rgba(24, 216, 197, .18);
    border-radius: 999px;
}

.location-area-search {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.25rem;
}

.location-area-search-form .input-group {
    box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, .18);
}

.location-use-location-once {
    align-self: flex-start;
}

.location-geo-section {
    position: relative;
    padding-top: clamp(1.25rem, 3vw, 2.25rem);
}

.location-geo-breadcrumb {
    font-size: 0.9375rem;
    margin-bottom: .85rem;
}

.location-geo-bento__disabled {
    cursor: not-allowed;
    filter: saturate(0.85);
}

.location-geo-bento__disabled .bento-card__scrim {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, .25) 0%, rgba(0, 0, 0, .82) 100%),
        rgba(3, 9, 19, .62);
}

.location-geo-bento {
    --bento-row: clamp(16rem, 24vw, 20rem);
    --bento-gap: clamp(.85rem, 1.4vw, 1.15rem);
}

.location-geo-bento .bento-card__eyebrow {
    color: #32f0ea;
}

.location-geo-bento > .bento-card {
    overflow: hidden;
    border-color: rgba(151, 180, 230, .24);
    border-radius: .9rem;
    background: #030913;
    box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, .3);
}

.location-geo-bento .bento-card__scrim {
    background:
        linear-gradient(90deg, rgba(3, 9, 19, .9) 0%, rgba(3, 9, 19, .56) 48%, rgba(3, 9, 19, .18) 100%),
        linear-gradient(180deg, rgba(3, 9, 19, .1) 0%, rgba(3, 9, 19, .84) 100%);
}

.location-geo-bento .bento-card__body {
    justify-content: flex-end;
    gap: .55rem;
    padding: clamp(1.15rem, 2.2vw, 1.6rem);
}

.location-geo-bento .bento-card__title {
    max-width: 14ch;
    color: #fff;
    font-size: clamp(2rem, 3.4vw, 3.2rem);
    line-height: .96;
}

.location-geo-bento .bento-card__desc {
    max-width: 25rem;
    color: rgba(246, 249, 255, .78);
}

.location-geo-bento .bento-card__cta {
    margin-top: .3rem;
    border-color: rgba(50, 240, 234, .44);
    color: #32f0ea;
    background: rgba(7, 13, 22, .48);
    box-shadow: 0 .9rem 2.1rem rgba(0, 0, 0, .2);
    backdrop-filter: blur(14px);
}

.location-geo-bento > .bento-card:hover,
.location-geo-bento > .bento-card:focus-visible,
.location-geo-bento > .bento-card:focus-within {
    border-color: rgba(50, 240, 234, .5);
    box-shadow: 0 1.75rem 4.4rem rgba(0, 0, 0, .36), 0 0 0 1px rgba(50, 240, 234, .12);
}

.location-geo-bento--pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.location-geo-bento--pair > .bento-card {
    min-height: clamp(18rem, 36vmin, 25rem);
}

.location-search-secondary-card,
.location-saved-area-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: clamp(1rem, 2.2vw, 1.5rem);
    border: 1px solid rgba(151, 180, 230, .16);
    border-radius: 1rem;
    background:
        radial-gradient(circle at 0% 0%, rgba(24, 216, 197, .08), transparent 18rem),
        rgba(7, 13, 22, .72);
    box-shadow: 0 1.25rem 3.5rem rgba(0, 0, 0, .24);
    color: #f6f9ff;
    backdrop-filter: blur(14px);
}

.location-search-secondary-copy,
.location-saved-area-card > div {
    max-width: 36rem;
}

.location-search-secondary-copy p:not(.location-search-secondary-eyebrow),
.location-saved-area-card p:not(.location-saved-area-eyebrow) {
    color: rgba(223, 232, 247, .68);
}

.location-search-secondary-eyebrow,
.location-saved-area-eyebrow {
    color: #18d8c5;
    font-size: 0.72rem;
    font-weight: 780;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.location-saved-area-eyebrow {
    color: #b990ff;
}

.location-area-state-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1rem;
    padding: .95rem 1.15rem;
    border: 1px solid rgba(151, 180, 230, .16);
    border-radius: 0.875rem;
    background: rgba(7, 13, 22, .58);
    color: #f6f9ff;
    box-shadow: 0 1rem 2.6rem rgba(0, 0, 0, .16);
    backdrop-filter: blur(14px);
}

.location-area-state-bar--global {
    border-color: rgba(151, 180, 230, .14);
    background:
        linear-gradient(135deg, rgba(151, 180, 230, .08), rgba(24, 216, 197, .04)),
        rgba(7, 13, 22, .62);
}

.location-area-state-label {
    font-size: 0.9375rem;
    font-weight: 600;
}

.location-area-state-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.location-area-state-hint {
    font-size: 0.8125rem;
    color: rgba(223, 232, 247, .64);
}

.location-page .btn-outline-secondary {
    border-color: rgba(223, 232, 247, .24);
    color: rgba(246, 249, 255, .86);
    background: rgba(246, 249, 255, .04);
}

.location-page .btn-outline-secondary:hover,
.location-page .btn-outline-secondary:focus-visible {
    border-color: rgba(168, 123, 255, .72);
    background: rgba(124, 85, 229, .22);
    color: #fff;
}

.location-page .btn-primary {
    border-color: #8b5cf6;
    background: #8b5cf6;
    color: #fff;
    font-weight: 760;
}

.location-area-search .form-control {
    border-color: rgba(151, 180, 230, .18);
    background: rgba(2, 7, 14, .72);
    color: #fff;
}

.location-area-search .form-control::placeholder {
    color: rgba(223, 232, 247, .44);
}

.location-area-search .form-control:focus {
    border-color: rgba(24, 216, 197, .56);
    box-shadow: 0 0 0 .2rem rgba(24, 216, 197, .12);
}

.location-discovery-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.location-map-ready-panel {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.125rem;
    border: 1px dashed rgba(var(--bs-body-color-rgb), 0.12);
    border-radius: 0.875rem;
    background: var(--bs-body-tertiary-bg);
}

.location-intent-filter-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    overflow-x: auto;
    padding-bottom: 0.25rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.location-intent-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.875rem;
    border-radius: 999px;
    border: 1px solid var(--location-chip-border);
    color: var(--location-chip-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 650;
    background: var(--location-chip-bg);
    box-shadow: 0 .65rem 1.6rem rgba(0, 0, 0, .18);
    backdrop-filter: blur(12px);
}

.location-intent-chip.is-active,
.location-intent-chip:hover {
    border-color: rgba(24, 216, 197, .52);
    background: var(--location-chip-hover-bg);
    color: var(--location-chip-hover-color);
}

.location-intent-chip.is-active {
    background: var(--location-chip-active-bg);
    color: var(--location-chip-active-color);
    box-shadow: 0 .75rem 1.9rem rgba(0, 0, 0, .24), 0 0 0 1px rgba(24, 216, 197, .18);
}

.location-create-prompt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
    gap: .85rem;
    margin-top: 1rem;
}

.location-browse-secondary {
    padding-bottom: 2rem;
}

.location-browse-details {
    border: 1px solid rgba(151, 180, 230, .14);
    border-radius: 0.875rem;
    padding: 0.75rem 1rem;
    background: rgba(7, 13, 22, .54);
    color: rgba(246, 249, 255, .88);
    backdrop-filter: blur(14px);
}

.location-browse-summary {
    cursor: pointer;
    font-weight: 600;
    list-style-position: inside;
}

.location-browse-panel {
    padding-bottom: 0.25rem;
}

.location-stats-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.location-stat-card {
    min-width: 7rem;
    padding: 1rem 1.25rem;
    text-align: center;
    background: var(--bs-body-tertiary-bg);
    border-radius: 0.875rem;
}

.location-stat-value {
    font-size: 1.25rem;
    font-weight: 700;
}

.location-stat-label {
    font-size: 0.75rem;
    color: var(--bs-secondary-color);
}

.location-module-section {
    padding-block: 2rem;
}

.location-module-empty {
    padding: 1.5rem;
    border-radius: 1rem;
    background: var(--location-empty-bg);
    border: 1px dashed var(--location-empty-border);
}

.location-fallback-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .location-area-search {
        flex-direction: row;
        align-items: center;
    }

    .location-area-search-form {
        flex: 1;
    }

    .location-search-secondary-card,
    .location-saved-area-card {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }

    .location-search-secondary-card {
        align-items: flex-start;
    }

    .location-intent-filter-row {
        flex-wrap: wrap;
        overflow-x: visible;
    }
}

@media (max-width: 767.98px) {
    .location-discovery-hero {
        min-height: 20rem;
    }

    .location-root-hero {
        min-height: 31rem;
    }

    .location-root-hero__image {
        width: 100%;
        opacity: .54;
    }

    .location-root-hero__image--right {
        display: none;
    }

    .location-root-hero__scrim {
        background:
            linear-gradient(180deg, rgba(3, 9, 19, .56) 0%, rgba(3, 9, 19, .9) 48%, #070b12 100%),
            rgba(3, 9, 19, .42);
    }

    .location-root-hero__inner {
        align-items: flex-end;
        padding-top: 5rem;
        text-align: left;
    }

    .location-root-hero__eyebrow,
    .location-root-hero__description {
        margin-left: 0;
        margin-right: 0;
    }

    .location-root-hero__actions {
        justify-content: flex-start;
    }

    .location-root-hero__action {
        width: 100%;
    }

    .location-discovery-hero__title {
        font-size: clamp(2.45rem, 13vw, 3.35rem);
    }

    .location-geo-bento .bento-card__title {
        max-width: 12ch;
        font-size: clamp(2.1rem, 10vw, 3rem);
    }

    .location-geo-bento--pair {
        grid-template-columns: 1fr;
    }

    .location-area-state-bar {
        flex-direction: column;
        align-items: flex-start;
    }

    .location-area-state-actions {
        width: 100%;
    }
}
