.map-page-shell {
    display: grid;
    gap: 18px;
    margin-bottom: 28px;
}

.map-filters {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 14px;
}

.map-filters .field {
    min-width: 0;
}

.map-filters .btn {
    width: 100%;
}

.map-place-search-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
}

.map-place-search-row input {
    min-width: 0;
}

.map-place-search-row .btn {
    width: auto;
    min-width: 92px;
}

.map-place-results {
    display: grid;
    gap: 6px;
    max-height: 220px;
    overflow: auto;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #f7f9fa;
}

.map-place-results[hidden] {
    display: none !important;
}

.map-place-results__item {
    width: 100%;
    padding: 9px 10px;
    border: 0;
    border-radius: 9px;
    background: #fff;
    color: #101921;
    font: inherit;
    font-size: 12px;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.map-place-results__item:hover,
.map-place-results__item:focus-visible {
    background: #eaf1ff;
    outline: none;
}

.map-place-status {
    min-height: 18px;
    margin: -4px 0 0;
    color: #1c6b50;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.map-place-status:empty {
    display: none;
}

.map-place-status.is-error {
    color: #b3261e;
}

.map-layout-v4 {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(390px, 430px) !important;
    gap: 18px;
    align-items: start;
}

.map-stage-v4 {
    position: sticky;
    top: 104px;
    overflow: hidden;
    padding: 0;
}

.map-sidebar-v4 {
    position: sticky;
    top: 104px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    gap: 18px;
    height: min(72vh, 760px);
    min-height: 540px;
}

.map-status-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

#camping-map.map-canvas-v4 {
    width: 100%;
    height: min(72vh, 760px);
    min-height: 540px;
    padding: 0;
    background: #e8eef2;
}

#camping-map.map-canvas-v4.is-unavailable {
    background:
        radial-gradient(circle at 72% 30%, rgba(70, 156, 106, .16), transparent 25%),
        radial-gradient(circle at 24% 68%, rgba(43, 102, 217, .12), transparent 31%),
        #e8eef2;
}

.map-list-v4 {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: 0;
    max-width: none;
    padding: 16px;
    overflow: hidden;
}

.map-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 12px;
}

.map-list-heading h2 {
    margin: 0;
    font-size: 24px;
}

.map-list-scroll-v4 {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 5px;
    scrollbar-width: thin;
}

.map-object-card-v6 {
    display: flex !important;
    width: 100%;
    height: auto !important;
    flex: 0 0 auto;
    flex-direction: column;
    gap: 0 !important;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    box-sizing: border-box;
    cursor: pointer;
    transition: border-color .2s ease, transform .2s ease;
}

.map-object-card-v6:hover {
    transform: translateY(-1px);
}

.map-object-card-v6.active {
    border-color: #2b66d9;
    box-shadow: none !important;
}

.map-object-card-v6 .list-card-media {
    min-width: 0;
}

.map-object-card-v6 .thumb {
    position: relative;
    width: 100%;
    height: 160px;
    min-height: 160px;
    overflow: hidden;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
    background: #e6edf1;
}

.map-object-card-v6 .thumb-link {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.map-object-card-v6 .thumb img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
}

.map-object-card-v6 .thumb .badge {
    position: absolute;
    top: 10px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    max-width: calc(50% - 14px);
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .9);
    color: #101921;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    box-shadow: 0 8px 20px rgba(16, 25, 33, .1);
    backdrop-filter: blur(8px);
    pointer-events: none;
}

.map-object-card-v6 .map-card-type-badge {
    left: 10px;
}

.map-object-card-v6 .map-card-date-badge {
    right: 10px;
    left: auto;
    cursor: help;
    font-weight: 700;
    pointer-events: auto;
}

.map-object-card-v6 .map-card-date-badge::after {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 8;
    padding: 7px 9px;
    transform: translateY(-3px);
    border-radius: 8px;
    opacity: 0;
    background: #101921;
    color: #fff;
    content: attr(data-tooltip);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity .18s ease, transform .18s ease;
}

.map-object-card-v6 .map-card-date-badge:hover::after,
.map-object-card-v6 .map-card-date-badge:focus-visible::after {
    transform: translateY(0);
    opacity: 1;
}

.map-card-image-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    padding: 24px;
    color: #6a7783;
    font-weight: 800;
    text-align: center;
    background: linear-gradient(145deg, #eaf2f6, #dce8ed);
}

.map-object-card-v6 .card-gallery-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 12px;
    margin-top: 7px;
    line-height: 0;
}

.map-object-card-v6 .card-gallery-nav[hidden] {
    display: none !important;
}

.map-object-card-v6 .card-gallery-nav__dot {
    display: block;
    width: 5px;
    height: 4px;
    border-radius: 999px;
    background: rgba(104, 115, 129, .35);
    opacity: .75;
    transition: width .24s ease, opacity .24s ease, background-color .24s ease;
}

.map-object-card-v6 .card-gallery-nav__dot.is-active {
    width: 18px;
    opacity: 1;
    background: #687381;
}

.map-object-card-v6 .card-update-date {
    margin-top: 8px;
    padding: 0 12px;
    color: #687381;
    font-size: 12px;
    line-height: 1.3;
    text-align: center;
}

.map-object-card-v6 .card-update-date strong {
    color: #384554;
    font-weight: 700;
}

.map-object-card-v6 .map-object-body {
    display: flex;
    flex: 1 1 auto;
    flex-direction: column;
    min-width: 0;
    padding: 12px 12px 10px;
}

.map-object-card-v6 .map-object-body > .meta {
    font-size: 12px;
    line-height: 1.35;
}

.map-object-card-v6 h3 {
    margin: 4px 0 8px;
    font-size: 20px;
    line-height: 1.15;
    letter-spacing: -.025em;
}

.map-object-card-v6 h3 a {
    color: inherit;
    text-decoration: none;
}

.map-object-card-v6 .map-card-preview {
    display: block;
    color: inherit;
}

.map-object-card-v6 .card-preview-text {
    margin: 0;
    line-height: 1.5;
}

.map-object-card-v6 .object-feature-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0 0;
}

.map-object-card-v6 .object-feature-icon {
    position: relative;
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    cursor: help;
    outline: none;
}

.map-object-card-v6 .object-feature-icon:focus-visible {
    border-radius: 5px;
    outline: 2px solid #4a90e2;
    outline-offset: 2px;
}

.map-object-card-v6 .object-feature-icon img {
    display: block;
    width: 42px;
    height: 42px;
    pointer-events: none;
}

.map-object-card-v6 .object-feature-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 10px);
    z-index: 25;
    max-width: 260px;
    padding: 8px 11px;
    transform: translateX(-50%) translateY(4px);
    border-radius: 10px;
    opacity: 0;
    background: #101921;
    box-shadow: 0 6px 18px rgba(16, 25, 33, .24);
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    white-space: nowrap;
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}

.map-object-card-v6 .object-feature-tooltip::after {
    position: absolute;
    top: 100%;
    left: 50%;
    width: 0;
    height: 0;
    transform: translateX(-50%);
    border-top: 6px solid #101921;
    border-right: 6px solid transparent;
    border-left: 6px solid transparent;
    content: '';
}

.map-object-card-v6 .object-feature-icon:hover .object-feature-tooltip,
.map-object-card-v6 .object-feature-icon:focus-visible .object-feature-tooltip {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

.map-object-card-v6 .side-price {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    gap: 8px;
    padding: 10px 12px 12px;
    border-top: 1px solid var(--line);
    border-left: 0;
}

.map-object-card-v6 .object-meta--rating {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 7px;
    margin: 0;
}

.map-object-card-v6 .rating-stars {
    display: flex;
    width: 110px;
    height: 22px;
    align-items: center;
    gap: 0;
    line-height: 0;
}

.map-object-card-v6 .rating-star-svg {
    display: block;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
}

.map-object-card-v6 .rating-star-shape {
    vector-effect: non-scaling-stroke;
}

.map-object-card-v6 .rating-summary {
    display: flex;
    align-items: baseline;
    gap: 7px;
    color: #384554;
    font-size: 12px;
    line-height: 1.2;
}

.map-object-card-v6 .rating-summary strong {
    color: #101921;
    font-size: 14px;
    font-weight: 900;
}

.map-object-card-v6 .rating-summary span {
    color: #687381;
    font-size: 11px;
    font-weight: 800;
}

.map-card-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.map-card-actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 36px;
    padding: 8px 10px;
    font-size: 13px;
}

.map-empty-state,
.map-error-state {
    padding: 24px;
    color: var(--muted);
}

.map-route-status {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 8;
    max-width: calc(100% - 96px);
    min-height: 0;
    margin: 0;
    color: var(--muted);
    pointer-events: none;
}

.map-route-status:not(:empty) {
    padding: 12px 16px;
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--shadow2);
    color: #101921;
    font-weight: 700;
}

#camping-map.is-route-picking canvas {
    cursor: crosshair !important;
}

.map-route-start-confirm {
    position: absolute;
    right: auto;
    bottom: 16px;
    left: 16px;
    z-index: 9;
    display: grid;
    width: min(430px, calc(100% - 32px));
    gap: 10px;
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, .97);
    box-shadow: 0 12px 32px rgba(16, 25, 33, .24);
    color: #101921;
    backdrop-filter: blur(10px);
}

.map-route-start-confirm[hidden] {
    display: none !important;
}

.map-route-start-confirm strong {
    font-size: 14px;
    line-height: 1.4;
}

.map-route-start-confirm__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.map-route-start-confirm__actions .btn {
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 9px 12px;
    font-size: 12px;
}

.map-route-summary {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 8;
    display: flex;
    max-width: min(920px, calc(100% - 32px));
    align-items: center;
    gap: 12px;
    padding: 11px 12px 11px 15px;
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 10px 28px rgba(16, 25, 33, .22);
    color: #101921;
    backdrop-filter: blur(10px);
}

.map-route-summary[hidden] {
    display: none !important;
}

.map-route-summary strong {
    min-width: 150px;
    flex: 1 1 auto;
    font-size: 14px;
    line-height: 1.35;
}

.map-route-summary__actions {
    display: flex;
    flex: 0 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 7px;
}

.map-route-summary__primary,
.map-route-summary__secondary,
.map-route-summary__clear {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    color: #101921;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    cursor: pointer;
}

.map-route-summary__primary {
    border-color: #101921;
    background: #101921;
    color: #fff;
}

.map-route-summary__primary:hover,
.map-route-summary__primary:focus-visible {
    background: #263443;
}

.map-route-summary__secondary:hover,
.map-route-summary__secondary:focus-visible,
.map-route-summary__clear:hover,
.map-route-summary__clear:focus-visible {
    background: #f1f4f6;
}

.map-route-summary__primary:disabled,
.map-route-summary__secondary:disabled {
    opacity: .5;
    cursor: not-allowed;
}

#map-route-open-apps::before,
#map-route-share::before {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    background: currentColor;
    content: '';
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: contain;
    mask-size: contain;
}

#map-route-open-apps::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.4 21 3l-8.4 18-2-7.6L3 11.4Z'/%3E%3Cpath d='m10.6 13.4 4.2-4.2'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11.4 21 3l-8.4 18-2-7.6L3 11.4Z'/%3E%3Cpath d='m10.6 13.4 4.2-4.2'/%3E%3C/svg%3E");
}

#map-route-share::before {
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='m8.6 10.5 6.8-4M8.6 13.5l6.8 4'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='18' cy='5' r='3'/%3E%3Ccircle cx='6' cy='12' r='3'/%3E%3Ccircle cx='18' cy='19' r='3'/%3E%3Cpath d='m8.6 10.5 6.8-4M8.6 13.5l6.8 4'/%3E%3C/svg%3E");
}

.map-route-app-dialog {
    position: fixed;
    inset: 0;
    width: min(520px, calc(100vw - 24px));
    max-width: none;
    max-height: calc(100vh - 24px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(16, 25, 33, .34);
    color: #101921;
}

.map-route-app-dialog::backdrop {
    background: rgba(16, 25, 33, .56);
    backdrop-filter: blur(3px);
}

.map-route-app-dialog__content {
    position: relative;
    display: grid;
    gap: 16px;
    padding: 24px;
}

.map-route-app-dialog__content h2 {
    margin: 0;
    padding-right: 42px;
    font-size: 26px;
    line-height: 1.15;
}

.map-route-app-dialog__close {
    position: absolute;
    top: 15px;
    right: 15px;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f4f6;
    color: #101921;
    font-size: 25px;
    line-height: 1;
    place-items: center;
    cursor: pointer;
}

.map-route-app-dialog__destination {
    margin: -7px 0 0;
    color: #687381;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.map-route-app-list {
    display: grid;
    gap: 9px;
}

.map-route-app {
    display: grid;
    width: 100%;
    min-height: 66px;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
    color: #101921;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.map-route-app:hover,
.map-route-app:focus-visible {
    border-color: rgba(43, 102, 217, .35);
    background: #f3f7ff;
    outline: none;
}

.map-route-app[hidden] {
    display: none !important;
}

.map-route-app > span:last-child {
    display: grid;
    gap: 3px;
}

.map-route-app strong {
    font-size: 14px;
    line-height: 1.25;
}

.map-route-app small {
    color: #687381;
    font-size: 11px;
    line-height: 1.35;
}

.map-route-app__icon {
    display: grid;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    color: #fff;
    font-size: 18px;
    font-weight: 900;
    place-items: center;
}

.map-route-app__icon--yandex {
    background: #e33a2f;
}

.map-route-app__icon--google {
    background: #2b66d9;
}

.map-route-app__icon--apple {
    background: #101921;
}

.map-route-app-dialog__sharing {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.map-route-app-dialog__sharing .btn {
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 9px 10px;
    font-size: 12px;
}

.map-route-app-status {
    min-height: 0;
    margin: 0;
    color: #1c6b50;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.map-route-app-status:empty {
    display: none;
}

.map-route-app-status:not(:empty) {
    padding: 10px 12px;
    border-radius: 11px;
    background: #eef8f3;
}

.map-route-app-status.is-error {
    color: #b3261e;
    background: #fff4f2;
}

.map-route-dialog {
    position: fixed;
    inset: 0;
    width: min(560px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100vh - 32px);
    margin: auto;
    padding: 0;
    overflow: auto;
    border: 0;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(16, 25, 33, .34);
    color: #101921;
}

.map-route-dialog::backdrop {
    background: rgba(16, 25, 33, .56);
    backdrop-filter: blur(3px);
}

.map-route-dialog__content {
    position: relative;
    display: grid;
    gap: 16px;
    padding: 26px;
}

.map-route-dialog__content h2 {
    margin: 0;
    padding-right: 40px;
    font-size: 27px;
    line-height: 1.15;
}

.map-route-dialog__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f4f6;
    color: #101921;
    font-size: 25px;
    line-height: 1;
    place-items: center;
    cursor: pointer;
}

.map-route-destination {
    display: grid;
    gap: 4px;
    padding: 13px 15px;
    border-radius: 14px;
    background: #f3f6f8;
}

.map-route-destination > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.map-route-destination strong {
    font-size: 17px;
    line-height: 1.3;
}

.map-route-destination small {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.map-route-origin-field {
    gap: 7px;
}

.map-route-origin-field input {
    width: 100%;
}

.map-route-origin-field + .map-route-results {
    margin-top: -10px;
}

.map-route-origin-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.map-route-origin-actions .btn {
    min-width: 0;
    min-height: 42px;
    padding: 9px 10px;
    font-size: 12px;
    line-height: 1.25;
}

.map-route-results {
    display: grid;
    gap: 6px;
    max-height: 220px;
    overflow: auto;
    padding: 5px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #f7f9fa;
}

.map-route-results[hidden] {
    display: none !important;
}

.map-route-result {
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 9px;
    background: #fff;
    color: #101921;
    font: inherit;
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
    cursor: pointer;
}

.map-route-result:hover,
.map-route-result:focus-visible {
    background: #eaf1ff;
    outline: none;
}

.map-route-search-status {
    min-height: 0;
    margin: -8px 0 0;
    color: #1c6b50;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.map-route-search-status:empty {
    display: none;
}

.map-route-search-status:not(:empty) {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f7f9fa;
}

.map-route-search-status.is-error {
    color: #b3261e;
    background: #fff4f2;
}

.map-route-form-status {
    min-height: 20px;
    margin: 0;
    color: #1c6b50;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.map-route-form-status:empty {
    display: none;
}

.map-route-form-status.is-error {
    color: #b3261e;
}

.map-route-build {
    width: 100%;
    min-height: 46px;
}

.map-route-build:disabled {
    cursor: not-allowed;
    opacity: .5;
}

.maplibregl-popup {
    max-width: min(380px, calc(100vw - 32px)) !important;
}

.camping-map-popup {
    display: grid;
    width: 360px;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    gap: 10px;
}

.camping-map-popup-media {
    min-width: 0;
}

.camping-map-popup-media.is-single-preview .card-gallery-nav {
    display: none !important;
}

.camping-map-popup-thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 14px 14px 10px 10px;
    background: #e6edf1;
}

.camping-map-popup-thumb .thumb-link {
    display: block;
    width: 100%;
    height: 100%;
}

.camping-map-popup-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.camping-map-popup-media .card-gallery-nav {
    display: flex;
    min-height: 12px;
    align-items: center;
    justify-content: center;
    gap: 4px;
    margin-top: 7px;
    line-height: 0;
}

.camping-map-popup-media .card-gallery-nav[hidden] {
    display: none !important;
}

.camping-map-popup-media .card-gallery-nav__dot {
    display: block;
    width: 5px;
    height: 4px;
    border-radius: 999px;
    background: rgba(104, 115, 129, .35);
    opacity: .75;
    transition: width .24s ease, opacity .24s ease, background-color .24s ease;
}

.camping-map-popup-media .card-gallery-nav__dot.is-active {
    width: 18px;
    opacity: 1;
    background: #687381;
}

.camping-map-popup__title {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
}

.camping-map-popup__address {
    display: block;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.camping-map-popup .btn {
    width: 100%;
    min-height: 40px;
}

.maplibregl-popup-content {
    padding: 10px;
    border-radius: 16px;
    box-shadow: var(--shadow2);
}

@media (min-width: 769px) {
    .camping-map-object-popup.is-desktop .maplibregl-popup-tip {
        display: none;
    }

    .camping-map-object-popup.is-desktop .maplibregl-popup-content {
        position: relative;
        overflow: visible;
    }

    .camping-map-object-popup.is-desktop.maplibregl-popup-anchor-top-left .maplibregl-popup-content {
        border-top-left-radius: 0;
    }

    .camping-map-object-popup.is-desktop.maplibregl-popup-anchor-bottom-left .maplibregl-popup-content {
        border-bottom-left-radius: 0;
    }
}

.maplibregl-popup-close-button {
    z-index: 5;
    top: 14px;
    right: 14px;
    display: grid;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 4px 12px rgba(16, 25, 33, .18);
    color: #101921;
    font-size: 21px;
    line-height: 1;
    place-items: center;
}

.maplibregl-popup-close-button:hover,
.maplibregl-popup-close-button:focus-visible {
    background: rgba(255, 255, 255, .94);
    color: #101921;
    box-shadow: 0 4px 12px rgba(16, 25, 33, .18);
}

@media (max-width: 1200px) {
    .map-layout-v4 {
        grid-template-columns: 1fr !important;
    }

    .map-stage-v4,
    .map-sidebar-v4 {
        position: static;
    }

    .map-sidebar-v4 {
        height: auto;
        min-height: 0;
    }

    .map-list-v4 {
        overflow: visible;
    }

    .map-list-scroll-v4 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        max-height: none;
        overflow: visible;
    }
}

@media (max-width: 860px) {
    .map-filters {
        grid-template-columns: 1fr;
    }

    #camping-map.map-canvas-v4 {
        height: 62vh;
        min-height: 420px;
    }

    .map-list-scroll-v4 {
        grid-template-columns: 1fr !important;
    }

    .map-object-card-v6 .thumb {
        height: 190px;
        min-height: 190px;
    }
}

@media (max-width: 520px) {
    .map-place-search-row {
        grid-template-columns: 1fr;
    }

    .map-place-search-row .btn {
        width: 100%;
    }

    #camping-map.map-canvas-v4 {
        height: 56vh;
        min-height: 360px;
    }

    .map-list-v4 {
        padding: 12px;
    }

    .map-object-card-v6 .thumb {
        height: 175px;
        min-height: 175px;
    }

    .map-object-card-v6 h3 {
        font-size: 20px;
    }

    .map-object-card-v6 .map-object-body,
    .map-object-card-v6 .side-price {
        padding-right: 12px;
        padding-left: 12px;
    }

    .map-route-dialog {
        width: calc(100vw - 20px);
        max-height: calc(100vh - 20px);
        border-radius: 18px;
    }

    .map-route-dialog__content {
        gap: 14px;
        padding: 20px;
    }

    .map-route-dialog__content h2 {
        font-size: 23px;
    }

    .map-route-origin-actions {
        grid-template-columns: 1fr;
    }

    .map-route-start-confirm {
        right: 10px;
        bottom: 10px;
        left: 10px;
        width: auto;
    }

    .map-route-summary {
        right: 10px;
        bottom: 10px;
        left: 10px;
        max-width: none;
        align-items: stretch;
        flex-direction: column;
    }

    .map-route-summary strong {
        min-width: 0;
    }

    .map-route-summary__actions {
        display: grid;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .map-route-summary__primary {
        grid-column: 1 / -1;
    }

    .map-route-summary__primary,
    .map-route-summary__secondary,
    .map-route-summary__clear {
        width: 100%;
        white-space: normal;
    }

    .map-route-app-dialog {
        width: calc(100vw - 20px);
        max-height: calc(100svh - 20px);
        border-radius: 18px;
    }

    .map-route-app-dialog__content {
        gap: 13px;
        padding: 20px;
    }

    .map-route-app-dialog__content h2 {
        font-size: 23px;
    }

    .map-route-app-dialog__sharing {
        grid-template-columns: 1fr;
    }
}

/* Stage 5: top filters and compact horizontal map cards */
.map-filters--top {
    position: relative;
    grid-template-columns: minmax(360px, 1.55fr) minmax(180px, .72fr) minmax(180px, .72fr) auto;
    align-items: end;
}

.map-filters--top .map-filter-search {
    position: relative;
}

.map-filters--top > .btn {
    width: auto;
    min-width: 120px;
}

.map-filters--top .map-place-results {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 30;
    max-height: 260px;
    box-shadow: var(--shadow2);
}

.map-filters--top .map-place-status:not(:empty) {
    position: absolute;
    top: calc(100% + 7px);
    right: 0;
    left: 0;
    z-index: 29;
    padding: 9px 11px;
    border-radius: 10px;
    background: #fff;
    box-shadow: var(--shadow2);
}

.map-sidebar-v4 {
    display: block;
    height: min(72vh, 760px);
}

.map-list-v4 {
    height: 100%;
}

.map-list-scroll-v4 {
    gap: 8px;
}

.map-object-card-v6 {
    display: grid !important;
    grid-template-columns: 116px minmax(0, 1fr);
    grid-template-rows: auto auto;
    min-height: 124px;
    align-items: stretch;
}

.map-object-card-v6 .list-card-media {
    grid-column: 1;
    grid-row: 1 / 3;
    width: 108px;
    min-width: 108px;
    margin: 8px 0 8px 8px;
    padding: 0;
    overflow: visible;
}

.map-object-card-v6 .thumb {
    width: 108px;
    min-width: 108px;
    height: 108px;
    min-height: 108px;
    aspect-ratio: 1 / 1;
    border-radius: 14px;
}

.map-object-card-v6 .thumb-link,
.map-object-card-v6 .thumb img {
    width: 108px;
    min-width: 108px;
    height: 108px;
    visibility: visible;
    opacity: 1;
}

.map-object-card-v6 .thumb .badge {
    top: 6px;
    max-width: calc(54% - 8px);
    padding: 4px 6px;
    overflow: hidden;
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.map-object-card-v6 .map-card-type-badge {
    left: 6px;
}

.map-object-card-v6 .map-card-date-badge {
    right: 6px;
}

.map-object-card-v6 .card-gallery-nav {
    min-height: 9px;
    margin-top: 4px;
}

.map-object-card-v6 .card-gallery-nav__dot {
    width: 4px;
    height: 3px;
}

.map-object-card-v6 .card-gallery-nav__dot.is-active {
    width: 14px;
}

.map-object-card-v6 .map-object-body {
    grid-column: 2;
    grid-row: 1;
    padding: 9px 10px 3px;
}

.map-object-card-v6 h3 {
    margin: 0 0 4px;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: -.015em;
}

.map-object-card-v6 .map-card-submeta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 2px 8px;
    margin: 0 0 4px;
    color: #687381;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.3;
}

.map-object-card-v6 .map-card-submeta__date {
    cursor: help;
}

.map-object-card-v6 .map-object-address {
    display: -webkit-box;
    overflow: hidden;
    font-size: 11px;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.map-object-card-v6 .object-feature-icons {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: 4px;
    max-width: 100%;
    margin: 7px 0 0;
    overflow: visible;
}

.map-object-card-v6 .object-feature-icon,
.map-object-card-v6 .object-feature-icon img {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
}

.map-object-card-v6 .side-price {
    grid-column: 2;
    grid-row: 2;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 2px 10px 8px;
    border-top: 0;
}

.map-object-card-v6 .rating-stars {
    width: 75px;
    height: 15px;
}

.map-object-card-v6 .rating-star-svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}

.map-object-card-v6 .rating-summary {
    gap: 4px;
}

.map-object-card-v6 .rating-summary strong {
    font-size: 12px;
}

.map-object-card-v6 .rating-summary span {
    font-size: 9px;
}

.map-object-card-v6 .map-card-actions {
    width: min(156px, 100%);
    gap: 5px;
}

.map-object-card-v6 .map-card-actions .btn {
    min-height: 30px;
    padding: 5px 7px;
    font-size: 11px;
}

@media (max-width: 1200px) {
    .map-filters--top {
        grid-template-columns: minmax(300px, 1.4fr) repeat(2, minmax(170px, .8fr)) auto;
    }

    .map-sidebar-v4 {
        height: auto;
    }

    .map-list-v4 {
        height: auto;
    }

    .map-list-scroll-v4 {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }
}

@media (max-width: 860px) {
    .map-filters--top {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .map-filters--top .map-filter-search {
        grid-column: 1 / -1;
    }

    .map-filters--top > .btn {
        width: 100%;
    }

    .map-list-scroll-v4 {
        grid-template-columns: 1fr !important;
    }

    .map-object-card-v6 .thumb {
        height: 108px;
        min-height: 108px;
    }
}

@media (max-width: 560px) {
    .map-filters--top {
        grid-template-columns: 1fr;
    }

    .map-filters--top .map-filter-search {
        grid-column: auto;
    }

    .map-filters--top .map-place-results,
    .map-filters--top .map-place-status:not(:empty) {
        position: static;
        margin-top: 7px;
    }

    .map-object-card-v6 {
        grid-template-columns: 115px minmax(0, 1fr);
    }

    .map-object-card-v6 .list-card-media {
        margin-left: 7px;
        padding-left: 0;
    }

    .map-object-card-v6 .side-price {
        align-items: stretch;
        flex-direction: column;
    }

    .map-object-card-v6 .map-card-actions {
        width: 100%;
    }
}

.map-list-load-sentinel {
    grid-column: 1 / -1;
    width: 100%;
    height: 1px;
    flex: 0 0 1px;
}

.map-object-card-v6 .map-card-media-rating {
    display: grid;
    width: 108px;
    justify-items: start;
    gap: 1px;
    margin: 4px 0 0;
}

.map-object-card-v6 .map-card-media-rating .rating-stars {
    width: 75px;
    height: 15px;
}

.map-object-card-v6 .map-card-media-rating .rating-star-svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
}

.map-object-card-v6 .map-card-media-rating .rating-summary {
    gap: 4px;
    white-space: nowrap;
}

.map-object-card-v6 .map-card-media-rating .rating-summary strong {
    font-size: 12px;
}

.map-object-card-v6 .map-card-media-rating .rating-summary span {
    font-size: 9px;
}

.map-object-card-v6 .side-price {
    justify-content: flex-end;
}

/* Stage 5: visible, larger place-search suggestions */
.map-page-shell {
    overflow: visible;
}

.map-filters--top {
    z-index: 100;
    overflow: visible;
    isolation: isolate;
}

.map-filters--top .map-filter-search {
    z-index: 101;
    overflow: visible;
}

.map-layout-v4 {
    position: relative;
    z-index: 1;
}

.map-filters--top .map-place-results {
    top: calc(100% + 10px);
    z-index: 1000;
    max-height: 360px;
    padding: 8px;
    border: 1px solid rgba(16, 25, 33, .14);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(16, 25, 33, .22);
}

.map-filters--top .map-place-results__item {
    min-height: 48px;
    padding: 13px 14px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: #fff;
    color: #101921;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.map-filters--top .map-place-results__item:hover,
.map-filters--top .map-place-results__item:focus-visible {
    border-color: rgba(43, 102, 217, .18);
    background: #edf4ff;
}

.map-filters--top .map-place-status:not(:empty) {
    z-index: 999;
    padding: 12px 14px;
    font-size: 14px;
    line-height: 1.4;
}

/* Fullscreen gallery and image zoom affordance */
.map-object-card-v6 .thumb-link,
.camping-map-popup-thumb .thumb-link {
    position: relative;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: zoom-in;
    font: inherit;
}

.map-object-card-v6 .thumb-link::after,
.camping-map-popup-thumb .thumb-link::after {
    position: absolute;
    right: 8px;
    bottom: 8px;
    z-index: 6;
    display: none;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 255, 255, .5);
    border-radius: 50%;
    background-color: rgba(16, 25, 33, .46);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='6.5'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E");
    background-position: center;
    background-repeat: no-repeat;
    content: '';
    pointer-events: none;
}

.map-object-card-v6 .thumb-link:hover::after,
.map-object-card-v6 .thumb-link:focus-visible::after,
.camping-map-popup-thumb .thumb-link:hover::after,
.camping-map-popup-thumb .thumb-link:focus-visible::after {
    display: block;
}

.camping-map-popup__icons {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin: 0;
}

.camping-map-popup__icons .object-feature-icon {
    position: relative;
    display: inline-flex;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    align-items: center;
    justify-content: center;
    cursor: help;
    outline: none;
}

.camping-map-popup__icons .object-feature-icon img {
    display: block;
    width: 30px;
    height: 30px;
}

.camping-map-popup__icons .object-feature-tooltip {
    position: absolute;
    left: 50%;
    bottom: calc(100% + 8px);
    z-index: 30;
    display: block;
    padding: 7px 9px;
    transform: translateX(-50%);
    border-radius: 8px;
    opacity: 0;
    background: #101921;
    color: #fff;
    font-size: 11px;
    line-height: 1.25;
    white-space: nowrap;
    pointer-events: none;
}

.camping-map-popup__icons .object-feature-icon:hover .object-feature-tooltip,
.camping-map-popup__icons .object-feature-icon:focus-visible .object-feature-tooltip {
    opacity: 1;
}

.camping-map-popup__actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
}

.camping-map-popup__actions .btn {
    min-width: 0;
}

.map-fullscreen-gallery[hidden] {
    display: none !important;
}

.map-fullscreen-gallery:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: block;
    overflow: hidden;
    background: rgba(6, 10, 16, .96);
    color: #fff;
}

.map-fullscreen-gallery__figure {
    position: absolute;
    inset: 14px 78px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
}

.map-fullscreen-gallery__image {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.map-fullscreen-gallery__caption {
    position: absolute;
    right: 16px;
    bottom: 10px;
    left: 16px;
    max-width: min(900px, calc(100% - 32px));
    margin: auto;
    padding: 9px 14px;
    border-radius: 14px;
    background: rgba(0, 0, 0, .5);
    color: rgba(255, 255, 255, .94);
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
}

.map-fullscreen-gallery__caption[hidden] {
    display: none;
}

.map-fullscreen-gallery__close,
.map-fullscreen-gallery__nav,
.map-fullscreen-gallery__counter {
    position: absolute;
    z-index: 4;
    border: 1px solid rgba(255, 255, 255, .26);
    background: rgba(16, 25, 33, .62);
    color: #fff;
    backdrop-filter: blur(8px);
}

.map-fullscreen-gallery__close {
    top: 14px;
    right: 14px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.map-fullscreen-gallery__counter {
    top: 14px;
    left: 14px;
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
}

.map-fullscreen-gallery__nav {
    top: 50%;
    width: 54px;
    height: 54px;
    padding: 0;
    transform: translateY(-50%);
    border-radius: 50%;
    cursor: pointer;
}

.map-fullscreen-gallery__nav::before {
    display: block;
    font-size: 34px;
    line-height: 1;
}

.map-fullscreen-gallery__nav--prev {
    left: 14px;
}

.map-fullscreen-gallery__nav--prev::before {
    content: '‹';
}

.map-fullscreen-gallery__nav--next {
    right: 14px;
}

.map-fullscreen-gallery__nav--next::before {
    content: '›';
}

.map-fullscreen-gallery__nav:disabled {
    opacity: .35;
    cursor: default;
}

@media (max-width: 640px) {
    .map-fullscreen-gallery__figure {
        inset: 60px 8px 12px;
    }

    .map-fullscreen-gallery__nav {
        top: auto;
        bottom: 14px;
        width: 46px;
        height: 46px;
        transform: none;
    }

    .map-fullscreen-gallery__nav--prev {
        left: 14px;
    }

    .map-fullscreen-gallery__nav--next {
        right: 14px;
    }

    .map-fullscreen-gallery__caption {
        right: 62px;
        bottom: 14px;
        left: 62px;
        max-width: none;
        padding: 7px 9px;
        font-size: 12px;
    }
}

/* Final gallery scale, custom zoom cursor and popup metadata */
.map-object-card-v6 .thumb-link,
.camping-map-popup-thumb .thumb-link {
    cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='12' cy='12' r='7' fill='none' stroke='%23000' stroke-opacity='.55' stroke-width='4'/%3E%3Cpath d='m17.5 17.5 8 8' fill='none' stroke='%23000' stroke-opacity='.55' stroke-width='4' stroke-linecap='round'/%3E%3Ccircle cx='12' cy='12' r='7' fill='none' stroke='%23fff' stroke-width='2'/%3E%3Cpath d='m17.5 17.5 8 8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") 12 12, zoom-in;
}

.map-object-card-v6 .thumb-link::after,
.camping-map-popup-thumb .thumb-link::after {
    display: none !important;
    content: none !important;
}

.map-fullscreen-gallery__figure {
    inset: 6px 68px;
}

.map-fullscreen-gallery__image {
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
}

.camping-map-popup__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px 9px;
    margin: -2px 0 2px;
    color: #687381;
    font-size: 11px;
    font-weight: 700;
    line-height: 1.3;
}

.camping-map-popup__date {
    cursor: help;
}

@media (max-width: 640px) {
    .map-fullscreen-gallery__figure {
        inset: 54px 4px 6px;
    }
}

@media (max-width: 768px) {
    .map-layout-v4 {
        display: block !important;
    }

    .map-sidebar-v4 {
        display: none !important;
    }

    #camping-map.map-canvas-v4 {
        height: 90svh !important;
        min-height: 720px !important;
        max-height: none !important;
    }

    .maplibregl-popup {
        width: calc(100vw - 24px) !important;
        max-width: 380px !important;
    }

    .maplibregl-popup-anchor-center .maplibregl-popup-tip {
        display: none;
    }

    .maplibregl-popup-content {
        max-height: calc(100svh - 32px);
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .camping-map-popup {
        width: 100%;
    }

    .camping-map-popup-thumb,
    .camping-map-popup-thumb .thumb-link,
    .map-object-card-v6 .thumb,
    .map-object-card-v6 .thumb-link {
        touch-action: pan-y;
    }

    .map-fullscreen-gallery,
    .map-fullscreen-gallery__figure,
    .map-fullscreen-gallery__image {
        touch-action: none;
    }
}

@media (max-width: 768px) {
    .camping-map-popup-media {
        display: grid;
        justify-items: center;
        width: 100%;
    }

    .camping-map-popup-thumb {
        width: min(78vw, 320px) !important;
        height: auto !important;
        min-height: 0 !important;
        aspect-ratio: 1 / 1;
        margin: 0 auto;
    }

    .camping-map-popup-thumb .thumb-link {
        width: 100%;
        height: 100%;
        aspect-ratio: 1 / 1;
    }

    .camping-map-popup-thumb img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover;
        object-position: center;
    }

    .camping-map-popup-media .card-gallery-nav {
        width: min(78vw, 320px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .map-object-card-v6 {
        transition: none;
    }
}
