:root {
    --border-color: 1px solid rgba(0, 0, 0, 0.10);
    --shadow-color: 0px 0px 10px rgba(0, 0, 0, 0.10);
    --hover-color: rgba(0, 0, 0, 0.10);
    --param-divider-color: rgba(0, 0, 0, 0.10);
    --open-param-color: rgba(0, 0, 0, 0.05);
    --background-color: #fff;
    --text-color: #000;
    --text-color-mid: #666;
    --hidden-color: rgba(0, 0, 0, 0);
    --zoom-color: #fff;
    --attrib-color: rgba(0, 0, 0, 0.0);
    --attrib-text-color: #000;
    --cluster-bg-color-1: rgba(172, 209, 175, .6);
    --cluster-bg-color-2: rgba(122, 159, 121, .6);
    --cluster-bg-color-3: rgba(49, 90, 57, .6);
    --cluster-font-color-1: #000;
    --cluster-font-color-2: #000;
    --cluster-font-color-3: #fff;
    --popup-desc-mask: linear-gradient(to bottom,
    rgba(0,0,0, 1) 0,   rgba(0,0,0, 1) 50%,
    rgba(0,0,0, 0) 90%, rgba(0,0,0, 0) 0
    ) 100% 50% / 100% 100% repeat-x;
    --popup-feat-mask: linear-gradient(to right,
    rgba(0,0,0, 1) 0,   rgba(0,0,0, 1) 70%,
    rgba(0,0,0, 0) 95%, rgba(0,0,0, 0) 0
    ) 100% 50% / 100% 100% repeat-y;
    --service-icon-color-1: rgba(125, 9, 1, .3);
    --service-icon-color-2: rgba(1, 79, 125, .3);
    --star-rating-color: #e8c902;
    --navbar-height: 60px;
    --panel-header-height: 50px;
    --font-family: "Montserrat", sans-serif;
    --heart-color: #6e0000;
    --button-height: 40px;
    --filter-submit-color: #000;
    --filter-submit-text: #fff;
}
.nightmode {
    --border-color: 1px solid rgba(255, 255, 255, 0.15);

    --shadow-color: 0px 0px 10px rgba(0, 0, 0, 0.10);
    --hover-color: rgba(255, 255, 255, 0.15);
    --param-divider-color: rgba(255, 255, 255, 0.15);
    --open-param-color: rgba(255, 255, 255, 0.05);
    --background-color: #161616;
    --text-color: #fff;
    --text-color-mid: #bbb;
    --hidden-color: rgba(0, 0, 0, 0);
    --zoom-color: #161616;
    --attrib-color: rgba(255, 255, 255, 0.0);
    --attrib-text-color: #ccc;
    --heart-color: #6e0000;
    --filter-submit-color: #fff;
    --filter-submit-text: #000;
}

body {
    position: fixed;
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    border: 0;
    font-family: var(--font-family);
    font-weight: 300;
    font-size: .875rem;
    color: var(--text-color);
}
a, a:visited {
    color: var(--text-color);
}

.skeleton-container {
    padding: 0;
    display: none;
    height: 100%;
    min-height: 100vh;
}

#side-panel.loading .skeleton-container {
    display: flex;
    flex-direction: column;
}

#side-panel.loading > .sp-section {
    display: none;
}

#side-panel.loading #sp-image-section {
    display: block;
}

#side-panel.loading #side-panel-image-holder,
#side-panel.loading #sp-image-overlay,
#side-panel.loading #sp-city-badge {
    visibility: hidden;
}

.skeleton-box {
    background-color: var(--hover-color);
    border-radius: 4px;
    position: relative;
    overflow: hidden;
}

.skeleton-box::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 2s infinite;
}

.nightmode .skeleton-box::after {
    background-image: linear-gradient(
        90deg,
        rgba(0, 0, 0, 0) 0,
        rgba(0, 0, 0, 0.1) 20%,
        rgba(0, 0, 0, 0.2) 60%,
        rgba(0, 0, 0, 0)
    );
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

.sk-image { width: 100%; height: 250px; border-radius: 0; }
.sk-header { padding: 20px; }
.sk-title { width: 70%; height: 24px; margin-bottom: 10px; }
.sk-type { width: 40%; height: 16px; margin-bottom: 12px; }
.sk-rating { width: 30%; height: 18px; }
.sk-body { padding: 0 20px 20px; }
.sk-label { width: 25%; height: 14px; margin-bottom: 12px; margin-top: 20px; }
.sk-text { width: 100%; height: 12px; margin-bottom: 8px; }
.sk-text-short { width: 85%; height: 12px; margin-bottom: 8px; }

#navbar {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 18px;
    height: var(--navbar-height);
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    transition: background 0.3s, border-color 0.3s;
}

.nightmode #navbar {
    background: rgba(22, 22, 22, 0.88);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

#navbar .nav-logo-link {
    display: flex;
    align-items: center;
    height: 100%;
    text-decoration: none;
}

.nav-primary-links {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 14px;
    height: 100%;
}

.nav-primary-link {
    display: inline-flex;
    align-items: center;
    padding: 0 10px;
    height: 32px;
    border-radius: 8px;
    font-family: "Jost", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-color);
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    opacity: 0.75;
}

.nav-primary-link:hover {
    background: var(--hover-color);
    opacity: 1;
}

.nav-search-icon {
    padding-left: 14px;
    font-size: 13px;
    color: var(--text-color-mid);
    opacity: 0.6;
}

.nav-theme-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: "Jost", sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-color);
    cursor: pointer;
    border: 0;
    background: none;
    padding: 0 12px;
    height: 100%;
    border-radius: 50px;
    transition: background 0.2s;
}

.nav-theme-btn:hover {
    background: var(--hover-color);
}

.nav-theme-btn i {
    font-size: 14px;
    opacity: 0.7;
}

.nav-settings-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border: 0;
    background: none;
    padding: 0 10px;
    height: 100%;
    border-radius: 50px;
    transition: background 0.2s;
}

.nav-settings-btn:hover {
    background: var(--hover-color);
}

.nav-settings-btn svg {
    height: 18px;
    fill: var(--text-color);
    opacity: 0.7;
    transition: opacity 0.2s;
}

.nav-settings-btn:hover svg {
    opacity: 1;
}
.navbar-item {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    height: 100%;
}
.nav-holder {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    height: var(--button-height);
    margin: 10px 0;
}

.nav-holder.left {
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
}

.nav-holder.center {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    margin: 0;
}

.nav-holder.right {
    flex-shrink: 0;
}
#title {
    font-family: var(--font-family);
    font-weight: 300;
    font-size: 1rem;
    margin-right: 10px;
}
#logo-holder {
    height: 100%;
}
#logo {
    height: 100%;
}
#logo-small {
    display: none;
    height: 100%;
}
#account-holder {
    border: var(--border-color);
    border-radius: 50px;
}
#param-holder {
    border: var(--border-color);
    border-radius: 50px;
    display: flex;
    align-items: center;
    background: var(--background-color);
    padding: 0 8px 0 16px;
    height: 40px;
    width: 380px;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.08);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
    position: relative;
}
#param-holder:focus-within {
    box-shadow: 0 4px 20px rgba(58, 78, 70, 0.15);
    border-color: #3a4e46;
}
.nightmode #param-holder:focus-within {
    border-color: #3a4e46;
}
.clear-search-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-color-mid);
    opacity: 0.6;
    transition: opacity 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.clear-search-btn:hover {
    opacity: 1;
}
.nav-holder.opened #param-holder,
#app-type-selector-holder.opened .inner-holder {
    background: var(--open-param-color);
}
.shadow {
    box-shadow: var(--shadow-color);
}
.param-item-small.selected {
    box-shadow: var(--shadow-color);
    background: var(--background-color);
}
.param-item-small {
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding: 0 10px;
    border: none;
    background: none;
}
input.param-item-small::placeholder {
    color: var(--text-color);
    text-align: center;
    font-family: var(--font-family);
    font-weight: 300;
    font-size: .875rem;
}
input.param-item-small {
    color: var(--text-color);
    font-family: var(--font-family);
    font-weight: 300;
    font-size: .875rem;
}
input.param-item-small:focus {
    outline: none;
}
.param-item-small.opened {
    padding: 0 15px;
}
.param-item-small:not(.selected):hover {
    background: var(--hover-color);
}
.param-divider {
    width: 1px;
    height: 67%;
    background: var(--param-divider-color);
}
div .param-item-small:first-child {
    border-top-left-radius: 50px;
    border-bottom-left-radius: 50px;
}
div .param-item-small:last-child {
    border-top-right-radius: 50px;
    border-bottom-right-radius: 50px;
}
div .param-item-small {
    border-radius: 50px;
}
div .param-item-small:first-child:not(.opened) {
    padding-left: 15px;
}
div .param-item-small:last-child:not(.opened) {
    padding-right: 15px;
}
.param-item-small[data-value="submit"] i {
    display: none;
}
#city-search {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0 12px;
    font-family: var(--font-family);
    font-size: 0.9rem;
    color: var(--text-color);
    height: 100%;
    width: 100%;
}
#city-selector-holder {
    position: absolute;
    top: calc(var(--navbar-height) + 6px);
    left: 50%;
    transform: translate(-50%, 0);
    z-index: -999;
    background: var(--background-color);
    border-radius: 20px;
    width: 380px;
    max-width: calc(100vw - 40px);
    display: flex;
    opacity: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 6px;
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.14), 0 4px 12px rgba(15, 23, 42, 0.06);
    max-height: 420px;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.nightmode #city-selector-holder {
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.3);
}
#city-selector-holder:has(> .inner-holder:empty) {
    display: none!important;
}
#app-type-selector-holder div {

}
.inner-holder {
    height: 100%;
    width: 100%;
    background: var(--background-color);
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    overflow-y: auto;
}

.city-selector-header {
    padding: 12px 16px 6px;
    font-size: 0.7rem;
    font-weight: 800;
    color: var(--text-color-mid);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
    background: var(--background-color);
    position: sticky;
    top: 0;
    z-index: 1;
}
.city-selector-header i {
    margin-right: 4px;
    font-size: 0.75rem;
}

.city-selector-value {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    border-radius: 0;
    padding: 10px 16px;
    width: auto;
    text-align: left;
    cursor: pointer;
    transition: background 0.15s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.03);
}
.nightmode .city-selector-value {
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}
.city-selector-value:last-child {
    border-bottom: none;
}
.city-selector-value::before {
    display: none;
}

.city-selector-value .item-name {
    font-family: "Jost", sans-serif;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.2;
}
.city-selector-value .item-sub {
    font-size: 0.72rem;
    font-weight: 500;
    color: var(--text-color-mid);
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.city-selector-value:hover {
    background: rgba(47, 91, 73, 0.08);
}
.nightmode .city-selector-value:hover {
    background: rgba(255, 255, 255, 0.08);
}

.app-type-divider {
    height: 1px;
    width: 67%;
    background: var(--param-divider-color);
}
.app-type-divider:has(+ .app-type-selector-value:hover),
.app-type-selector-value:hover + .app-type-divider,
.app-type-divider:has(+ .app-type-selector-value.selected),
.app-type-selector-value.selected + .app-type-divider,
.param-divider:has(+ .param-item-small:hover),
.param-item-small:hover + .param-divider,
.param-divider:has(+ .param-item-small.selected),
.param-item-small.selected + .param-divider {
    opacity: 0;
}

#regional-summary {
    position: absolute;
    bottom: 20px;
    right: 70px;
    background: var(--background-color);
    padding: 14px 18px;
    border-radius: 20px;
    z-index: 998;
    max-width: 280px;
    display: none;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    pointer-events: none;
    transition: all 0.3s ease;
}
.nightmode #regional-summary {
    border-color: rgba(255, 255, 255, 0.08);
}

.summary-title {
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-color-mid);
    margin-bottom: 10px;
    opacity: 0.8;
}

.summary-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.summary-item {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.summary-item strong {
    font-size: 0.95rem;
    color: #2f5b49;
    line-height: 1;
}

.summary-item span {
    font-size: 0.68rem;
    font-weight: 600;
    color: var(--text-color-mid);
}

@media (max-aspect-ratio: 13/16) {
    #regional-summary {
        bottom: 100px;
        right: 15px;
        left: 15px;
        max-width: none;
        border-radius: 16px;
    }
}

.summary-close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 1.2rem;
    color: var(--text-color-mid);
    cursor: pointer;
    opacity: 0.5;
    padding: 0;
    line-height: 1;
    transition: opacity 0.2s;
    pointer-events: auto;
}
.summary-close-btn:hover {
    opacity: 1;
}

#map {
    height: calc(100% - var(--navbar-height));
    width: 100%;
    padding: 0;
    margin: var(--navbar-height) 0 0 0;
    position: relative;
}
.leaflet-bar {
    background: none;
}
.leaflet-bar a {
    color: var(--text-color);
    background: var(--zoom-color);

}
.leaflet-bar a:first-child {
    border-bottom: var(--border-color);
    border-top-left-radius: 50%!important;
    border-top-right-radius: 50%!important;
}
.leaflet-bar a:last-child {
    border-bottom-left-radius: 50%!important;
    border-bottom-right-radius: 50%!important;
}
.leaflet-touch .leaflet-bar {
    border: var(--border-color);
    box-shadow: var(--shadow-color);
}
.leaflet-container .leaflet-control-attribution {
    background: var(--attrib-color);
    color: var(--attrib-text-color);
}

.marker-cluster-small, .marker-cluster-small div {
    background: var(--cluster-bg-color-1)!important;
    color: var(--cluster-font-color-1)!important;
}
.marker-cluster-medium, .marker-cluster-medium div {
    background: var(--cluster-bg-color-2)!important;
    color: var(--cluster-font-color-2)!important;
}
.marker-cluster-large, .marker-cluster-large div {
    background: var(--cluster-bg-color-3)!important;
    color: var(--cluster-font-color-3)!important;
}

#map-loading {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10000;
    opacity: 0;
    transition: opacity .3s ease;
    pointer-events: none;
}
#map-loading .map-loading-inner {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    border-radius: 50px;
    background: var(--background-color);
    color: var(--text-color);
    box-shadow: var(--shadow-color);
    border: var(--border-color);
}
#map-loading .spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.1);
    border-top-color: var(--text-color);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}
.nightmode #map-loading .spinner {
    border: 3px solid rgba(255,255,255,0.1);
    border-top-color: var(--text-color);
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

.leaflet-tooltip-pane {
    padding: 0;
    z-index: 9999 !important;
}
.leaflet-tooltip-pane .leaflet-tooltip {
    overflow: hidden;
    transition: opacity 0.15s ease;
    cursor: pointer;
    width: auto!important;
    max-width: 380px!important;
    margin: 0!important;
    padding: 0!important;
    border: 0!important;
    border-radius: 16px!important;
    display: flex;
    flex-direction: column;
    background: var(--background-color)!important;
    color: var(--text-color);
    box-shadow: 0 8px 30px rgba(15, 23, 42, 0.18), 0 2px 8px rgba(15, 23, 42, 0.06)!important;
}
.leaflet-tooltip-pane .leaflet-tooltip::before {
    display: none!important;
}
.leaflet-popup-close-button {
    display: none;
}

.tp-image-holder {
    position: relative;
    border-radius: 16px 16px 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 150px;
    width: 100%;
    overflow: hidden;
    background: var(--open-param-color);
}
.tp-image-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}
.tp-image-holder:hover img {
    transform: scale(1.05);
}
.tp-image-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.35) 0%, transparent 100%);
    pointer-events: none;
}
.tp-fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    color: #999;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}
.tp-fav-btn:hover, .tp-fav-btn.favorited {
    background: #fff;
    color: #d32f2f;
    transform: scale(1.1);
}

.tp-content {
    padding: 12px 16px 16px;
}
.tp-title {
    font-family: "Jost", sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.25;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tp-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 3px;
}
.tp-rating .tp-rating-score {
    font-weight: 700;
    font-size: 0.82rem;
    color: var(--text-color);
}
.tp-rating .tp-rating-stars {
    display: inline-flex;
    gap: 1px;
}
.star-rating {
    color: #f5b342;
    font-size: 11px;
}
.tp-rating .tp-rating-count {
    font-size: 0.72rem;
    color: var(--text-color-mid);
    opacity: 0.7;
    margin-left: 2px;
}
.tp-type {
    display: inline-block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #2f5b49;
    padding: 2px 8px;
    border-radius: 50px;
    background: #eaf6ef;
}
.nightmode .tp-type {
    background: rgba(47, 91, 73, 0.3);
    color: #b8d9c8;
}

.popup-image-holder { display: none; }
.popup-text-holder { display: none; }
.popup-title { display: none; }
.popup-type, .popup-desc, .popup-feat, .popup-rating { display: none; }
.service-icon-holder { display: inline-block; }
.service-icon-holder i { margin-right: 5px; }
.service-icon-holder i:last-child { margin-right: 0; }
.icon-service, .icon-activity { font-size: 3vh; }
.icon-service { color: var(--service-icon-color-1); }
.icon-activity { color: var(--service-icon-color-2); }

#side-panel {
    position: absolute;
    top: var(--navbar-height);
    height: calc(100% - var(--navbar-height) - 8px);
    width: 420px;
    max-width: calc(100vw - 8px);
    margin: 4px;
    border-radius: 24px;
    background: var(--background-color);
    overflow-y: auto;
    overflow-y: overlay;
    overflow-x: hidden;
    z-index: -999;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-12px) scale(0.98);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.18), 0 4px 16px rgba(15, 23, 42, 0.06);
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 0, 0, 0.2) transparent;
}

.sp-drag-handle {
    display: none;
    width: 40px;
    height: 5px;
    background: rgba(0, 0, 0, 0.15);
    border-radius: 10px;
    margin: 12px auto 8px;
    flex-shrink: 0;
}
.nightmode .sp-drag-handle {
    background: rgba(255, 255, 255, 0.25);
}

@media (max-aspect-ratio: 13/16) {
    #side-panel {
        width: 100%;
        max-width: 100vw;
        height: 75vh;
        top: auto;
        bottom: 0;
        margin: 0;
        border-radius: 24px 24px 0 0;
        transform: translateY(100%);
    }
    #side-panel.opened {
        transform: translateY(0);
    }
    .sp-drag-handle {
        display: block;
    }
}

#side-panel::-webkit-scrollbar {
    width: 5px;
}
#side-panel::-webkit-scrollbar-track {
    background: transparent;
}
#side-panel::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
}
#side-panel:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
}
#side-panel.opened {
    transform: translateX(0) scale(1);
}

.sp-section {
    padding: 0;
    border-bottom: 1px solid var(--param-divider-color);
}
.sp-section:last-child {
    border-bottom: none;
}

.sp-image-hero {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    flex-shrink: 0;
}
#side-panel-image-holder {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    background: var(--open-param-color);
}
#side-panel-image-holder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.4s ease;
}
#side-panel-image-holder:hover img {
    transform: scale(1.05);
}

.img-placeholder {
    background: linear-gradient(135deg, #dfe7ea, #c3d1d6) !important;
}
.tp-image-holder.img-placeholder,
#side-panel-image-holder.img-placeholder {
    background-image:
        linear-gradient(135deg, #dfe7ea, #c3d1d6),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24' fill='none' stroke='%238aa0a8' stroke-width='1.5'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='8.5' cy='10' r='1.5'/%3E%3Cpath d='M21 16l-5-5L5 19'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: center, center;
    background-size: cover, 48px 48px;
}
#sp-image-gradient {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(15, 23, 42, 0.5) 0%, transparent 100%);
    pointer-events: none;
    z-index: 1;
}
#sp-image-overlay {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 2;
}
#sp-image-btn-gallery {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #263a34;
    font-family: "Jost", sans-serif;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    opacity: 0;
}
#side-panel-image-holder:hover #sp-image-btn-gallery {
    opacity: 1;
}
#sp-image-btn-gallery:hover {
    background: #fff;
    transform: translateY(-1px);
}
#sp-image-btn-gallery i {
    font-size: 13px;
    color: #2f5b49;
}

#sp-city-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 10px;
    border-radius: 50px;
    background: rgba(0, 0, 0, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #fff;
    font-family: "Jost", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.2px;
    pointer-events: none;
    transition: opacity 0.2s ease;
}
#sp-city-badge i {
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.7);
}

.sp-fav-btn,
.sp-image-enlarge-btn,
.sp-close-btn {
    position: absolute;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 16px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.15);
}
.sp-fav-btn {
    top: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #999;
}
.sp-image-enlarge-btn {
    top: 12px;
    right: 54px;
    background: rgba(255, 255, 255, 0.9);
    color: #666;
}
.sp-image-enlarge-btn:hover {
    background: #fff;
    color: #333;
    transform: scale(1.08);
}
.sp-fav-btn:hover {
    background: #fff;
    transform: scale(1.08);
}
.sp-fav-btn.favorited {
    color: #d32f2f;
    background: rgba(255, 255, 255, 0.95);
}
.sp-fav-btn.favorited i {
    animation: heartPop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes heartPop {
    0% { transform: scale(0.8); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}
.sp-close-btn {
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    color: #666;
    font-size: 18px;
}
.sp-close-btn:hover {
    background: #fff;
    transform: rotate(90deg) scale(1.05);
    color: #333;
}

#sp-header-section {
    padding: 18px 20px 16px;
}
#sp-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}
#side-panel-title {
    font-family: "Jost", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-color);
    line-height: 1.25;
    letter-spacing: -0.2px;
    flex: 1;
    min-width: 0;
}
#sp-type-badge {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    padding: 3px 10px;
    border-radius: 50px;
    background: #eaf6ef;
    color: #1a3a2c;
    font-size: 11px;
    font-weight: 700;
    font-family: "Jost", sans-serif;
    white-space: nowrap;
    letter-spacing: 0.2px;
}
.nightmode #sp-type-badge {
    background: rgba(47, 91, 73, 0.35);
    color: #b8d9c8;
}
#side-panel-rating {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 0.85rem;
    color: var(--text-color-mid);
}
#side-panel-rating span:first-child {
    font-weight: 700;
    color: var(--text-color);
}
#side-panel-rating span:last-child {
    font-size: 0.8rem;
    opacity: 0.7;
}

.sp-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px 6px;
    font-family: "Jost", sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-color-mid);
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.sp-section-label i {
    font-size: 12px;
    color: #2f5b49;
    opacity: 0.7;
}

.sp-section-content {
    padding: 0 20px 16px;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--text-color);
}
.sp-section-content.sp-text {
    opacity: 0.85;
}
.sp-section-content a {
    color: #2f5b49;
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(47, 91, 73, 0.25);
    transition: text-decoration-color 0.2s;
}
.sp-section-content a:hover {
    text-decoration-color: #2f5b49;
}

.sp-location-approx-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 10px;
    background: #fff8e6;
    border: 1px solid #ffe599;
    color: #8a6200;
    font-family: "Jost", sans-serif;
    font-size: 0.78rem;
    font-weight: 500;
    line-height: 1.4;
}
.sp-location-approx-notice i {
    font-size: 13px;
    color: #d99b00;
    flex-shrink: 0;
}
.nightmode .sp-location-approx-notice {
    background: rgba(220, 160, 0, 0.12);
    border-color: rgba(220, 160, 0, 0.28);
    color: #ffd269;
}
.nightmode .sp-location-approx-notice i {
    color: #ffd269;
}

.sp-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}
.sp-detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    background: var(--open-param-color);
    font-size: 0.82rem;
    color: var(--text-color);
}
.sp-detail-item .sp-detail-key {
    font-weight: 600;
    color: var(--text-color-mid);
    font-size: 0.75rem;
    flex-shrink: 0;
}
.sp-detail-item .sp-detail-val {
    font-weight: 500;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sp-icons-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 4px 20px 18px;
}
.sp-icon-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-color);
    background: var(--open-param-color);
    border: 1px solid transparent;
    transition: all 0.2s;
}
.sp-icon-chip:hover {
    border-color: rgba(47, 91, 73, 0.15);
    background: var(--hover-color);
}
.sp-icon-chip i {
    font-size: 13px;
    color: #2f5b49;
    opacity: 0.8;
}

.sp-section-content a.sp-nearby-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 14px;
    background: linear-gradient(135deg, #2f5b49 0%, #3d7a5f 100%);
    color: #fff;
    font-family: "Jost", sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.2px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 4px 16px rgba(47, 91, 73, 0.25);
    box-sizing: border-box;
}
.sp-section-content a.sp-nearby-btn:hover {
    background: linear-gradient(135deg, #244839 0%, #2f5b49 100%);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(47, 91, 73, 0.35);
    color: #fff;
}
.sp-section-content a.sp-nearby-btn:active {
    transform: translateY(0);
}
.sp-section-content a.sp-nearby-btn i:first-child {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.85);
}
.sp-section-content a.sp-nearby-btn span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.nightmode .sp-section-content a.sp-nearby-btn {
    background: linear-gradient(135deg, #3a6b56 0%, #4a7d66 100%);
}
.nightmode .sp-section-content a.sp-nearby-btn:hover {
    background: linear-gradient(135deg, #4a7d66 0%, #5a8f76 100%);
}

#side-panel .exit-button { display: none; }
.fav-button { display: none; }
.side-panel-tile-title { display: none; }
.side-panel-tile-content.icons { display: none; }
.side-panel-tile { display: none; }
.filter-panel-tile-body { width: calc(100% - 20px); }
.checkbox-holder, .checkbox { display: none; }
.filter-item[data-kind="favorite"] { display: none; }

.floating-holder {
    position: absolute;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-wrap: nowrap;
    height: var(--button-height);
    margin: 0;
}

.floating-holder.filters {
    position: absolute;
    top: calc(var(--navbar-height) + 12px);
    left: 12px;
    z-index: 990;
    margin: 0;
    cursor: pointer;
    border: none;
    border-radius: 50px;
    background: #2f5b49;
    box-shadow: 0 4px 20px rgba(47, 91, 73, 0.28);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.floating-holder.location-container {
    position: absolute;
    top: calc(var(--navbar-height) + 12px);
    right: 12px;
    z-index: 990;
}

.floating-holder.filters:hover {
    background: #244839;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(47, 91, 73, 0.35);
}
.floating-holder.filters:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(47, 91, 73, 0.25);
}
.floating-holder.filters.has-active-filters {
    background: #1a3a2c;
}

.location-btn, .map-location-button {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    border-radius: 50% !important;
    background: #2f5b49 !important;
    color: #fff !important;
    border: none !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 20px rgba(47, 91, 73, 0.28);
    transition: background 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
    font-size: 16px;
    padding: 0 !important;
    margin: 0;
}

.location-btn:hover, .map-location-button:hover {
    background: #244839 !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(47, 91, 73, 0.35);
}

.location-btn:active, .map-location-button:active {
    transform: translateY(0);
    box-shadow: 0 4px 16px rgba(47, 91, 73, 0.25);
}

.location-btn:disabled, .map-location-button:disabled {
    background: #244839 !important;
    opacity: 0.8;
    cursor: not-allowed;
}

.location-btn i, .map-location-button i {
    color: #fff !important;
}

.floating-holder.user-location .map-location-button {
    position: static;
    width: 44px;
    height: 44px;
}

.floating-holder.user-location {
    position: absolute;
    bottom: 80px;
    right: 9px;
    z-index: 995;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s ease;
}

.summary-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #2f5b49;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
    font-size: 15px;
    padding: 0;
    margin: 0;
}

.nightmode .summary-btn {
    background: #1a1a1a;
    color: #5bb286;
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
}

.summary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 14px rgba(47, 91, 73, 0.25);
    background: #2f5b49;
    color: #fff;
    border-color: #2f5b49;
}

.summary-btn.active {
    background: #2f5b49;
    color: #fff;
    border-color: #2f5b49;
}

.floating-button {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    text-wrap: nowrap;
    border-radius: 50px;
    height: 100%;
    width: 100%;
    gap: 8px;
    padding: 0 24px;
    cursor: pointer;
    border: none;
    background: none;
    outline: none;
    font-family: inherit;
}
.floating-button-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 13px;
    flex-shrink: 0;
    transition: background 0.25s ease, transform 0.25s ease;
}
.floating-holder.filters:hover .floating-button-icon {
    background: rgba(255, 255, 255, 0.22);
    transform: scale(1.05);
}
.floating-button-text {
    font-family: "Jost", sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    display: flex;
    align-items: center;
    letter-spacing: 0.3px;
}
.floating-button-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 10px;
    background: #f08b24;
    color: #fff;
    font-family: "Jost", sans-serif;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
    margin-left: 2px;
    animation: badgePop 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes badgePop {
    0% { transform: scale(0); }
    100% { transform: scale(1); }
}

.user-location-marker {
    position: relative;
}
.user-location-dot {
    position: absolute;
    left: 9px;
    top: 9px;
    width: 12px;
    height: 12px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: #325a39;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}
.user-location-pulse {
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(50, 90, 57, .22);
    animation: userLocationPulse 1.8s ease-out infinite;
}
@keyframes userLocationPulse {
    0% {
        transform: scale(.65);
        opacity: .9;
    }
    100% {
        transform: scale(1.55);
        opacity: 0;
    }
}

:root {
    --filter-panel-radius: 24px;
    --filter-section-gap: 4px;
}

#filter-panel {
    position: absolute;
    top: var(--navbar-height);
    height: calc(100% - var(--navbar-height) - 8px);
    width: 408px;
    max-width: calc(100vw - 8px);
    margin: 4px;
    border-radius: var(--filter-panel-radius);
    background: var(--background-color);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    z-index: -999;
    opacity: 0;
    transition: opacity 0.15s ease, transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateY(8px) scale(0.98);
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.16), 0 4px 16px rgba(15, 23, 42, 0.06);
}
#filter-panel.opened {
    transform: translateY(0) scale(1);
}

#filter-panel-header {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    min-height: 56px;
    border-bottom: 1px solid var(--param-divider-color);
    flex-shrink: 0;
}
#filter-panel-header-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
#filter-panel-header-left i {
    font-size: 16px;
    color: #2f5b49;
    opacity: 0.8;
}
#filter-panel-title {
    font-family: "Jost", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: -0.2px;
}
#filter-panel-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: var(--text-color-mid);
    font-size: 18px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.2s;
}
#filter-panel-close:hover {
    background: var(--hover-color);
    color: var(--text-color);
    transform: rotate(90deg);
}

#filter-panel-body {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}
#filter-panel-body::-webkit-scrollbar {
    width: 5px;
}
#filter-panel-body::-webkit-scrollbar-track {
    background: transparent;
}
#filter-panel-body::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 10px;
}
#filter-panel-body:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.12);
}

.filter-section {
    padding: 0 16px;
    margin: 6px 0;
}
.filter-section-header {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 8px 10px;
}
.filter-section-icon {
    font-size: 13px;
    color: #2f5b49;
    opacity: 0.7;
    width: 20px;
    text-align: center;
}
.filter-section-header span {
    font-family: "Jost", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--text-color);
    letter-spacing: 0.2px;
    text-transform: uppercase;
}
.filter-section-body {
    padding: 4px 0;
}

.filter-fav-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--open-param-color);
    cursor: pointer;
    transition: background 0.2s;
    user-select: none;
}
.filter-fav-toggle:hover {
    background: var(--hover-color);
}
.filter-fav-toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.88rem;
    font-weight: 500;
    color: var(--text-color);
}
.filter-fav-toggle-label i {
    color: #e74c3c;
    font-size: 14px;
    opacity: 0.6;
    transition: opacity 0.2s, transform 0.2s;
}
.filter-fav-toggle.active .filter-fav-toggle-label i {
    opacity: 1;
    transform: scale(1.15);
}

.filter-switch {
    position: relative;
    width: 44px;
    height: 24px;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.2);
    transition: background 0.3s ease;
    flex-shrink: 0;
    cursor: pointer;
}
.nightmode .filter-switch {
    background: rgba(255, 255, 255, 0.15);
}
.filter-switch.active {
    background: #2f5b49;
}
.filter-switch-knob {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.filter-switch.active .filter-switch-knob {
    transform: translateX(20px);
}

.filter-rating-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 50px;
    background: var(--open-param-color);
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-color-mid);
}
.filter-chip:hover {
    background: var(--hover-color);
    border-color: rgba(47, 91, 73, 0.15);
    color: var(--text-color);
}
.filter-chip.selected {
    background: #eaf6ef;
    border-color: #2f5b49;
    color: #1a3a2c;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(47, 91, 73, 0.12);
}
.nightmode .filter-chip.selected {
    background: rgba(47, 91, 73, 0.3);
    border-color: #4a7d66;
    color: #fff;
}
.filter-chip-text {
    line-height: 1;
}

.filter-dynamic-section {
    padding: 0 16px;
    margin: 6px 0;
}
.filter-dynamic-section .filter-section-body {
    padding: 0 0 4px;
}
.filter-chip-group {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.filter-chip.item {
    font-size: 0.8rem;
    padding: 7px 14px;
    background: var(--open-param-color);
    border: 1.5px solid transparent;
    color: var(--text-color-mid);
}
.filter-chip.item:hover {
    border-color: rgba(47, 91, 73, 0.2);
    background: rgba(47, 91, 73, 0.06);
    color: var(--text-color);
}
.filter-chip.item.selected {
    background: #eaf6ef;
    border-color: #2f5b49;
    color: #1a3a2c;
    box-shadow: 0 2px 8px rgba(47, 91, 73, 0.1);
}
.nightmode .filter-chip.item.selected {
    background: rgba(47, 91, 73, 0.3);
    border-color: #4a7d66;
    color: #fff;
}

.filter-section-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    margin-top: 8px;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: #2f5b49;
    font-family: "Jost", sans-serif;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}
.filter-section-action:hover {
    background: rgba(47, 91, 73, 0.08);
}
.filter-section-action i {
    font-size: 11px;
}

#filter-panel-footer {
    display: flex;
    gap: 10px;
    padding: 14px 20px;
    border-top: 1px solid var(--param-divider-color);
    flex-shrink: 0;
    background: var(--background-color);
}
#filter-panel-clear,
#filter-panel-submit {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 14px;
    font-family: "Jost", sans-serif;
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
    outline: none;
    letter-spacing: 0.2px;
}
#filter-panel-clear {
    background: transparent;
    color: var(--text-color-mid);
    border: 1.5px solid var(--param-divider-color);
}
#filter-panel-clear:hover {
    background: var(--hover-color);
    color: var(--text-color);
    border-color: rgba(0, 0, 0, 0.2);
}
.nightmode #filter-panel-clear:hover {
    border-color: rgba(255, 255, 255, 0.25);
}
#filter-panel-submit {
    background: #2f5b49;
    color: #fff;
    box-shadow: 0 4px 16px rgba(47, 91, 73, 0.25);
}
#filter-panel-submit:hover {
    background: #244839;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(47, 91, 73, 0.35);
}
#filter-panel-submit:active {
    transform: translateY(0);
}
.nightmode #filter-panel-submit {
    background: #3a6b56;
}
.nightmode #filter-panel-submit:hover {
    background: #4a7d66;
}
.filter-panel-tile-footer {
    display: none;
}
.filter-panel-tile {
    display: none;
}

#filter-panel .exit-button {
    display: none;
}

#image-panel {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100vw;
    margin: 0;
    padding: 20px;
    border-radius: 0;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    overflow: hidden;
    z-index: -9999;
    opacity: 0;
    transition: opacity 0.3s ease, z-index 0.3s step-end;
    display: flex;
    flex-direction: row;
    box-sizing: border-box;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

#image-panel.opened {
    z-index: 10000;
    opacity: 1;
    transition: opacity 0.3s ease, z-index 0s step-start;
}

#image-panel-sidebar {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 180px;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    gap: 12px;
    padding-right: 10px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

#image-panel-sidebar::-webkit-scrollbar {
    width: 4px;
}
#image-panel-sidebar::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
}

#image-panel-sidebar div {
    width: 100%;
    aspect-ratio: 4/3;
    min-height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    position: relative;
    opacity: 0.5;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

#image-panel-sidebar div:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

#image-panel-sidebar div.active {
    opacity: 1;
    border-color: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

#image-panel-sidebar div img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#image-panel-viewer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-radius: 16px;

    margin-right: 200px;
}

#image-panel-viewer img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

#image-panel .exit-button {
    position: absolute;
    top: 25px;
    right: 25px;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10001;
    backdrop-filter: blur(4px);
}

#image-panel .exit-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

@media (max-aspect-ratio: 13/16) {
    #image-panel {
        flex-direction: column-reverse;
        padding: 60px 15px 20px;
    }

    #image-panel-sidebar {
        flex-direction: row;
        width: 100%;
        height: 80px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 0 10px 0;
        justify-content: flex-start;
    }

    #image-panel-sidebar div {
        width: 100px;
        height: 70px;
        flex-shrink: 0;
    }

    #image-panel-viewer {
        margin-right: 0;
        width: 100%;
    }

    #image-panel .exit-button {
        top: 15px;
        right: 15px;
        width: 38px;
        height: 38px;
    }
}

@media (min-aspect-ratio: 9/16) and (max-aspect-ratio: 1) {

}

@media  (max-aspect-ratio: 13/16) {
    :root {

    }
    #navbar {
        padding: 0 10px;
    }
    #logo {
        display: none;
    }
    #logo-small {
        display: block;
    }
    .nav-primary-links {
        display: none;
    }
    .nav-theme-btn span {
        display: none;
    }
    .nav-theme-btn i {
        font-size: 16px;
    }
    #user-first-name {
        display: none;
    }
    .param-item-small[data-value="submit"] i {
        display: block;
    }
    .param-item-small[data-value="submit"] span {
        display: none;
    }
    #settings-button {
        padding-right: 10px;
    }
    #city-selector-holder {
        width: calc(100vw - 40px);
    }
    #side-panel, #filter-panel {
        width: calc(100vw - 8px);
        opacity: 0;
        z-index: -999;
    }
    .leaflet-tooltip-pane .leaflet-tooltip {
        max-width: 280px!important;
    }

}

.custom-pin-container {
    width: 36px;
    height: 36px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent !important;
    border: none !important;
}

.custom-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0px 3px 8px rgba(0, 0, 0, 0.3);
    border: 2px solid #fff;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease;
}

.custom-pin i {
    transform: rotate(45deg);
    color: #fff;
    font-size: 13px;
}

.custom-pin-container:hover .custom-pin {
    transform: rotate(-45deg) scale(1.2);
    box-shadow: 0px 5px 12px rgba(0, 0, 0, 0.4);
    z-index: 99999;
}

.pin-camp { background-color: #2e7d32; }
.pin-picnic { background-color: #ef6c00; }
.pin-service { background-color: #0288d1; }
.pin-parking { background-color: #37474f; }
.pin-rv { background-color: #d84315; }
.pin-nature { background-color: #4caf50; }
.pin-rest { background-color: #00897b; }
.pin-offroad { background-color: #8d6e63; }
.pin-farm { background-color: #f57f17; }
.pin-museum { background-color: #6a1b9a; }
.pin-van { background-color: #ff6f00; box-shadow: 0 0 10px rgba(255, 111, 0, 0.6); }
.pin-default { background-color: #e53935; }

.map-legend {
    position: relative;
    background: var(--background-color);
    border: var(--border-color);
    border-radius: 10px;
    padding: 10px 10px 6px 10px;
    box-shadow: var(--shadow-color);
    font-family: var(--font-family);
    font-size: 10px;
    color: var(--text-color);
    display: grid;
    grid-template-columns: repeat(2, 110px);
    gap: 2px 8px;
    pointer-events: auto;
}

.legend-close-btn {
    position: absolute;
    top: 0px;
    right: 4px;
    background: transparent;
    border: none;
    font-size: 14px;
    font-weight: bold;
    color: var(--text-color);
    cursor: pointer;
    opacity: 0.5;
    transition: opacity 0.2s;
    padding: 0 4px;
    line-height: 1;
    z-index: 10;
}

.legend-close-btn:hover {
    opacity: 0.9;
}

.map-legend-toggle {
    background: var(--background-color);
    border: var(--border-color);
    border-radius: 50px;
    padding: 6px 12px;
    box-shadow: var(--shadow-color);
    font-family: var(--font-family);
    font-size: 11px;
    font-weight: 500;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    pointer-events: auto;
    transition: background-color 0.2s;
    border: var(--border-color);
}

.map-legend-toggle:hover {
    background: var(--hover-color);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 26px;
}

.legend-item.full-width {
    grid-column: span 2;
}

.legend-item span {
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.legend-icon-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    transform: scale(0.65);
    transform-origin: center;
    flex-shrink: 0;
}

.legend-cluster-icon {
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.legend-cluster-icon div {
    width: 20px !important;
    height: 20px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.legend-cluster-icon span {
    font-size: 9px !important;
    font-weight: bold !important;
    line-height: 1 !important;
}

.legend-pin {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}

.leaflet-control-attribution {
    display: none !important;
}