:root {
    /* Marca / Accion */
    --mm-color-brand: #F27F0D;
    --mm-color-brand-cta: #F27F0D;

    /* Texto */
    --mm-text-title: #0F172A;
    --mm-text-subtitle: #64748B;

    /* Estados */
    --mm-state-success: #16A34A;
    --mm-state-success-text: #15803D;

    /* Interaccion */
    --mm-icon-favorite: #F43F5E;
    --mm-metric-distance: #3B82F6;
    --mm-metric-distance-text: #2563EB;

    /* Reviews */
    --mm-rating-star: #FFCC00;

    /* Neutros */
    --mm-bg: #FFFFFF;
    --mm-surface: #FFFFFF;
    --mm-surface-muted: #F8FAFC;
    --mm-border: #E2E8F0;

    --mm-font: 'Outfit', sans-serif;
}

.is-hidden {
    display: none !important;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100vh; /* Fallback for older browsers */
    height: 100dvh;
    overflow: hidden;
}

body {
    margin: 0;
    background: var(--mm-surface-muted);
    color: var(--mm-title);
    font-family: var(--mm-font);
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

svg {
    display: block;
}

.alpha-gate {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.alpha-gate__flash {
    margin: 1.25rem 0 0;
    border-radius: 18px;
    padding: 0.9rem 1.1rem;
    background: var(--mm-surface);
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
    color: var(--mm-title);
}

.alpha-gate__flash--error {
    color: #be123c;
}

.alpha-gate__flash--success,
.alpha-gate__flash--info {
    color: #0f766e;
}

.alpha-gate__flash--action {
    padding: 0;
    background: transparent;
    box-shadow: none;
}

.alpha-gate__dev-access-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 18px;
    padding: 0.95rem 1rem;
    background: #0f766e;
    color: #fff;
    text-decoration: none;
    font-weight: 800;
    box-shadow: 0 18px 34px rgba(15, 118, 110, 0.22);
}

.alpha-gate__card {
    width: min(430px, 100%);
    padding: 2rem;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 32px;
    background: var(--mm-surface);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.14);
}

.alpha-gate__logo {
    display: block;
    width: min(110px, 35vw);
    margin: 0 auto 1.5rem;
}

.alpha-gate__eyebrow {
    margin: 0 0 0.4rem;
    color: var(--mm-primary);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.alpha-gate__title {
    margin: 0 0 0.75rem;
    color: var(--mm-title);
    font-size: 2.1rem;
    line-height: 1.02;
    letter-spacing: -0.05em;
}

.alpha-gate__copy,
.alpha-gate__hint {
    color: var(--mm-subtitle);
    line-height: 1.65;
}

.alpha-gate__form {
    display: grid;
    gap: 0.85rem;
    margin-top: 1.5rem;
}

.alpha-gate__label {
    color: var(--mm-title);
    font-size: 0.92rem;
    font-weight: 800;
}

.alpha-gate__input {
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 18px;
    padding: 0.95rem 1rem;
    background: #f8fafc;
    color: var(--mm-title);
    transition: border-color 180ms ease, box-shadow 180ms ease;
}

.alpha-gate__input:focus {
    outline: none;
    border-color: rgba(242, 127, 13, 0.4);
    box-shadow: 0 0 0 3px rgba(242, 127, 13, 0.12);
}

.alpha-gate__submit {
    border: none;
    border-radius: 20px;
    padding: 1rem 1.2rem;
    background: var(--mm-color-brand-cta);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 18px 34px hsla(31, 90%, 50%, 0.28);
}

.alpha-gate__error {
    margin-top: 1rem;
    border-radius: 18px;
    padding: 0.9rem 1rem;
    background: rgba(244, 63, 94, 0.12);
    color: #be123c;
    font-weight: 700;
}

.mobile-map-app {
    min-height: 100vh;
    padding: 0;
}

.mobile-map-app__flash {
    width: min(420px, 100%);
    margin: 0 auto 0.85rem;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
    color: var(--mm-title);
}

.mobile-map-app__shell {
    position: relative;
    width: 100vw;
    height: 100vh; /* Fallback for older browsers */
    height: 100dvh;
    margin: 0;
    overflow: hidden;
    border: none;
    border-radius: 0;
    background: var(--mm-surface-muted);
    box-shadow: none;
}

.mobile-map-app__shell.is-walkthrough-active .mobile-map-app__header,
.mobile-map-app__shell.is-walkthrough-active .mobile-map-app__explore-shell,
.mobile-map-app__shell.is-walkthrough-active .mobile-map-app__panel,
.mobile-map-app__shell.is-walkthrough-active .mobile-map-app__nav,
.mobile-map-app__shell.is-walkthrough-active .mobile-map-app__detail-sheet {
    display: none !important;
}

.welcome-flow {
    position: absolute;
    inset: 0;
    z-index: 9;
    display: grid;
    align-content: center;
    justify-items: center;
    gap: 1rem;
    padding: 2rem 1.8rem;
    background: #ffffff;
    text-align: center;
    transition: opacity 320ms ease, transform 320ms ease;
}

.welcome-flow.is-visible {
    opacity: 1;
}

.welcome-flow.is-leaving {
    opacity: 0;
    transform: scale(1.01);
}

.welcome-flow__headline {
    display: inline-flex;
    align-items: flex-end;
    justify-content: center;
    gap: 0.3rem;
    max-width: 17ch;
}

.welcome-flow__cursor {
    width: 2px;
    height: 2.3rem;
    background: var(--mm-title);
    animation: welcome-blink 0.9s steps(1) infinite;
    transform: translateY(-0.15rem);
}

.welcome-flow__copy {
    min-height: 5rem;
    color: var(--mm-title);
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.06;
    letter-spacing: -0.06em;
    text-align: left;
}

.welcome-flow__form {
    width: 100%;
    display: grid;
    gap: 0.8rem;
    transform: translateY(18px) scale(0.96);
    opacity: 0;
}

.welcome-flow__form.is-visible,
.welcome-flow__geo.is-visible,
.welcome-flow__logo.is-visible {
    animation: welcome-bounce-in 520ms cubic-bezier(.2, 1.2, .4, 1) forwards;
}

.welcome-flow__label {
    color: var(--mm-subtitle);
    font-size: 0.92rem;
    font-weight: 700;
}

.welcome-flow__input {
    width: 100%;
    border: 1px solid rgba(148, 163, 184, 0.28);
    border-radius: 20px;
    padding: 1rem 1.05rem;
    background: #f8fafc;
    color: var(--mm-title);
}

.welcome-flow__submit {
    border: none;
    border-radius: 20px;
    padding: 1.05rem 1.1rem;
    background: var(--mm-color-brand-cta);
    color: #fff;
    font-weight: 800;
    box-shadow: 0 18px 34px hsla(31, 90%, 50%, 0.26);
}

.welcome-flow__geo {
    border: none;
    background: transparent;
    color: var(--mm-subtitle);
    font-size: 1rem;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 0.18em;
    opacity: 0;
}

.welcome-flow__error {
    margin: 0;
    color: #be123c;
    font-size: 0.92rem;
    font-weight: 700;
}

.welcome-flow__suggestions {
    display: grid;
    gap: 0.45rem;
    width: 100%;
    padding: 0.55rem;
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    max-height: 280px;
    overflow-y: auto;
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.welcome-flow__suggestion {
    width: 100%;
    display: grid;
    gap: 0.16rem;
    border: none;
    border-radius: 18px;
    padding: 0.9rem 1rem;
    background: transparent;
    color: inherit;
    text-align: left;
}

.welcome-flow__suggestion:hover,
.welcome-flow__suggestion.is-active {
    background: rgba(242, 127, 13, 0.1);
}

.welcome-flow__suggestion-main {
    color: var(--mm-title);
    font-size: 0.96rem;
    font-weight: 800;
}

.welcome-flow__suggestion-secondary {
    color: var(--mm-subtitle);
    font-size: 0.84rem;
    line-height: 1.4;
}

.welcome-flow__logo {
    width: min(150px, 42vw);
    opacity: 0;
}

.mobile-map-app__header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: max(1.08rem, env(safe-area-inset-top)) 1.1rem 1.48rem;
    background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, rgba(248, 250, 252, 0) 100%);
    pointer-events: none;
}
.mobile-map-app__header * {
    pointer-events: auto;
}

.mobile-map-app__header-copy { display: grid; gap: 0.45rem; }

.is-desktop-only { display: none !important; }

@media (min-width: 860px) {
    .is-desktop-only { display: flex !important; }
    strong.is-desktop-only { display: block !important; }
    .is-mobile-only { display: none !important; }
}

.mobile-map-app__header-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.mobile-map-app__brand-logo {
    height: 1.8rem;
    width: auto;
    object-fit: contain;
}

.mobile-map-app__icon-button--menu {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    border: none;
    color: var(--mm-text-title);
    position: relative;
}
.mobile-map-app__icon-button--menu svg {
    width: 1.4rem !important;
    height: 1.4rem !important;
}

.mobile-map-app__icon-button--notify {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 2.8rem;
    height: 2.8rem;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}
.mobile-map-app__icon-button--notify svg {
    width: 1.4rem !important;
    height: 1.4rem !important;
    color: var(--mm-text-title);
}

.mobile-map-app__header-bottom {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mobile-map-app__location-display, .mobile-map-app__service-pill {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 0.45rem 0.85rem;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--mm-text-title);
    border: none;
}
.mobile-map-app__pin-icon { width: 1.1rem; height: 1.1rem; color: #94a3b8; }
.mobile-map-app__service-pill svg { width: 1.1rem; height: 1.1rem; color: var(--mm-color-brand); }

.mobile-map-app__pin {
    width: 0.9rem;
    height: 0.9rem;
    color: var(--mm-color-brand);
}

.mobile-map-app__location-label {
    line-height: 1.2;
}

.mobile-map-app__location-switcher {
    position: absolute;
    top: 5.75rem;
    left: 1rem;
    right: 1rem;
    z-index: 6;
    width: auto;
    display: grid;
    gap: 0.5rem;
    padding: 0.75rem;
    border: 1px solid var(--mm-border);
    border-radius: 22px;
    background: var(--mm-surface);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.16);
}

.mobile-map-app__location-item {
    display: grid;
    gap: 0.25rem;
    padding: 0.85rem 1rem;
    border-radius: 18px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.mobile-map-app__location-item:hover {
    background-color: var(--mm-surface-muted);
}

.mobile-map-app__location-item strong {
    color: var(--mm-text-title);
}

.mobile-map-app__location-item span {
    color: var(--mm-text-subtitle);
    font-size: 0.86rem;
}

.mobile-map-app__pin svg,
.mobile-map-app__icon-button svg,
.mobile-map-app__control-button svg,
.mobile-map-app__distance svg,
.mobile-map-card__heart svg,
.mobile-map-card__reviews svg,
.mobile-map-app__nav-item svg,
.mobile-map-app__nav-core svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-map-app__header-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.mobile-map-app__explore-toolbar {
    padding: 0 1.2rem;
    position: relative;
    z-index: 10;
    pointer-events: none;
}
.mobile-map-app__explore-toolbar-inner {
    display: grid;
    gap: 0.45rem;
    padding: 0.58rem 1rem 0.72rem;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(226, 232, 240, 0.84);
    justify-items: center;
    pointer-events: auto;
}

.mobile-map-app__mode-toggle {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.18rem;
    width: min(132px, 100%);
    padding: 0.18rem;
    border-radius: 999px;
    background: #f1f5f9;
}

.mobile-map-app__mode-button {
    border: none;
    border-radius: 999px;
    padding: 0.34rem 0.52rem;
    background: transparent;
    color: #64748b;
    font-size: 0.62rem;
    font-weight: 800;
}

.mobile-map-app__mode-button.is-active {
    background: var(--mm-color-brand-cta);
    color: #fff;
    box-shadow: 0 12px 26px rgba(242, 127, 13, 0.22);
}

.mobile-map-app__icon-button {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 999px;
    background: hsla(31, 90%, 50%, 0.1);
    color: var(--mm-color-brand);
    box-shadow: 0 10px 24px rgba(242, 127, 13, 0.18);
}

.mobile-map-app__icon-button--notify {
    z-index: 5;
}

.mobile-map-app__notify-badge {
    position: absolute;
    top: 0.15rem;
    right: 0.15rem;
    min-width: 1rem;
    height: 1rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    line-height: 1;
}

.mobile-map-app__notifications {
    position: absolute;
    top: 4.65rem;
    right: 1rem;
    z-index: 5;
    width: min(280px, calc(100vw - 2rem));
    display: grid;
    gap: 0.75rem;
    padding: 1rem;
    border: 1px solid var(--mm-border);
    border-radius: 22px;
    background: var(--mm-surface);
    box-shadow: 0 22px 42px rgba(15, 23, 42, 0.16);
}

.mobile-map-app__notifications-title {
    margin: 0;
    color: var(--mm-title);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.mobile-map-app__notification-item {
    display: grid;
    gap: 0.3rem;
    padding: 0.85rem 0.95rem;
    border-radius: 18px;
    background: var(--mm-surface-muted);
    color: inherit;
    text-decoration: none;
}

.mobile-map-app__notification-item strong {
    color: var(--mm-title);
    font-size: 0.92rem;
}

.mobile-map-app__notification-item span {
    color: var(--mm-subtitle);
    font-size: 0.84rem;
    line-height: 1.4;
}

.mobile-map-app__source-segmented-control {
    flex: 0 0 auto;
    display: flex;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 999px;
    padding: 0.25rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid #dadce0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-map-app__source-segmented-control:empty {
    display: none;
}

.mobile-map-app__segmented-btn {
    border: none;
    background: transparent;
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    color: #64748b;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.mobile-map-app__segmented-btn.is-active {
    background: var(--mm-color-brand-cta);
    color: #fff;
    box-shadow: 0 2px 8px rgba(242, 127, 13, 0.4);
}

.mobile-map-app__chip-row {
    position: relative;
    display: flex;
    gap: 0.75rem;
    padding: 0 1rem 1rem;
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.mobile-map-app__chip-row--map {
    position: absolute;
    left: 0;
    right: 0;
    top: 5.35rem;
    z-index: 5;
    padding: 0 1rem;
    align-items: center;
    flex-wrap: nowrap;
}

.mobile-map-app__chip-row::after {
    content: '';
    position: sticky;
    flex: 0 0 2rem;
    right: 0;
    width: 2rem;
    align-self: stretch;
    background: linear-gradient(to left, #fbfdff, transparent);
    pointer-events: none;
}

.mobile-map-app__chip-row::-webkit-scrollbar,
.mobile-map-app__cards-rail::-webkit-scrollbar {
    display: none;
}

.mobile-map-app__chip-row:empty {
    display: none;
}

.mobile-map-app__chip {
    flex: 0 0 auto;
    border: 1px solid #dadce0;
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    font-size: 0.875rem;
    font-weight: 500;
    background: #fff;
    color: #3c4043;
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(60,64,67,0.1);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.mobile-map-app__chip.is-active {
    background-color: var(--mm-color-brand-cta);
    border-color: var(--mm-color-brand-cta);
    color: #fff;
    box-shadow: 0 2px 6px rgba(242, 127, 13, 0.4);
}

.mobile-map-app__chip--joyita {
    --chip-accent: #f59e0b;
}

.mobile-map-app__chip--source {
    --chip-accent: #334155;
    border-style: dashed;
}

.mobile-map-app__map-stage {
    position: absolute;
    inset: 0;
    height: 100dvh;
    z-index: 1;
    background: linear-gradient(180deg, rgba(255, 248, 240, 0.84), rgba(255, 255, 255, 0));
}

.mobile-map-app__explore-list {
    height: calc(100dvh - 14.75rem);
    overflow-y: auto;
    padding: 0.9rem 1rem 7rem;
    background: linear-gradient(180deg, rgba(255, 250, 244, 0.88), #ffffff 30%);
}

.mobile-map-app__explore-list-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 0.95rem;
    color: #64748b;
    font-size: 0.88rem;
    font-weight: 700;
}

.mobile-map-app__explore-list-header strong {
    color: var(--mm-text-title);
    font-size: 1rem;
}

.mobile-map-app__explore-list-grid {
    display: grid;
    gap: 0.95rem;
}

.mobile-map-app__explore-list-grid .mobile-map-card,
.mobile-map-app__explore-list-grid .mobile-map-app__empty-state {
    flex: none;
    width: 100%;
}

.mobile-map-app__explore-list-grid .mobile-map-card__media {
    height: 8.5rem;
}

.map-shell__canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(242, 127, 13, 0.15), transparent 20rem),
        linear-gradient(180deg, rgba(241, 245, 249, 0.95), rgba(226, 232, 240, 0.9));
}

.mobile-map-app__status-pill {
    position: absolute;
    top: auto;
    bottom: 20.5rem;
    left: 1rem;
    z-index: 7;
    display: inline-flex;
    align-items: center;
    gap: 0.58rem;
    max-width: calc(100% - 6rem);
    padding: 0.58rem 0.8rem;
    border: 1px solid var(--mm-border);
    border-radius: 999px;
    background: var(--mm-surface);
    backdrop-filter: blur(8px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
    color: var(--mm-subtitle);
    font-size: 0.76rem;
    font-weight: 700;
}

.mobile-map-app__status-pill strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.53rem;
    height: 1.53rem;
    border-radius: 999px;
    background: var(--mm-color-brand);
    color: #fff;
    font-size: 0.76rem;
}

.map-shell__canvas-note {
    position: absolute;
    top: 11.25rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 7;
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    max-width: min(22rem, calc(100% - 7.5rem));
    border-radius: 999px;
    padding: 0.62rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.88);
    color: var(--mm-text-title);
    font-size: 0.78rem;
    font-weight: 800;
    line-height: 1.45;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.12);
    backdrop-filter: blur(14px);
    pointer-events: none;
}

.map-shell__canvas-note:empty {
    display: none;
}

.map-shell__canvas-loader {
    width: 0.95rem;
    height: 0.95rem;
    flex: 0 0 auto;
    border-radius: 999px;
    border: 2px solid rgba(242, 127, 13, 0.22);
    border-top-color: var(--mm-color-brand);
    animation: map-shell-loader-spin 0.72s linear infinite;
}

@keyframes map-shell-loader-spin {
    to {
        transform: rotate(360deg);
    }
}

.mobile-map-app__floating-controls {
    position: absolute;
    right: 1rem;
    top: 11.25rem;
    z-index: 6;
    display: grid;
    gap: 0.75rem;
}

.mobile-map-app__zoom-stack {
    display: grid;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
}

.mobile-map-app__control-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border: none;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.95);
    color: #475569;
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16);
    font-size: 1.62rem;
    font-weight: 500;
}

.mobile-map-app__zoom-stack .mobile-map-app__control-button {
    border-radius: 0;
    box-shadow: none;
}

.mobile-map-app__zoom-stack .mobile-map-app__control-button:first-child {
    border-top-left-radius: 18px;
    border-top-right-radius: 18px;
}

.mobile-map-app__zoom-stack .mobile-map-app__control-button:last-child {
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
    border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.mobile-map-app__control-button.is-accent {
    color: var(--mm-color-brand);
}

.mobile-map-app__cards-rail {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 5.2rem;
    z-index: 3;
    display: flex;
    gap: 0.78rem;
    padding: 0 1rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.mobile-map-card,
.mobile-map-app__empty-state {
    flex: 0 0 calc(56.25% - 2rem);
    scroll-snap-align: center;
}

.mobile-map-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 48px rgba(15, 23, 42, 0.08), inset 0 2px 4px rgba(255, 255, 255, 1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 250ms cubic-bezier(0.2, 1, 0.3, 1), box-shadow 250ms cubic-bezier(0.2, 1, 0.3, 1);
}

.mobile-map-card.is-active {
    transform: translateY(-6px);
    border-color: var(--mm-color-brand);
    box-shadow: 0 34px 60px rgba(15, 23, 42, 0.2);
}

.mobile-map-card--placeholder {
    pointer-events: none;
}

.mobile-map-card--placeholder,
.mobile-map-card--placeholder.is-active {
    transform: none;
    border-color: rgba(226, 232, 240, 0.8);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.mobile-map-card__media {
    position: relative;
    height: 4.45rem;
    overflow: hidden;
}

.mobile-map-card__media--placeholder {
    display: block;
    background: #eef2f7;
}

.mobile-map-card__media--placeholder::before {
    display: none;
}

.placeholder {
    display: block;
    min-height: 1em;
    border-radius: 999px;
    background-color: #e2e8f0;
    opacity: 0.92;
}

.placeholder-glow .placeholder {
    animation: placeholder-glow 1.45s ease-in-out infinite;
}

.mobile-map-card__placeholder-photo {
    width: 100%;
    height: 100%;
    border-radius: 0;
}

.mobile-map-card__placeholder-line {
    width: 82%;
    height: 0.78rem;
    margin-top: 0.55rem;
}

.mobile-map-card__placeholder-line--title {
    width: 64%;
    height: 1rem;
    margin-top: 0;
}

.mobile-map-card__placeholder-line--short {
    width: 48%;
}

.mobile-map-card__placeholder-meta {
    display: flex;
    gap: 0.45rem;
    margin-top: 0.78rem;
}

.mobile-map-card__placeholder-pill {
    width: 4.8rem;
    height: 1.35rem;
}

.mobile-map-card__placeholder-pill--short {
    width: 3.2rem;
}

@keyframes placeholder-glow {
    50% {
        opacity: 0.38;
    }
}

.mobile-map-card__media::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.5), transparent 30%),
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(15, 23, 42, 0.05));
}

.mobile-map-card__media.has-photo {
    background-size: cover;
    background-position: center;
}

.mobile-map-card__media.has-photo::before {
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.03), rgba(15, 23, 42, 0.22)),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.32), transparent 30%);
}

.mobile-map-card__media--1 {
    background: linear-gradient(135deg, #ffd2bc 0%, #f7a97e 100%);
}

.mobile-map-card__media--2 {
    background: linear-gradient(135deg, #ffe4d4 0%, #ffc07a 100%);
}

.mobile-map-card__media--3 {
    background: linear-gradient(135deg, #d8f5de 0%, #91d5a3 100%);
}

.mobile-map-card__media--4 {
    background: linear-gradient(135deg, #d9e7ff 0%, #8fb4ff 100%);
}

.mobile-map-card__heart {
    position: absolute;
    right: 0.78rem;
    top: 0.78rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.7rem;
    height: 1.7rem;
    border: none;
    border-radius: 50%;
    background: var(--mm-surface);
    color: var(--mm-icon-favorite);
    box-shadow: 0 12px 30px rgba(244, 63, 94, 0.18);
}

.mobile-map-card__heart.is-active {
    background: var(--mm-icon-favorite);
    color: #fff;
}

.mobile-map-card__source-badge {
    position: absolute;
    left: 0.78rem;
    top: 0.78rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.24rem 0.48rem;
    background: rgba(255, 255, 255, 0.94);
    color: var(--mm-title);
    font-size: 0.54rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.12);
}

.source-badge--real {
    background: rgba(15, 23, 42, 0.78);
    color: #fff;
}

.source-badge--demo {
    background: rgba(148, 163, 184, 0.9);
    color: #0f172a;
}

.source-badge--google {
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}

.source-badge--default {
    background: rgba(255, 255, 255, 0.92);
    color: #334155;
}

.mobile-map-card__floating-badges {
    position: absolute;
    top: -1.2rem;
    right: 1.2rem;
    display: flex;
    gap: 0.5rem;
    z-index: 5;
}

.mobile-map-card__badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.1);
    border: 2px solid #fff;
}

.mobile-map-card__badge--distance {
    background: #3B82F6;
    color: #fff;
}

.mobile-map-card__badge--rating {
    background: #FACC15;
    color: #1E293B;
    display: flex;
    align-items: center;
    gap: 0.2rem;
}
.mobile-map-card__badge--rating svg {
    width: 0.9rem;
    height: 0.9rem;
}

.mobile-map-card__address {
    display: flex;
    align-items: flex-start;
    gap: 0.35rem;
    color: #64748b;
    font-size: 0.82rem;
    margin-top: 0.2rem;
}
.mobile-map-card__address svg { width: 0.9rem; height: 0.9rem; color: #cbd5e1; flex-shrink: 0; margin-top: 0.15rem; }
.mobile-map-card__address-text {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    white-space: normal;
}

.mobile-map-card__media-copy {
    position: absolute;
    left: 0.95rem;
    bottom: 0.78rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.95rem;
    height: 1.95rem;
    border: 4px solid rgba(255, 255, 255, 0.82);
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.1);
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
}

.mobile-map-card__body {
    position: relative;
    padding: 0.56rem 0.68rem 0.7rem;
}

.mobile-map-card__body h3 {
    margin: 0 0 0.5rem;
    color: var(--mm-title);
    font-size: 0.84rem;
    line-height: 1.1;
    letter-spacing: -0.04em;
}

.mobile-map-card__body p {
    margin: 0;
    color: var(--mm-text-subtitle);
    font-size: 0.68rem;
    line-height: 1.4;
}

.mobile-map-card__category {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    margin-top: 0.38rem;
    color: #475569;
    font-size: 0.6rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mobile-map-card__category-dot {
    display: inline-flex;
    width: 0.55rem;
    height: 0.55rem;
    border-radius: 999px;
}

.mobile-map-card__joyita,
.mobile-map-app__detail-joyita {
    display: inline-flex;
    width: fit-content;
    border-radius: 999px;
    padding: 0.26rem 0.58rem;
    background: #fff7ed;
    color: #c2410c;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.mobile-map-card__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.45rem;
}

.mobile-map-card__status {
    display: inline-flex;
    align-items: center;
    border-radius: 14px;
    padding: 0.26rem 0.46rem;
    background: hsla(145, 63%, 42%, 0.12);
    color: var(--mm-state-success-text);
    font-size: 0.56rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.mobile-map-card__status--pending {
    background: rgba(100, 116, 139, 0.12);
    color: #64748b;
}

.mobile-map-card__status--discovered {
    background: hsla(145, 63%, 42%, 0.12);
    color: var(--mm-state-success-text);
}

.mobile-map-card__status--closed {
    background: rgba(100, 116, 139, 0.12);
    color: #64748b;
}

.mobile-map-card__reviews {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #d97706;
    font-size: 0.62rem;
    font-weight: 800;
}

.mobile-map-card__reviews svg {
    width: 0.76rem;
    height: 0.76rem;
    color: var(--mm-rating-star);
    fill: var(--mm-rating-star);
    stroke: var(--mm-rating-star);
}

.mobile-map-app__empty-state {
    border-radius: 28px;
    padding: 1.5rem;
    background: var(--mm-surface);
    box-shadow: 0 20px 46px rgba(15, 23, 42, 0.12);
}

.mobile-map-app__empty-state strong {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 1.1rem;
}

.mobile-map-app__empty-state p {
    margin: 0;
    color: var(--mm-text-subtitle);
    line-height: 1.55;
}

.mobile-map-app__nav {
    position: fixed;
    left: 50%;
    bottom: max(0px, env(safe-area-inset-bottom));
    transform: translateX(-50%);
    z-index: 20;
    width: min(calc(100% - 1rem), 1440px);
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: end;
    gap: 0.42rem;
    padding: 0.58rem 0.82rem 0.84rem;
    background: rgba(255, 255, 255, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 26px 26px 0 0;
    box-shadow: 0 -18px 42px rgba(15, 23, 42, 0.08);
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.mobile-map-app__nav-item {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 0.24rem;
    border: none;
    background: transparent;
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.54rem;
    font-weight: 800;
    text-transform: uppercase;
}

.mobile-map-app__nav-item svg {
    width: 1.92rem;
    height: 1.92rem;
}

.mobile-map-app__nav-item.is-active {
    color: var(--mm-color-brand);
}

.mobile-map-app__nav-item--center {
    transform: translateY(-1.45rem);
}

.mobile-map-app__nav-core {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 3.85rem;
    height: 3.85rem;
    border: 6px solid #fff;
    border-radius: 50%;
    background: var(--mm-color-brand-cta);
    color: #fff;
    box-shadow: 0 18px 38px hsla(31, 90%, 50%, 0.34);
}

.mobile-map-app__nav-core svg {
    width: 1.82rem;
    height: 1.82rem;
    color: #fff;
}

.map-shell__canvas-empty {
    display: grid;
    place-items: center;
    min-height: 100%;
    color: var(--mm-text-subtitle);
    background: rgba(248, 250, 252, 0.92);
}

.map-shell__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(148, 163, 184, 0.24) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, 0.24) 1px, transparent 1px);
    background-size: 36px 36px;
}

.map-shell__pin {
    position: absolute;
    width: 3rem;
    height: 3rem;
    border: 4px solid var(--mm-surface);
    border-radius: 50%;
    background: var(--mm-color-brand);
    color: #fff;
    box-shadow: 0 14px 30px hsla(31, 90%, 50%, 0.28);
    transform: translate(-50%, -50%);
}

.map-shell__pin span {
    position: relative;
    z-index: 2;
    font-weight: 800;
}

.map-shell__info-window {
    min-width: 220px;
    max-width: 280px;
    display: grid;
    gap: 0.75rem;
    padding: 0.15rem;
}

.map-shell__info-window-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
}

.map-shell__info-window strong {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--mm-title);
    font-size: 1rem;
    line-height: 1.2;
}

.map-shell__info-window-merchant,
.map-shell__info-window-address {
    margin: 0;
    color: var(--mm-text-subtitle);
    font-size: 0.86rem;
    line-height: 1.45;
}

.map-shell__info-window-badge {
    flex: 0 0 auto;
    border-radius: 999px;
    padding: 0.4rem 0.7rem;
    background: hsla(145, 63%, 42%, 0.12);
    color: var(--mm-state-success-text);
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.map-shell__info-window-badge--open {
    background: hsla(145, 63%, 42%, 0.12);
    color: var(--mm-state-success-text);
}

.map-shell__info-window-badge--closed {
    background: rgba(100, 116, 139, 0.12);
    color: #64748b;
}

.map-shell__info-window-badge-stack {
    display: grid;
    justify-items: end;
    gap: 0.35rem;
}

.map-shell__info-window-badge--source {
    background: rgba(15, 23, 42, 0.06);
    color: #334155;
}

.map-shell__info-window-badge--category {
    background: var(--category-accent, #CBD5E1);
    color: #fff;
}

.map-shell__info-window-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.map-shell__info-window-meta span {
    border-radius: 999px;
    padding: 0.42rem 0.7rem;
    background: #f8fafc;
    color: #475569;
    font-size: 0.76rem;
    font-weight: 700;
}

.map-shell__info-window-detail,
.map-shell__info-window-review {
    margin: 0;
    color: #475569;
    font-size: 0.79rem;
    line-height: 1.5;
}

.map-shell__info-window-review {
    color: var(--mm-text-subtitle);
    font-style: italic;
}

.map-shell__info-window-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.map-shell__info-window-actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.2rem;
    border-radius: 999px;
    padding: 0.6rem 1rem;
    background: hsla(31, 90%, 50%, 0.1);
    color: var(--mm-color-brand);
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
}

@media (min-width: 860px) {
    .mobile-map-app {
        /* Desktop-specific overrides can go here, but we maintain the full-bleed layout */
    }

    .mobile-map-app__header {
        padding: 1.08rem 1.6rem 0.48rem;
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    }

    .mobile-map-app__status-pill {
        left: 2rem;
        bottom: 20.5rem;
    }

    .mobile-map-app__chip-row--map {
        padding: 0 2rem;
    }

    .mobile-map-app__floating-controls {
        right: 2rem;
    }

    .mobile-map-app__cards-rail {
        gap: 1.1rem;
        padding: 0 1.6rem;
        bottom: 5.5rem;
        margin-bottom: 20px;
    }

    .mobile-map-card,
    .mobile-map-app__empty-state {
        flex-basis: min(210px, calc(25% - 0.8rem));
    }
}

@media (max-width: 420px) {
    .mobile-map-app {
        /* Mobile-specific overrides can go here */
    }

    .mobile-map-card,
    .mobile-map-app__empty-state {
        flex-basis: calc(56.25% - 1rem);
    }

    .mobile-map-app__nav {
        width: 100%;
        left: 0;
        transform: none;
        border-left: none;
        border-right: none;
        border-radius: 18px 18px 0 0;
        padding: 0.2rem 0.82rem 0.4rem;
    }

}

@keyframes welcome-blink {
    0%, 49% {
        opacity: 1;
    }

    50%, 100% {
        opacity: 0;
    }
}

@keyframes welcome-bounce-in {
    0% {
        opacity: 0;
        transform: translateY(18px) scale(0.96);
    }

    65% {
        opacity: 1;
        transform: translateY(-6px) scale(1.02);
    }

    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.mobile-map-app__panel {
    min-height: calc(100vh - 14rem);
    padding: 1.1rem 1.2rem 7rem;
    display: grid;
    align-content: start;
    gap: 1rem;
}

.mobile-map-app__panel-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.mobile-map-app__panel-head h2 {
    margin: 0.15rem 0 0;
    font-size: 1.6rem;
    color: #0f172a;
}

.mobile-map-app__eyebrow {
    display: inline-flex;
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #94a3b8;
    font-weight: 800;
}

.mobile-map-app__panel-count {
    min-width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f97316;
    color: #fff;
    font-weight: 800;
}

.mobile-map-app__auth-card,
.public-home__saved-row,
.mobile-map-app__address-form {
    border: 1px solid rgba(226, 232, 240, 0.96);
    background: rgba(255, 255, 255, 0.94);
    border-radius: 26px;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.08);
}

.mobile-map-app__auth-card {
    padding: 1.2rem 1.15rem;
    display: grid;
    gap: 0.55rem;
}

.mobile-map-app__auth-card strong {
    color: #0f172a;
    font-size: 1.05rem;
}

.mobile-map-app__auth-card p,
.public-home__saved-row p,
.mobile-map-app__address-status,
.mobile-map-app__detail-note,
.mobile-map-app__detail-policy,
.mobile-map-app__detail-meta {
    margin: 0;
    color: #64748b;
}

.public-legal-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    font-size: 0.76rem;
    font-weight: 800;
}

.public-legal-links a {
    color: #64748b;
    text-decoration: none;
}

.public-legal-links a:hover {
    color: #f97316;
}

.alpha-gate__legal,
.welcome-flow__legal {
    display: grid;
    gap: 0.45rem;
    margin-top: 1rem;
    text-align: center;
}

.alpha-gate__legal p {
    margin: 0;
    color: #64748b;
    font-size: 0.78rem;
    line-height: 1.4;
}

.welcome-flow__legal {
    font-size: 0.72rem;
}

.legal-center {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(circle at 18% 15%, rgba(249, 115, 22, 0.12), transparent 28rem),
        linear-gradient(135deg, #fff7ed, #eef4ff 58%, #ffffff);
}

.legal-center__card {
    width: min(100%, 760px);
    border-radius: 30px;
    padding: clamp(1.4rem, 4vw, 2.4rem);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.12);
}

.legal-center__card--document {
    display: grid;
    gap: 1rem;
}

.legal-center__eyebrow {
    margin: 0 0 0.35rem;
    color: #f97316;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.legal-center h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(2rem, 6vw, 3.2rem);
    letter-spacing: -0.06em;
    line-height: 0.95;
}

.legal-center__intro {
    color: #64748b;
    line-height: 1.65;
}

.legal-center__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.9rem;
    margin-top: 1.4rem;
}

.legal-center__document-card {
    display: grid;
    gap: 0.45rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 22px;
    padding: 1rem;
    color: inherit;
    text-decoration: none;
    background: #fff;
}

.legal-center__document-card span {
    color: #f97316;
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.legal-center__document-card strong {
    color: #0f172a;
}

.legal-center__document-card p {
    margin: 0;
    color: #64748b;
    line-height: 1.45;
}

.legal-center__body {
    color: #334155;
    line-height: 1.75;
    white-space: normal;
}

.legal-center__back {
    display: inline-flex;
    width: fit-content;
    margin-top: 1rem;
    color: #f97316;
    font-weight: 900;
    text-decoration: none;
}

.legal-center__footer {
    display: grid;
    gap: 0.7rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1rem;
    color: #64748b;
}

.cookie-consent {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
    z-index: 80;
    display: flex;
    justify-content: center;
}

.cookie-consent.is-hidden {
    display: none;
}

.cookie-consent__panel {
    width: min(100%, 720px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 24px;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

.cookie-consent__panel p {
    margin: 0.25rem 0;
    color: #64748b;
    line-height: 1.45;
}

.cookie-consent__panel a {
    color: #f97316;
    font-weight: 800;
    text-decoration: none;
}

.cookie-consent__actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.cookie-consent__actions button {
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 0.7rem 0.9rem;
    background: #fff;
    color: #334155;
    font-weight: 900;
    cursor: pointer;
}

.cookie-consent__actions button:last-child {
    border-color: #f97316;
    background: #f97316;
    color: #fff;
}

.mobile-map-app__auth-actions,
.mobile-map-app__address-actions,
.mobile-map-app__detail-actions,
.public-home__saved-actions,
.mobile-map-app__meta-grid {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.mobile-map-app__auth-actions a,
.mobile-map-app__auth-actions button,
.mobile-map-app__primary-button,
.mobile-map-app__ghost-button,
.mobile-map-app__detail-actions a,
.mobile-map-app__detail-actions button,
.public-home__inline-button {
    min-height: 2.6rem;
    border-radius: 999px;
    padding: 0.65rem 0.95rem;
    font-weight: 800;
    font-size: 0.9rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
}

.mobile-map-app__auth-actions a,
.mobile-map-app__auth-actions button,
.mobile-map-app__primary-button,
.mobile-map-app__detail-actions a:first-child,
.mobile-map-app__detail-actions button {
    background: #f97316;
    color: #fff;
}

.mobile-map-app__ghost-button,
.public-home__inline-button,
.mobile-map-app__detail-actions a:not(:first-child) {
    background: #fff;
    color: #334155;
    border: 1px solid rgba(203, 213, 225, 0.94);
}

.mobile-map-app__address-form {
    padding: 1rem;
    display: grid;
    gap: 0.85rem;
}

.mobile-map-app__field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
}

.mobile-map-app__field-grid label,
.mobile-map-app__checkbox-row {
    display: grid;
    gap: 0.35rem;
}

.mobile-map-app__field-grid label span,
.mobile-map-app__checkbox-row span {
    font-size: 0.86rem;
    color: #475569;
    font-weight: 700;
}

.mobile-map-app__field-grid input {
    width: 100%;
    min-height: 2.9rem;
    border-radius: 16px;
    border: 1px solid rgba(203, 213, 225, 0.94);
    background: #fff;
    padding: 0.72rem 0.85rem;
    color: #0f172a;
}

.mobile-map-app__field-span {
    grid-column: 1 / -1;
}

.mobile-map-app__checkbox-row {
    align-items: center;
    grid-template-columns: auto 1fr;
}

.mobile-map-app__saved-list {
    display: grid;
    gap: 0.8rem;
}

.public-home__saved-row {
    padding: 1rem 1rem 0.95rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.9rem;
}

.public-home__saved-row strong,
.mobile-map-app__detail-head h3 {
    color: #0f172a;
    margin: 0;
}

.public-home__badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
    background: rgba(22, 163, 74, 0.12);
    color: #15803d;
    font-size: 0.78rem;
    font-weight: 800;
}

.mobile-map-app__detail-sheet {
    position: fixed;
    inset: 0;
    z-index: 90;
}

.mobile-map-app__detail-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.36);
    backdrop-filter: blur(4px);
}

.mobile-map-app__detail-card {
    position: absolute;
    left: 0.85rem;
    right: 0.85rem;
    bottom: 5.8rem;
    border-radius: 30px 30px 24px 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 28px 54px rgba(15, 23, 42, 0.22);
}

.mobile-map-app__detail-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    cursor: pointer;
}

.mobile-map-app__detail-close svg,
.mobile-map-app__detail-close path {
    width: 1rem;
    height: 1rem;
    stroke: currentColor;
    stroke-width: 2;
    fill: none;
    stroke-linecap: round;
}

.mobile-map-app__detail-hero {
    min-height: 10.5rem;
    position: relative;
    background: linear-gradient(135deg, #f59e0b 0%, #fb923c 48%, #0f172a 100%);
    background-size: cover;
    background-position: center;
    padding: 1rem;
}

.mobile-map-app__detail-hero.has-photo::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.05), rgba(15, 23, 42, 0.62));
}

.mobile-map-app__detail-source,
.mobile-map-app__detail-distance {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    min-height: 1.9rem;
    border-radius: 999px;
    padding: 0.3rem 0.65rem;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.mobile-map-app__detail-source {
    background: rgba(15, 23, 42, 0.38);
}

.mobile-map-app__detail-distance {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    background: rgba(249, 115, 22, 0.9);
}

.mobile-map-app__detail-copy {
    padding: 1rem 1rem 1.1rem;
    display: grid;
    gap: 0.85rem;
}

.mobile-map-app__detail-head {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 0.8rem;
}

.mobile-map-app__detail-head p {
    margin: 0.25rem 0 0;
    color: #64748b;
}

.mobile-map-app__detail-status {
    white-space: nowrap;
}

.mobile-map-app__detail-category {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 700;
    color: #334155;
}

.mobile-map-app__detail-category span {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    display: inline-block;
}

.mobile-map-app__detail-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-size: 0.92rem;
}

.mobile-map-app__detail-review {
    margin: 0;
    padding: 0.85rem 0.9rem;
    border-radius: 18px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.94rem;
}

.mobile-map-app__detail-actions button.is-active {
    background: #111827;
}

.error-page {
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(circle at 15% 12%, rgba(249, 115, 22, 0.16), transparent 28rem),
        linear-gradient(135deg, #fff7ed, #eef4ff 58%, #ffffff);
}

.error-page__card {
    width: min(100%, 540px);
    display: grid;
    gap: 1rem;
    border: 1px solid rgba(226, 232, 240, 0.96);
    border-radius: 30px;
    padding: clamp(1.5rem, 5vw, 2.3rem);
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 28px 80px rgba(15, 23, 42, 0.13);
}

.error-page__eyebrow {
    margin: 0;
    color: #f97316;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.error-page h1 {
    margin: 0;
    color: #0f172a;
    font-size: clamp(2rem, 8vw, 3.4rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

.error-page p {
    margin: 0;
    color: #64748b;
    line-height: 1.65;
}

.error-page__meta,
.error-page__actions {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.error-page__meta span {
    border-radius: 999px;
    padding: 0.42rem 0.7rem;
    background: #f8fafc;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 800;
}

.error-page__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.55rem;
    border-radius: 999px;
    padding: 0.65rem 1rem;
    background: #f97316;
    color: #fff;
    font-weight: 900;
    text-decoration: none;
}

.error-page__actions a:last-child {
    background: #fff;
    color: #334155;
    border: 1px solid #e2e8f0;
}

@media (max-width: 640px) {
    .cookie-consent__panel {
        align-items: stretch;
        flex-direction: column;
    }

    .cookie-consent__actions {
        justify-content: stretch;
    }

    .cookie-consent__actions button {
        flex: 1 1 100%;
    }

    .mobile-map-app__field-grid {
        grid-template-columns: 1fr;
    }

    .public-home__saved-row {
        align-items: start;
        flex-direction: column;
    }
}
