body {
    margin: 0;
    padding: 0;
    background-color: #e5e3df;
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    transition: background-color 0.3s ease;
}

/* Share and Favorite buttons - Light theme */
.share-btn,
.favorite-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    border-radius: 50%;
    transition: all 0.3s ease;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.share-btn {
    color: #6b7280;
}

.share-btn:hover,
.share-btn:focus {
    background-color: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
    transform: scale(1.1);
}

.share-btn:active {
    background-color: rgba(59, 130, 246, 0.2);
    color: #2563eb;
    transform: scale(1.05);
}

/* Touch devices - activate on tap */
@media (hover: none) and (pointer: coarse) {
    .share-btn:active {
        background-color: rgba(59, 130, 246, 0.15);
        color: #3b82f6;
        transform: scale(1.1);
    }
}

.favorite-btn {
    font-size: 1.1em;
}

.favorite-btn:hover,
.favorite-btn:focus {
    background-color: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
    transform: scale(1.1);
}

.favorite-btn:active {
    background-color: rgba(255, 107, 107, 0.2);
    color: #ff4d4d;
    transform: scale(1.05);
}

/* Touch devices - activate on tap */
@media (hover: none) and (pointer: coarse) {
    .favorite-btn:active {
        background-color: rgba(255, 107, 107, 0.15);
        color: #ff6b6b;
        transform: scale(1.1);
    }
}

.favorite-btn.active {
    color: #ff4d4d;
}

.favorite-btn.animate {
    animation: heartBeat 0.6s;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    14% { transform: scale(1.3); }
    28% { transform: scale(1); }
    42% { transform: scale(1.3); }
    70% { transform: scale(1); }
}

/* Dark theme styles */
body.dark-theme {
    background-color: #202124;
}

body.dark-theme .poi-search-panel {
    background: #303134;
    border-color: #5f6368;
    color: #e8eaed;
}

body.dark-theme #poi-search-input {
    color: #e8eaed;
}

body.dark-theme #poi-search-input::placeholder {
    color: #9aa0a6;
}

body.dark-theme .search-button {
    color: #9aa0a6;
}

body.dark-theme .search-button:hover {
    background-color: #3c4043;
    color: #e8eaed;
}

body.dark-theme .search-results {
    background: #303134;
    border-color: #5f6368;
}

body.dark-theme .search-result-item {
    border-color: #5f6368;
}

body.dark-theme .search-result-item:hover {
    background-color: #3c4043;
}

body.dark-theme .search-result-item h4 {
    color: #e8eaed;
}

body.dark-theme .search-result-item p {
    color: #9aa0a6;
}

/* Dark theme for Google Maps style results */
body.dark-theme .search-result-item-maps {
    border-color: #5f6368;
}

body.dark-theme .search-result-item-maps:hover {
    background-color: #3c4043;
}

body.dark-theme .category-badge:hover {
    background-color: #3c4043 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
}
body.dark-theme .category-badge.open-now:hover {
    background-color: #005613 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4) !important;
}

body.dark-theme .poi-name {
    color: #e8eaed;
}

body.dark-theme .rating-value {
    color: #e8eaed;
}

body.dark-theme .reviews-count {
    color: #9aa0a6;
}

body.dark-theme .poi-category {
    color: #9aa0a6;
}

body.dark-theme .poi-address {
    color: #9aa0a6;
}

body.dark-theme .poi-features {
    color: #9aa0a6;
}

body.dark-theme .poi-phone {
    color: #9aa0a6;
}

body.dark-theme .status-next-open {
    color: #9aa0a6;
}

body.dark-theme .star-empty {
    color: #5f6368;
}

body.dark-theme .poi-image {
    background-color: #5f6368;
}

body.dark-theme .poi-popup {
    background: #303134;
}

body.dark-theme .poi-popup-header {
    background: #303134;
    border-color: #5f6368;
}

body.dark-theme .poi-popup-title {
    color: #e8eaed;
}

body.dark-theme .poi-popup-close {
    color: #9aa0a6;
}

body.dark-theme .poi-popup-content {
    background: #303134;
}

body.dark-theme .poi-content {
    color: #e8eaed;
}

body.dark-theme .poi-meta {
    color: #9aa0a6;
}

body.dark-theme .poi-distance, body.dark-theme .poi-reviews, body.dark-theme .poi-stars {
    color: #e8eaed;
}

/* Hover effects for interactive POI elements - Light theme */
.poi-stars,
.poi-reviews {
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.poi-stars:hover {
    color: #fbbe24eb;
    transform: scale(1.05);
}

.poi-reviews:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

/* Dark theme hover effects */
body.dark-theme .poi-stars:hover {
    color: #fbbf24;
}

body.dark-theme .poi-reviews:hover {
    color: #8ab4f8;
}
body.dark-theme #poi-favorite-btn,
body.dark-theme .favorite-btn {
    color: #fabdbd;
    opacity: 0.72;
}
body.dark-theme #poi-favorite-btn:hover,
body.dark-theme .favorite-btn:hover {
    color: #ff6b6b;
    opacity: 0.94;
    background-color: rgba(255, 107, 107, 0.1);
    transform: scale(1.1);
}
body.dark-theme #poi-favorite-btn.active,
body.dark-theme .favorite-btn.active {
    color: #ff4d4d;
    opacity: 1;
}
body.dark-theme .share-btn {
    color: #9aa0a6;
}
body.dark-theme .share-btn:hover,
body.dark-theme .share-btn:focus {
    background-color: rgba(138, 180, 248, 0.15);
    color: #8ab4f8;
    transform: scale(1.1);
}
body.dark-theme .share-btn:active {
    background-color: rgba(138, 180, 248, 0.25);
    color: #aecbfa;
    transform: scale(1.05);
}
body.dark-theme .favorite-btn:active {
    background-color: rgba(255, 107, 107, 0.2);
    color: #ff4d4d;
    transform: scale(1.05);
}

/* Touch devices dark theme */
@media (hover: none) and (pointer: coarse) {
    body.dark-theme .share-btn:active {
        background-color: rgba(138, 180, 248, 0.2);
        color: #8ab4f8;
        transform: scale(1.1);
    }
    body.dark-theme .favorite-btn:active {
        background-color: rgba(255, 107, 107, 0.15);
        color: #ff6b6b;
        transform: scale(1.1);
    }
}
body.dark-theme .poi-status-phone {
    color: #9aa0a6;
}

body.dark-theme .rating-section {
    color: #e8eaed;
}

body.dark-theme .poi-popup-description {
    color: #9aa0a6;
}

body.dark-theme .poi-popup-details,
body.dark-theme .opening-day, body.dark-theme .opening-hours-list, body.dark-theme .opening-time {
    color: #9aa0a6;
}

body.dark-theme .poi-popup-link {
    color: #8ab4f8;
}

body.dark-theme .poi-popup-link:hover {
    color: #aecbfa;
}

body.dark-theme #category-filter-toggle {
    background: #303134;
    border-color: #5f6368;
    color: #9aa0a6;
}

body.dark-theme #category-filter-toggle:hover {
    background: #3c4043;
    color: #e8eaed;
}

details.maplibregl-ctrl-attrib {display:none !important;}
.maplibregl-ctrl-bottom-right .maplibregl-ctrl{
    margin:0 10px;
}
body.dark-theme #category-filter-list {
    background: #303134;
    border-color: #5f6368;
}

body.dark-theme .maplibregl-ctrl-group {
    background: #303134 !important;
    border-color: #5f6368 !important;
}

body.dark-theme .maplibregl-ctrl button {
    background-color: #303134 !important;
    color: #9aa0a6 !important;
}

body.dark-theme .maplibregl-ctrl button:hover {
    background-color: #3c4043 !important;
    color: #e8eaed !important;
}

body.dark-theme .maplibregl-ctrl-icon {
    filter: invert(0.8) brightness(1.2);
}

/* Dark theme category items */
body.dark-theme .category-item {
    --icon-bg: #5f6368;
    --icon-color: #9aa0a6;
    --text-color: #e8eaed;
}

body.dark-theme .category-item:hover {
    background-color: #3c4043 !important;
}

/* Light theme category items (default) */
body:not(.dark-theme) .category-item {
    --icon-bg: #f1f3f4;
    --icon-color: #5f6368;
    --text-color: #3c4043;
}
html, body { height: 100%;}
a{ text-decoration: none; color: inherit;}
button:hover{cursor: pointer;}

/* Google Maps satellite/terrain colors */
#map {
    background-color: #e5e3df;
}
#map {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 100%;
}
#map.fade /*, #poi-popup.fade, .reviews-sheet.fade*/ {opacity: 0.8;}
.maplibregl-ctrl-bottom-right {display: none;}
.maplibregl-ctrl-top-right {
    top: 46vh;
    z-index: 340;
}
.maplibregl-ctrl-top-right .maplibregl-ctrl {
    margin-right:20px;
}

/* Google Maps style navigation controls */
.maplibregl-ctrl-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    background: white !important;
    overflow: hidden !important;
}

/* Visually merge consecutive ctrl-groups into one block */
.maplibregl-ctrl-top-right .maplibregl-ctrl-group:has(+ .maplibregl-ctrl-group) {
    border-radius: 8px 8px 0 0 !important;
    border-bottom: none !important;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.15) !important;
}

.maplibregl-ctrl-top-right .maplibregl-ctrl-group:has(+ .maplibregl-ctrl-group) button:last-child {
    border-radius: 0 !important;
}

.maplibregl-ctrl-top-right .maplibregl-ctrl-group + .maplibregl-ctrl-group {
    margin-top: 0 !important;
    border-radius: 0 0 8px 8px !important;
    border-top: none !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
}

.maplibregl-ctrl-top-right .maplibregl-ctrl-group + .maplibregl-ctrl-group button:first-child,
.maplibregl-ctrl-top-right .maplibregl-ctrl-group + .maplibregl-ctrl-group button:only-child {
    border-radius: 0 !important;
}

.maplibregl-ctrl-top-right .maplibregl-ctrl-group + .maplibregl-ctrl-group button:last-child {
    border-radius: 0 0 8px 8px !important;
}

/* Dark theme merged groups */
body.dark-theme .maplibregl-ctrl-top-right .maplibregl-ctrl-group:has(+ .maplibregl-ctrl-group) {
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.4) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.dark-theme .maplibregl-ctrl-top-right .maplibregl-ctrl-group + .maplibregl-ctrl-group {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
    border-top: none !important;
}

/* Light theme — all ctrl buttons */
.maplibregl-ctrl button {
    background-color: white !important;
    color: #70757a !important;
    border: none !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s !important;
}

.maplibregl-ctrl button:hover {
    background-color: #f1f3f4 !important;
    color: #202124 !important;
}
.text-red-500{ color: rgb(105, 0, 0); }
.text-green-500{ color: rgb(0, 105, 0); }
/*.ml-2{ padding-left: 0.4em; }*/
/* Google Maps style left sidebar popup */
.poi-popup {
    position: fixed;
    left: 1em;
    top: 4em;
    transform: translate(-120%, 0);
    width: 400px;
    max-width: 90vw;
    max-height: 85vh;
    z-index: 600;
    background: white;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    overflow: hidden;
    opacity: 0;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    display: flex;
    flex-direction: column;
    font-size: 1em;
    pointer-events: none;
}

.poi-popup.visible {
    transform: translate(0, 3.5em);
    opacity: 1;
    pointer-events: auto;
}
/*.poi-popup.with-search-open.visible {
    transform: translate(0, 1em);
}*/

/* When search panel is open, position popup to the right of search */
.poi-popup.with-search-open {
    left: var(--search-panel-end, 420px);
}

/* Login Modal */
.vending-machine {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    background: linear-gradient(145deg, #e6e6e6, #ffffff);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3),
                inset 0 -5px 15px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    z-index: 1000;
    border: 8px solid #333;
    font-family: 'Courier New', monospace;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.vending-machine.active {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.machine-top {
    background: #333;
    padding: 15px;
    text-align: center;
    position: relative;
    border-bottom: 4px solid #222;
}

.machine-screen {
    background: #000;
    border: 4px solid #555;
    border-radius: 8px;
    padding: 10px;
    margin-bottom: 2em;
    color: #0f0;
    text-shadow: 0 0 5px #0f0;
    font-family: 'Digital', 'Courier New', monospace;
}

.machine-subtitle {
    margin: 5px 0 0;
    font-size: 1.2rem;
    color: #0f0;
    letter-spacing: 1px;
}

.machine-close {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #8c1a1a;
    border: none;
    color: white;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.machine-body {
    padding: 1.5em 2em 0.5em 2em;
    background: #f5f5f5;
}

.machine-message {
    text-align: center;
    margin: 0 0 15px;
    font-weight: bold;
    color: #333;
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

.selection-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.btn-select {
    background: #4a90e2;
    border: none;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
    cursor: pointer;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-select.active {
    background: #2c6cb3;
    transform: translateY(2px);
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.vending-form {
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.input-group {
    display: flex;
    align-items: center;
    margin-bottom: 5px;
}

.input-label {
    width: 100px;
    font-weight: bold;
    color: #2a2a2a;
    font-size: 0.9rem;
}

.vending-input {
    flex: 1;
    padding: 10px 15px;
    border: 2px solid #999;
    border-radius: 5px;
    background: #fff;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.vending-input:focus {
    outline: none;
    border-color: #4a90e2;
    box-shadow: 0 0 5px rgba(74, 144, 226, 0.5);
}

.form-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.forgot-link {
    color: #4a90e2;
    text-decoration: none;
    /*font-size: 0.8rem;*/
    font-weight: bold;
}

.btn-vending {
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.btn-login {
    background: #4CAF50;
    color: white;
}

.btn-login:hover {
    background: #3d8b40;
    transform: translateY(-2px);
}

.social-buttons {
    text-align: center;
    margin: 2em 0;
}

button.floating-add-poi-btn {
    width: 2em !important;
    height: 2em !important;
    font-size: 1.5em !important;
    padding: 0 !important;
    right: 16px !important;
    border-radius: 50% !important;
    background: rgb(26, 115, 232) !important;
    color: white !important;
    border: 1px solid rgba(26, 115, 232, 0.3) !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.2s !important;
}

button.floating-add-poi-btn:hover {
    background: rgb(21, 94, 190) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2) !important;
    transform: scale(1.1) !important;
}

button.floating-add-poi-btn svg {
    width: 1em !important;
    height: 1em !important;
}

@media (max-width: 768px) {
    button.floating-add-poi-btn {
        display: none !important;
    }
}

.button-row {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    margin: 0 0.5em;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    text-decoration: none;
    transition: transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(0,0,0,0.3);
}

/*.google { background: #DB4437; }*/
.facebook { background: #4267B2; }

/* Form elements */
.poi-popup-login .form-group {
    margin-bottom: 1rem;
}

.poi-popup-login .form-label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: #333;
}

.poi-popup-login .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
}

.poi-popup-login .form-control:focus {
    border-color: #4a90e2;
    outline: none;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.1);
}

/* Buttons */
.poi-popup-login .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.poi-popup-login .btn-primary {
    background-color: #4a90e2;
    color: white;
}

.poi-popup-login .btn-primary:hover {
    background-color: #3a7bc8;
}

.poi-popup-login .btn-outline-secondary,
.poi-popup-login .btn-outline-primary {
    background: white;
}

.poi-popup-login .btn-outline-secondary {
    border-color: #ddd;
    color: #333;
}

.poi-popup-login .btn-outline-primary {
    border-color: #4a90e2;
    color: #4a90e2;
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
    border-top: 1px solid #eee;
}

.divider span {
    position: relative;
    top: -0.8em;
    padding: 0 1rem;
    color: #777;
    font-size: 0.875rem;
    background: white;
}

/* Social buttons */
.social-login-buttons .btn {
    margin-bottom: 0.75rem;
}

.social-login-buttons .btn img {
    margin-right: 8px;
    width: 20px;
    height: 20px;
}

.social-login-buttons svg{
    width: 14%;
}

/* Links */
.poi-popup-login a {
    color: #4a90e2;
    text-decoration: none;
    transition: color 0.2s;
}

.poi-popup-login a:hover {
    color: #3a7bc8;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .poi-popup-login {
        width: 90%;
        max-width: none;
    }
}

/* Overlay when login modal is visible
.poi-popup-overlay.visible {
    display: block;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
}

.poi-popup-login.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
    z-index: 1000;
} */

/* Remove bottom sheet handle (not needed for left sidebar) */
.poi-popup::before {
    display: none;
}

.poi-image-header {
    position: relative;
    width: 100%;
    height: 240px;
    background-size: cover;
    /*background-position: center;*/
    background-color: #f5f5f5;
    display: none;
    cursor: pointer;
    transition: opacity 0.2s ease;
    overflow: hidden;
}

.poi-image-header:hover {
    opacity: 0.95;
}

.poi-image-header .poi-popup-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* Fullscreen image viewer */
.image-fullscreen-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.image-fullscreen-img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    border-radius: 4px;
}

.image-fullscreen-close {
    position: absolute;
    top: 1em;
    right: 1em;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 1em;
    height: 1em;
    font-size: 2em;
    color: #202124;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    z-index: 10001;
}

.image-fullscreen-close:hover {
    background: white;
    transform: scale(1.1);
}
/*.mobile .image-fullscreen-close {
    bottom:2em;
    top:0;
}*/

.poi-popup-header {
    padding: 0.5em;
    background: white;
    border-bottom: none;
    display: flow-root; /*flex*/
    /*justify-content: space-between;
    align-items: center;*/
}

.poi-popup-title {
    margin: 0;
    font-size: 22px;
    font-weight: 400;
    color: #202124;
    display: flex;
    align-items: center;
    gap: 4px;
    line-height: 28px;
}

.poi-popup-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #6c757d;
    padding: 4px;
    line-height: 1;
}

/* Mobile close button - always visible on top right */
.poi-popup-close-mobile,
.poi-popup-back-mobile {
    display: none; /* Hidden on desktop */
}

@media (max-width: 1200px) {
    .poi-search-panel {
        max-width: 356px;
    }
}

@media (max-width: 1024px) {
    .poi-popup-back-mobile {
        position: absolute;
        top: 0.4em;
        left: 0.1em;
        z-index: 100;
        background: rgba(255, 255, 255, 0.95);
        border: none;
        border-radius: 50%;
        width: 1em;
        height: 1em;
        font-size: 1.5em;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        color: #5f6368;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        transition: all 0.2s ease;
        padding: 0;
    }

    body.dark-theme .poi-popup-back-mobile {
        background: rgba(48, 49, 52, 0.95);
        color: #9aa0a6;
    }

    .poi-popup-close-mobile {
        display: flex;
        position: absolute;
        top: 0.2em;
        right: 0.2em;
        z-index: 100;
        background: rgba(255, 255, 255, 0.95);
        border: none;
        border-radius: 50%;
        width: 1em;
        height: 1em;
        align-items: center;
        justify-content: center;
        font-size: 1.5em;
        cursor: pointer;
        color: #5f6368;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
        transition: all 0.2s ease;
    }

    .poi-popup-close-mobile:hover,
    .poi-popup-close-mobile:active {
        background: rgba(255, 255, 255, 1);
        color: #202124;
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    }
}

/* Dark theme support for mobile close button */
body.dark-theme .poi-popup-close-mobile {
    background: rgba(48, 49, 52, 0.95);
    color: #9aa0a6;
}

body.dark-theme .poi-popup-close-mobile:hover,
body.dark-theme .poi-popup-close-mobile:active {
    background: rgba(48, 49, 52, 1);
    color: #e8eaed;
}

#addPoiForm{padding: 0 1em 2em 0em;}

.poi-header-meta {
    display: block;
    /*flex
    gap: 4em;*/
}

.poi-action-buttons {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-left: auto;
    }

.poi-popup-content {
    padding: 0 0.7em;
    margin-bottom: 0.6em;
    overflow-y: auto;
    max-height: calc(96vh);
    scrollbar-width: thin;
    scrollbar-color: #dadce0 transparent;
}

.poi-popup-content::-webkit-scrollbar {
    width: 6px;
}

.poi-popup-content::-webkit-scrollbar-track {
    background: transparent;
}

.poi-popup-content::-webkit-scrollbar-thumb {
    background-color: #dadce0;
    border-radius: 3px;
}

.poi-popup-content::-webkit-scrollbar-thumb:hover {
    background-color: #bdc1c6;
}

/*.poi-popup-image {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
}*/

.poi-reviews{
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.poi-reviews:hover {
    color: #3b82f6;
    transform: scale(1.05);
}

body.dark-theme .poi-reviews:hover {
    color: #8ab4f8;
}

.poi-popup-tags{
    margin: 0 0 12px 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1.2em;
}
.poi-tag{
    /*background-color: #f1f3f4;*/
    border-radius: 1em;
    font-size: 0.9em;
    /*padding: 0.3em;*/
}

.poi-tag-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    /*padding: 0.2em;*/
}
.tag-icon-image {
    width: 2em;
    height: 2em;
    object-fit: contain;
}

.poi-popup-description {
    color: #495057;
    font-size: 1.3em;
    line-height: 1.5;
}

.poi-popup-details {
    font-size: 1em;
    color: #6c757d;
}

.poi-popup-link {
    color: #0d6efd;
    text-decoration: none;
    display: inline-block;
    margin-top: 4px;
}

.poi-popup-link:hover {
    text-decoration: underline;
}

.poi-opening-hours {
    margin-top:0.5em;
    overflow: visible;
    max-height: none;
}

.poi-opening-hours-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0;
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    color: inherit;
    text-align: left;
}

.poi-opening-hours-chevron {
    flex: 0 0 auto;
    transition: transform 0.2s ease;
}

.poi-opening-hours.expanded .poi-opening-hours-chevron {
    transform: rotate(180deg);
}

/* Folded by default on all screen sizes; .expanded class reveals the list. */
.poi-opening-hours .opening-hours-list {
    max-height: 0;
    overflow: hidden;
    margin-top: 0;
    transition: max-height 0.25s ease, margin-top 0.25s ease;
}

.poi-opening-hours.expanded .opening-hours-list {
    max-height: 30em;
    overflow: auto;
    margin-top: 8px;
}

.opening-hours-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.opening-hour-item {
    display: flex;
    justify-content: space-between;
    /*margin: 4px 0;
    font-size: 0.9em;*/
    padding: 4px 8px;
    border-radius: 4px;
}

.opening-hour-item.today {
    background-color: rgba(34, 197, 94, 0.1);
    font-weight: 500;
}
.status-open, .status-closed {
    font-weight: 500;
    /*font-size: 0.85em;*/
}
.status-closed {
    color: #ef4444;
}
.dark-theme .status-closed {
    color: #ca7a7a;
}
.status-nearly-closed {
    color: #cd6b29;
}
.dark-theme .status-nearly-closed {
    color: #f59e0b;
}
.status-open {
    color: #0f863b;
    display: ruby; /*like inline*/
}

.opening-hour-item:last-child {
    border-bottom: none;
}

.opening-day {
    font-weight: 500;
    color: #444;
    min-width: 120px;
}

.opening-time {
    color: #666;
    text-align: right;
}

.poi-details.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, 0);
}

.poi-details-content {
    padding: 20px;
    max-height: calc(80vh - 40px);
    overflow-y: auto;
}

.poi-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.2em;
    /*padding-bottom: 10px;
    border-bottom: 1px solid #eee;*/
}

.close-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 5px 10px;
}

.filter-group {
    font: 1em/3em 'Helvetica Neue', Arial, Helvetica, sans-serif;
    font-weight: 600;
    position: absolute;
    top: 4em;
    right: 4em;
    z-index: 1;
    border-radius: 3px;
    width: 16em;
    color: #fff;
}

.poi-image{
    display: flex;
    justify-content: center;
}
.poi-image img{
    border-radius: 8px;
    max-width: 100%;
    max-height: 20vh;
}
.poi-copy-btn {
    vertical-align: middle;
    font-size: 0.8em;
    border: none;
    background: none;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.poi-copy-btn:hover {
    transform: scale(1.15);
    opacity: 0.7;
}

.filter-group input[type='checkbox']:first-child + label {
    border-radius: 3px 3px 0 0;
}

.filter-group label:last-child {
    border-radius: 0 0 3px 3px;
    border: none;
}

.filter-group input[type='checkbox'] {
    display: none;
}

.filter-group input[type='checkbox'] + label {
    background-color: #3386c0;
    display: block;
    cursor: pointer;
    padding: 10px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.25);
}

.filter-group input[type='checkbox'] + label {
    background-color: #3386c0;
    text-transform: capitalize;
    margin-right: 5px;
}

.filter-group input[type='checkbox'] + label:hover,
.filter-group input[type='checkbox']:checked + label {
    background-color: #4ea0da;
}

.filter-group input[type='checkbox']:checked + label:before {
    content: '✔';
    margin-right: 5px;
}
/*.maplibregl-ctrl-zoom-out,  {
    background-color: white;
}*/
.maplibregl-ctrl-group button:first-child {
    border-radius: 8px 8px 0 0;
}

.maplibregl-ctrl-group button:last-child {
    border-radius: 0 0 8px 8px;
}

.maplibregl-ctrl-group button:only-child {
    border-radius: 8px;
}

@media (min-width: 1000px) {
    .maplibregl-ctrl, .maplibregl-ctrl-group button, .maplibregl-ctrl button, .maplibregl-ctrl-icon {
        font-size: 2rem !important;
        width: 52px !important;
        /*height: 52px !important;*/
        min-width: 52px !important;
        min-height: 52px !important;
    }
    .maplibregl-ctrl button svg,
    .maplibregl-ctrl-icon span {
        width: 2em !important;
        height: 2em !important;
    }

    /* Keep top-right nav controls at mobile size on desktop */
    .maplibregl-ctrl-top-right .maplibregl-ctrl,
    .maplibregl-ctrl-top-right .maplibregl-ctrl-group button,
    .maplibregl-ctrl-top-right .maplibregl-ctrl button,
    .maplibregl-ctrl-top-right .maplibregl-ctrl-icon {
        font-size: 1rem !important;
        width: 40px !important;
        min-width: 40px !important;
        min-height: 40px !important;
    }

    .maplibregl-ctrl-top-right .maplibregl-ctrl button svg,
    .maplibregl-ctrl-top-right .maplibregl-ctrl-icon span {
        width: 20px !important;
        height: 20px !important;
    }
}

/* Google Maps style category filter */
#category-filter-toggle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
    outline: none;
    color: #70757a;
    transition: all 0.2s;
}

#category-filter-toggle:hover {
    background-color: rgba(0, 0, 0, 0.04);
    color: #202124;
}

.category-filter-panel {
    position: absolute;
    right: 16px;
    bottom: 80px;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
    z-index: 300;
    padding: 8px;
    min-width: 280px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

#category-filter {
    position: fixed;
    bottom: 16px;
    right: 16px;
    z-index: 1000;
}

#category-filter-list {
    position: absolute;
    bottom: 60px;
    right: 0;
    background-color: white;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
    display: none;
    flex-direction: column;
    gap: 4px;
    max-height: 300px;
    overflow-y: auto;
    min-width: 280px;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.category-filter-list.hidden {
    display: none;
}

#login-modal.visible{
    z-index: 1000;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: fixed;
    animation: fadeIn 0.3s ease-in-out;
}

#user-dropdown .user-info{border:0}

/* Google Maps Style Search Panel */
.poi-search-panel {
    z-index: 601;
    position: absolute;
    width: 30%;
    max-width: 400px;
    min-width: 300px;
    top: 1.2em;
    left: 1em;
    right: auto;
    bottom: auto;
    background: white;
    border-radius: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Status indicator styles
.status-indicator {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 12px;
    gap: 0.3rem;
}*/

.status-open {
    color: #15803d;
}

.status-closed {
    color: #b91c1c;
}

.status-unknown {
    color: #6b7280;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 4px;
}
.green{
    color: #16a34a;
}
.status-open .status-dot {
    background-color: #16a34a;
}

.status-closed .status-dot {
    background-color: #dc2626;
}

.status-unknown .status-dot {
    background-color: #6b7280;
}

.search-container {
    display: flex;
    position: relative;
    border-bottom:1px solid #cdd4dd;
}
.dark-theme .search-container{border-bottom:1px solid #797979;}

#poi-search-input {
    flex: 1;
    padding: 10px 20px;
    border: none;
    border-radius: 24px 0 0 24px;
    font-size: 16px;
    outline: none;
    background: transparent;
    color: #202124;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

#poi-search-input::placeholder {
    color: #4b4e50;
    font-size: 1.2em;
}

#poi-search-input:focus {
    outline: none;
}

.search-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 16px;
    background-color: transparent;
    color: #70757a;
    border: none;
    border-radius: 0 24px 24px 0;
    cursor: pointer;
    transition: color 0.2s;
    min-width: 48px;
}

.search-button:hover {
    color: #202124;
    /*background-color: rgba(0, 0, 0, 0.04);*/
    /* Enhanced search button hover for white/light backgrounds
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);*/
    transform: scale(1.05);
}

.search-icon, .loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-results {
    max-height: calc(100vh - 8em);
    overflow-y: auto;
    overscroll-behavior: contain;
    /*border-top: 1px solid #e8eaed;*/
    display: none;
    flex-direction: column;
    gap: 10px;
    padding: 10px;
}

.search-result-item {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f3f4;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.2em;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item h4 {
    margin: 0 0 4px 0;
    color: #202124;
    font-weight: 400;
    line-height: 20px;
}

.search-result-item p {
    margin: 0;
    color: #70757a;
    line-height: 18px;
}

.no-results {
    padding: 1rem;
    text-align: center;
    color: #64748b;
    font-style: italic;
}

/* Google Maps Style Enhanced Search Results */
.search-result-item-maps {
    display: flex;
    padding: 16px 20px;
    /*border-bottom: 1px solid #f1f3f4;*/
    cursor: pointer;
    transition: background-color 0.2s;
    gap: 16px;
    align-items: flex-start;
}

.search-result-item-maps:hover {
    background-color: #f8f9fa;
}

.search-result-item-maps:last-child {
    border-bottom: none;
}

/* Content area - takes up remaining space */
.poi-content {
    flex: 1;
    min-width: 0;
}

/* POI Name */
.poi-name {
    margin:0 0 0 4px;
    color: #202124;
    font-size: 16px;
    font-weight: 500;
    line-height: 20px;
}

/* Rating section */
.rating-section {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
}

.rating-stars {
    color: #fbbc04;
    font-size: 14px;
    letter-spacing: 1px;
}

.star-full {
    color: #fbbc04;
}

.star-half {
    color: #fbbc04;
}

.star-empty {
    color: #e8eaed;
}

.rating-value {
    color: #202124;
    font-size: 14px;
    font-weight: 500;
}

.reviews-count {
    color: #70757a;
    font-size: 14px;
}
.no-reviews{
    margin:1em;
}

/* Meta information */
.poi-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    /*margin-bottom: 4px;*/
}

.poi-category {
    color: #464646;
    font-size: 14px;
}

.poi-distance {
    font-size: 14px;
    font-weight: 500;
}

/* Address */
.poi-address {
    color: #464646;
    font-size: 14px;
    margin-bottom: 4px;
    line-height: 18px;
}

/* Status and phone */
.poi-status-phone {
    display: flex;
    align-items: center;
    margin-bottom: 4px;
    font-size: 14px;
}

.status-next-open {
    color: #70757a;
}

.poi-phone {
    color: #70757a;
}

/* Features/Tags */
.poi-features {
    color: #70757a;
    font-size: 14px;
    line-height: 18px;
}

/* Image area */
.poi-image {
    width: 84px;
    height: 84px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
    background-color: #f1f3f4;
}

.poi-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* ============================
   Takeaway-style Search Result Cards
   ============================ */
.search-result-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    /*overflow: hidden;*/
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.15s;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.22);
    border: 1px solid #e8eaed;
    /*margin: 0.6em 0;*/
}

.search-result-card:hover {
    box-shadow: 0 5px 12px rgba(0, 0, 0, 0.22);
    transform: translateY(-1px);
}

.search-result-card:active {
    transform: translateY(0);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.22);
}

/* Card image - horizontal banner */
.card-image-wrapper {
    width: 100%;
    max-height: 220px;
    overflow: hidden;
    position: relative;
    background-color: #f1f3f4;
    border-radius: 10px;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.search-result-card:hover .card-image-wrapper img {
    transform: scale(1.03);
}

/* Placeholder when no image */
.card-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #9aa0a6;
    height: 48px;
    background-color: #ebebeb;
}

/* Ad card badge */
.ad-badge {
    font-size: 11px;
    font-weight: 600;
    color: #70757a;
    background: #f1f3f4;
    padding: 2px 8px;
    border-radius: 4px;
    white-space: nowrap;
}

.ad-card {
    cursor: pointer;
    border: 1px dashed #dadce0;
}

.ad-card:hover {
    border-color: #bdc1c6;
}

body.dark-theme .ad-badge {
    color: #9aa0a6;
    background: #3c4043;
}

body.dark-theme .ad-card {
    border-color: #5f6368;
}

body.dark-theme .ad-card:hover {
    border-color: #8ab4f8;
}

/* Video ad card */
.ad-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.ad-card-external {
    cursor: pointer;
}

/* Promotion badge overlay on image */
.card-promo-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #ff6b00;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
    z-index: 1;
}

/* Card body - text content below image */
.card-body {
    padding: 10px 12px 12px;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* Title row: name (left, truncated) + rating badge (right) */
.card-title-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.card-title-row .poi-name {
    margin: 0;
    color: #202124;
    font-size: 16px;
    font-weight: 600;
    line-height: 22px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}

/* Compact rating badge: ★ 4.2 (12) */
.card-rating-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    flex-shrink: 0;
    font-size: 13px;
    line-height: 22px;
}

.card-rating-star {
    color: #fbbc04;
    font-size: 14px;
}

.card-rating-num {
    font-weight: 600;
    color: #202124;
}

.card-rating-votes {
    color: #70757a;
    font-size: 12px;
}

/* Info row: category (left) | distance (center) | status (right) */
.card-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    margin-top: 2px;
    gap: 8px;
}

.card-info-row .card-category {
    color: #5f6368;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

.card-info-row .poi-distance {
    font-weight: 500;
    color: #5f6368;
    white-space: nowrap;
    flex-shrink: 0;
    text-align: center;
}

.card-info-row .card-status {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    flex-shrink: 0;
}

.card-info-row .status-open {
    display: inline;
}

.card-info-row .status-closed,
.card-info-row .status-nearly-closed,
.card-info-row .status-next-open {
    font-size: 13px;
}

/* ============================
   Dark theme - Takeaway Cards
   ============================ */
body.dark-theme .search-result-card {
    background: #303134;
    border-color: #5f6368;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

body.dark-theme .search-result-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

body.dark-theme .card-image-wrapper {
    background-color: #3c4043;
}

body.dark-theme .card-image-placeholder {
    color: #9aa0a6;
    background-color: #3c4043;
}

body.dark-theme .card-promo-badge {
    background: #e85d04;
}

body.dark-theme .card-title-row .poi-name {
    color: #e8eaed;
}

body.dark-theme .card-rating-num {
    color: #e8eaed;
}

body.dark-theme .card-rating-votes {
    color: #9aa0a6;
}

body.dark-theme .card-info-row .card-category {
    color: #9aa0a6;
}

body.dark-theme .card-info-row .poi-distance {
    color: #9aa0a6;
}

body.dark-theme .card-info-row .status-next-open {
    color: #9aa0a6;
}

body.dark-theme .no-results {
    color: #9aa0a6;
}

/* ============================
   Responsive - Cards on mobile: compact vertical (image + 2 lines)
   ============================ */
@media (max-width: 768px) {
    .search-results {
        padding: 6px;
    }

    .search-result-card {
        border-radius: 10px;
    }

    /*.card-image-wrapper {
        height: 200px;
    }*/

    .card-image-placeholder img {
        height: 200px;
    }

    .card-image-placeholder svg {
        width: 20px;
        height: 20px;
    }

    .card-body {
        padding: 5px 10px 7px;
        gap: 1px;
    }

    .card-title-row .poi-name {
        font-size: 14px;
        line-height: 18px;
    }

    .card-rating-badge {
        font-size: 11px;
    }

    .card-rating-star {
        font-size: 12px;
    }

    .card-rating-votes {
        font-size: 10px;
    }

    .card-info-row {
        font-size: 12px;
        gap: 4px;
    }

    .card-info-row .status-closed,
    .card-info-row .status-nearly-closed,
    .card-info-row .status-next-open {
        font-size: 12px;
    }
}

.reviews-sheet {
    position: fixed;
    left: 1em;
    top: 50%;
    transform: translate(-120%, -50%);
    width: 400px;
    max-width: 90vw;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
    z-index: 605;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    max-height: 85vh;
    display: flex;
    flex-direction: column;
    opacity: 0;
}

.reviews-sheet.visible {
    transform: translate(0, -50%);
    opacity: 1;
}

/* On desktop, position reviews sheet to the right of POI content */
@media (min-width: 769px) {
    .reviews-sheet {
        left: calc(1em + 400px + 1em);
        top: 4em;
        transform: translate(0, 0);
    }

    .reviews-sheet.visible {
        transform: translate(0, 1em);
        opacity: 1;
    }

    /* When search panel is open, adjust position */
    .poi-popup.with-search-open ~ .reviews-sheet,
    body:has(.poi-popup.with-search-open) .reviews-sheet {
        left: calc(420px + 400px + 5px);
    }
}



.reviews-header {
    padding: 15px 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.reviews-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0 10px;
}

.reviews-content {
    padding: 0 0.6em;
    overflow-y: auto;
    flex-grow: 1;
}

.dark-theme .reviews-content {color:#FFF}
.dark-theme .add-comment-form textarea {color:#111}
.dark-theme .review-date{color:#d2d1d1}

.review-item {
    padding-bottom: 1em;
    border-bottom: 1px solid #eee;
}
.dark-theme .review-item {border-bottom: 1px solid #757575;}
.review-item:last-child {border-bottom: none;}

.review-header {
    display: flex;
    align-items: center;
    margin: 0.8em 0;
}

.review-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.dark-theme .review-avatar {color:#000}
.dark-theme .review-item {color:#FFF}

.review-user {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.review-name {
    font-weight: 600;
    margin-right: 10px;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 2px;
}

.review-rating {
    color: #ffc107;
    /*font-size: 14px;*/
    white-space: nowrap;
}

.review-date {
    color: #4d4d4d;
    /*font-size: 12px;*/
    white-space: nowrap;
}

.review-text {
    margin-top: 8px;
    line-height: 1.5;
}

.review-images {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 10px;
}

.review-text, .review-images {margin-left:0.6em;}

.review-image {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
}
.review-text {
    margin-top: 8px;
    line-height: 1.5;
}

.review-text, .review-images {padding-left:0.5em;}

.loading-reviews {
    text-align: center;
    padding: 20px;
    color: #666;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

.maplibregl-marker{z-index: 10;}
.maplibregl-user-location-accuracy-circle{z-index: 9;}

@media (min-width:1200px) {
    #category-filter{
        zoom: 1.2;
    }
}
@media (min-width:1600px) {
    #category-filter{
        zoom: 1.3;
    }
}
@media (min-width:1800px) {
    #category-filter{
        zoom: 1.4;
    }
}
@media (min-width:2000px) {
    #category-filter{
        zoom: 1.5;
    }
}


@media (max-width:1024px) {
    .poi-popup{
        width: 100vw;
        max-width: 100vw;
        font-size: 1em;
        left: 50%;
        top: auto;
        bottom: 40px;
        max-height: calc(85vh - 56px);
        transform: translate(-50%, 120%);
        border-radius: 16px 16px 0 0;
    }
    .poi-popup.visible {
        transform: translate(-50%, 0);
    }
    /* POI detail grows to top when reviews are open */
    .poi-popup.reviews-open {
        max-height: calc(95vh - 42px);
    }

    /* Reviews sheet: full width bottom sheet on mobile */
    .reviews-sheet {
        top: auto;
        bottom: 42px;
        left: 0;
        width: 100vw;
        max-width: 100vw;
        max-height: 69vh /*calc(95vh - 42px)*/;
        border-radius: 16px 16px 0 0;
        transform: translate(0, 120%);
    }
    .reviews-sheet.visible {
        transform: translate(0, 0);
    }

    /* Hide reviews close button on mobile — closing POI detail closes reviews too */
    .reviews-sheet > .poi-popup-close-mobile.reviews-close-btn {
        display: none;
    }
    .poi-popup.with-search-open {
        left: 50%;
    }
    .poi-popup.with-search-open.visible {
        transform: translate(-50%, 0);
    }
    .poi-title{
        font-size: 1.1em;
    }
    .hiddenXS{
        display: none;
    }
    .maplibregl-ctrl-zoom-in,
    .maplibregl-ctrl-zoom-out,
    .maplibregl-ctrl-compass,
    .maplibregl-ctrl-geolocate,
    .maplibregl-ctrl button,
    .maplibregl-ctrl button .maplibregl-ctrl-icon,
    .maplibregl-ctrl-group button {
        width: 40px !important;
        height: 40px !important;
        font-size: 16px !important;
    }
}

/* Mobile responsive design - Google Maps style */
@media (max-width: 768px) {
    .poi-search-panel {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: none;
        height: auto;
        border-radius: 0;
        box-shadow: none;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    }

    #poi-search-input {
        padding: 12px 16px;
        font-size: 16px;
    }

    .search-button {
        min-width: 44px;
        padding: 0 12px;
    }

    .maplibregl-ctrl-top-right {
        top: 11em;
        right: 8px;
    }

    /* F5: larger compass + geolocation controls on smartphones (overrides the
       40px set by the <=1024px block) for easier tapping. */
    .maplibregl-ctrl-zoom-in,
    .maplibregl-ctrl-zoom-out,
    .maplibregl-ctrl-compass,
    .maplibregl-ctrl-geolocate,
    .maplibregl-ctrl button,
    .maplibregl-ctrl button .maplibregl-ctrl-icon,
    .maplibregl-ctrl-group button {
        width: 50px !important;
        height: 50px !important;
        font-size: 20px !important;
    }

    #category-filter {
        bottom: 8px;
        right: 8px;
    }

    #category-filter-toggle {
        width: 44px;
        height: 44px;
        font-size: 18px;
    }

    #category-filter-list {
        right: 0;
        bottom: 56px;
        min-width: 260px;
        max-height: 250px;
    }

    /*.poi-popup-header {
        padding:1em;
    }*/
    .poi-popup-title{gap:0;}
    .poi-popup-description{
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    #poi-search-input {
        padding: 10px 14px;
        font-size: 16px;
    }

    .search-button {
        min-width: 40px;
        padding: 0 10px;
    }

    #category-filter-list {
        min-width: 240px;
    }
}

.add-comment-container > button {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
    background-color: #4f46e5;
    color: white;
    border: none;
    border-radius: 8px;
    transition: background-color 0.2s;
}

.add-comment-form {
    padding: 1.25rem;
    background-color: #ededed;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: all 0.3s ease-out;
}
.dark-theme .add-comment-form {background-color:#cfcfcf;}

.add-comment-form[style*="display: block"] {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}

.image-upload-label {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    color: #495057;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

.image-upload-label:hover {
    background-color: #e9ecef;
    border-color: #ced4da;
}

.image-upload-label i {
    margin-right: 6px;
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.image-preview {
    position: relative;
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    background: rgba(0,0,0,0.7);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
}

.image-preview:hover .remove-image {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .image-preview {
        width: 60px;
        height: 60px;
    }

    .image-upload-label {
        font-size: 0.9em;
        padding: 4px 8px;
    }
}

.image-upload-label {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background-color: #f3f4f6;
    border: 1px dashed #d1d5db;
    border-radius: 6px;
    cursor: pointer;
    margin: 0.5rem 0;
    transition: all 0.2s;
}

.image-upload-label:hover {
    background-color: #e5e7eb;
    border-color: #9ca3af;
}

.image-upload-label i {
    margin-right: 0.5rem;
    color: #4f46e5;
}

.image-preview-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0.75rem 0;
}

.image-preview {
    position: relative;
    width: 60px;
    height: 60px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.image-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.remove-image {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 18px;
    height: 18px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.remove-image:hover {
    background: rgba(220, 38, 38, 0.8);
}

.add-comment-form .form-group {
    margin-bottom: 0.5rem;
}

.add-comment-form textarea {
    width: 100%;
    padding: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    resize: vertical;
    min-height: 60px;
    font-size: 0.9em;
}

.add-comment-form .form-actions {
    display: flex;
    justify-content: center;
    gap: 3.75rem;
    margin-top: 1rem;
    align-items: center;
}

.add-comment-form .btn-primary {
    background-color: #4f46e5;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-size: 0.85em;
    cursor: pointer;
    transition: background-color 0.2s;
}
.add-comment-form .btn-primary.btn-link {
    background-color: #404447;
}
.add-comment-container > button:hover, .add-comment-form .btn-primary:hover {
    background-color: #4338ca;
}

.login-prompt {
    margin: 1rem 0;
    text-align: center;
}

.login-prompt .btn {
    width: 100%;
    padding: 0.75rem;
    font-size: 1rem;
    font-weight: 500;
}

.login-prompt .btn-link {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}

.login-prompt .btn-link:hover {
    text-decoration: underline;
}

#addPoiModal {
    z-index: 700;
}
/* Dark theme for Add POI Modal */
body.dark-theme #addPoiModal {
    background-color: rgba(0, 0, 0, 0.8);
}

body.dark-theme #addPoiModal > div > div {
    background-color: #303134;
}

body.dark-theme #addPoiModal h3,
body.dark-theme #addPoiModal h4,
body.dark-theme #addPoiModal label {
    color: #e8eaed !important;
}

body.dark-theme #addPoiModal input,
body.dark-theme #addPoiModal select,
body.dark-theme #addPoiModal textarea {
    background-color: #3c4043;
    border-color: #5f6368;
    color: #e8eaed;
}

body.dark-theme #addPoiModal input::placeholder,
body.dark-theme #addPoiModal textarea::placeholder {
    color: #9aa0a6;
}

body.dark-theme #addPoiModal input:focus,
body.dark-theme #addPoiModal select:focus,
body.dark-theme #addPoiModal textarea:focus {
    border-color: #8ab4f8;
    outline-color: rgba(138, 180, 248, 0.5);
}

body.dark-theme #addPoiModal .border-gray-200,
body.dark-theme #addPoiModal .border-gray-300 {
    border-color: #5f6368 !important;
}

body.dark-theme #addPoiModal p {
    color: #9aa0a6;
}

body.dark-theme #form-errors {
    background-color: rgba(185, 28, 28, 0.2);
    border-color: rgb(153, 27, 27);
}

body.dark-theme #form-errors h3 {
    color: #fca5a5 !important;
}

body.dark-theme #form-errors .text-red-700 {
    color: #fca5a5 !important;
}

body.dark-theme #tag-dropdown {
    background-color: #3c4043;
    border-color: #5f6368;
}

body.dark-theme .tag-option:hover {
    background-color: #5f6368;
}

body.dark-theme #selected-tags span {
    background-color: rgba(138, 180, 248, 0.2);
    color: #8ab4f8;
}

body.dark-theme #selected-tags button {
    color: #8ab4f8;
}

body.dark-theme #selected-tags button:hover {
    color: #aecbfa;
}

/* Dark theme for crop modal */
body.dark-theme #imageCropModal {
    background-color: rgba(0, 0, 0, 0.8);
}

body.dark-theme #imageCropModal > div > div {
    background-color: #303134;
}

body.dark-theme #imageCropModal h3 {
    color: #e8eaed !important;
}

body.dark-theme #imageCropModal button {
    color: #e8eaed;
}

/* Dark theme for POI Menu Section */
body.dark-theme .poi-menu-section {
    border-top-color: #5f6368;
}

body.dark-theme .menu-section-title {
    color: #e8eaed;
}

body.dark-theme .menu-loading {
    color: #9aa0a6;
}

body.dark-theme .menu-spinner {
    border-color: #5f6368;
    border-top-color: #8ab4f8;
}

body.dark-theme .menu-empty {
    color: #9aa0a6;
}

body.dark-theme .featured-products-header {
    background: linear-gradient(135deg, #b45309 0%, #92400e 100%);
}

body.dark-theme .featured-products-title {
    color: #fef3c7;
}

body.dark-theme .menu-category {
    border-color: #5f6368;
    background: #303134;
}

body.dark-theme .category-header-btn {
    background: #3c4043;
    color: #e8eaed;
}

body.dark-theme .category-header-btn:hover {
    background: #5f6368;
}

body.dark-theme .category-name {
    color: #e8eaed;
}

body.dark-theme .category-count {
    color: #9aa0a6;
}

body.dark-theme .category-chevron {
    color: #9aa0a6;
}

body.dark-theme .product-card {
    background: #303134;
    border-color: #5f6368;
}

body.dark-theme .product-card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.3);
}

body.dark-theme .product-card.featured {
    border-color: #b45309;
}

body.dark-theme .product-image-container {
    background: #3c4043;
}

body.dark-theme .product-name {
    color: #e8eaed;
}

body.dark-theme .product-price {
    color: #6ee7b7;
}

body.dark-theme .product-description {
    color: #d6d6d6;
}
body.dark-theme .product-meta {
    color: #d6d6d6;
}
body.dark-theme .product-allergens {
    color: #d6d6d6;
}

body.dark-theme .product-no-image {
    background: linear-gradient(135deg, #3c4043 0%, #5f6368 100%);
}
/* =================================================
   Comprehensive Hover Effects for Light and Dark Theme
   ================================================= */

/* Status Badge Hover Effects */
.status-indicator {
    transition: transform 0.2s ease;
    cursor: default;
}

.status-indicator:not(.status-unknown) {
    cursor: help;
}

.status-indicator:hover {
    transform: scale(1.05);
}

/* 24/7 Badge Hover */
.status-badge {
    transition: all 0.2s ease;
    cursor: help;
}

.status-badge:hover {
    transform: scale(1.08);
    background-color: rgba(22, 163, 74, 0.15);
}

body.dark-theme .status-badge:hover {
    background-color: rgba(34, 197, 94, 0.2);
}

/* Theme Toggle Button Hover */
#theme-toggle {
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#theme-toggle:hover {
    background-color: #f1f3f4 !important;
    transform: scale(1.1);
}

body.dark-theme #theme-toggle {
    background: #3c4043 !important;
    border-color: #5f6368 !important;
}

body.dark-theme #theme-toggle:hover {
    background: #5f6368 !important;
    transform: scale(1.1);
}

/* Language Toggle Button Hover */
#language-toggle {
    transition: transform 0.2s ease, background-color 0.2s ease;
}

#language-toggle:hover {
    background-color: #f1f3f4 !important;
    transform: scale(1.1);
}

body.dark-theme #language-toggle {
    background: #3c4043 !important;
    border-color: #5f6368 !important;
}

body.dark-theme #language-toggle:hover, body.dark-theme #nav-basket-indicator button:hover {
    background: #5f6368 !important;
    transform: scale(1.1);
}

/* GPS/Navigation Link Hover */
a[href^="geo:"] {
    transition: color 0.2s ease, transform 0.2s ease;
}

a[href^="geo:"]:hover {
    color: #3b82f6 !important;
    transform: scale(1.05);
}

body.dark-theme a[href^="geo:"]:hover {
    color: #8ab4f8 !important;
}

/* Comment Icon Hover Enhancement */
.poi-reviews {
    position: relative;
}

.poi-reviews::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 4px;
    opacity: 0;
    /*background: rgba(59, 130, 246, 0.05);*/
    transition: opacity 0.2s ease;
    z-index: -1;
    pointer-events: none;
}

.poi-reviews:hover::after {
    opacity: 1;
}

body.dark-theme .poi-reviews::after {
    background: rgba(138, 180, 248, 0.1);
}

/* Star Rating Hover Enhancement */
.poi-stars {
    position: relative;
}

.poi-stars::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 4px;
    opacity: 0;
    background: rgba(251, 191, 36, 0.05);
    transition: opacity 0.2s ease;
    z-index: -1;
    pointer-events: none;
}

.poi-stars:hover::after {
    opacity: 1;
}

body.dark-theme .poi-stars::after {
    background: rgba(251, 191, 36, 0.1);
}

/* Search Button Enhanced Hover on White Background */
.poi-search-panel {
    background: white;
}

body.dark-theme .poi-search-panel {
    background: #303134;
}

.search-button {
    position: relative;
    overflow: hidden;
}

.search-button::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.search-button:hover::before {
    opacity: 1;
}

body.dark-theme .search-button::before {
    background: radial-gradient(circle, rgba(138, 180, 248, 0.15) 0%, transparent 70%);
}

/* Open Now Button Hover */
.category-badge.open-now {
    transition: all 0.2s ease;
}

.category-badge.open-now:hover {
    background-color: #047857 !important;
    transform: scale(1.05);
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

body.dark-theme .category-badge.open-now:hover {
    background-color: #059669 !important;
    box-shadow: 0 2px 8px rgba(16, 185, 129, 0.4);
}

/* Address Copy Button Hover Enhancement */
.poi-copy-btn {
    opacity: 0.6;
}

.poi-copy-btn:hover {
    opacity: 1;
}

/* Category Badge General Hover */
.category-badge {
    transition: all 0.2s ease;
}

.category-badge:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

body.dark-theme .category-badge:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Tag Hover Effects */
.poi-tag {
    transition: transform 0.2s ease, background-color 0.2s ease;
}

.poi-tag:not(.poi-tag-icon):hover {
    transform: scale(1.05);
    background-color: #e5e7eb;
}

body.dark-theme .poi-tag:not(.poi-tag-icon):hover {
    background-color: #3c4043;
}

/* Tag Icon Hover */
.poi-tag-icon:hover {
    transform: scale(1.1);
}

.tag-icon-image {
    transition: transform 0.2s ease;
}

.poi-tag-icon:hover .tag-icon-image {
    transform: scale(1.15);
}

/* Search Result Item Hover Enhancement */
.search-result-item-maps {
    transition: all 0.2s ease;
}

.search-result-item-maps:hover {
    transform: translateX(2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

body.dark-theme .search-result-item-maps:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Dropdown Item Hover */
.dropdown-item {
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.dropdown-item:hover {
    background-color: #f3f4f6;
    transform: translateX(2px);
}

body.dark-theme .dropdown-item:hover {
    background-color: #3c4043;
}

/* User Auth Button Hover */
.btn-login .user-icon {
    transition: transform 0.2s ease;
}

.btn-login:hover .user-icon {
    transform: scale(1.1);
}

/* Opening Hours Item Hover */
.opening-hour-item {
    transition: background-color 0.2s ease;
}

.opening-hour-item:not(.today):hover {
    background-color: rgba(0, 0, 0, 0.02);
}

body.dark-theme .opening-hour-item:not(.today):hover {
    background-color: rgba(255, 255, 255, 0.03);
}

/* Product Card Hover (Menu Items) */
.product-card {
    cursor: pointer;
}

/*.product-card:hover .product-name{color: #3b82f6;}

body.dark-theme .product-card:hover .product-name {
    color: #8ab4f8;
}*/

/* Category Header Button Hover */
.category-header-btn {
    transition: background-color 0.2s ease;
}

.category-header-btn:hover .category-name {
    color: #3b82f6;
}

body.dark-theme .category-header-btn:hover .category-name {
    color: #8ab4f8;
}

/* Mobile Close Button Enhancement */
@media (max-width: 1024px) {
    .poi-popup-close-mobile {
        transition: all 0.2s ease;
    }

    .poi-popup-close-mobile:hover {
        transform: rotate(90deg) scale(1.1);
    }

    .search-results {
        max-height: 41.2em;
    }
}

@media screen and (max-width: 500px), screen and (max-height: 700px) {
    .search-results{max-height:29.2em;}
}

/* Radius Slider Thumb Hover Animation */
.radius-slider::-webkit-slider-thumb:hover {
    animation: pulse 1.5s infinite;
}

.radius-slider::-moz-range-thumb:hover {
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1.1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* Clear Button Hover */
.clear-button {
    transition: all 0.2s ease;
}

.clear-button:hover {
    color: #ef4444 !important;
    transform: scale(1.15);
}

.clear-button:active {
    transform: scale(0.95);
}

body.dark-theme .clear-button:hover {
    color: #fca5a5 !important;
}

/* On mobile, the cross occupies the same right slot as the loupe — they toggle. */
@media (max-width: 768px) {
    body.mobile-home-mode .clear-button,
    body:not(.mobile-home-mode) .clear-button {
        right: 0;
    }
}

/* Filter toggle button hover */
.filter-button-search {
    transition: all 0.2s ease;
}

.filter-button-search:hover {
    color: #1a73e8;
    transform: scale(1.15);
}

.filter-button-search:active {
    transform: scale(0.95);
}

body.dark-theme .filter-button-search:hover {
    color: #8ab4f8;
}

/* Back button hover */
.poi-popup-back-mobile:hover,
.poi-popup-back-mobile:active {
    background: rgba(255, 255, 255, 1);
    color: #202124;
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

body.dark-theme .poi-popup-back-mobile:hover,
body.dark-theme .poi-popup-back-mobile:active {
    background: rgba(48, 49, 52, 1);
    color: #e8eaed;
}


/* ============================
   Mobile Home Mode - Full-page list
   ============================ */
@media (max-width: 768px) {
    body.mobile-home-mode {
        background-color: white;
    }
    body.mobile-home-mode.dark-theme {
        background-color: #303134;
    }
    body.mobile-home-mode .poi-search-panel {
        height: 95%;
        bottom: 55px;
        display: flex;
        flex-direction: column;
        border-bottom: none;
    }
    body.mobile-home-mode .poi-search-panel .search-results {
        max-width: 500px;
    }
    body.mobile-home-mode .search-results {
        flex: 1;
        max-height: none !important;
        overflow-y: auto;
    }
    body.mobile-home-mode #map {
        visibility: hidden;
        pointer-events: none;
        position: absolute;
        z-index: -1;
    }
    body.mobile-home-mode #category-filters-panel {
        display: none;
    }
}

/* Mobile filter button in search bar */
.mobile-only-inline {
    display: none !important;
}

@media (max-width: 768px) {
    .mobile-only-inline {
        display: flex !important;
    }

    /* Hide map filter button on home list view */
    body.mobile-home-mode #mobile-filter-toggle-search {
        display: none !important;
    }

    .filter-button-search {
        background: none;
        border: none;
        padding: 6px;
        cursor: pointer;
        color: #5f6368;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        flex-shrink: 0;
    }

    body.dark-theme .filter-button-search {
        color: #9aa0a6;
    }

    .filter-button-search svg {
        width: 18px;
        height: 18px;
    }

    .filter-count-search {
        position: absolute;
        top: 0;
        right: 0;
        background: #1a73e8;
        color: white;
        border-radius: 8px;
        font-size: 9px;
        font-weight: 600;
        min-width: 14px;
        height: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    /* Hide original filter toggle button on mobile - replaced by search bar version */
    #mobile-filter-toggle {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
    }

    /* Hide radius slider in search panel on mobile (moved to filter dropdown) */
    .poi-search-panel .radius-slider-container {
        display: none;
    }

    /* Show radius slider inside filter dropdown */
    #mobile-radius-slot .radius-slider-container {
        display: block;
        padding: 12px 20px;
        border-bottom: 1px solid #dadce0;
    }

    body.dark-theme #mobile-radius-slot .radius-slider-container {
        border-bottom-color: #5f6368;
        margin-top: 0.5em;
    }
}
