html {
    height: 100%;
}
body {
    touch-action: none;
    position: fixed;
    width: 100%;
    height: 100%;
    margin: 0; 
    padding: 0; 
    font-family: Arial, sans-serif;
}
body.terms-visible {
    overflow: auto;
    -webkit-overflow-scrolling: touch;
}
#map {
    position: absolute;
    top: 60px;
    bottom: 0;
    width: 100%;
    height: calc(100% - 60px);
    z-index: 1;
    touch-action: auto;
    -webkit-overflow-scrolling: touch;
}
.leaflet-control-container {
    z-index: 1000;
    pointer-events: auto;
}
.leaflet-control-zoom {
    z-index: 1000;
}
.leaflet-popup-close-button {
    z-index: 1000;
}
.control-panel {
    position: fixed;
    top: 72px;
    right: 12px;
    z-index: 1999;
    background: rgba(255, 255, 255, 0.95);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0,0,0,0.2);
    max-width: 300px;
    width: calc(100% - 24px);
    max-height: calc(100vh - 180px);
    overflow-y: auto;
    transition: transform 0.3s ease;
    transform: translateX(0);
    overflow-x: hidden;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}
.control-panel::-webkit-scrollbar {
    width: 8px;
}
.control-panel::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 4px;
}
.control-panel::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 4px;
}
.control-panel::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.3);
}
.control-panel.collapsed {
    transform: translateX(calc(100% + 24px));
}
.panel-toggle {
    position: fixed;
    top: 92px;
    right: 10px;
    z-index: 2000;
    width: 40px;
    height: 40px;
    background: #ff4444;
    border: 2px solid #cc0000;
    border-radius: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    color: white;
    font-size: 24px;
    font-weight: bold;
    line-height: 1;
    pointer-events: auto;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    transition: right 0.3s ease;
}
.panel-toggle span {
    transition: transform 0.3s ease;
}
.panel-toggle.collapsed span {
    transform: rotate(180deg);
}
.panel-toggle:hover {
    background: #ff2121;
}
.panel-toggle.collapsed {
    right: 10px;
}
.panel-toggle:not(.collapsed) {
    right: 342px;
}
.control-panel-content {
    position: relative;
    width: 100%;
}
.location-control {
    top: 190px;
    position: absolute;
    left: 12px;
    z-index: 1000;
    background: white;
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    overflow: hidden;
}
.location-btn {
    background: white;
    color: white;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
    width: 30px;
    height: 30px;
}
.location-btn:hover {
    background: #dfdfdf;
}
.location-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
.location-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}
.click-marker-btn {
    border-radius: 4px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    overflow: hidden;
    top: 158px;
    position: absolute;
    left: 12px;
    z-index: 1000;
    background: white;
    border: none;
    padding: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    transition: all 0.3s;
    width: 30px;
    height: 30px;
}
.click-marker-btn:hover {
    background: #dfdfdf;
}
.click-marker-btn.active {
    background: #dfdfdf;
    box-shadow: 0 0 15px rgba(243, 61, 37, 0.671);
}
.click-marker-btn.active svg path {
    fill: #E53935;
}
.click-marker-btn.active svg circle:nth-of-type(1) {
    fill: #fff;
}
.click-marker-btn.action svg circle:nth-of-type(2) {
    fill: #E53935;
}
.click-marker-btn.active svg circle:nth-of-type(3) {
    fill: #1fce28;
}
.click-marker-btn.active svg rect {
    fill: #f0f0f0;
}
.click-marker-btn svg {
    width: 50px;
    height: 50px;
    fill: currentColor;
}
.scan-btn {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    margin-bottom: 10px;
    transition: background-color 0.3s;
}
.scan-btn:hover { background: #c0392b; }
.scan-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.beta-badge {
    background: #ff6b35;
    color: white;
    font-size: 10px;
    font-weight: bold;
    padding: 2px 6px;
    border-radius: 10px;
    position: absolute;
    top: 7%;
    left: -2px;
    transform: translateY(-50%);
    border: 1px solid #cc5500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    z-index: 1;
}
.progress-container { margin-top: 10px; }
.progress-text { margin-bottom: 5px; font-size: 14px; color: #2c3e50; }
.result-marker {
    stroke: black;
    stroke-width: 1;
    opacity: 0.9;
}
.scan-info { 
    font-size: 13px; 
    margin-top: 5px; 
    color: #34495e;
    line-height: 1.4;
}
.radius-control, .score-range-control {
    margin: 15px 0;
    padding: 10px;
    background: rgba(236, 240, 241, 0.8);
    border-radius: 5px;
}
.control-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
    color: #2c3e50;
    font-weight: 500;
}
.slider { 
    width: 100%; 
    margin: 5px 0;
    -webkit-appearance: none;
    appearance: none;
    height: 5px;
    border-radius: 5px;
    background: #bdc3c7;
    outline: none;
}
.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #e74c3c;
    cursor: pointer;
}
.slider::-moz-range-thumb {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #e74c3c;
    cursor: pointer;
}
.marker-popup {
    position: relative;
    padding-top: 15px;
    font-family: Arial, sans-serif;
    max-height: 6.55in;
    overflow-y: auto;
    padding: 10px 10px 10px 10px;
}

.marker-popup::-webkit-scrollbar {
    width: 6px;
}

.marker-popup::-webkit-scrollbar-track {
    background: transparent;
}

.marker-popup::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.3);
    border-radius: 3px;
}

.marker-popup::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.5);
}
.marker-popup h3 {
    margin: -10px 0 -20px 0;
    color: #2c3e50;
    top: 0;
    background: transparent;
    padding: 10px 0;
    z-index: 1;
    text-align: center;
}
.marker-popup .streetview-preview {
    width: 100%;
    height: 200px;
    margin: 10px 0;
    border-radius: 4px;
    object-fit: cover;
}
.marker-popup p {
    margin: 5px 0;
    color: #34495e;
}
.marker-popup .reasons {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}
.marker-popup .reason {
    color: #e74c3c;
    font-size: 0.9em;
    margin: 3px 0;
}
.leaflet-popup-content-wrapper {
    padding: 0;
    overflow: hidden;
}
.leaflet-popup-content {
    margin: 0;
    width: 400px;
}
.leaflet-popup {
    margin-bottom: 0;
}
.tag-filters {
    margin: 15px 0;
    padding: 10px;
    background: rgba(236, 240, 241, 0.8);
    border-radius: 5px;
}
.tag-filters h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}
.tag-checkbox {
    margin: 5px 0;
}
.tag-checkbox label {
    display: flex;
    align-items: center;
    cursor: pointer;
}
.tag-checkbox input {
    margin-right: 8px;
}
.google-maps-link {
    display: inline-block;
    margin-top: 10px;
    padding: 5px 10px;
    background: #4285f4;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 0.9em;
}
.google-maps-link:hover {
    background: #3367d6;
}
.map-buttons-container {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}
.map-btn {
    flex: 1;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 8px;
    font-size: 12px;
    text-align: center;
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}
.map-btn.maps {
    background: linear-gradient(145deg, #4285F4, #34A853);
    color: white;
}
.map-btn.earth {
    background: linear-gradient(145deg, #EA4335, #FBBC05);
    color: white;
}
.map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    text-decoration: none;
}
.map-btn.maps:hover {
    background: linear-gradient(145deg, #3367D6, #2D9248);
}
.map-btn.earth:hover {
    background: linear-gradient(145deg, #D33426, #F4B400);
}
.map-btn:active {
    transform: translateY(1px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.map-btn.maps::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M12 2C8.13 2 5 5.13 5 9c0 5.25 7 13 7 13s7-7.75 7-13c0-3.87-3.13-7-7-7zm0 9.5c-1.38 0-2.5-1.12-2.5-2.5s1.12-2.5 2.5-2.5 2.5 1.12 2.5 2.5-1.12 2.5-2.5 2.5z"/></svg>');
    background-size: contain;
}
.map-btn.earth::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="white" d="M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-1 17.93c-3.95-.49-7-3.85-7-7.93 0-.62.08-1.21.21-1.79L9 15v1c0 1.1.9 2 2 2v1.93zm6.9-2.54c-.26-.81-1-1.39-1.9-1.39h-1v-3c0-.55-.45-1-1-1H8v-2h2c.55 0 1-.45 1-1V7h2c1.1 0 2-.9 2-2v-.41c2.93 1.19 5 4.06 5 7.41 0 2.08-.8 3.97-2.1 5.39z"/></svg>');
    background-size: contain;
}
.map-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}
.map-btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}
@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    100% {
        transform: scale(20, 20);
        opacity: 0;
    }
}
.result-card {
    display: flex;
    flex-direction: column;
}
.result-content {
    flex: 1;
}
.result-footer {
    margin-top: auto;
}
.picture-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    background-color: #2e65cc;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s ease;
    box-sizing: border-box;
    cursor: pointer;
}
.picture-btn:hover {
    background-color: #4579d8;
}
.save-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin-top: 8px;
    background-color: #2ecc71;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    border: none;
    font-size: 14px;
    text-align: center;
    transition: all 0.2s ease;
    box-sizing: border-box;
    cursor: pointer;
}
.save-btn:hover {
    background-color: #27ae60;
}
.save-btn.saved {
    background-color: #95a5a6;
}
.saved-places {
    margin-top: 15px;
    padding: 10px;
    background: rgba(236, 240, 241, 0.8);
    border-radius: 5px;
}
.discord-section {
    margin-top: 15px;
    padding: 10px;
    background: rgba(236, 240, 241, 0.8);
    border-radius: 5px;
}
.discord-section h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}
.discord-widget {
    width: 100%;
    height: 500px;
    border: none;
    border-radius: 4px;
    overflow: hidden;
}
@media (max-width: 768px) {
    .discord-widget {
        height: 400px;
    }
}
.discord-button {
    position: fixed;
    bottom: 20px;
    right: 5px;
    width: 48px;
    height: 48px;
    background: #5865F2;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
    padding: 0;
    border: none;
}
.discord-button:hover {
    transform: scale(1.1);
    background: #4752C4;
}
.discord-button img {
    width: 24px;
    height: 24px;
    filter: brightness(0) invert(1);
}
.discord-popup {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 350px;
    height: 500px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 999;
}
.discord-button:hover + .discord-popup,
.discord-popup:hover {
    opacity: 1;
    visibility: visible;
}
.travel-time {
    margin: 5px 0;
    font-size: 0.9em;
}
.travel-time-label {
    font-weight: bold;
    color: #2c3e50;
}
.travel-time-value {
    color: #e74c3c;
}
@media (max-width: 768px) {
    .discord-popup {
        width: 300px;
        height: 400px;
        bottom: 80px;
        right: 10px;
    }
}
.control-panel-ad {
    width: 300px;
    max-width: 100%;
    margin: 0 auto;
}
#ezoic-pub-ad-placeholder-115 {
    width: 300px;
    height: auto;
    min-height: 0;
}
.saved-places h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
}
.saved-place {
    padding: 8px;
    margin: 5px 0;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.saved-place:hover {
    background: #f5f5f5;
}
.saved-place .info {
    flex: 1;
}
.saved-place .name {
    font-weight: bold;
    color: #2c3e50;
}
.saved-place .score {
    color: #e74c3c;
    font-size: 0.9em;
}
.saved-place .actions {
    display: flex;
    gap: 8px;
}
.saved-place .action-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
}
.saved-place .action-btn:hover {
    background: rgba(0,0,0,0.1);
}
.saved-place .action-btn.edit {
    color: #3498db;
}
.saved-place .action-btn.delete {
    color: #e74c3c;
}
.saved-place .label {
    font-size: 0.8em;
    color: #7f8c8d;
    margin-top: 2px;
    font-style: italic;
}
.edit-label-input {
    width: 100%;
    padding: 4px;
    margin-top: 4px;
    border: 1px solid #bdc3c7;
    border-radius: 4px;
    font-size: 0.9em;
}
.search-circle {
    stroke: #3498db;
    stroke-width: 2;
    fill: #3498db;
    fill-opacity: 0.1;
}
.osm-toggle, .pab-toggle, .wiki-toggle {
    position: fixed;
    bottom: 12px;
    z-index: 2000;
    width: 40px;
    height: 40px;
    border: 2px solid #ccc;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    color: #333;
    font-size: 12px;
    font-weight: bold;
    line-height: 1;
    pointer-events: auto;
    background: white;
    transition: all 0.2s;
}
.osm-toggle { left: 60px; }
.pab-toggle { left: 108px; }
.wiki-toggle { left: 156px; }
.osm-toggle:hover, .pab-toggle:hover, .wiki-toggle:hover {
    background: #f5f5f5;
    border-color: #999;
}
.osm-toggle.active {
    background: #fff8e1;
    border-color: #dec054;
    color: #a68a2e;
}
.pab-toggle.active {
    background: #fff3e0;
    border-color: #ff7700;
    color: #cc5500;
}
.wiki-toggle.active {
    background: #f3e5f5;
    border-color: #8e44ad;
    color: #6c3483;
}

@media (max-width: 768px) {
    .control-panel {
        max-width: 280px;
        width: 280px;
        max-height: calc(100vh - 220px);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .panel-toggle {
        top: 92px;
        right: 3px;
    }
    .panel-toggle.collapsed {
        right: 3px;
    }
    .panel-toggle:not(.collapsed) {
        right: 322px;
    }
    .control-panel:not(.collapsed) ~ .logo,
    .control-panel:not(.collapsed) + .logo {
        display: none;
    }
    .control-panel.collapsed ~ .logo,
    .control-panel.collapsed + .logo {
        display: block;
    }
}
.logo {
    position: absolute;
    top: 70px;
    left: 10px;
    z-index: 2000;
    width: 100px;
    max-width: 150px;
    margin-bottom: 15px;
    display: block;
    pointer-events: none;
}
.leaflet-control-zoom {
    top: 150px;
}
.places-view {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 3000;
    display: none;
    overflow: visible;
}

.places-view.active {
    display: block;
}

.places-scroll-container {
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* Hide scrollbar but keep functionality */
.places-scroll-container::-webkit-scrollbar {
    display: none;
}

.places-scroll-container {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.places-scroll-container .place-container {
    height: 100%;
    width: 100%;
    display: block;
}

.places-scroll-container .place-container #placesCardsContainer {
    width: 100%;
    height: auto;
}

.place-card {
    height: 100vh;
    width: 100%;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

/* Card streetview container */
.card-streetview-container {
    height: 50%;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
}

.card-streetview-container .streetview-preview-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.card-streetview-container .streetview-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.place-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: block;
    scroll-snap-align: start;
    flex-shrink: 0;
}
.satellite-container {
    height: 50%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.streetview-container {
    height: 50%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}
.streetview-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(0,0,0,0.5);
    color: white;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: all 0.3s;
}
.streetview-nav:hover {
    background: rgba(0,0,0,0.7);
    transform: translateY(-50%) scale(1.1);
}
.streetview-nav.left {
    left: 10px;
}
.streetview-nav.right {
    right: 352px;
}
.streetview-preview-container {
    position: relative;
    width: 100%;
    height: 100%;
}
.streetview-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s;
}
.streetview-loading {
    opacity: 0.5;
}
.streetview-angle-indicator {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0,0,0,0.7);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 10;
    white-space: nowrap;
}
.marker-streetview-container {
    position: relative;
    height: 200px;
    margin: 10px 0;
}
.picture-info-overlay {
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 8px;
    font-size: 11px;
    text-align: center;
    border-radius: 0 0 4px 4px;
    z-index: 5;
}
.picture-info-overlay-current {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 8px;
    font-size: 11px;
    text-align: center;
    border-radius: 0 0 4px 4px;
    z-index: 5;
}
.marker-streetview-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    background: rgba(0,0,0,0.7);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s;
}
.marker-streetview-nav:hover {
    background: rgba(0,0,0,0.9);
    transform: translateY(-50%) scale(1.1);
}
.marker-streetview-nav.left {
    left: 5px;
}
.marker-streetview-nav.right {
    right: 5px;
}
.marker-streetview-angle {
    position: absolute;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background: rgba(0,0,0,0.7);
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 12px;
    z-index: 10;
    white-space: nowrap;
}
.place-info {
    position: absolute;
    right: 0;
    top: 0;
    width: 300px;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 20px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 2;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}

/* Custom scrollbar for place-info */
.place-info::-webkit-scrollbar {
    width: 6px;
}

.place-info::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.place-info::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.place-info::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Allow touch actions inside place-info */
.place-info * {
    touch-action: pan-y;
}
.place-info.active {
    transform: translateX(0);
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    z-index: 3001;
    display: flex;
    align-items: center;
    justify-content: center;
}
.swipe-indicator {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 24px;
    animation: swipe 1.5s infinite;
    display: none;
    z-index: 2;
}
@keyframes swipe {
    0% { transform: translateX(0); }
    50% { transform: translateX(-20px); }
    100% { transform: translateX(0); }
}
@media (max-width: 768px) {
    .place-info {
        position: fixed;
        top: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 20px;
        padding-top: 60px;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        touch-action: pan-y;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 2;
        box-sizing: border-box;
    }
    
    /* Allow touch actions inside place-info on mobile */
    .place-info * {
        touch-action: pan-y;
    }
    .place-info.active {
        transform: translateX(0);
    }
    .place-info h3 {
        margin-top: 0;
        padding-top: 0;
    }
    .place-info .info-section {
        margin: 10px 0;
        padding: 10px;
        background: rgba(236, 240, 241, 0.8);
        border-radius: 5px;
    }
    .place-info .maps-btn,
    .place-info .save-btn {
        margin: 10px 0;
        width: 100%;
        box-sizing: border-box;
    }
    .streetview-nav.right {
        right: 10px;
    }
    .swipe-indicator {
        display: none; 
    }
    .swipe-indicator.vertical {
        display: block;
        position: fixed;
        right: 50%;
        bottom: 20px;
        transform: translateX(50%);
        color: white;
        font-size: 24px;
        animation: swipeVertical 1.5s infinite;
        z-index: 2;
    }
}
.info-section {
    margin: 15px 0;
    padding: 10px;
    background: rgba(236, 240, 241, 0.8);
    border-radius: 5px;
}
.info-section h4 {
    margin: 0 0 10px 0;
    color: #2c3e50;
    font-size: 1.1em;
}
.info-row {
    display: flex;
    justify-content: space-between;
    margin: 5px 0;
    font-size: 0.9em;
}
.info-label {
    color: #7f8c8d;
    font-weight: 500;
}
.info-value {
    color: #2c3e50;
    text-align: right;
}
.reason {
    color: #e74c3c;
    font-size: 0.9em;
    margin: 3px 0;
}
.nav-controls {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3001;
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.nav-btn {
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50%;
    color: white;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}
.nav-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}
.swipe-indicator {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 24px;
    animation: swipe 1.5s infinite;
    display: none;
    z-index: 2;
}
.swipe-indicator.vertical {
    right: 50%;
    top: auto;
    bottom: 20px;
    transform: translateX(50%);
    animation: swipeVertical 1.5s infinite;
}
@keyframes swipeVertical {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}
@media (max-width: 768px) {
    .nav-controls {
        display: none;
    }
    .swipe-indicator {
        display: none; 
    }
    .swipe-indicator.vertical {
        display: block;
        position: fixed;
        right: 50%;
        bottom: 20px;
        transform: translateX(50%);
        color: white;
        font-size: 24px;
        animation: swipeVertical 1.5s infinite;
        z-index: 2;
    }
    .place-info {
        width: 100%;
        transform: translateX(100%);
    }
    .satellite-container {
        height: 50vh;
    }
    .streetview-container {
        height: 50vh;
    }
}
@media (max-width: 768px) {
    .places-view {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        background: #000;
        z-index: 3000;
        display: none;
        overflow: hidden;
    }
    .places-view.active {
        display: block;
    }
    .place-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 100vh;
        display: block;
        overflow: hidden;
    }
    .satellite-container {
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 50vh;
        z-index: 1;
    }
    .satellite-container #satelliteMap {
        width: 100%;
        height: 100%;
    }
    .streetview-container {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100vw;
        height: 50vh;
        z-index: 1;
    }
    .streetview-container img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .place-info {
        position: fixed;
        top: 0;
        right: 0;
        width: 100vw;
        height: 100vh;
        background: rgba(0, 0, 0, 0.2);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 20px;
        padding-top: 60px;
        overflow-y: auto;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        z-index: 2;
        box-sizing: border-box;
    }
    .place-info.active {
        transform: translateX(0);
    }
    .place-info h3 {
        margin-top: 0;
        padding-top: 0;
    }
    .place-info .info-section {
        margin: 10px 0;
        padding: 10px;
        background: rgba(236, 240, 241, 0.8);
        border-radius: 5px;
    }
    .place-info .map-buttons-container,
    .place-info .save-btn {
        margin: 10px 0;
        width: 100%;
        box-sizing: border-box;
    }
    .nav-controls {
        display: none;
    }
    .swipe-indicator {
        display: none; 
    }
    .swipe-indicator.vertical {
        display: block;
        position: fixed;
        right: 50%;
        bottom: 20px;
        transform: translateX(50%);
        color: white;
        font-size: 24px;
        animation: swipeVertical 1.5s infinite;
        z-index: 2;
    }
    .close-btn {
        position: fixed;
        top: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
        background: rgba(0, 0, 0, 0.5);
        border: none;
        border-radius: 50%;
        color: white;
        font-size: 24px;
        cursor: pointer;
        z-index: 3001;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}
.view-places-btn {
    z-index: 1000;
    position: fixed;
    top: 114px;
    left: 7px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    overflow: visible;
    width: 40px;
    height: 40px;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.view-places-btn svg {
    width: 50px;
    height: 50px;
    fill: #555;
}
.view-places-btn:disabled {
    cursor: not-allowed;
}
.terms-popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.terms-content {
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    position: relative;
}
.terms-content h2 {
    color: #2c3e50;
    margin-top: 0;
    margin-bottom: 20px;
}
.terms-content p {
    color: #34495e;
    line-height: 1.6;
    margin-bottom: 15px;
}
.terms-content ul {
    color: #34495e;
    margin-bottom: 20px;
}
.terms-content li {
    margin-bottom: 10px;
}
.terms-accept-btn {
    background: #2ecc71;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    display: block;
    width: 100%;
    margin-top: 20px;
    transition: background-color 0.3s;
}
.terms-accept-btn:hover {
    background: #27ae60;
}
@media (max-width: 768px) {
    .terms-content h2 {
        font-size: 18px;
    }
    .terms-content p {
        line-height: 1.3;
        margin-bottom: 8px;
        font-size: 12px;
    }
    .terms-content ul {
        font-size: 12px;
    }
    .terms-content li {
        margin-bottom: 5px;
        line-height: 1.3;
    }
    .terms-accept-btn {
        padding: 8px 15px;
        font-size: 14px;
    }
    .swipe-indicator {
        bottom: 50px;
    }
}

.tutorial-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(2px);
}
.tutorial-content {
    background: #1a1a1a;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    padding: 25px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    border: 1px solid #333;
    color: #fff;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
}
.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #333;
    padding-bottom: 10px;
}
.tutorial-header h2 {
    color: #fff;
    margin: 0;
    font-size: 22px;
}
.tutorial-skip-btn {
    background: none;
    border: none;
    color: #ccc;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
}
.tutorial-skip-btn:hover {
    color: #fff;
}
.tutorial-body {
    margin-bottom: 20px;
}
.tutorial-slide {
    display: none;
    animation: fadeIn 0.3s ease-out;
}
.tutorial-slide.active {
    display: block;
}
.tutorial-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 15px;
}
.tutorial-slide h3 {
    color: #fff;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 20px;
}
.tutorial-slide p {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 20px;
}
.tutorial-controls {
    display: flex;
    gap: 10px;
    justify-content: space-between;
}
.tutorial-prev-btn, .tutorial-next-btn, .tutorial-finish-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}
.tutorial-prev-btn {
    background: #444;
    color: white;
}
.tutorial-prev-btn:hover {
    background: #555;
}
.tutorial-next-btn, .tutorial-finish-btn {
    background: #b9392a;
    color: white;
}
.tutorial-next-btn:hover, .tutorial-finish-btn:hover {
    background: #a03124;
}
.tutorial-progress {
    margin-top: 20px;
}
.progress-bar {
    width: 100%;
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 10px;
}
.progress-fill {
    height: 100%;
    background: #b9392a;
    width: 0%;
    transition: width 0.3s ease;
}
.progress-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}
.progress-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #555;
    transition: background-color 0.2s;
}
.progress-dot.active {
    background: #b9392a;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Interactive Tutorial Spotlight Styles */
.tutorial-spotlight-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.75);
    z-index: 9999;
    pointer-events: none;
    transition: all 0.3s ease;
}

.tutorial-highlight {
    position: fixed;
    border-radius: 8px;
    z-index: 10000;
    pointer-events: none;
    transition: all 0.3s ease;
    animation: pulseHighlight 2s infinite;
}

@keyframes pulseHighlight {
    0%, 100% {
        box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.75),
                    0 0 20px rgba(185, 57, 42, 0.5);
    }
    50% {
        box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.75),
                    0 0 30px rgba(185, 57, 42, 0.8);
    }
}

.tutorial-tooltip {
    position: fixed;
    background: #1a1a1a;
    color: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    max-width: 350px;
    max-height: 80vh;
    overflow-y: auto;
    z-index: 10001;
    border: 2px solid #b9392a;
    opacity: 0;
    transform: scale(0.9);
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .tutorial-tooltip {
        max-width: calc(100vw - 30px);
        min-width: 280px;
        width: auto;
        padding: 15px;
        font-size: 14px;
    }
    
    .tutorial-tooltip h3 {
        font-size: 16px !important;
    }
    
    .tutorial-tooltip p {
        font-size: 13px !important;
    }
    
    .tutorial-tooltip-btn {
        padding: 8px 12px !important;
        font-size: 12px !important;
    }
}

.tutorial-tooltip-btn {
    background: #b9392a;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.tutorial-tooltip-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.3);
}

.tutorial-tooltip-back {
    background: #444 !important;
}

.tutorial-tooltip-back:hover {
    background: #555 !important;
}

.tutorial-tooltip-skip {
    background: #666 !important;
}

.tutorial-tooltip-skip:hover {
    background: #777 !important;
}

.tutorial-tooltip-next {
    background: #b9392a !important;
}

.tutorial-tooltip-next:hover {
    background: #a03124 !important;
}

@media (max-width: 768px) {
    .tutorial-content {
        width: 95%;
        padding: 20px;
    }
    .tutorial-slide h3 {
        font-size: 18px;
    }
    .tutorial-slide p {
        font-size: 14px;
    }
    .tutorial-controls {
        flex-direction: column;
        gap: 8px;
    }
    .tutorial-prev-btn, .tutorial-next-btn, .tutorial-finish-btn {
        width: 100%;
    }
}
.abandoned-percentage {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    z-index: 1000;
}
.dot-indicators {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 1000;
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}
.dot.active {
    width: 12px;
    background: white;
}
@media (max-width: 768px) {
    .swipe-indicator {
        bottom: 50px;
    }
    .swipe-indicator.vertical {
        animation: none;
        opacity: 0;
        transition: opacity 0.3s ease;
    }
}
.place-info h3 {
    color: white !important;
}
.database-marker {
    background: none;
    border: none;
}
.database-marker svg {
    filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.7));
    transition: all 0.2s;
}
.database-marker:hover svg {
    transform: scale(1.2);
    filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.9));
}
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
}
.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 500px;
    position: relative;
}
.close-modal {
    position: absolute;
    right: 15px;
    top: 10px;
    font-size: 24px;
    cursor: pointer;
}
.add-place-btn {
    background: #3498db;
    color: white;
    border: none;
    width: 100%;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    margin-top: 8px;
}
.comment-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}
.comment {
    margin: 10px 0;
    padding: 10px;
    background: #f9f9f9;
    border-radius: 4px;
}
.comment p {
    margin: 5px 0 0;
}
.comment-actions {
    margin-top: 5px;
}
.comment-actions button {
    margin-right: 5px;
    padding: 2px 5px;
    font-size: 12px;
}
.add-comment-form textarea {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border-radius: 4px;
    border: 1px solid #ddd;
}
.rating {
    color: gold;
    white-space: nowrap;
    border: 1px solid #ff9800;
    border-radius: 12px;
    padding: 2px 6px;
    background: #fff8e1;
}
.delete-place-btn {
    display: block;
    width: 100%;
    padding: 10px;
    margin: 8px 0;
    background-color: #e74c3c;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s;
}
.delete-place-btn:hover {
    background-color: #c0392b;
}
.search-control {
    z-index: 1001;
    position: fixed;
    top: 70px;
    left: 7px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 24px;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    overflow: visible;
    display: flex;
    align-items: center;
}
.search-control.expanded {
    z-index: 1001;
    width: 320px;
    height: auto;
    min-height: 36px;
    padding: 4px 8px;
    border-radius: 18px;
}
.search-type-toggle {
    display: flex;
    gap: 4px;
    margin-bottom: 3px;
}
.search-type-btn {
    flex: 1;
    padding: 3px 6px;
    font-size: 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    background: #f5f5f5;
    cursor: pointer;
    transition: all 0.2s;
}
.search-type-btn:hover {
    background: #e5e5e5;
}
.search-type-btn.active {
    background: #2196F3;
    color: white;
    border-color: #1976D2;
}
.search-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
}
.search-icon svg {
    fill: #555;
}
.search-expanded {
    position: relative;
    flex-grow: 1;
    margin-left: 5px;
    display: none;
}
.search-control.expanded .search-expanded {
    display: block;
}
#searchInput {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
    background: transparent;
    border: none;
    outline: none;
    padding-left: 0;
}
.search-results {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    max-height: 250px;
    overflow-y: auto;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    display: none;
    z-index: 1002;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-y;
}
.search-results::-webkit-scrollbar {
    width: 6px;
}
.search-results::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
    border-radius: 3px;
}
.search-results::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 3px;
}
.search-results::-webkit-scrollbar-thumb:hover {
    background: rgba(0,0,0,0.3);
}
.search-control.has-results .search-results {
    display: block;
}
.search-result {
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    font-size: 14px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.search-result:hover {
    background: #f5f5f5;
}
.search-result:last-child {
    border-bottom: none;
}
.search-result .result-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.search-result .result-content {
    flex-grow: 1;
    min-width: 0;
}
.search-result .result-title {
    font-weight: 500;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result .result-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.search-result .result-title-row .result-title {
    flex: 1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result .result-title-row .result-distance {
    flex-shrink: 0;
    margin-left: 8px;
}
.search-result .result-subtitle-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
    margin-top: 2px;
}
.search-result .result-subtitle {
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.search-result .result-distance {
    font-size: 12px;
    color: #2196F3;
    white-space: nowrap;
    flex-shrink: 0;
    margin-left: 8px;
}
@media (max-width: 768px) {
    .search-control.expanded {
        width: calc(100% - 60px);
        left: 10px;
    }
    .search-results {
        max-height: 300px;
    }
}
.new-location-marker {
    stroke: #ac34db;
    stroke-width: 2;
    fill: #ac34db;
    fill-opacity: 0.8;
}
.place-info .comment-section h4 {
    color: white !important;
}
.share-btn {
    position: absolute;
    left: 0px;
    top: 10px;
    z-index: 9999;
    background: none;
    border: none;
    color: #ccc;
    font-size: 16px;
    cursor: pointer;
    transition: color 0.2s;
}
.share-btn:hover {
    color: #999;
}
.share-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.streetview-fullscreen-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
    z-index: 9999;
    display: none;
}
.streetview-fullscreen-container.active {
    display: block;
}
#streetviewFullscreenPano {
    width: 100%;
    height: 100%;
}
.streetview-fullscreen-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
}
.streetview-fullscreen-btn {
    position: absolute;
    top: 13px;
    right: 3px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 5px 5px;
    cursor: pointer;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}
.streetview-fullscreen-btn svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}
.placeview-fullscreen-btn {
    position: absolute;
    top: 10px;
    right: 355px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 10px 10px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 18px;
}
.placeview-fullscreen-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}
@media (max-width: 768px) {
    .placeview-fullscreen-btn {
        right: 3px;
    }
}

.limit-notification {
    position: fixed;
    top: 80px;
    right: 20px;
    background: #ff6b35;
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 2000;
    font-size: 14px;
    font-weight: 500;
    max-width: 280px;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    border-left: 4px solid #e55a2b;
}
.limit-notification.show {
    opacity: 1;
    transform: translateX(0);
}
.limit-notification .notification-content {
    display: flex;
    align-items: center;
    gap: 8px;
}
.limit-notification .notification-icon {
    font-size: 16px;
    flex-shrink: 0;
}
.limit-notification .notification-text {
    flex: 1;
}
.limit-notification .notification-close {
    background: none;
    border: none;
    color: white;
    font-size: 18px;
    cursor: pointer;
    padding: 0;
    margin-left: 8px;
    opacity: 0.8;
    transition: opacity 0.2s;
}
.limit-notification .notification-close:hover {
    opacity: 1;
}
@media (max-width: 768px) {
    .limit-notification {
        right: 10px;
        max-width: calc(100vw - 20px);
        font-size: 13px;
    }
}

.reportline {
    display: none !important;
}
#ezoic-pub-ad-placeholder-119 {
    display: none;
}
@media (min-width: 769px) {
    #ezoic-pub-ad-placeholder-119 {
        display: block;
    }
}
#mobile-ad {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    height: 50px;
    background: #fa7849b0;
}
@media (max-width: 1024px) {
    #mobile-ad {
        display: none;
        background: #00000000;
    }
    #map {
        bottom: 50px;
    }
}
@media (max-width: 768px) {
    .osm-toggle, .pab-toggle, .wiki-toggle, .discord-button {
        bottom: 62px;
    }
    #mobile-ad {
        display: block;
        background: #fa7849b0;
    }
}
.layer-toggle {
    position: fixed;
    bottom: 12px;
    left: 12px;
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 2000;
    transition: all 0.2s;
    padding: 6px;
}
.layer-toggle:hover {
    background: #f5f5f5;
    border-color: #ccc;
}
.layer-toggle.active {
    background: #e8f4fc;
    border-color: #2196F3;
}
.layer-toggle svg {
    width: 100%;
    height: 100%;
    color: #333;
}

.layer-options-panel {
    position: fixed;
    left: 12px;
    bottom: 60px;
    width: 320px;
    max-height: calc(100vh - 400px);
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.25);
    z-index: 2001;
    display: none;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    transition: opacity 0.25s ease, transform 0.25s ease, display 0.25s;
}
.layer-options-panel.active {
    display: flex;
    opacity: 1;
    transform: translateY(0) scale(1);
}
.layer-options-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
}
.layer-options-header h3 {
    margin: 0;
    font-size: 16px;
    color: #333;
}
.close-layer-panel {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}
.close-layer-panel:hover {
    color: #333;
}
.layer-options-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 10px;
    -webkit-overflow-scrolling: touch;
}
.layer-category {
    margin-bottom: 15px;
}
.layer-category h4 {
    font-size: 12px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 8px 0;
    padding: 0 5px;
}
.layer-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s;
    margin-bottom: 5px;
    position: relative;
}
.layer-option:hover {
    background: #f5f5f5;
}
.layer-option.active {
    background: #e8f4fc;
}
.layer-preview {
    width: 40px;
    height: 30px;
    border-radius: 4px;
    flex-shrink: 0;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.layer-preview.marker-preview {
    background: #f5f5f5;
    border: 1px solid #ccc;
}
.layer-preview.marker-preview svg {
    width: 24px;
    height: 24px;
    transform: translateY(2px);
}
.layer-option span {
    flex: 1;
    font-size: 14px;
    color: #333;
}
.layer-active-indicator {
    color: #2196F3;
    font-weight: bold;
    font-size: 16px;
    position: absolute;
    right: 18px;
}
.layer-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
}
.historical-badge {
    background: #2196F3;
    color: white;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 500;
}
.timeline-panel {
    position: fixed;
    bottom: 5px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30,30,30,0.95);
    border-radius: 12px;
    padding: 12px 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.4);
    z-index: 1001;
    display: none;
    flex-direction: column;
    gap: 10px;
    max-width: 1800px;
    width: calc(100% - 480px);
}
.timeline-panel.active {
    display: flex;
}
.timeline-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: white;
}
.timeline-header h4 {
    margin: 0;
    font-size: 14px;
}
.close-timeline {
    background: none;
    border: none;
    color: #aaa;
    font-size: 20px;
    cursor: pointer;
    padding: 0;
}
.close-timeline:hover {
    color: white;
}
.timeline-content {
    display: flex;
    align-items: center;
    gap: 5px;
    flex: 1;
}
.nav-arrow {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    color: white;
    font-size: 14px;
    touch-action: manipulation;
}
.nav-arrow:hover {
    background: rgba(255,255,255,0.3);
}
.nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.loading-spinner.loading {
    display: block;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.timeline-date {
    color: white;
    font-size: 13px;
    font-weight: bold;
    min-width: 100px;
    text-align: center;
    font-family: Arial, sans-serif;
}
.timeline-track {
    flex: 1;
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
    margin: 0 15px;
    cursor: pointer;
}
.timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 4px;
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%);
    border-radius: 2px;
}
.timeline-dots {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
}
.timeline-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    border: 2px solid rgba(0,0,0,0.3);
    transform: translateX(-50%);
    transition: all 0.2s;
    cursor: pointer;
    z-index: 3;
    touch-action: manipulation;
}
.timeline-dot.active {
    width: 12px;
    height: 12px;
    background: #1a73e8;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26,115,232,0.3);
    transform: translateX(-50%) scale(1.4);
}
.timeline-dot:hover {
    background: white;
    border-color: #1a73e8;
    transform: translateX(-50%) scale(1.3);
}
.imagery-info {
    color: #aaa;
    font-size: 12px;
    white-space: nowrap;
    margin-left: auto;
}
.timeline-container {
    display: none;
    position: fixed;
    bottom: 60px;
    left: 0;
    right: 0;
    z-index: 1001;
}
.timeline-container.active {
    display: block;
}
.timeline-panel-mobile {
    background: rgba(30,30,30,0.98);
    border-radius: 16px 16px 0 0;
    padding: 15px 12px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.4);
    left: 0;
    right: 0;
    width: 100%;
    bottom: 110px;
    position: fixed;
    transition: transform 0.3s ease, opacity 0.3s ease;
}
.timeline-panel-mobile.collapsed {
    transform: translateY(calc(100% + 60px));
    opacity: 0;
    pointer-events: none;
}
.timeline-panel-mobile .timeline-header-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.timeline-panel-mobile .timeline-header-mobile h4 {
    margin: 0;
    font-size: 14px;
    color: white;
}
.timeline-panel-mobile .timeline-header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}
.timeline-panel-mobile .imagery-count {
    color: #aaa;
    font-size: 12px;
}
.timeline-panel-mobile .collapse-timeline {
    background: none;
    border: none;
    color: #aaa;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}
.timeline-panel-mobile .collapse-timeline:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}
.timeline-panel-mobile .close-timeline {
    background: none;
    border: none;
    color: #aaa;
    font-size: 20px;
    cursor: pointer;
    padding: 0 5px;
}
.timeline-panel-mobile .close-timeline:hover {
    color: white;
}
.timeline-collapsed-btn {
    position: fixed;
    bottom: 63px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(30,30,30,0.98);
    border: none;
    border-radius: 20px;
    padding: 8px 16px;
    display: none;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.3);
    z-index: 1002;
    color: white;
    font-size: 14px;
}
.timeline-collapsed-btn:hover {
    background: rgba(50,50,50,0.98);
}
.timeline-collapsed-btn svg {
    width: 20px;
    height: 20px;
}
.timeline-collapsed-btn.visible {
    display: flex;
}
.timeline-panel-mobile .timeline-content-mobile {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 8px;
}
.timeline-panel-mobile .nav-group {
    display: flex;
    gap: 4px;
}
.timeline-panel-mobile .nav-arrow {
    width: 32px;
    height: 32px;
    background: rgba(255,255,255,0.15);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 14px;
}
.timeline-panel-mobile .nav-arrow:hover {
    background: rgba(255,255,255,0.3);
}
.timeline-panel-mobile .nav-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.timeline-panel-mobile .timeline-date {
    color: white;
    font-size: 16px;
    font-weight: bold;
    text-align: center;
    min-width: 80px;
}
.timeline-panel-mobile .timeline-track-container {
    position: relative;
    height: 36px;
    display: flex;
    align-items: center;
    margin: 0 5px;
}
.timeline-panel-mobile .timeline-line {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 3px;
    background: rgba(255,255,255,0.3);
    transform: translateY(-50%);
    border-radius: 2px;
}
.timeline-panel-mobile .timeline-dots {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
}
.timeline-panel-mobile .timeline-dot {
    position: absolute;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.8);
    border: 2px solid rgba(0,0,0,0.3);
    transform: translateX(-50%);
    cursor: pointer;
}
.timeline-panel-mobile .timeline-dot.active {
    background: #2196F3;
    border-color: #2196F3;
}
@media (max-width: 768px) {
    .layer-options-panel {
        left: 8px;
        top: auto;
        bottom: 110px;
        width: calc(100% - 15px);
        border-radius: 16px 16px 0 0;
    }
    .timeline-panel-mobile {
        padding: 10px 8px;
        width: calc(100% - 15px);
    }
    .timeline-panel-mobile .nav-arrow {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    .timeline-panel-mobile .timeline-date {
        font-size: 16px;
        min-width: 70px;
    }
    .timeline-panel-mobile .timeline-track {
        height: 45px;
        bottom: 5px;
        width: calc(100% - 40px);
    }
    .timeline-panel-mobile .timeline-dot {
        width: 14px;
        height: 14px;
    }
    .osm-toggle, .pab-toggle, .wiki-toggle, .layer-toggle {
        bottom: 62px;
    }
    .layer-toggle { left: 8px; }
    .osm-toggle { left: 56px; }
    .pab-toggle { left: 104px; }
    .wiki-toggle { left: 152px; }
}
@media (min-width: 769px) and (max-height: 500px) {
    .layer-options-panel {
        max-height: calc(100vh - 120px);
    }
}
