* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    /* border: #004a8a solid 1px; */
}

html, body {
    touch-action: pan-x pan-y;
    -webkit-touch-callout: none;
    user-select: none;
    overflow-y: auto !important;
    overflow-x: hidden;
    height: 100% !important;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

.container {
    position: relative;
    width: 100%;
    height: 100vh !important;
    overflow: hidden;
    max-width: 100%;
    min-height: 100vh;
}

body {
    font-family: 'Poppins', 'Montserrat', Arial, sans-serif;
    line-height: 1.6;
    background-color: #f8f9fa;
}

header {
    background-color: transparent;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    height: 60px;
    box-shadow: none;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header h1 {
    margin: 0;
    font-size: 1.5rem;
    text-align: left;
}

.search-container {
    display: flex;
    max-width: 400px;
    width: 10%;
}

.search-container img {
    max-height: 50px;
    padding-left: 1%;
    margin-right: 10px;
}

/* Mobile clickable logo styles */
.clickable-logo {
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
    max-height: 50px;
    padding-left: 1%;
    margin-right: 10px;
}

.clickable-logo:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

.clickable-logo:active {
    transform: scale(0.95);
}

/* Hide clickable functionality on desktop where desktop sidebar handles it */
@media (min-width: 769px) {
    .clickable-logo {
        cursor: default;
        pointer-events: none;
    }
    .clickable-logo:hover {
        transform: none;
        opacity: 1;
    }
}

#locationSearch {
    flex-grow: 1;
    padding: 0px 0px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    outline: none;
}

#searchButton {
    padding: 8px 15px;
    background-color: rgba(135, 227, 255, 0);
    border: none;
    border-radius: 10px;
    color: rgb(0, 0, 0);
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#searchButton:hover {
    background-color: #0063b1;
    color: white;
}

#searchButton:active {
    background-color: #004a8a;
    color: white;
}

#searchButton:focus {
    outline: none;
    background-color: rgba(135, 227, 255, 0);
    color: rgb(0, 0, 0);
}

/* Mobile-specific search button styles */
@media (max-width: 991px) {
    #searchButton:hover {
        background-color: rgba(135, 227, 255, 0.3);
        color: rgb(0, 0, 0);
    }
    
    #searchButton:active {
        background-color: rgba(135, 227, 255, 0.5);
        color: rgb(0, 0, 0);
    }
    
    #searchButton:focus {
        background-color: rgba(135, 227, 255, 0);
        color: rgb(0, 0, 0);
    }
}

#map {
    position: absolute !important;
    top: 0 !important;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100% !important;
    height: 100vh !important;
    z-index: 1;
    display: block !important;
    visibility: visible !important;
}

.category-panel {
    position: fixed;
    top: 50px !important;
    left: 10px;
    z-index: 999;
    background-color: rgba(255, 255, 255, 0);
    display: flex;
    flex-direction: column;
}

.category-button {
    background-color: white;
    border: none;
    border-radius: 20px;
    padding: 10px 15px;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: auto;
    flex: 0 0 auto;
    margin-bottom: 10px;
    text-align: left;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.category-button.active {
    background: linear-gradient(135deg, #87ceeb 0%, #b0e0e6 100%);
    color: #2c3e50;
    font-weight: 600;
    border: 1px solid #87ceeb;
    box-shadow: 0 2px 4px rgba(135, 206, 235, 0.3);
}

.category-button.secondary {
    opacity: 0.9;
    background-color: #f5f5f5;
    border: 1px solid #ddd;
}

/* Desktop Category Buttons Row */
.desktop-category-buttons {
    position: fixed;
    top: 20px;
    left: 420px;
    z-index: 1100;
    display: none;
    gap: 8px;
    flex-wrap: nowrap;
    max-width: 100%;
    background: transparent;
    padding: 10px 15px;
    box-shadow: none;
    overflow-x: visible;
}

.desktop-category-buttons .category-button {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 6px 15px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    white-space: nowrap;
    flex: 0 0 auto;
    max-width: none;
    width: auto;
    text-align: center;
}

.desktop-category-buttons .category-button.active {
    background: linear-gradient(135deg, #87ceeb 0%, #b0e0e6 100%);
    color: #2c3e50;
    font-weight: 600;
    border: 1px solid #87ceeb;
    box-shadow: 0 3px 6px rgba(135, 206, 235, 0.4);
    transform: translateY(-1px);
}

.desktop-category-buttons .category-button:hover {
    background-color: #f5f5f5;
    transform: translateY(-2px);
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.desktop-category-buttons .category-button.active:hover {
    background: linear-gradient(135deg, #87ceeb 0%, #b0e0e6 100%);
    color: #2c3e50;
}

/* Desktop Category Sidebar */
.desktop-category-sidebar {
    position: fixed;
    top: 0px;
    left: 0;
    width: 400px;
    height: 100vh;
    background-color: white;
    box-shadow: 2px 0 5px rgba(0,0,0,0.2);
    z-index: 998;
    overflow-y: auto;
    padding: 20px;
    display: none;
    border-right: 1px solid #e0e0e0;
}

.desktop-category-sidebar h3 {
    margin-bottom: 20px;
    font-size: 1.5rem;
    color: #333;
    border-bottom: 2px solid #4a90e2;
    padding-bottom: 10px;
    align-self: center;
    width: 100%;
    text-align: center;
}

.desktop-category-sidebar .search-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 360px;
    background: none;
    border: none;
    padding: 8px 15px;
    box-sizing: border-box;
    align-self: center;
}

.desktop-category-sidebar .menu-button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
    border-radius: 8px;
    transition: all 0.2s;
    width: 50px;
    height: 50px;
    display: block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: relative;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.desktop-category-sidebar .menu-button:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.desktop-category-sidebar .menu-button img {
    max-height: 30px;
    max-width: 30px;
    display: block;
    pointer-events: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.desktop-category-sidebar .logo-img {
    max-height: 50px;
    width: auto;
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
}

.desktop-category-sidebar .search-button {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    color: #333;
    cursor: pointer;
    padding: 0;
    border-radius: 8px;
    transition: all 0.2s;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: block;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    font-size: 20px;
    position: relative;
    outline: none;
    -webkit-tap-highlight-color: transparent;
}

.desktop-category-sidebar .search-button:hover {
    background-color: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    transform: translateY(-1px);
}

.desktop-category-sidebar .search-button i {
    pointer-events: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Search popup modal */
.search-popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1500;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-popup-content {
    background: white;
    border-radius: 12px;
    padding: 0;
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

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

.search-popup-header h3 {
    margin: 0;
    color: #333;
    font-size: 1.3rem;
}

.search-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 5px;
    line-height: 1;
}

.search-popup-close:hover {
    color: #333;
}

.search-popup-body {
    padding: 20px 25px 25px;
}

.search-popup-body input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.search-popup-body input:focus {
    border-color: #4a90e2;
}

.search-results {
    margin-top: 15px;
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    padding: 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.search-result-item:hover {
    background-color: #f8f9fa;
    border-color: #4a90e2;
    transform: translateY(-1px);
}

.search-result-image {
    width: 60px;
    height: 60px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.search-result-content {
    padding: 12px 15px;
    flex: 1;
}

.search-result-name {
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.search-result-type {
    font-size: 0.9rem;
    color: #666;
}

.sidebar-places-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    align-items: center;
}

.sidebar-place-card {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    background-color: white;
    width: 100%;
    max-width: 360px;
}

.sidebar-place-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}

.sidebar-place-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.place-discount-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: #ff4757;
    color: white;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.sidebar-place-content {
    padding: 15px;
}

.place-name-rating {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.place-name-rating h4 {
    font-size: 18px;
    margin: 0;
    font-weight: 600;
    color: #333;
}

.place-rating {
    color: #ff9f1a;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.place-rating span {
    margin-left: 5px;
    font-size: 13px;
    color: #666;
}

.place-description {
    font-size: 13px;
    color: #666;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.place-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
}

.place-price {
    color: #333;
    font-weight: 600;
}

.place-category {
    color: #666;
    background-color: #f5f5f5;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 12px;
}

/* Mobile slide-up panel */
.mobile-slide-panel {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    background-color: white !important;
    border-radius: 15px 15px 0 0;
    box-shadow: 0 -4px 10px rgba(0,0,0,0.1);
    transform: translateY(calc(100vh - 70px));
    transition: transform 0.3s ease;
    z-index: 2000 !important;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    /* HIDE on desktop, SHOW on mobile */
    display: none;
    visibility: hidden;
    opacity: 0;
    /* iPhone specific optimizations */
    will-change: transform;
    /* Ensure proper scrolling on iOS */
    -webkit-overflow-scrolling: touch;
    /* Better iPhone support with safe areas */
    bottom: max(0px, env(safe-area-inset-bottom, 0px)) !important;
}

.mobile-slide-panel.dragging {
    transition: none !important;
    pointer-events: auto;
}

.mobile-slide-panel.dragging .slide-panel-content {
    overflow: hidden;
    pointer-events: none;
}

/* Re-enable scrolling when not dragging */
.mobile-slide-panel:not(.dragging) .slide-panel-content {
    overflow-y: auto;
    pointer-events: auto;
}

.mobile-slide-panel.mid-expanded {
    transform: translateY(40vh) !important;
}

/* New state: only 20% of panel visible (80% map visible) */
.mobile-slide-panel.twenty-visible {
    transform: translateY(80vh) !important;
}

.mobile-slide-panel.quarter-expanded {
    transform: translateY(75vh) !important;
}

.mobile-slide-panel.expanded {
    transform: translateY(80px) !important;
}

.slide-panel-handle {
    height: 70px !important;
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: white !important;
    border-radius: 15px 15px 0 0;
    cursor: grab;
    position: relative;
    z-index: 2001 !important;
    /* Ensure handle is always touchable */
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
    /* Force visibility on iPhone */
    visibility: visible !important;
    opacity: 1 !important;
    /* Hardware acceleration for better iPhone performance */
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    will-change: transform;
}

.slide-panel-handle::before {
    content: '';
    width: 40px;
    height: 4px;
    background-color: #ccc;
    border-radius: 2px;
    margin-bottom: 8px;
}

.slide-panel-handle span {
    font-size: 14px;
    font-weight: 500;
    color: #333;
}

.slide-panel-content {
    padding: 15px 15px 150px 15px;
    height: calc(100% - 70px);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    /* Better scroll behavior */
    overscroll-behavior: contain;
    /* Fix for momentum scrolling on iOS */
    -webkit-overflow-scrolling: touch;
    /* Ensure scroll indicators are visible */
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
    /* Remove any max-height constraints */
    max-height: none !important;
    /* Better touch handling */
    touch-action: pan-y;
}

/* Force scroll area to be properly calculated */
.mobile-slide-panel .slide-panel-content {
    height: calc(100vh - 150px) !important;
    min-height: calc(100vh - 150px) !important;
}

/* Webkit scrollbar styling for better visibility */
.slide-panel-content::-webkit-scrollbar {
    width: 4px;
}

.slide-panel-content::-webkit-scrollbar-track {
    background: transparent;
}

.slide-panel-content::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.slide-panel-content::-webkit-scrollbar-thumb:hover {
    background: #999;
}

.mobile-places-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 10px 10px 120px 10px;
    margin-bottom: 100px;
}

/* Ensure last items in grid have extra space */
.mobile-place-card:nth-last-child(-n+2) {
    margin-bottom: 40px;
}

.mobile-place-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
    height: 220px;
    display: flex;
    flex-direction: column;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    border: 1px solid #e0e0e0;
    z-index: 10;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(65,160,243,0.2);
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
}

.mobile-place-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mobile-place-card:active {
    background-color: #f0f8ff;
    border-color: #41a0f3;
    transform: scale(0.98);
    box-shadow: 0 1px 4px rgba(65,160,243,0.3);
}

.mobile-place-card:focus {
    outline: 2px solid #41a0f3;
    outline-offset: -2px;
}

.mobile-place-card.active {
    background-color: #f0f8ff;
}

.mobile-place-card .place-discount-tag {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #FF5722;
    color: white;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 12px;
    z-index: 1;
}

.mobile-place-card .place-image {
    height: 120px;
    background-size: cover;
    background-position: center;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.mobile-place-card .place-content {
    padding: 12px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.mobile-place-card .place-name-rating {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 6px;
}

.mobile-place-card h4 {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0;
    line-height: 1.2;
}

.mobile-place-card .place-rating {
    color: #ff9f1a;
    font-size: 13px;
    white-space: nowrap;
    margin-left: 8px;
}

.mobile-place-card .place-description {
    font-size: 12px;
    color: #666;
    line-height: 1.3;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-place-card .place-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}

.mobile-place-card .place-price {
    color: #333;
    font-weight: 600;
}

.mobile-place-card .place-category {
    color: #666;
    background-color: #f5f5f5;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 11px;
}

/* Common styles for all screen sizes */
.overlay {
    position: absolute;
    top: 70px;
    right: 10px;
    z-index: 999;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    width: 250px;
    max-height: calc(100% - 90px);
    overflow-y: auto;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.filter-section, .info-section {
    margin-bottom: 20px;
}

h3 {
    margin-bottom: 10px;
    border-bottom: 1px solid #ddd;
    padding-bottom: 5px;
}

.fullscreen-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(5px);
    z-index: 2000;
    display: none;
    overflow-y: auto;
}

.popup-content {
    background-color: white;
    width: 90%;
    max-width: 1200px;
    margin: 50px auto;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding: 20px 25px 15px;
    background: linear-gradient(135deg, #3E6191 0%, #2C4B73 100%);
    color: white;
    border-radius: 8px 8px 0 0;
    position: relative;
}

.popup-header h2 {
    color: white;
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    flex: 1;
    text-align: center;
}

.close-popup {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
    padding: 5px 10px;
    transition: all 0.2s;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-popup:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    padding: 25px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.category-card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.18);
}

.category-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.category-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(transparent, rgba(0,0,0,0.3));
}

.category-title {
    padding: 20px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    background-color: white;
    color: #333;
    letter-spacing: 0.5px;
    text-transform: capitalize;
}

/* Places Grid in Popup */
.places-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 25px;
    padding: 25px;
    max-height: calc(100vh - 160px);
    overflow-y: auto;
}

.place-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.place-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(0,0,0,0.18);
}

.place-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.place-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(transparent, rgba(0,0,0,0.4));
}

.place-rating-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.place-rating-badge i {
    color: #FFD700;
    margin-right: 4px;
}

.place-info {
    padding: 25px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.place-name {
    font-size: 20px;
    font-weight: 700;
    color: #333;
    margin: 0;
    line-height: 1.3;
}

.place-address {
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.place-address i {
    color: #888;
    font-size: 12px;
}

.place-desc {
    color: #555;
    font-size: 15px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 8px 0;
}

.details-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #3E6191 0%, #2C4B73 100%);
    color: white;
    text-decoration: none;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    margin-top: auto;
    text-align: center;
}

.details-button:hover {
    background: linear-gradient(135deg, #2C4B73 0%, #1E3A5F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(62, 97, 145, 0.3);
    text-decoration: none;
    color: white;
}

.details-button i {
    font-size: 14px;
}

.no-places {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    font-size: 18px;
    font-style: italic;
    background: #f8f9fa;
    border-radius: 12px;
    margin: 25px;
}

/* Back button styling in popup header */
#backToCategories,
.back-button {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 20px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: auto;
    height: 36px;
    margin-right: 10px;
    font-weight: 500;
}

#backToCategories:hover,
.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateX(-2px);
}

#backToCategories i,
.back-button i {
    font-size: 14px;
}

.places-panel {
    position: absolute;
    top: 130px;
    left: 220px;
    z-index: 998;
    display: none;
    flex-wrap: wrap;
    gap: 10px;
    max-width: calc(100% - 280px);
    background: rgba(255,255,255,0.9);
    border-radius: 8px;
    padding: 10px;
}

.place-button {
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 12px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    min-width: 120px;
    margin: 5px;
}

.place-button:hover {
    background-color: #f0f0f0;
    transform: translateY(-2px);
}

.no-results {
    padding: 30px;
    text-align: center;
    color: #666;
    font-style: italic;
}

/* Menu Popup Modal Styles */
.menu-popup-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(2px);
}

.menu-popup-content {
    background: #fff;
    max-width: 350px;
    margin: 10vh auto;
    padding: 24px 20px 16px 20px;
    border-radius: 12px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.15);
    position: relative;
    animation: menuPopupSlideIn 0.3s ease-out;
}

@keyframes menuPopupSlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.menu-popup-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: #666;
    transition: color 0.2s;
}

.menu-popup-close:hover {
    color: #e74c3c;
}

.menu-popup-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.menu-popup-button {
    padding: 10px 0;
    font-size: 1em;
    border-radius: 6px;
    border: 1px solid #3E6191;
    background: #f5f8fd;
    color: #3E6191;
    cursor: pointer;
    transition: all 0.2s;
}

.menu-popup-button:hover {
    background: #3E6191;
    color: white;
}

.menu-popup-content-area {
    margin-top: 18px;
    font-size: 0.98em;
    color: #222;
    line-height: 1.5;
}

/* Mobile Menu Popup Styles */
.mobile-menu-popup {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}

.mobile-menu-content {
    background: #fff;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 400px;
    max-height: 80vh;
    border-radius: 20px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
    animation: mobileMenuFadeIn 0.3s ease-out;
    overflow: hidden;
}

@keyframes mobileMenuFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 10px 20px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 1.3em;
    color: #333;
    font-weight: 600;
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 1.8em;
    color: #666;
    cursor: pointer;
    padding: 5px;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.mobile-menu-close:active {
    background: #f0f0f0;
    transform: scale(0.95);
}

.mobile-menu-buttons {
    display: flex;
    flex-direction: column;
    padding: 20px;
    gap: 15px;
}

.mobile-menu-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    font-size: 1.1em;
    border-radius: 12px;
    border: none;
    background: #f8f9fa;
    color: #333;
    cursor: pointer;
    transition: all 0.2s;
    text-align: left;
    position: relative;
    overflow: hidden;
}

.mobile-menu-button:active {
    background: #3E6191;
    color: white;
    transform: scale(0.98);
}

.mobile-menu-button i {
    font-size: 1.2em;
    color: #3E6191;
    transition: color 0.2s;
}

.mobile-menu-button:active i {
    color: white;
}

.mobile-menu-content-area {
    padding: 0 20px 30px 20px;
    font-size: 1em;
    color: #444;
    line-height: 1.6;
    max-height: 40vh;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.mobile-menu-content-area::-webkit-scrollbar {
    width: 4px;
}

.mobile-menu-content-area::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.mobile-menu-content-area::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.mobile-menu-content-area::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* DESKTOP STYLES - 992px and above */
@media (min-width: 992px) {
    /* Show desktop elements */
    .desktop-category-sidebar {
        display: flex !important;
        flex-direction: column;
        align-items: center;
    }
    
    .desktop-category-buttons {
        display: flex !important;
    }
    
    /* Hide mobile elements */
    .mobile-slide-panel {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }
    
    .category-panel {
        display: none !important;
    }
    
    .header-content {
        display: none !important;
    }
    
    /* Hide mobile menu popup on desktop */
    .mobile-menu-popup {
        display: none !important;
    }
    
    /* Adjust map for desktop sidebar */
    #map {
        position: fixed !important;
        top: 0 !important;
        bottom: 0 !important;
        left: 400px !important;
        right: 0 !important;
        margin: 0 !important;
        width: auto !important;
        height: 100vh !important;
    }
    
    /* Adjust places panel for desktop */
    .places-panel {
        left: 420px !important;
    }
}

/* MOBILE STYLES - Under 992px */
@media (max-width: 991px) {
    /* Hide desktop elements */
    .desktop-category-sidebar,
    .desktop-category-buttons {
        display: none !important;
    }
    
    /* Hide desktop menu popup on mobile */
    .menu-popup-modal {
        display: none !important;
    }
    
    /* Show mobile elements */
    .mobile-slide-panel {
        display: block !important;
    }
    
@media (max-width: 991px) {
    .category-panel {
        display: flex !important;
        position: fixed;
        top: 65px !important; /* Moved higher */
        left: 0;
        width: 100%;
        z-index: 990;
        padding: 0px 15px;
        overflow-x: auto;
        white-space: nowrap;
        flex-direction: row;
        flex-wrap: nowrap;
        background-color: rgba(255, 255, 255, 0);
        max-width: 100%;
        justify-content: flex-start;
        border-radius: 0;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
}

    
    .category-panel::-webkit-scrollbar {
        display: none;
    }
    
    .category-button {
        padding: 8px 12px;
        min-width: auto;
        font-size: 0.68rem;
        margin: 0 5px;
        flex: 0 0 auto;
        border: 1px solid rgb(0, 0, 0);
        margin-bottom: 0;
        scroll-snap-align: center;
        white-space: nowrap;
        color: black;
        background-color: white;
        font-weight: 600;
        transition: all 0.2s ease;
    }
    
    .category-button:active {
        background-color: #2980b9;
        color: white;
        border: 1px solid #2980b9;
        transform: scale(0.98);
    }
    
    .category-button.active {
        background: linear-gradient(135deg, #87ceeb 0%, #b0e0e6 100%);
        color: #2c3e50;
        font-weight: 600;
        border: 1px solid #87ceeb;
        box-shadow: 0 2px 4px rgba(135, 206, 235, 0.3);
        transform: translateY(-1px);
    }
    
    .category-button.active:active {
        background: linear-gradient(135deg, #5dade2 0%, #87ceeb 100%);
        color: #1a252f;
        border: 1px solid #5dade2;
        transform: scale(0.98);
    }
    
    .category-button.secondary {
        opacity: 0.9;
        background-color: #f5f5f5;
        border: 1px solid rgb(0, 0, 0);
    }
    
    .category-button.secondary:active {
        background-color: #2980b9;
        color: white;
        border: 1px solid #2980b9;
    }
    
    /* Adjust header for mobile */
    .header-content {
        display: flex !important;
        margin-top: 15px;
       
    }
    
    .header-content img {
        max-height: 30px !important;
        width: auto !important;
        margin: 5px 10px 0 0 !important;
    }
    
    .search-container {
        width: calc(100% - 60px) !important;
        background-color: rgba(103, 210, 243, 0.438);
        border-radius: 20px;
        border: 1px solid #68b2f3;
        box-sizing: border-box;
    }
    
    #locationSearch {
        font-size: 11px;
        background-color: rgba(135, 227, 255, 0.26);
        padding-left: 15px !important;
    }
    
    #locationSearch::placeholder {
        color: #fff;
        opacity: 1;
    }
    
    /* Reset map to full width on mobile */
    #map {
        margin-left: 0 !important;
        width: 100% !important;
        left: 0 !important;
    }
    
    /* Reset places panel position for mobile */
    .places-panel {
        left: 10px !important;
        top: 130px;
        max-width: calc(100% - 20px);
    }
    
    /* Adjust mobile menu popup for smaller screens */
    .menu-popup-content {
        margin: 5vh 15px;
        max-width: none;
        padding: 20px 16px 20px 16px;
        max-height: 85vh;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .menu-popup-content-area {
        margin-bottom: 20px;
        padding-bottom: 20px;
    }
}

/* Extra small screens */
@media (max-width: 360px) {
    .mobile-places-grid {
        grid-template-columns: 1fr;
    }
    
    .category-panel {
        top: 30px;
    }
    
    .header-content img {
        max-height: 25px !important;
    }
    
    .menu-popup-content {
        margin: 3vh 10px;
        padding: 16px 12px 24px 12px;
    }
}

/* iOS Safari specific fixes */
@supports (-webkit-touch-callout: none) {
    .mobile-slide-panel {
        /* Use fill-available on iOS for better support */
        height: -webkit-fill-available;
        /* Ensure it's above iOS Safari toolbars */
        bottom: env(safe-area-inset-bottom, 0);
        transform: translateY(calc(100vh - 70px));
        /* Force hardware acceleration */
        will-change: transform;
    }
    
    .slide-panel-content {
        /* Extra bottom padding for iOS Safari */
        padding-bottom: 180px;
        /* Ensure scroll works properly */
        -webkit-overflow-scrolling: touch;
    }
    
    /* Handle iPhone notch and bottom bar */
    .mobile-slide-panel.expanded {
        transform: translateY(max(80px, env(safe-area-inset-top, 80px)));
    }
    
    .mobile-slide-panel.mid-expanded {
        transform: translateY(40vh);
    }
}

/* Additional mobile viewport fixes */
@media (max-height: 600px) {
    .mobile-slide-panel.expanded {
        transform: translateY(60px);
    }
    
    .mobile-slide-panel.mid-expanded {
        transform: translateY(30vh);
    }
}

@media (max-height: 500px) {
    .mobile-slide-panel.expanded {
        transform: translateY(40px);
    }
    
    .mobile-slide-panel.mid-expanded {
        transform: translateY(25vh);
    }
}

/* Force visibility ONLY on mobile devices */
@media (max-width: 768px) {
    .mobile-slide-panel {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        position: fixed !important;
        bottom: 0 !important;
        z-index: 2000 !important;
    }
}

/* Hide on desktop explicitly */
@media (min-width: 769px) {
    .mobile-slide-panel {
        display: none !important;
        visibility: hidden !important;
        opacity: 0 !important;
    }
}

/* iPhone specific fixes - FORCE PANEL TO APPEAR */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2),
       (max-width: 768px) and (min-resolution: 192dpi) {
    .mobile-slide-panel {
        /* Keep visibility overrides */
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 2000 !important;
        visibility: visible !important;
        opacity: 1 !important;

        /* Allow JS/CSS classes to control translateY */
        will-change: transform !important;
        /* Removed forced transform that blocked sliding */
        /* -webkit-transform: translateZ(0) translateY(calc(100vh - 70px)) !important; */
        /* transform: translateZ(0) translateY(calc(100vh - 70px)) !important; */

        /* Override any potential hiding styles */
        clip: unset !important;
        clip-path: unset !important;
        max-height: 100vh !important;
        min-height: 100vh !important;

        /* Keep neutral background (no debug border) */
        background-color: #ffffff !important;
        background: #ffffff !important;
        /* Removed: border-top debug line */
        /* border-top: 3px solid #007AFF !important; */
    }

    .slide-panel-handle {
        /* Keep handle visible/touchable, remove blue border */
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        background-color: #ffffff !important;
        background: #ffffff !important;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.2) !important;
        height: 70px !important;
        z-index: 2001 !important;

        /* Hardware acceleration (does not override panel transform) */
        -webkit-transform: translateZ(0) !important;
        transform: translateZ(0) !important;
        will-change: transform !important;
        /* Removed: border-top: 2px solid #007AFF !important; */
    }

    /* Remove debug overrides for the drag indicator so it uses base styles */
    /* .slide-panel-handle::before { */
    /*     background-color: #007AFF !important; */
    /*     width: 50px !important; */
    /*     height: 5px !important; */
    /* } */
}

/* ======================
   LEAFLET POPUP STYLING
   ====================== */

/* Custom Leaflet popup styling */
.custom-leaflet-popup .leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-leaflet-popup .leaflet-popup-content {
    margin: 0;
    padding: 0;
    width: auto !important;
}

.custom-leaflet-popup .leaflet-popup-tip {
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Marker popup content styling */
.marker-popup {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.4;
    max-width: 400px;
    min-width: 350px;
}

/* Custom waypoint marker styling */
.custom-waypoint-marker {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Remove any Leaflet default styling for custom markers */
.leaflet-marker-icon.custom-waypoint-marker {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Remove shadow from marker images */
.leaflet-marker-icon.custom-waypoint-marker img {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Allow map interaction through popups */
.leaflet-popup-content-wrapper {
    pointer-events: auto !important;
}

.leaflet-popup-content {
    pointer-events: auto !important;
    touch-action: pan-x pan-y !important;
}

.marker-popup .popup-header {
    padding: 16px 16px 12px 16px;
    background: linear-gradient(135deg, #3E6191 0%, #2C4B73 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.marker-popup .popup-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.marker-popup .popup-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    opacity: 0.9;
}

.marker-popup .popup-type {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.marker-popup .popup-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.marker-popup .popup-rating i {
    color: #FFD700;
    font-size: 12px;
}

.marker-popup .popup-body {
    padding: 16px;
    background: white;
}

.marker-popup .popup-body > div {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
}

.marker-popup .popup-body > div:last-child {
    margin-bottom: 0;
}

.marker-popup .popup-body i {
    color: #3E6191;
    font-size: 13px;
    margin-top: 2px;
    min-width: 16px;
}

.marker-popup .popup-address {
    color: #666;
    font-size: 13px;
}

.marker-popup .popup-categories {
    color: #555;
    font-size: 13px;
    font-weight: 500;
}

.marker-popup .popup-features {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.marker-popup .popup-feature {
    background: #E8F4FD;
    color: #3E6191;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}

.marker-popup .popup-more {
    color: #666;
    font-size: 11px;
    font-style: italic;
}

.marker-popup .popup-description {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 4px;
}

.marker-popup .popup-contact {
    color: #555;
    font-size: 13px;
}

.marker-popup .popup-contact a {
    color: #3E6191;
    text-decoration: none;
    font-weight: 500;
}

.marker-popup .popup-contact a:hover {
    text-decoration: underline;
}

.marker-popup .popup-footer {
    padding: 12px 16px 16px 16px;
    background: #F8F9FA;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #E9ECEF;
    display: flex;
    gap: 8px;
}

.marker-popup .popup-details-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #3E6191 0%, #2C4B73 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.marker-popup .popup-map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #34A853 0%, #2C8F47 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.marker-popup .popup-details-btn:hover {
    background: linear-gradient(135deg, #2C4B73 0%, #1E3A5F 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(62, 97, 145, 0.3);
}

.marker-popup .popup-map-btn:hover {
    background: linear-gradient(135deg, #2C8F47 0%, #1E7A3A 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 168, 83, 0.3);
}

.marker-popup .popup-details-btn i {
    font-size: 13px;
    color: white;
}

/* Mobile responsive popup */
@media (max-width: 768px) {
    .custom-leaflet-popup .leaflet-popup-content-wrapper {
        max-width: 340px;
        min-width: 320px;
    }
    
    .marker-popup {
        min-width: 320px;
    }
    
    .marker-popup .popup-title {
        font-size: 16px;
    }
    
    .marker-popup .popup-header {
        padding: 14px 14px 10px 14px;
    }
    
    .marker-popup .popup-body {
        padding: 14px;
    }
    
    .marker-popup .popup-footer {
        padding: 10px 14px 14px 14px;
        flex-direction: column;
    }
    
    .marker-popup .popup-details-btn,
    .marker-popup .popup-map-btn {
        padding: 10px;
        font-size: 13px;
        flex: none;
        width: 100%;
    }
    
    /* Category grid responsive */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .category-card {
        border-radius: 10px;
    }
    
    .category-image {
        height: 140px;
    }
    
    .category-title {
        padding: 15px;
        font-size: 15px;
    }
    
    /* Places grid responsive */
    .places-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 15px;
    }
    
    .place-card {
        border-radius: 12px;
    }
    
    .place-image {
        height: 160px;
    }
    
    .place-info {
        padding: 20px;
        gap: 10px;
    }
    
    .place-name {
        font-size: 18px;
    }
    
    .place-desc {
        font-size: 14px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .details-button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .no-places {
        margin: 15px;
        padding: 40px 20px;
        font-size: 16px;
    }
}

/* Dark mode support for popup */
@media (prefers-color-scheme: dark) {
    .marker-popup .popup-body {
        background: #2A2A2A;
        color: #E0E0E0;
    }
    
    .marker-popup .popup-address,
    .marker-popup .popup-description {
        color: #B0B0B0;
    }
    
    .marker-popup .popup-footer {
        background: #1A1A1A;
        border-top-color: #404040;
    }
    
    .marker-popup .popup-feature {
        background: #1A3A5A;
        color: #87CEEB;
    }
}

/* MOBILE-ONLY FORCE OVERRIDE FOR IPHONE */
@media (max-width: 768px) {
    #visiblePlacesPanel {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 2000 !important;
        visibility: visible !important;
        opacity: 1 !important;
        background-color: #ffffff !important;
        background: #ffffff !important;
        /* Allow transforms for sliding functionality */
        will-change: transform !important;
        /* Force override any hiding attempts */
        clip: unset !important;
        clip-path: unset !important;
        max-height: 100vh !important;
        min-height: 100vh !important;
        /* Ensure touch events work */
        pointer-events: auto !important;
        touch-action: pan-y !important;
    }

    #visiblePlacesPanel .slide-panel-handle {
        display: flex !important;
        height: 70px !important;
        background-color: #ffffff !important;
        background: #ffffff !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 2001 !important;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.3) !important;
        /* Ensure handle is touchable */
        pointer-events: auto !important;
        touch-action: none !important;
        cursor: grab !important;
        /* Remove any debug blue styling if present */
        border-top: none !important;
    }
}

/* ======================
   LEAFLET POPUP STYLING
   ====================== */

/* Custom Leaflet popup styling */
.custom-leaflet-popup .leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-leaflet-popup .leaflet-popup-content {
    margin: 0;
    padding: 0;
    width: auto !important;
}

.custom-leaflet-popup .leaflet-popup-tip {
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Marker popup content styling */
.marker-popup {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.4;
    max-width: 400px;
    min-width: 350px;
}

/* Custom waypoint marker styling */
.custom-waypoint-marker {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Remove any Leaflet default styling for custom markers */
.leaflet-marker-icon.custom-waypoint-marker {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.marker-popup .popup-header {
    padding: 16px 16px 12px 16px;
    background: linear-gradient(135deg, #3E6191 0%, #2C4B73 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.marker-popup .popup-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.marker-popup .popup-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    opacity: 0.9;
}

.marker-popup .popup-type {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.marker-popup .popup-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.marker-popup .popup-rating i {
    color: #FFD700;
    font-size: 12px;
}

.marker-popup .popup-body {
    padding: 16px;
    background: white;
}

.marker-popup .popup-body > div {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
}

.marker-popup .popup-body > div:last-child {
    margin-bottom: 0;
}

.marker-popup .popup-body i {
    color: #3E6191;
    font-size: 13px;
    margin-top: 2px;
    min-width: 16px;
}

.marker-popup .popup-address {
    color: #666;
    font-size: 13px;
}

.marker-popup .popup-categories {
    color: #555;
    font-size: 13px;
    font-weight: 500;
}

.marker-popup .popup-features {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.marker-popup .popup-feature {
    background: #E8F4FD;
    color: #3E6191;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}

.marker-popup .popup-more {
    color: #666;
    font-size: 11px;
    font-style: italic;
}

.marker-popup .popup-description {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 4px;
}

.marker-popup .popup-contact {
    color: #555;
    font-size: 13px;
}

.marker-popup .popup-contact a {
    color: #3E6191;
    text-decoration: none;
    font-weight: 500;
}

.marker-popup .popup-contact a:hover {
    text-decoration: underline;
}

.marker-popup .popup-footer {
    padding: 12px 16px 16px 16px;
    background: #F8F9FA;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #E9ECEF;
    display: flex;
    gap: 8px;
}

.marker-popup .popup-details-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #3E6191 0%, #2C4B73 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.marker-popup .popup-map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #34A853 0%, #2C8F47 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.marker-popup .popup-details-btn:hover {
    background: linear-gradient(135deg, #2C4B73 0%, #1E3A5F 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(62, 97, 145, 0.3);
}

.marker-popup .popup-map-btn:hover {
    background: linear-gradient(135deg, #2C8F47 0%, #1E7A3A 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 168, 83, 0.3);
}

.marker-popup .popup-details-btn i {
    font-size: 13px;
    color: white;
}

/* Mobile responsive popup */
@media (max-width: 768px) {
    .custom-leaflet-popup .leaflet-popup-content-wrapper {
        max-width: 340px;
        min-width: 320px;
    }
    
    .marker-popup {
        min-width: 320px;
    }
    
    .marker-popup .popup-title {
        font-size: 16px;
    }
    
    .marker-popup .popup-header {
        padding: 14px 14px 10px 14px;
    }
    
    .marker-popup .popup-body {
        padding: 14px;
    }
    
    .marker-popup .popup-footer {
        padding: 10px 14px 14px 14px;
        flex-direction: column;
    }
    
    .marker-popup .popup-details-btn,
    .marker-popup .popup-map-btn {
        padding: 10px;
        font-size: 13px;
        flex: none;
        width: 100%;
    }
    
    /* Category grid responsive */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .category-card {
        border-radius: 10px;
    }
    
    .category-image {
        height: 140px;
    }
    
    .category-title {
        padding: 15px;
        font-size: 15px;
    }
    
    /* Places grid responsive */
    .places-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 15px;
    }
    
    .place-card {
        border-radius: 12px;
    }
    
    .place-image {
        height: 160px;
    }
    
    .place-info {
        padding: 20px;
        gap: 10px;
    }
    
    .place-name {
        font-size: 18px;
    }
    
    .place-desc {
        font-size: 14px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .details-button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .no-places {
        margin: 15px;
        padding: 40px 20px;
        font-size: 16px;
    }
}

/* Dark mode support for popup */
@media (prefers-color-scheme: dark) {
    .marker-popup .popup-body {
        background: #2A2A2A;
        color: #E0E0E0;
    }
    
    .marker-popup .popup-address,
    .marker-popup .popup-description {
        color: #B0B0B0;
    }
    
    .marker-popup .popup-footer {
        background: #1A1A1A;
        border-top-color: #404040;
    }
    
    .marker-popup .popup-feature {
        background: #1A3A5A;
        color: #87CEEB;
    }
}

/* MOBILE-ONLY FORCE OVERRIDE FOR IPHONE */
@media (max-width: 768px) {
    #visiblePlacesPanel {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 2000 !important;
        visibility: visible !important;
        opacity: 1 !important;
        background-color: #ffffff !important;
        background: #ffffff !important;
        /* Allow transforms for sliding functionality */
        will-change: transform !important;
        /* Force override any hiding attempts */
        clip: unset !important;
        clip-path: unset !important;
        max-height: 100vh !important;
        min-height: 100vh !important;
        /* Ensure touch events work */
        pointer-events: auto !important;
        touch-action: pan-y !important;
    }

    #visiblePlacesPanel .slide-panel-handle {
        display: flex !important;
        height: 70px !important;
        background-color: #ffffff !important;
        background: #ffffff !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 2001 !important;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.3) !important;
        /* Ensure handle is touchable */
        pointer-events: auto !important;
        touch-action: none !important;
        cursor: grab !important;
        /* Remove any debug blue styling if present */
        border-top: none !important;
    }
}

/* ======================
   LEAFLET POPUP STYLING
   ====================== */

/* Custom Leaflet popup styling */
.custom-leaflet-popup .leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-leaflet-popup .leaflet-popup-content {
    margin: 0;
    padding: 0;
    width: auto !important;
}

.custom-leaflet-popup .leaflet-popup-tip {
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Marker popup content styling */
.marker-popup {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.4;
    max-width: 400px;
    min-width: 350px;
}

/* Custom waypoint marker styling */
.custom-waypoint-marker {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Remove any Leaflet default styling for custom markers */
.leaflet-marker-icon.custom-waypoint-marker {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.marker-popup .popup-header {
    padding: 16px 16px 12px 16px;
    background: linear-gradient(135deg, #3E6191 0%, #2C4B73 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.marker-popup .popup-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.marker-popup .popup-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    opacity: 0.9;
}

.marker-popup .popup-type {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.marker-popup .popup-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.marker-popup .popup-rating i {
    color: #FFD700;
    font-size: 12px;
}

.marker-popup .popup-body {
    padding: 16px;
    background: white;
}

.marker-popup .popup-body > div {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
}

.marker-popup .popup-body > div:last-child {
    margin-bottom: 0;
}

.marker-popup .popup-body i {
    color: #3E6191;
    font-size: 13px;
    margin-top: 2px;
    min-width: 16px;
}

.marker-popup .popup-address {
    color: #666;
    font-size: 13px;
}

.marker-popup .popup-categories {
    color: #555;
    font-size: 13px;
    font-weight: 500;
}

.marker-popup .popup-features {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.marker-popup .popup-feature {
    background: #E8F4FD;
    color: #3E6191;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}

.marker-popup .popup-more {
    color: #666;
    font-size: 11px;
    font-style: italic;
}

.marker-popup .popup-description {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 4px;
}

.marker-popup .popup-contact {
    color: #555;
    font-size: 13px;
}

.marker-popup .popup-contact a {
    color: #3E6191;
    text-decoration: none;
    font-weight: 500;
}

.marker-popup .popup-contact a:hover {
    text-decoration: underline;
}

.marker-popup .popup-footer {
    padding: 12px 16px 16px 16px;
    background: #F8F9FA;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #E9ECEF;
    display: flex;
    gap: 8px;
}

.marker-popup .popup-details-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #3E6191 0%, #2C4B73 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.marker-popup .popup-map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #34A853 0%, #2C8F47 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.marker-popup .popup-details-btn:hover {
    background: linear-gradient(135deg, #2C4B73 0%, #1E3A5F 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(62, 97, 145, 0.3);
}

.marker-popup .popup-map-btn:hover {
    background: linear-gradient(135deg, #2C8F47 0%, #1E7A3A 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 168, 83, 0.3);
}

.marker-popup .popup-details-btn i {
    font-size: 13px;
    color: white;
}

/* Mobile responsive popup */
@media (max-width: 768px) {
    .custom-leaflet-popup .leaflet-popup-content-wrapper {
        max-width: 340px;
        min-width: 320px;
    }
    
    .marker-popup {
        min-width: 320px;
    }
    
    .marker-popup .popup-title {
        font-size: 16px;
    }
    
    .marker-popup .popup-header {
        padding: 14px 14px 10px 14px;
    }
    
    .marker-popup .popup-body {
        padding: 14px;
    }
    
    .marker-popup .popup-footer {
        padding: 10px 14px 14px 14px;
        flex-direction: column;
    }
    
    .marker-popup .popup-details-btn,
    .marker-popup .popup-map-btn {
        padding: 10px;
        font-size: 13px;
        flex: none;
        width: 100%;
    }
    
    /* Category grid responsive */
    .category-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .category-card {
        border-radius: 10px;
    }
    
    .category-image {
        height: 140px;
    }
    
    .category-title {
        padding: 15px;
        font-size: 15px;
    }
    
    /* Places grid responsive */
    .places-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 20px 15px;
    }
    
    .place-card {
        border-radius: 12px;
    }
    
    .place-image {
        height: 160px;
    }
    
    .place-info {
        padding: 20px;
        gap: 10px;
    }
    
    .place-name {
        font-size: 18px;
    }
    
    .place-desc {
        font-size: 14px;
        -webkit-line-clamp: 2;
        line-clamp: 2;
    }
    
    .details-button {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .no-places {
        margin: 15px;
        padding: 40px 20px;
        font-size: 16px;
    }
}

/* Dark mode support for popup */
@media (prefers-color-scheme: dark) {
    .marker-popup .popup-body {
        background: #2A2A2A;
        color: #E0E0E0;
    }
    
    .marker-popup .popup-address,
    .marker-popup .popup-description {
        color: #B0B0B0;
    }
    
    .marker-popup .popup-footer {
        background: #1A1A1A;
        border-top-color: #404040;
    }
    
    .marker-popup .popup-feature {
        background: #1A3A5A;
        color: #87CEEB;
    }
}

/* MOBILE-ONLY FORCE OVERRIDE FOR IPHONE */
@media (max-width: 768px) {
    #visiblePlacesPanel {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        z-index: 2000 !important;
        visibility: visible !important;
        opacity: 1 !important;
        background-color: #ffffff !important;
        background: #ffffff !important;
        /* Allow transforms for sliding functionality */
        will-change: transform !important;
        /* Force override any hiding attempts */
        clip: unset !important;
        clip-path: unset !important;
        max-height: 100vh !important;
        min-height: 100vh !important;
        /* Ensure touch events work */
        pointer-events: auto !important;
        touch-action: pan-y !important;
    }

    #visiblePlacesPanel .slide-panel-handle {
        display: flex !important;
        height: 70px !important;
        background-color: #ffffff !important;
        background: #ffffff !important;
        visibility: visible !important;
        opacity: 1 !important;
        z-index: 2001 !important;
        box-shadow: 0 -4px 12px rgba(0,0,0,0.3) !important;
        /* Ensure handle is touchable */
        pointer-events: auto !important;
        touch-action: none !important;
        cursor: grab !important;
        /* Remove any debug blue styling if present */
        border-top: none !important;
    }
}

/* ======================
   LEAFLET POPUP STYLING
   ====================== */

/* Custom Leaflet popup styling */
.custom-leaflet-popup .leaflet-popup-content-wrapper {
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.custom-leaflet-popup .leaflet-popup-content {
    margin: 0;
    padding: 0;
    width: auto !important;
}

.custom-leaflet-popup .leaflet-popup-tip {
    background: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Marker popup content styling */
.marker-popup {
    font-family: 'Poppins', sans-serif;
    color: #333;
    line-height: 1.4;
    max-width: 400px;
    min-width: 350px;
}

/* Custom waypoint marker styling */
.custom-waypoint-marker {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Remove any Leaflet default styling for custom markers */
.leaflet-marker-icon.custom-waypoint-marker {
    background: transparent !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.marker-popup .popup-header {
    padding: 16px 16px 12px 16px;
    background: linear-gradient(135deg, #3E6191 0%, #2C4B73 100%);
    color: white;
    border-radius: 12px 12px 0 0;
}

.marker-popup .popup-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.marker-popup .popup-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    opacity: 0.9;
}

.marker-popup .popup-type {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.marker-popup .popup-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.marker-popup .popup-rating i {
    color: #FFD700;
    font-size: 12px;
}

.marker-popup .popup-body {
    padding: 16px;
    background: white;
}

.marker-popup .popup-body > div {
    margin-bottom: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
}

.marker-popup .popup-body > div:last-child {
    margin-bottom: 0;
}

.marker-popup .popup-body i {
    color: #3E6191;
    font-size: 13px;
    margin-top: 2px;
    min-width: 16px;
}

.marker-popup .popup-address {
    color: #666;
    font-size: 13px;
}

.marker-popup .popup-categories {
    color: #555;
    font-size: 13px;
    font-weight: 500;
}

.marker-popup .popup-features {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.marker-popup .popup-feature {
    background: #E8F4FD;
    color: #3E6191;
    padding: 2px 6px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 500;
}

.marker-popup .popup-more {
    color: #666;
    font-size: 11px;
    font-style: italic;
}

.marker-popup .popup-description {
    color: #666;
    font-size: 13px;
    line-height: 1.4;
    margin-top: 4px;
}

.marker-popup .popup-contact {
    color: #555;
    font-size: 13px;
}

.marker-popup .popup-contact a {
    color: #3E6191;
    text-decoration: none;
    font-weight: 500;
}

.marker-popup .popup-contact a:hover {
    text-decoration: underline;
}

.marker-popup .popup-footer {
    padding: 12px 16px 16px 16px;
    background: #F8F9FA;
    border-radius: 0 0 12px 12px;
    border-top: 1px solid #E9ECEF;
    display: flex;
    gap: 8px;
}

.marker-popup .popup-details-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #3E6191 0%, #2C4B73 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.marker-popup .popup-map-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 1;
    padding: 12px;
    background: linear-gradient(135deg, #34A853 0%, #2C8F47 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.marker-popup .popup-details-btn:hover {
    background: linear-gradient(135deg, #2C4B73 0%, #1E3A5F 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(62, 97, 145, 0.3);
}

.marker-popup .popup-map-btn:hover {
    background: linear-gradient(135deg, #2C8F47 0%, #1E7A3A 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(52, 168, 83, 0.3);
}

.marker-popup .popup-details-btn i {
    font-size: 13px;
    color: white;
}