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

/* 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;
}
body.dark-theme #poi-favorite-btn {
    color: #fabdbd;
}
body.dark-theme .poi-favorite-btn:hover {
    color: #bb0e0e;
}
body.dark-theme .poi-favorite-btn.active {
    color: #bb0e0e;
}
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;
}

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,
body.dark-theme .maplibregl-ctrl-zoom-in,
body.dark-theme .maplibregl-ctrl-zoom-out,
body.dark-theme .maplibregl-ctrl-compass,
body.dark-theme .maplibregl-ctrl-geolocate {
    background-color: #303134 !important;
    color: #9aa0a6 !important;
}

body.dark-theme .maplibregl-ctrl button:hover,
body.dark-theme .maplibregl-ctrl-zoom-in:hover,
body.dark-theme .maplibregl-ctrl-zoom-out:hover,
body.dark-theme .maplibregl-ctrl-compass:hover,
body.dark-theme .maplibregl-ctrl-geolocate: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-bottom-sheet.fade*/ {opacity: 0.8;}
.maplibregl-ctrl-bottom-right {display: none;}
.maplibregl-ctrl-top-right {
    top: 46%;
    z-index: 10;
}
.maplibregl-ctrl-top-right .maplibregl-ctrl {
    margin: 0px 10px 0 0;
}

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

.maplibregl-ctrl-zoom-in,
.maplibregl-ctrl-zoom-out {
    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;
    font-size: 18px !important;
    font-weight: 400 !important;
    transition: all 0.2s !important;
}

.maplibregl-ctrl-zoom-in:hover,
.maplibregl-ctrl-zoom-out:hover {
    background-color: rgba(0, 0, 0, 0.04) !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: 4.8em;
    transform: translate(-120%, 0);
    width: 400px;
    max-width: 90vw;
    max-height: 85vh;
    z-index: 50;
    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, 0);
    opacity: 1;
    pointer-events: auto;
}

/* When search panel is open, position popup to the right of search */
.poi-popup.with-search-open {
    left: 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-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;
}

.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: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    font-size: 32px;
    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);
}

.poi-popup-header {
    padding: 0.5em;
    background: white;
    border-bottom: none;
    display: 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: 8px;
    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 {
    display: none; /* Hidden on desktop */
}

@media (max-width: 1024px) {
    .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.6em;
        /*font-weight: 200;
        line-height: 0;
        padding: 0;
        margin: 0;*/
        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;
}

.poi-header-meta {
    display: contents;
    /*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;
}

.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: auto;
    max-height: 9em;
}

.opening-hours-list {
    margin-top: 8px;
    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;
}
.status-nearly-closed {
    color: #cd6b29;
}
.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;
}

.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;
}*/
@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;
    }
}

/* 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;
}

/* Google Maps Style Search Panel */
.poi-search-panel {
    z-index: 15;
    position: absolute;
    top: 1.2em;
    left: 1em;
    right: auto;
    bottom: auto;
    width: 100%;
    min-width: 280px;
    max-width: 400px;
    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;
}

#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);
}

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

.search-results {
    max-height: 92em;
    overflow-y: auto;
    border-top: 1px solid #e8eaed;
    display: none;
}

.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;
}

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

/* POI Name */
.poi-name {
    margin: 0 0 6px 0;
    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;
}

/* 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;
}

.reviews-bottom-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: 201;
    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-bottom-sheet.visible {
    transform: translate(0, -50%);
    opacity: 1;
}

.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.6em 0.7em;
    overflow-y: auto;
    flex-grow: 1;
    margin-bottom: 7vh;
}

.review-item {
    padding-bottom: 1em;
    border-bottom: 1px solid #eee;
}
.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;
}

.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: 95vw;
        max-width: 95vw;
        font-size: 1em;
        left: 50%;
        top: auto;
        bottom: 0;
        transform: translate(-50%, 120%);
        border-radius: 16px 16px 0 0;
    }
    .poi-popup.visible {
        transform: translate(-50%, 0);
    }
    .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 {
        top: 8px;
        left: 8px;
        right: 8px;
        min-width: unset;
        max-width: unset;
    }

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

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

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

    #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: 20px 16px 12px;
    }

    .poi-popup-title {
        font-size: 18px;
    }
}

@media (max-width: 480px) {
    .poi-search-panel {
        top: 0.5em;
        left: 0.5em;
        right: 0.5em;
        width: 97%;
    }
    
    #poi-search-input {
        padding: 10px 14px;
        font-size: 16px;
    }
    
    .search-button {
        min-width: 40px;
        padding: 0 10px;
    }
    
    #category-filter-list {
        min-width: 240px;
    }
}

/* Comment Form Styles */
.add-comment-container {
    margin: 1rem 0;
}

.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: #e0dbff;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    margin-top: 0.5rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    opacity: 0;
    transform: translateY(10px);
    visibility: hidden;
    transition: all 0.3s ease-out;
}

.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;
}
