/* Compass GIS redesign */
:root {
    --map-green: #2F9460;
    --map-green-dark: #227348;
    --map-text: #262626;
    --map-muted: #737373;
    --map-border: rgba(38, 38, 38, 0.08);
    --map-panel: rgba(255, 255, 255, 0.36);
    --map-mobile-panel: rgba(245, 245, 245, 0.24);
    --map-shadow: 0 18px 52px rgba(15, 23, 42, 0.18);
    --z-map-controls: 1500;
    --z-map-popovers: 1600;
    --z-map-modal-overlay: 2190;
    --z-map-modal: 2200;
}

* {
    box-sizing: border-box;
}

html,
body {
    width: 100%;
    height: 100%;
    overflow: hidden;
}

body {
    margin: 0;
    background: #E5E7EB;
}

#map {
    width: 100%;
    height: 100dvh;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

#map [class*="ymaps-2"][class*="-map"] {
    font-family: 'Inter', 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

#map [class*="ymaps-2"][class*="-map-copyrights-promo"],
#map [class*="ymaps-2"][class*="-gotoymaps"],
#map [class*="ymaps-2"][class*="-gototech"] {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

.map-interface {
    position: fixed;
    inset: 0;
    z-index: var(--z-map-popovers);
    pointer-events: none;
}

.funding-logos {
    position: fixed;
    z-index: calc(var(--z-map-controls) - 1);
    display: flex;
    flex-direction: row;
    gap: 6px;
    transition: opacity 180ms ease;
}

.funding-logos__item {
    box-sizing: border-box;
    display: block;
    padding: 5px;
    background: rgba(255, 255, 255, 0.94);
    border-radius: 7px;
    box-shadow: 0 3px 12px rgba(15, 23, 42, 0.12);
}

.funding-logos__image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.funding-logos__image--platform {
    opacity: 0.78;
}

.funding-logos-inline {
    display: none;
}

.map-header {
    position: absolute;
    top: 16px;
    left: 16px;
    right: 16px;
    height: 64px;
    min-height: 64px;
    padding: 12px 0;
    border-radius: 32px;
    background: transparent;
    box-shadow: none;
    display: flex;
    align-items: center;
    gap: 0;
    pointer-events: auto;
    isolation: isolate;
    overflow: visible;
}

.map-header::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    border-radius: inherit;
    background: var(--map-panel);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.map-brand {
    width: 210px;
    min-width: 210px;
    flex: 0 0 210px;
    height: 32px;
    display: flex;
    align-items: center;
    padding: 0 0 0 16px;
    color: #1F2937;
    font: 700 12px/1.05 'Inter', 'Roboto', sans-serif;
}

.map-brand-logo {
    width: 98.764px;
    height: 32px;
    object-fit: contain;
}

.map-header .search-container {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    z-index: 2;
    flex: 0 0 400px;
    width: 400px;
    min-height: 40px;
    height: 40px;
    border-radius: 22px;
    background: transparent;
    box-shadow: none;
    display: block;
}

.map-header .search-input-container {
    position: relative;
    display: flex;
    align-items: center;
    height: 40px;
    padding: 0 48px 0 16px;
    border: 0;
    border-radius: 22px;
    background: #FFFFFF;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.map-header .search-icon {
    position: absolute;
    top: 50%;
    right: 16px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    margin: 0;
    padding: 0;
    opacity: 0.88;
    object-fit: contain;
    pointer-events: none;
}

.map-header .search-input {
    flex: 1;
    height: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    font: 400 14px/20px 'Inter', 'Roboto', sans-serif;
    color: var(--map-text);
}

.map-header .search-input::placeholder {
    color: var(--map-muted);
}

.map-header .search-clear {
    position: absolute;
    top: 50%;
    right: 36px;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #525252;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    line-height: 1;
}

.map-header .search-clear:hover {
    background: #F5F5F5;
}

.map-header .search-results {
    display: none;
    position: absolute;
    z-index: 20;
    top: 48px;
    left: 0;
    width: 400px;
    max-height: min(560px, calc(100vh - 132px));
    padding: 10px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: 22px;
    background: var(--map-panel);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    box-shadow: var(--map-shadow);
}

.map-header .search-results.is-history {
    padding: 16px 4px;
    border: 0;
    border-radius: 12px;
    background: var(--map-panel);
    box-shadow: 0 10px 40px 10px rgba(0, 0, 0, 0.08);
}

.map-header .search-results.is-results {
    position: fixed;
    top: 92px;
    left: 16px;
    width: 400px;
    height: min(792px, calc(100dvh - 108px));
    max-height: calc(100dvh - 108px);
    padding: 0;
    border: 0;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.search-results-heading.mobile-sheet__panel-header {
    padding-right: 24px;
    padding-left: 24px;
}

.map-header .search-results.has-message .search-results-list {
    height: calc(100% - 64px);
}

.search-results-list::-webkit-scrollbar {
    width: 4px;
}

.search-results-list::-webkit-scrollbar:horizontal {
    height: 0;
}

.search-results-list::-webkit-scrollbar-track {
    background: transparent;
}

.search-results-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #E5E5E5;
}

.map-header .categories {
    position: static;
    bottom: auto;
    left: auto;
    transform: none;
    z-index: auto;
    flex: 1 1 auto;
    width: auto;
    min-width: 0;
    margin-left: 32px;
    margin-right: 32px;
    gap: 8px;
    padding: 0;
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    mask-image: none;
    -webkit-mask-image: none;
}

.map-header .categories::-webkit-scrollbar {
    display: none;
}

@media (hover: hover) and (pointer: fine) {
    .map-header .categories {
        cursor: grab;
    }

    .map-header .categories.is-mouse-dragging,
    .map-header .categories.is-mouse-dragging * {
        cursor: grabbing !important;
        user-select: none;
    }

    .map-header .categories.is-mouse-dragging {
        scroll-behavior: auto;
    }
}

.map-header .category-btn {
    width: auto;
    min-width: max-content;
    height: 32px;
    padding: 6px 12px;
    border: 1px solid #E5E5E5;
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--map-text);
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: 500 12px/16px 'Inter', 'Roboto', sans-serif;
    transition: background-color 0.2s, transform 0.2s;
}

.map-header .category-btn:hover {
    transform: none;
    background: #F7F7F7;
}

.map-header .category-btn.active {
    background: var(--map-green);
    color: #FFFFFF;
    border-color: var(--map-green);
}

.map-header .category-icon {
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-header .category-icon img,
.map-more-btn img,
.logo-btn img,
.zoom-btn img,
.admin-btn img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.map-header .category-btn > span:not(.category-icon) {
    flex: 0 1 auto;
}

.map-header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 0 0 auto;
    margin-left: auto;
    margin-right: 16px;
}

.guest-auth-panel {
    display: none;
}

.mobile-profile-panel {
    display: none;
}

.mobile-profile-subpanel {
    z-index: var(--z-map-modal);
}

.mobile-sheet__panel-close {
    margin-right: 0;
}

.guest-auth-panel__surface,
.mobile-profile-panel__form-surface {
    display: contents;
}

.guest-auth-panel__option-copy {
    display: contents;
}

.guest-auth-panel__option-title {
    color: inherit;
    font: inherit;
}

.guest-auth-panel__option-description,
.guest-auth-panel__option-chevron {
    display: none;
}

.map-profile-btn,
.map-more-btn {
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: var(--map-green);
    color: #FFFFFF;
    cursor: pointer;
    text-decoration: none;
    box-shadow: 0 8px 20px rgba(47, 148, 96, 0.2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: 700 14px/20px 'Inter', 'Roboto', sans-serif;
}

.map-profile-btn {
    padding: 0 18px;
}

.map-more-btn {
    width: 40px;
    display: none;
    background: rgba(255, 255, 255, 0.96);
    color: var(--map-text);
    box-shadow: 0 2px 9px rgba(15, 23, 42, 0.07);
}

.map-profile-btn:hover,
.map-more-btn:hover {
    transform: translateY(-1px);
}

.map-controls {
    position: fixed;
    top: 50%;
    right: 16px;
    bottom: auto;
    left: auto;
    z-index: var(--z-map-controls);
    width: 40px;
    height: 192px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    pointer-events: auto;
    transform: translateY(-50%);
    visibility: visible;
}

.map-control-btn,
.logo-btn {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--map-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
    font-size: 18px;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.map-control-btn:hover,
.logo-btn:hover {
    transform: translateY(-1px);
}

.map-satellite-btn.is-active,
.map-satellite-btn[aria-pressed="true"] {
    background: var(--map-green);
}

.map-satellite-btn.is-active img,
.map-satellite-btn[aria-pressed="true"] img {
    filter: brightness(0) invert(1);
}

.zoom-controls {
    display: flex;
    flex-direction: column;
    gap: 0;
    width: 40px;
    height: 80px;
    border-radius: 999px;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
}

.zoom-btn {
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--map-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 400 22px/1 'Inter', 'Roboto', sans-serif;
    touch-action: manipulation;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}

.zoom-btn + .zoom-btn {
    border-top: 1px solid #E5E5E5;
}

.zoom-btn:hover {
    transform: none;
    background: #F5F5F5;
}

.map-control-btn img,
.logo-btn img,
.zoom-btn img,
.admin-btn img {
    width: 20px;
    height: 20px;
}

.admin-btn {
    position: static;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 999px;
    background: #FFFFFF;
    color: var(--map-text);
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.16);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.admin-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.18);
}

.custom-popup {
    width: 360px;
    border-radius: 20px;
    padding: 8px;
    gap: 10px;
    background: #FFFFFF;
    display: flex;
    box-shadow: 0 18px 48px rgba(15, 23, 42, 0.2);
}

.popup-image {
    width: 128px;
    height: 112px;
    border-radius: 16px;
    object-fit: cover;
    flex-shrink: 0;
}

.popup-content {
    flex: 1;
    min-width: 0;
    padding: 2px 0;
    display: flex;
    flex-direction: column;
    position: relative;
}

.popup-rating {
    position: absolute;
    top: 0;
    right: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.popup-rating .stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.popup-rating .stars img {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.like-button {
    padding: 4px;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.like-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.popup-title {
    max-width: 160px;
    color: var(--map-text);
    font: 700 18px/21px 'Inter', 'Roboto', sans-serif;
}

.popup-full-name,
.popup-coordinates-label,
.popup-coordinates,
.popup-distance {
    color: #525252;
    font: 500 13px/18px 'Inter', 'Roboto', sans-serif;
}

.popup-coordinates-label {
    margin-top: 6px;
}

.popup-distance {
    display: flex;
    align-items: center;
    gap: 6px;
}

.popup-distance img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.popup-layer,
.popup-category {
    color: var(--map-green);
}

.popup-button {
    border: 0;
    border-radius: 999px;
    padding: 7px 16px;
    background: var(--map-green);
    color: #FFFFFF;
    cursor: pointer;
    font: 700 13px/18px 'Inter', 'Roboto', sans-serif;
}

.map-load-error {
    position: absolute;
    inset: 0;
    padding: 24px;
    background: #F5F5F5;
    color: var(--map-text);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font: 600 15px/22px 'Inter', 'Roboto', sans-serif;
}

.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: var(--z-map-modal-overlay);
    background: transparent;
    backdrop-filter: none;
    pointer-events: none;
}

.modal-overlay.is-open {
    display: block;
}

.modal {
    display: flex;
    flex-direction: column;
    visibility: hidden;
    pointer-events: none;
    position: fixed;
    top: 92px;
    left: 16px;
    right: auto;
    opacity: 0;
    transform: translateX(calc(-100% - 24px));
    width: 400px;
    height: auto;
    max-width: calc(100vw - 32px);
    max-height: calc(100dvh - 108px);
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.70);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.05);
    font-family: 'Inter', 'Roboto', sans-serif;
    z-index: var(--z-map-modal);
    transition:
        transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 220ms ease,
        visibility 0s linear 380ms;
    will-change: transform;
}

.modal.is-open {
    visibility: visible;
    pointer-events: auto;
    opacity: 1;
    transform: translateX(0);
    transition:
        transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
        opacity 220ms ease,
        visibility 0s;
}

@keyframes desktop-map-panel-in {
    from {
        opacity: 0;
        transform: translateX(calc(-100% - 24px));
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes desktop-map-panel-out {
    from {
        opacity: 1;
        transform: translateX(0);
    }

    to {
        opacity: 0;
        transform: translateX(calc(-100% - 24px));
    }
}

.mobile-profile-panel__menu-icon,
.mobile-profile-panel .mobile-sheet__menu-chevron,
.mobile-profile-panel__back,
.mobile-profile-panel .mobile-sheet__button {
    transition:
        transform 180ms ease,
        background-color 180ms ease,
        box-shadow 180ms ease;
}

.mobile-profile-panel__menu-item:hover .mobile-profile-panel__menu-icon {
    transform: scale(1.05);
}

.mobile-profile-panel__menu-item:hover .mobile-sheet__menu-chevron {
    transform: translateX(2px);
}

.mobile-profile-panel__back:hover {
    transform: translateX(-1px);
}

.mobile-profile-panel__back:active,
.mobile-profile-panel .mobile-sheet__button:active {
    transform: scale(0.97);
}

@media (min-width: 981px) {
    .funding-logos {
        bottom: 18px;
        left: 16px;
        width: auto;
        opacity: 0.82;
        pointer-events: auto;
    }

    .funding-logos:hover {
        opacity: 1;
    }

    .funding-logos__item {
        width: 88px;
        height: 52px;
        flex: 0 0 88px;
    }

    .guest-auth-panel:not([hidden]) {
        display: block;
        position: fixed;
        top: 92px;
        left: 16px;
        z-index: 20;
        width: 400px;
        max-width: calc(100vw - 32px);
        min-height: 0;
        max-height: calc(100dvh - 108px);
        padding: 0;
        overflow-x: hidden;
        overflow-y: auto;
        border-radius: 22px;
        background: var(--map-panel);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.05);
        visibility: hidden;
        pointer-events: none;
        opacity: 0;
        transform: translateX(calc(-100% - 24px));
        transition:
            transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 220ms ease,
            visibility 0s linear 380ms;
        will-change: transform;
        scrollbar-width: none;
    }

    .guest-auth-panel::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    .map-header.is-guest-auth-open .guest-auth-panel {
        visibility: visible;
        pointer-events: auto;
        opacity: 1;
        transform: translateX(0);
        transition:
            transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 220ms ease,
            visibility 0s;
    }

    .guest-auth-panel .mobile-sheet__view[hidden] {
        display: none;
    }

    .guest-auth-panel .guest-auth-panel__content,
    .guest-auth-panel .mobile-sheet__intro,
    .guest-auth-panel .mobile-sheet__compact-form {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 0 24px 24px;
    }

    .guest-auth-panel .mobile-sheet__intro {
        text-align: left;
    }

    .guest-auth-panel .guest-auth-panel__surface {
        width: 100%;
        padding: 20px 16px 16px;
        display: flex;
        flex-direction: column;
    }

    .guest-auth-panel .mobile-sheet__description {
        margin: 0 0 22px;
        color: var(--map-muted);
        font: 400 14px/20px 'Inter', 'Roboto', sans-serif;
        letter-spacing: 0;
    }

    .guest-auth-panel .mobile-sheet__button-stack {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .guest-auth-panel .mobile-sheet__button {
        width: 100%;
        min-height: 48px;
        padding: 12px 18px;
        border: 1px solid transparent;
        border-radius: 12px;
        cursor: pointer;
        font: 600 15px/20px 'Inter', 'Roboto', sans-serif;
        letter-spacing: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .guest-auth-panel .mobile-sheet__button--primary {
        background: var(--map-green);
        color: #FFFFFF;
    }

    .guest-auth-panel .mobile-sheet__button--secondary {
        border-color: #E5E5E5;
        background: #F5F5F5;
        color: var(--map-text);
    }

    .guest-auth-panel .guest-auth-panel__options {
        width: 100%;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .guest-auth-panel .guest-auth-panel__option {
        min-height: 76px;
        padding: 12px 16px;
        border: 0;
        border-radius: 12px;
        background: #FFFFFF;
        color: var(--map-text);
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr) 18px;
        align-items: center;
        gap: 14px;
        text-align: left;
        transition:
            background-color 160ms ease,
            transform 160ms ease;
    }

    .guest-auth-panel .guest-auth-panel__option:hover,
    .guest-auth-panel .guest-auth-panel__option:focus-visible {
        background: #F2FBF7;
    }

    .guest-auth-panel .guest-auth-panel__option:active {
        transform: scale(0.99);
    }

    .guest-auth-panel .guest-auth-panel__option-icon {
        width: 40px;
        height: 40px;
        border-radius: 20px;
        background: #F2FBF7;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .guest-auth-panel .guest-auth-panel__option-icon img {
        display: block;
        width: 22px;
        height: 22px;
    }

    .guest-auth-panel .guest-auth-panel__option-copy {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .guest-auth-panel .guest-auth-panel__option-title {
        color: var(--map-text);
        font: 600 16px/22px 'Inter', 'Roboto', sans-serif;
        letter-spacing: 0;
    }

    .guest-auth-panel .guest-auth-panel__option-description {
        display: block;
        color: var(--map-muted);
        font: 400 14px/19px 'Inter', 'Roboto', sans-serif;
        letter-spacing: 0;
    }

    .guest-auth-panel .guest-auth-panel__option-chevron {
        display: block;
        width: 18px;
        height: 18px;
        opacity: 0.52;
        transition: transform 160ms ease;
    }

    .guest-auth-panel .guest-auth-panel__option:hover
        .guest-auth-panel__option-chevron {
        transform: translateX(2px);
    }

    .guest-auth-panel .mobile-sheet__field {
        display: block;
        margin-bottom: 14px;
        color: var(--map-text);
        font: 500 13px/18px 'Inter', 'Roboto', sans-serif;
        letter-spacing: 0;
        text-align: left;
    }

    .guest-auth-panel .mobile-sheet__field > span {
        display: block;
        margin-bottom: 6px;
    }

    .guest-auth-panel .mobile-sheet__field input {
        width: 100%;
        height: 48px;
        padding: 0 16px;
        border: 1px solid transparent;
        border-radius: 12px;
        background: #F5F5F5;
        color: var(--map-text);
        font: 400 15px/20px 'Inter', 'Roboto', sans-serif;
        letter-spacing: 0;
    }

    .guest-auth-panel .mobile-sheet__field input:focus {
        border-color: var(--map-green);
        outline: 2px solid rgba(47, 148, 96, 0.18);
    }

    .guest-auth-panel .mobile-sheet__status {
        margin: -8px 0 14px;
        color: #B42318;
        font: 500 13px/18px 'Inter', 'Roboto', sans-serif;
        letter-spacing: 0;
        text-align: left;
    }

    .mobile-profile-panel:not([hidden]) {
        display: block;
        position: fixed;
        top: 92px;
        left: 16px;
        z-index: 20;
        width: 400px;
        max-width: calc(100vw - 32px);
        height: auto;
        max-height: calc(100dvh - 108px);
        padding: 0;
        overflow-x: hidden;
        overflow-y: auto;
        border: 0;
        border-radius: 22px;
        background: var(--map-panel);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.05);
        visibility: hidden;
        pointer-events: none;
        opacity: 0;
        transform: translateX(calc(-100% - 24px));
        transition:
            transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 220ms ease,
            height 280ms cubic-bezier(0.22, 1, 0.36, 1),
            visibility 0s linear 380ms;
        will-change: transform;
        scrollbar-width: none;
    }

    .mobile-profile-panel::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    .map-header.is-profile-panel-open .mobile-profile-panel {
        visibility: visible;
        pointer-events: auto;
        opacity: 1;
        transform: translateX(0);
        transition:
            transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 220ms ease,
            height 280ms cubic-bezier(0.22, 1, 0.36, 1),
            visibility 0s;
    }

    .mobile-profile-subpanel.is-open {
        visibility: visible;
        pointer-events: auto;
        opacity: 1;
        transform: translateX(0);
        transition:
            transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 220ms ease,
            height 280ms cubic-bezier(0.22, 1, 0.36, 1),
            visibility 0s;
    }

    .mobile-profile-panel .mobile-sheet__view[hidden] {
        display: none;
    }

    .mobile-profile-panel .mobile-sheet__view--profile {
        width: 100%;
        margin: 0;
    }

    .mobile-profile-panel [data-mobile-profile-view="overview"] {
        min-height: 100%;
        padding: 0 24px max(4px, env(safe-area-inset-bottom));
        display: flex;
        flex-direction: column;
        gap: 0;
    }

    .mobile-profile-panel .mobile-sheet__menu {
        width: 100%;
        border: 0;
        background: transparent;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mobile-profile-panel .mobile-profile-panel__logout {
        margin-top: 12px;
    }

    .mobile-profile-panel .mobile-sheet__menu-item,
    .mobile-profile-panel .mobile-sheet__action-row {
        width: 100%;
        min-height: 76px;
        padding: 12px 16px;
        border: 0;
        border-radius: 12px;
        background: #FFFFFF;
        color: var(--map-text);
        cursor: pointer;
        display: grid;
        grid-template-columns: 40px minmax(0, 1fr) 18px;
        align-items: center;
        gap: 14px;
        text-align: left;
        transition: background-color 160ms ease;
    }

    .mobile-profile-panel .mobile-sheet__menu-item:hover,
    .mobile-profile-panel .mobile-sheet__menu-item:focus-visible {
        background: #F2FBF7;
    }

    .mobile-profile-panel .mobile-sheet__menu-icon,
    .mobile-profile-panel .mobile-sheet__action-icon {
        width: 40px;
        height: 40px;
        border-radius: 20px;
        background: #F2FBF7;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-profile-panel .mobile-sheet__menu-icon img,
    .mobile-profile-panel .mobile-sheet__action-icon img {
        display: block;
        width: 22px;
        height: 22px;
    }

    .mobile-profile-panel .mobile-sheet__menu-copy,
    .mobile-profile-panel .mobile-sheet__action-copy {
        min-width: 0;
        display: flex;
        flex-direction: column;
        gap: 2px;
    }

    .mobile-profile-panel .mobile-sheet__menu-title,
    .mobile-profile-panel .mobile-sheet__action-title {
        color: var(--map-text);
        font: 600 16px/22px 'Inter', 'Roboto', sans-serif;
        letter-spacing: 0;
    }

    .mobile-profile-panel .mobile-sheet__menu-description,
    .mobile-profile-panel .mobile-sheet__action-description {
        overflow: hidden;
        color: var(--map-muted);
        font: 400 14px/19px 'Inter', 'Roboto', sans-serif;
        letter-spacing: 0;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-profile-panel .mobile-sheet__menu-chevron {
        width: 18px;
        height: 18px;
        opacity: 0.52;
    }

    .mobile-profile-panel .mobile-sheet__action-row {
        grid-template-columns: 40px minmax(0, 1fr);
        background: #FFFFFF;
    }

    .mobile-profile-panel .mobile-sheet__action-row--danger:hover,
    .mobile-profile-panel .mobile-sheet__action-row--danger:focus-visible {
        background: #FFF7F6;
    }

    .mobile-profile-panel .mobile-sheet__action-row--danger .mobile-sheet__action-icon {
        background: #FFF1F0;
    }

    .mobile-profile-panel .mobile-sheet__action-row--danger .mobile-sheet__action-title {
        color: #B42318;
    }

    .mobile-profile-panel .mobile-sheet__form-layout {
        min-height: 0;
        padding: 0 24px 24px;
        border-radius: 0;
        background: transparent;
        display: flex;
        flex-direction: column;
    }

    .mobile-profile-panel .mobile-profile-panel__form-surface {
        width: 100%;
        padding: 20px 16px 16px;
        display: flex;
        flex-direction: column;
    }

    .mobile-profile-panel .mobile-sheet__field {
        display: block;
        margin-bottom: 14px;
        color: var(--map-text);
        font: 500 13px/18px 'Inter', 'Roboto', sans-serif;
        letter-spacing: 0;
        text-align: left;
    }

    .mobile-profile-panel .mobile-sheet__field > span {
        display: block;
        margin-bottom: 6px;
    }

    .mobile-profile-panel .mobile-sheet__field input {
        width: 100%;
        height: 48px;
        padding: 0 16px;
        border: 1px solid transparent;
        border-radius: 12px;
        background: rgba(245, 245, 245, 0.94);
        color: var(--map-text);
        font: 400 15px/20px 'Inter', 'Roboto', sans-serif;
        letter-spacing: 0;
    }

    .mobile-profile-panel .mobile-sheet__field input:focus {
        border-color: var(--map-green);
        outline: 2px solid rgba(47, 148, 96, 0.18);
    }

    .mobile-profile-panel .mobile-sheet__button {
        width: 100%;
        min-height: 48px;
        padding: 12px 18px;
        border: 1px solid transparent;
        border-radius: 12px;
        cursor: pointer;
        font: 600 15px/20px 'Inter', 'Roboto', sans-serif;
        letter-spacing: 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .mobile-profile-panel .mobile-sheet__button--primary {
        background: var(--map-green);
        color: #FFFFFF;
    }

    .mobile-profile-panel .mobile-sheet__button--push {
        margin-top: auto;
    }

    .guest-auth-panel
        .mobile-sheet__compact-form
        .mobile-sheet__form-action,
    .mobile-profile-panel
        .mobile-sheet__form-layout
        .mobile-sheet__form-action {
        width: 100%;
        min-width: 0;
        min-height: 48px;
        margin: 6px 0 0;
        padding: 12px 18px;
        border: 1px solid rgba(47, 148, 96, 0.16);
        border-radius: 12px;
        align-self: stretch;
        background: rgba(47, 148, 96, 0.1);
        color: var(--map-green-dark);
        justify-content: center;
        font: 600 14px/20px 'Inter', 'Roboto', sans-serif;
        text-align: center;
        transition:
            background-color 160ms ease,
            border-color 160ms ease,
            transform 160ms ease;
    }

    .guest-auth-panel
        .mobile-sheet__compact-form
        .mobile-sheet__form-action:hover,
    .mobile-profile-panel
        .mobile-sheet__form-layout
        .mobile-sheet__form-action:hover {
        border-color: rgba(47, 148, 96, 0.26);
        background: rgba(47, 148, 96, 0.16);
    }

    .mobile-profile-panel .mobile-sheet__status {
        margin: 2px 0 10px;
        color: var(--map-green);
        font: 500 13px/18px 'Inter', 'Roboto', sans-serif;
        letter-spacing: 0;
        text-align: center;
    }

    .mobile-profile-panel .mobile-sheet__status.is-error {
        color: #B42318;
    }

    .mobile-profile-panel .mobile-sheet__list-view {
        min-height: 0;
        padding: 0 24px 24px;
        border-radius: 0;
        background: transparent;
        display: flex;
        flex-direction: column;
    }

    .mobile-profile-panel .mobile-sheet__list-view .mobile-sheet__list {
        flex: 1 1 auto;
        width: 100%;
        margin: 0;
        border: 0;
        background: transparent;
        display: flex;
        flex-direction: column;
        gap: 12px;
    }

    .mobile-profile-panel .mobile-sheet__place-item--profile {
        min-height: 96px;
        padding: 12px 16px;
        border: 0;
        border-radius: 12px;
        background: #FFFFFF;
    }

    .mobile-profile-panel .mobile-sheet__list-state {
        min-height: 180px;
        border-radius: 12px;
        background: #FFFFFF;
    }

    .mobile-profile-panel .mobile-sheet__place-image--profile,
    .mobile-profile-panel .mobile-sheet__place-placeholder--profile {
        width: 72px;
        height: 72px;
        border-radius: 8px;
    }

    .map-header .search-results.is-history {
        border: 0;
        background: #FFFFFF;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    }

    .map-header .search-results.is-results,
    .modal {
        background: var(--map-panel);
    }

    .map-header .search-results.is-results {
        animation: desktop-map-panel-in 340ms cubic-bezier(0.22, 1, 0.36, 1) both;
        will-change: transform;
    }

    .map-header .search-results.is-results.is-mobile-sheet-leaving {
        pointer-events: none;
        animation:
            desktop-map-panel-out
            380ms
            cubic-bezier(0.22, 1, 0.36, 1)
            both;
    }
}

.modal-header {
    height: 240px;
    min-height: 240px;
    flex: 0 0 240px;
    margin: 0;
    border-radius: 22px 22px 0 0;
}

.modal-header img {
    transition: opacity 0.3s ease;
}

.modal-header .modal-photo-placeholder-icon img {
    transition: none;
}

.modal-body {
    gap: 24px;
    margin-top: -24px;
    margin-bottom: -24px;
    padding: 24px;
    border-radius: 22px;
    background: #FFFFFF;
}

.modal-info-container {
    margin: 0;
    padding: 24px 0 24px;
    border-top: 1px solid #E5E7EB;
    border-radius: 0;
}

.modal-info-row {
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent !important;
}

.modal-rating-row[hidden],
.modal-info-row[hidden] {
    display: none !important;
}

.modal-info-icon {
    color: var(--map-green);
    font-size: 20px;
    line-height: 1;
}

.modal-info-text#modal-description,
#modal-description {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
    color: var(--map-text);
    -webkit-line-clamp: 3;
}

.modal-review-link {
    position: relative;
    flex: 0 0 auto;
    width: 100%;
    margin: 0;
    padding: 40px 24px 16px;
    border-radius: 0 0 22px 22px;
    background: #FFFFFF;
    cursor: pointer;
}

.modal-review-link::before {
    content: "";
    position: absolute;
    top: 0;
    right: 24px;
    left: 24px;
    height: 1px;
    background: #E5E7EB;
}

.auth-required-dialog-overlay {
    z-index: calc(var(--z-map-modal) + 10);
}

.auth-required-dialog .ui-dialog__title {
    margin-right: 0;
}

.auth-required-dialog__description {
    margin: 0;
}

.auth-required-dialog__actions {
    margin-top: 20px;
    display: grid;
    gap: 10px;
}

.auth-required-dialog__button {
    width: 100%;
    min-height: 46px;
    padding: 11px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    cursor: pointer;
    font: 600 14px/20px 'Inter', 'Roboto', sans-serif;
    letter-spacing: 0;
    transition:
        background-color 160ms ease,
        border-color 160ms ease,
        transform 160ms ease;
}

.auth-required-dialog__button:active {
    transform: scale(0.99);
}

.auth-required-dialog__button--primary {
    border-color: rgba(47, 148, 96, 0.16);
    background: rgba(47, 148, 96, 0.12);
    color: var(--map-green-dark);
}

.auth-required-dialog__button--primary:hover,
.auth-required-dialog__button--primary:focus-visible {
    border-color: rgba(47, 148, 96, 0.28);
    background: rgba(47, 148, 96, 0.18);
    outline: 0;
}

.auth-required-dialog__button--secondary {
    border-color: #E5E7EB;
    background: #FFFFFF;
    color: var(--map-text);
}

.auth-required-dialog__button--secondary:hover,
.auth-required-dialog__button--secondary:focus-visible {
    background: #F5F5F5;
    outline: 0;
}

.place-panel-action-button {
    --place-panel-action-size: var(--ui-control-size-small);
    position: absolute;
    top: 24px;
    z-index: 4;
    width: var(--place-panel-action-size);
    height: var(--place-panel-action-size);
    flex: 0 0 var(--place-panel-action-size);
}

.modal-close {
    left: 24px;
}

.modal.is-close-action .modal-close {
    right: 24px;
    left: auto;
}

.modal-like-btn {
    right: 24px;
}

.modal.is-close-action .modal-like-btn {
    right: calc(
        24px + var(--place-panel-action-size) + 12px
    );
}

.modal-like-btn.active img {
    filter: brightness(0) invert(1);
}

.modal-like-btn.active {
    background: var(--map-green);
}

.modal-like-btn:disabled {
    cursor: wait;
    opacity: 0.65;
}

.modal-photo-dots {
    position: absolute;
    z-index: 4;
    bottom: 38px;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateX(-50%);
}

.modal-photo-dots[hidden] {
    display: none;
}

.mobile-sheet__media.has-photo-gallery {
    touch-action: pan-y;
    cursor: grab;
}

.mobile-sheet__media.is-photo-dragging {
    cursor: grabbing;
}

.mobile-sheet__media.has-photo-gallery .mobile-sheet__media-image {
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
}

.modal-photo-transition-copy {
    position: absolute;
    z-index: 1;
    inset: 0;
    pointer-events: none;
}

.modal-photo-dot {
    position: relative;
    width: 20px;
    height: 24px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.modal-photo-dot::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.58);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.24);
    transform: translate(-50%, -50%);
    transition:
        width 160ms ease,
        height 160ms ease,
        background-color 160ms ease;
}

.modal-photo-dot.is-active::before {
    width: 9px;
    height: 9px;
    background: rgba(255, 255, 255, 0.96);
}

.modal-photo-dot:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.9);
    outline-offset: -2px;
    border-radius: 10px;
}

.place-panel-view--details {
    display: contents;
}

.place-panel-view[hidden],
.place-review-form[hidden] {
    display: none !important;
}

.place-review-form {
    width: 100%;
    min-height: 520px;
    padding: 0 24px 24px;
    display: flex;
    flex-direction: column;
}

.place-review-form__header {
    flex: 0 0 auto;
}

.place-review-form__surface {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    padding: 20px 16px 16px;
    display: flex;
    flex-direction: column;
}

.place-review-form__place {
    margin-bottom: 22px;
    color: var(--map-text);
    font: 700 20px/26px 'Inter', 'Roboto', sans-serif;
    letter-spacing: 0;
}

.place-review-form__rating {
    min-width: 0;
    margin: 0 0 22px;
    padding: 0;
    border: 0;
}

.place-review-form__rating legend {
    margin-bottom: 10px;
    color: var(--map-text);
    font: 500 13px/18px 'Inter', 'Roboto', sans-serif;
    letter-spacing: 0;
}

.place-review-form__stars {
    display: grid;
    grid-template-columns: repeat(5, 44px);
    gap: 8px;
}

.place-review-form__star {
    width: 44px;
    height: 44px;
    padding: 8px;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    background: #F5F5F5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        transform 160ms ease;
}

.place-review-form__star:hover,
.place-review-form__star:focus-visible {
    border-color: rgba(47, 148, 96, 0.34);
    background: #F2FBF7;
    outline: 0;
}

.place-review-form__star:active {
    transform: scale(0.96);
}

.place-review-form__star img {
    width: 24px;
    height: 24px;
    opacity: 0.26;
    filter: grayscale(1);
    transition:
        opacity 160ms ease,
        filter 160ms ease,
        transform 160ms ease;
}

.place-review-form__star.is-selected img {
    opacity: 1;
    filter: none;
    transform: scale(1.06);
}

.place-review-form.has-rating-error .place-review-form__stars {
    border-radius: 14px;
    outline: 2px solid rgba(217, 45, 32, 0.16);
    outline-offset: 3px;
}

.place-review-form__rating-value {
    min-height: 18px;
    margin-top: 8px;
    color: var(--map-muted);
    font: 400 13px/18px 'Inter', 'Roboto', sans-serif;
    letter-spacing: 0;
}

.place-review-form__field {
    margin-bottom: 0;
}

.place-review-form__field textarea {
    width: 100%;
    min-height: 132px;
    padding: 14px 16px;
    border: 1px solid transparent;
    border-radius: 12px;
    background: rgba(245, 245, 245, 0.94);
    color: var(--map-text);
    font: 400 15px/21px 'Inter', 'Roboto', sans-serif;
    letter-spacing: 0;
    resize: vertical;
}

.place-review-form__field textarea:focus {
    border-color: var(--map-green);
    outline: 2px solid rgba(47, 148, 96, 0.18);
    outline-offset: 0;
}

.place-review-form__field textarea::placeholder {
    color: #A3A3A3;
    opacity: 1;
}

.place-review-form__counter {
    margin: 6px 2px 14px;
    color: var(--map-muted);
    font: 400 12px/17px 'Inter', 'Roboto', sans-serif;
    letter-spacing: 0;
    text-align: right;
}

.place-review-form__status {
    margin: 0 0 10px;
    color: var(--map-green);
    font: 500 13px/18px 'Inter', 'Roboto', sans-serif;
    letter-spacing: 0;
    text-align: center;
}

.place-review-form__status.is-error {
    color: #B42318;
}

.place-review-form__submit {
    width: 100%;
    min-height: 48px;
    margin-top: auto;
    padding: 12px 18px;
    border: 1px solid rgba(47, 148, 96, 0.16);
    border-radius: 12px;
    background: rgba(47, 148, 96, 0.1);
    color: var(--map-green-dark);
    cursor: pointer;
    font: 600 14px/20px 'Inter', 'Roboto', sans-serif;
    letter-spacing: 0;
}

.place-review-form__submit:hover,
.place-review-form__submit:focus-visible {
    border-color: rgba(47, 148, 96, 0.26);
    background: rgba(47, 148, 96, 0.16);
    outline: 0;
}

.place-review-form__submit:disabled {
    cursor: wait;
    opacity: 0.65;
}

@media (max-width: 980px) {
    .mobile-profile-subpanel:not([hidden]) {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        display: block;
        width: 100%;
        padding: 20px 0 0;
        overflow-x: hidden;
        overflow-y: auto;
        border-radius: var(--mobile-sheet-radius) var(--mobile-sheet-radius) 0 0;
        background: #FFFFFF;
        box-shadow: 0 15px 75px rgba(0, 0, 0, 0.18);
        visibility: hidden;
        pointer-events: none;
        opacity: 0;
        transform: translateY(100%);
        transition:
            transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 220ms ease,
            visibility 0s linear 380ms,
            height var(--mobile-sheet-motion-duration) var(--mobile-sheet-motion-easing),
            min-height var(--mobile-sheet-motion-duration) var(--mobile-sheet-motion-easing),
            max-height var(--mobile-sheet-motion-duration) var(--mobile-sheet-motion-easing),
            border-radius var(--mobile-sheet-motion-duration) var(--mobile-sheet-motion-easing);
        will-change: transform;
    }

    .mobile-profile-subpanel.is-open {
        visibility: visible;
        pointer-events: auto;
        opacity: 1;
        transform: translateY(0);
        transition:
            transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 220ms ease,
            visibility 0s,
            height var(--mobile-sheet-motion-duration) var(--mobile-sheet-motion-easing),
            min-height var(--mobile-sheet-motion-duration) var(--mobile-sheet-motion-easing),
            max-height var(--mobile-sheet-motion-duration) var(--mobile-sheet-motion-easing),
            border-radius var(--mobile-sheet-motion-duration) var(--mobile-sheet-motion-easing);
    }

    .mobile-profile-subpanel > .mobile-sheet__view:not([hidden]) {
        min-height: 100%;
    }

    .funding-logos {
        display: none;
    }

    .funding-logos-inline {
        width: 100%;
        margin-top: auto;
        padding: 18px 0 max(2px, env(safe-area-inset-bottom));
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        opacity: 0.68;
    }

    .funding-logos-inline__image {
        width: 72px;
        height: 42px;
        padding: 5px;
        border-radius: 7px;
        display: block;
        object-fit: contain;
    }

    .funding-logos-inline__image--platform {
        background: transparent;
        opacity: 0.78;
    }

    .funding-logos-inline__image--fund {
        background: rgba(255, 255, 255, 0.94);
    }

    .place-panel-action-button {
        --place-panel-action-size: var(--ui-control-size);
    }

    .map-header {
        top: auto;
        left: 0;
        right: 0;
        bottom: -28px;
        height: 146px;
        min-height: 146px;
        padding: 24px 22px 58px;
        border-radius: 56px;
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: 40px 32px;
        column-gap: 12px;
        row-gap: 12px;
        align-items: start;
        overflow: visible;
        transition:
            bottom var(--mobile-sheet-motion-duration) var(--mobile-sheet-motion-easing),
            height var(--mobile-sheet-motion-duration) var(--mobile-sheet-motion-easing),
            min-height var(--mobile-sheet-motion-duration) var(--mobile-sheet-motion-easing),
            max-height var(--mobile-sheet-motion-duration) var(--mobile-sheet-motion-easing),
            padding var(--mobile-sheet-motion-duration) var(--mobile-sheet-motion-easing),
            border-radius var(--mobile-sheet-motion-duration) var(--mobile-sheet-motion-easing);
    }

    .map-header::before {
        content: "";
        position: absolute;
        inset: 0 6px -80px;
        z-index: -1;
        border-radius: 56px 56px 0 0;
        background: var(--map-mobile-panel);
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
        transition:
            inset 360ms cubic-bezier(0.22, 1, 0.36, 1),
            border-radius 360ms cubic-bezier(0.22, 1, 0.36, 1),
            background-color 240ms ease,
            box-shadow 240ms ease;
    }

    .map-brand {
        display: none;
    }

    .map-header .search-container {
        grid-column: 1;
        grid-row: 1;
        flex: none;
        width: 100%;
        height: 40px;
        min-height: 40px;
        min-width: 0;
    }

    .map-header .search-input-container {
        height: 40px;
        padding: 0 44px 0 16px;
        border-radius: 22px;
        box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    }

    .map-header .search-icon {
        right: 10px;
        width: 20px;
        height: 20px;
    }

    .map-header .search-clear {
        right: 36px;
        width: 32px;
        height: 32px;
    }

    .map-header-actions {
        grid-column: 2;
        grid-row: 1;
        width: auto;
        height: 40px;
        margin: 0;
    }

    .map-profile-btn {
        display: none;
    }

    .map-more-btn {
        display: inline-flex;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 1px solid #E5E5E5;
        background: #FFFFFF;
        box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    }

    .map-more-btn:focus {
        outline: 0;
    }

    .map-more-btn:focus-visible {
        outline: 0;
    }

    .map-more-btn img {
        width: 20px;
        height: 20px;
    }

    .admin-btn {
        flex: 0 0 40px;
        border: 1px solid #E5E5E5;
        box-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
    }

    .map-header .categories {
        grid-column: 1 / -1;
        grid-row: 2;
        flex: none;
        width: 100%;
        margin: 0;
        gap: 8px;
        padding: 0;
        overflow-x: auto;
        overflow-y: hidden;
    }

    .map-header .category-btn {
        height: 32px;
        padding: 8px 12px;
        gap: 4px;
        box-shadow: 0 1px 0.5px rgba(0, 0, 0, 0.05);
    }

    .map-header .category-btn > span:not(.category-icon) {
        padding: 0 4px;
    }

    .map-header .search-results {
        position: fixed;
        top: auto;
        left: 22px;
        right: 22px;
        bottom: 142px;
        width: auto;
        max-height: min(56vh, 430px);
        padding: 12px;
        border-radius: 22px;
    }

    .map-header .search-results.is-history {
        padding: 12px 4px;
        border-radius: 20px;
    }

    .map-header.is-search-history-open {
        --mobile-sheet-expanded-height: calc(
            100dvh - var(--mobile-keyboard-offset, 0px)
        );
        bottom: var(--mobile-keyboard-offset, 0px);
        padding: 20px 16px 24px;
        grid-template-rows: 40px minmax(0, 1fr);
        row-gap: 16px;
    }

    .map-header.is-guest-auth-open {
        bottom: 0;
        padding: 20px 0 24px;
        grid-template-rows: minmax(0, 1fr);
        row-gap: 0;
    }

    .map-header.is-guest-auth-open.is-mobile-sheet-expanded {
        padding-top: 0;
    }

    .map-header.is-profile-panel-open {
        --mobile-sheet-surface-inset:
            var(--profile-top-edge-translate-y, 0px) 0 0;
        bottom: 0;
        padding: 20px 0 0;
        grid-template-rows: minmax(0, 1fr);
        row-gap: 0;
    }

    .map-header.is-profile-panel-open.is-mobile-sheet-expanded {
        padding-top: 0;
    }

    .map-header.is-profile-panel-open::before {
        transition: none;
    }

    .map-header.is-profile-panel-open .mobile-sheet__handle {
        transform:
            translateX(-50%)
            translateY(var(--profile-top-edge-translate-y, 0px));
        transition: none;
    }

    .map-header.is-profile-panel-open .search-container,
    .map-header.is-profile-panel-open .categories {
        display: none;
    }

    .map-header.is-profile-panel-open .map-header-actions {
        display: none;
    }

    .map-header.is-profile-panel-open .admin-btn {
        display: none;
    }

    .map-header.is-profile-panel-open .mobile-profile-panel {
        grid-column: 1 / -1;
        grid-row: 1;
        min-width: 0;
        min-height: 0;
        height: 100%;
        max-height: 100%;
        align-self: stretch;
        display: block;
        padding: 0;
        overflow-y: auto;
        scroll-padding-bottom: max(24px, env(safe-area-inset-bottom));
    }

    .map-header.is-profile-panel-open
        .mobile-profile-panel
        [data-mobile-profile-view="overview"] {
        min-height: 100%;
        padding: 0 24px max(4px, env(safe-area-inset-bottom));
        display: flex;
        flex-direction: column;
    }

    .map-header.is-guest-auth-open .search-container {
        display: none;
    }

    .map-header.is-guest-auth-open .map-header-actions {
        display: none;
    }

    .map-header.is-guest-auth-open.is-guest-auth-form-open {
        padding-right: 0;
        padding-bottom: 0;
        padding-left: 0;
    }

    .map-header.is-guest-auth-open .categories {
        display: none;
    }

    .map-header.is-guest-auth-open .guest-auth-panel {
        grid-column: 1 / -1;
        grid-row: 1;
        min-width: 0;
        min-height: 0;
        height: 100%;
        max-height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 40px 24px 0;
        overflow-y: auto;
    }

    .map-header.is-guest-auth-open .guest-auth-panel .mobile-sheet__intro,
    .map-header.is-guest-auth-open .guest-auth-panel .mobile-sheet__compact-form {
        width: 100%;
        max-width: none;
        text-align: left;
    }

    .map-header.is-guest-auth-open:not(.is-guest-auth-form-open)
        .guest-auth-panel {
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0 0 max(4px, env(safe-area-inset-bottom));
    }

    .map-header.is-guest-auth-open:not(.is-guest-auth-form-open)
        .guest-auth-panel__content {
        width: 100%;
        min-height: 100%;
        padding-bottom: 0;
        display: flex;
        flex-direction: column;
    }

    .map-header.is-guest-auth-open:not(.is-guest-auth-form-open)
        .guest-auth-panel__option-description {
        display: block;
    }

    .map-header.is-guest-auth-open:not(.is-guest-auth-form-open)
        .guest-auth-panel__option-chevron {
        display: block;
    }

    .map-header.is-guest-auth-open.is-guest-auth-form-open .guest-auth-panel {
        align-items: flex-start;
        justify-content: flex-start;
        padding: 0;
    }

    .map-header.is-guest-auth-open.is-guest-auth-form-open
        .mobile-sheet__form-layout {
        height: 100%;
        min-height: 100%;
    }

    .map-header.is-guest-auth-open.is-guest-auth-form-open
        .guest-auth-panel__form-header {
        width: auto;
    }

    .map-header.is-guest-auth-open.is-guest-auth-form-open
        .guest-auth-panel__surface {
        width: 100%;
        min-height: 0;
        margin: 0;
        padding: 0;
        border-radius: 0;
        background: transparent;
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
    }

    .map-header.is-guest-auth-open.is-guest-auth-form-open
        .mobile-sheet__description {
        display: none;
    }

    .map-header.is-guest-auth-open.is-guest-auth-form-open
        .mobile-sheet__status--field {
        width: 100%;
        margin: -8px 0 14px;
        padding: 10px 12px;
        border: 0;
        border-radius: 12px;
        background: #FFF2F0;
        text-align: left;
    }

    .map-header.is-mobile-sheet-closing {
        bottom: -28px;
        height: 146px;
        min-height: 146px;
        max-height: 146px;
        padding: 24px 22px 58px;
        border-radius: 56px;
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-rows: 40px 32px;
        column-gap: 12px;
        row-gap: 12px;
        overflow: hidden;
    }

    .map-header.is-mobile-sheet-closing::before {
        inset: 0 6px -80px;
        border-radius: 56px 56px 0 0;
        background: var(--map-mobile-panel);
        box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
        transition:
            inset var(--mobile-sheet-motion-duration)
                var(--mobile-sheet-motion-easing),
            border-radius var(--mobile-sheet-motion-duration)
                var(--mobile-sheet-motion-easing),
            background-color 240ms ease,
            box-shadow 240ms ease;
    }

    .map-header.is-mobile-sheet-closing .guest-auth-panel,
    .map-header.is-mobile-sheet-closing .mobile-profile-panel {
        opacity: 0;
        transform: translateY(24px);
        pointer-events: none;
        transition:
            transform var(--mobile-sheet-motion-duration)
                var(--mobile-sheet-motion-easing),
            opacity 180ms ease;
    }

    .map-header.is-mobile-sheet-closing .search-container {
        overflow: hidden;
    }

    .map-header.is-search-history-open .search-container {
        grid-column: 1 / -1;
        grid-row: 1 / -1;
        width: 100%;
        height: 100%;
        display: flex;
        flex-direction: column;
        gap: 16px;
        overflow: hidden;
    }

    .map-header.is-search-history-open .search-input-container {
        flex: 0 0 40px;
        width: calc(100% - 52px);
        background: #F5F5F5;
    }

    .map-header.is-search-history-open .map-header-actions {
        position: absolute;
        top: 0;
        right: 16px;
        z-index: 3;
    }

    .map-header.is-search-history-open .admin-btn,
    .map-header.is-search-results-open .admin-btn {
        display: none;
    }

    .map-header.is-search-history-open .categories {
        display: none;
    }

    .map-header.is-search-history-open .search-results.is-history {
        position: static;
        display: block;
        flex: 1 1 auto;
        width: 100%;
        min-height: 0;
        max-height: none;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        overflow-y: auto;
    }

    .map-header.is-search-history-open .search-history-list {
        display: flex;
        width: 100%;
        flex-direction: column;
    }

    .map-header.is-search-history-open .search-history-item {
        min-height: 42px;
        border-radius: 6px;
    }

    .map-header.is-search-history-open .search-history-query {
        min-height: 42px;
        padding: 8px 12px;
    }

    .map-header.is-search-history-open .search-history-remove {
        display: none;
    }

    .map-header.is-search-results-open {
        --mobile-sheet-expanded-height: calc(
            100dvh - var(--mobile-keyboard-offset, 0px)
        );
        bottom: var(--mobile-keyboard-offset, 0px);
        padding: 20px 16px 0;
        grid-template-rows: 40px minmax(0, 1fr);
        row-gap: 0;
    }

    .map-header.is-search-results-open .search-container {
        grid-column: 1 / -1;
        grid-row: 1 / -1;
        width: 100%;
        height: 100%;
        min-height: 0;
        display: flex;
        flex-direction: column;
        gap: 12px;
        overflow: visible;
    }

    .map-header.is-search-results-open .search-input-container {
        flex: 0 0 40px;
        width: calc(100% - 52px);
        background: #F5F5F5;
    }

    .map-header.is-search-results-open .map-header-actions {
        position: absolute;
        top: 0;
        right: 16px;
        z-index: 3;
    }

    .map-header--guest.is-search-history-open .map-header-actions,
    .map-header--guest.is-search-results-open .map-header-actions {
        display: flex;
    }

    .map-header.is-search-results-open .categories {
        display: none;
    }

    .map-header .search-results.is-results {
        top: 88px;
        left: 14px;
        right: 14px;
        bottom: auto;
        width: auto;
        height: min(70dvh, calc(100dvh - 220px));
        max-height: calc(100dvh - 220px);
        border-radius: 22px;
    }

    .map-header.is-search-results-open .search-results.is-results {
        position: static;
        display: block;
        flex: 1 1 auto;
        width: 100vw;
        min-height: 0;
        max-height: none;
        height: auto;
        margin: 0 calc(50% - 50vw);
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        overflow: hidden;
    }

    .map-header.is-search-results-open .search-results-heading {
        display: none;
    }

    .map-header.is-search-results-open .search-results-list {
        height: 100%;
        max-height: none;
        padding: 0;
        gap: 0;
        overflow-y: auto;
        scrollbar-width: none;
    }

    .map-header.is-search-results-open .search-results-list::-webkit-scrollbar {
        width: 0;
        height: 0;
    }

    .map-header .search-results:not(.is-results) .search-result-item {
        min-height: 94px;
        padding: 12px 0;
        border-radius: 0;
        background: #FFFFFF;
        border-bottom: 1px solid #E5E5E5;
    }

    .map-header .search-results:not(.is-results) .search-result-item + .search-result-item {
        margin-top: 0;
    }

    .map-header .search-results.is-results .search-result-item {
        width: 100%;
        min-height: 118px;
        padding: 14px;
        border-radius: 12px;
        border-bottom: 0;
    }

    .map-header.is-search-results-open .search-results.is-results .search-result-item {
        width: 100%;
        min-height: 126px;
        padding: 16px 22px;
        border-radius: 0;
        border-bottom: 1px solid #E5E5E5;
        background: #FFFFFF;
        gap: 16px;
    }

    .map-header.is-search-results-open .search-results.is-results .search-result-item:hover {
        background: #F2FBF7;
    }

    .map-header.is-search-results-open .search-results.is-results .result-info {
        min-height: 94px;
    }

    .map-header .search-results.is-results .result-name {
        width: min(154px, 100%);
    }

    .map-header .search-results.is-results .result-thumb,
    .map-header .search-results.is-results .result-thumb-placeholder {
        width: 84px;
        height: 84px;
    }

    .map-header.is-search-results-open .search-results.is-results .result-thumb,
    .map-header.is-search-results-open .search-results.is-results .result-thumb-placeholder {
        width: 94px;
        height: 94px;
    }

    .result-thumb,
    .result-thumb-placeholder,
    .result-icon {
        width: 76px;
        height: 76px;
        margin-right: 4px;
    }

    .map-controls {
        top: 50%;
        right: 16px;
        bottom: auto;
        transform: translateY(-50%);
    }

    .modal {
        display: flex;
        visibility: hidden;
        pointer-events: none;
        top: auto;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 66.6667dvh;
        min-height: 66.6667dvh;
        max-width: none;
        max-height: 66.6667dvh;
        overflow-y: auto;
        border-radius: var(--mobile-sheet-radius) var(--mobile-sheet-radius) 0 0;
        background: #FFFFFF;
        box-shadow: 0 15px 75px rgba(0, 0, 0, 0.18);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        opacity: 0;
        transform: translateY(100%);
        transition:
            transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 220ms ease,
            visibility 0s linear 380ms,
            height var(--mobile-sheet-motion-duration) var(--mobile-sheet-motion-easing),
            min-height var(--mobile-sheet-motion-duration) var(--mobile-sheet-motion-easing),
            max-height var(--mobile-sheet-motion-duration) var(--mobile-sheet-motion-easing),
            border-radius var(--mobile-sheet-motion-duration) var(--mobile-sheet-motion-easing);
        will-change: transform;
    }

    .modal.is-open {
        visibility: visible;
        pointer-events: auto;
        opacity: 1;
        transform: translateY(0);
        transition:
            transform 380ms cubic-bezier(0.22, 1, 0.36, 1),
            opacity 220ms ease,
            visibility 0s,
            height var(--mobile-sheet-motion-duration) var(--mobile-sheet-motion-easing),
            min-height var(--mobile-sheet-motion-duration) var(--mobile-sheet-motion-easing),
            max-height var(--mobile-sheet-motion-duration) var(--mobile-sheet-motion-easing),
            border-radius var(--mobile-sheet-motion-duration) var(--mobile-sheet-motion-easing);
    }

    .modal.is-mobile-sheet-expanded {
        height: 100dvh;
        min-height: 100dvh;
        max-height: 100dvh;
        background: linear-gradient(
            to bottom,
            transparent 0 var(--mobile-sheet-radius),
            #FFFFFF var(--mobile-sheet-radius) 100%
        );
    }

    .modal.is-mobile-sheet-expanded .modal-review-link {
        border-radius: 0;
    }

    .modal.is-place-review-open {
        overflow-y: auto;
        background: #FFFFFF;
    }

    .place-review-form {
        min-height: 100%;
    }

    .place-review-form__surface {
        flex: 1 1 auto;
        padding: 0;
        border-radius: 0;
        background: transparent;
    }

    .place-review-form__place {
        margin-bottom: 24px;
        font-size: 20px;
        line-height: 26px;
    }

    .place-review-form__stars {
        grid-template-columns: repeat(5, minmax(44px, 1fr));
        width: 100%;
    }

    .place-review-form__star {
        width: 100%;
        max-width: 56px;
        justify-self: center;
    }

    .place-review-form__field textarea {
        min-height: 144px;
    }

    .modal-header {
        height: clamp(240px, 59.7vw, 340px);
        min-height: clamp(240px, 59.7vw, 340px);
        flex-basis: clamp(240px, 59.7vw, 340px);
        border-radius: var(--mobile-sheet-radius) var(--mobile-sheet-radius) 0 0;
    }

    .modal-body {
        flex: 0 0 auto;
        gap: 24px;
        margin-top: -40px;
        margin-bottom: -24px;
        padding: 24px;
        border-radius: 22px;
        background: #FFFFFF;
    }

    .modal-title-name {
        font: 700 20px/26px 'Inter', 'Roboto', sans-serif;
    }

    .modal-review-link {
        position: relative;
        bottom: auto;
        z-index: 3;
        flex: 0 0 auto;
        width: 100%;
        margin: 0;
        padding: 40px 24px calc(24px + env(safe-area-inset-bottom));
        border-top: 0;
        border-radius: 0 0 38px 38px;
        background: #FFFFFF;
    }

}

@media (prefers-reduced-motion: reduce) {
    .map-header,
    .map-header::before,
    .mobile-profile-panel,
    .modal,
    .modal.is-open {
        transition-duration: 0.01ms;
    }

    .map-header .search-results.is-results {
        animation-duration: 0.01ms;
    }

}
.layer-map-marker {
    position: relative;
    width: 32px;
    height: 41px;
    transform: translate(-16px, -41px);
}

.layer-map-marker__surface {
    position: absolute;
    top: 0;
    left: 0;
    width: 96px;
    height: 123px;
    transform: scale(0.3333333333);
    transform-origin: top left;
}

.layer-map-marker__shell {
    position: absolute;
    inset: 0;
    display: block;
    width: 96px;
    height: 123px;
}

.layer-map-marker__icon {
    position: absolute;
    top: 26px;
    left: 21px;
    display: block;
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: brightness(0) invert(1);
}
