* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2d7a3e;
    --primary-dark: #1f5b2d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --dark-bg: #1e1e2d;
    --sidebar-bg: #2c2c3e;
    --panel-bg: #ffffff;
    --border-color: #e0e0e0;
    --text-primary: #333;
    --text-secondary: #666;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    --topnav-height: 56px;
}

/* Mobile-first base styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
    background: #f5f5f5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== TOP NAVIGATION ===== */
.topnav {
    height: var(--topnav-height);
    background: var(--dark-bg);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 1000;
}

.nav-brand h2 {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

/* Hamburger Menu - Touch Optimized */
.hamburger-menu {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    transition: all 0.3s ease;
    min-width: 44px;
    min-height: 44px;
    justify-content: center;
    align-items: center;
}

.hamburger-menu .bar {
    width: 24px;
    height: 3px;
    background: white;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.hamburger-menu:hover .bar {
    background: var(--primary-color);
}

.hamburger-menu.active .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
}

.hamburger-menu.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger-menu.active .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
}

/* Dropdown Menu */
.dropdown-menu {
    position: absolute;
    top: var(--topnav-height);
    right: 0;
    background: var(--sidebar-bg);
    min-width: 100%;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
}

.dropdown-menu.show {
    max-height: 400px;
    opacity: 1;
}

.dropdown-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: all 0.3s;
    border-left: 3px solid transparent;
    min-height: 48px;
    font-size: 15px;
}

.dropdown-item:hover,
.dropdown-item:active {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-left-color: var(--primary-color);
}

.dropdown-item.active {
    background: var(--primary-color);
    color: white;
    border-left-color: white;
}

.dropdown-item i {
    margin-right: 12px;
    font-size: 18px;
    width: 20px;
    text-align: center;
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Admin Panel - Mobile First */
.admin-panel {
    width: 100%;
    background: var(--panel-bg);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 900;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    max-height: 50vh;
}

.panel-header {
    padding: 16px;
    background: var(--primary-color);
    color: white;
    border-bottom: 3px solid var(--primary-dark);
}

.panel-header h3 {
    font-size: 15px;
    font-weight: 600;
}

/* Tab Navigation */
.tab-navigation {
    display: flex;
    background: #f8f9fa;
    border-bottom: 2px solid var(--border-color);
    padding: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.tab-btn {
    flex: 1;
    min-width: max-content;
    padding: 12px 16px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-bottom: 3px solid transparent;
    white-space: nowrap;
}

.tab-btn:hover,
.tab-btn:active {
    background: rgba(45, 122, 62, 0.05);
    color: var(--primary-color);
}

.tab-btn.active {
    background: white;
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.tab-icon {
    font-size: 16px;
}

/* Tab Content */
.tab-content {
    flex: 1;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px;
}

.tab-pane {
    display: none;
}

.tab-pane.active {
    display: block;
}

/* ===== FORM STYLES ===== */
.form-group {
    margin-bottom: 16px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-primary);
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="url"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s;
    font-family: inherit;
    min-height: 44px;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(45, 122, 62, 0.1);
}

.form-group input[readonly] {
    background: #f8f9fa;
    cursor: not-allowed;
}

.form-hint {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: var(--text-secondary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

/* Service Sections */
.services-notice {
    padding: 16px;
    background: #e7f3ff;
    border-left: 4px solid var(--secondary-color);
    border-radius: 4px;
    color: var(--text-primary);
    font-size: 14px;
}

.service-section {
    animation: fadeIn 0.3s;
    padding-top: 10px;
}

.service-section h4 {
    margin-bottom: 16px;
    margin-top: 0;
    color: var(--primary-color);
    font-size: 16px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
}

.service-section .form-group {
    margin-bottom: 20px;
}

.service-section .form-group > label {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}

/* Website Items */
#websitesList {
    margin-bottom: 16px;
}

.website-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.website-item input {
    padding: 12px 14px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    min-height: 44px;
}

.btn-remove-website {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-size: 14px;
    font-weight: 600;
}

.btn-remove-website:hover,
.btn-remove-website:active {
    background: #c82333;
}

.add-website-btn {
    margin-bottom: 20px;
}

/* Price List */
.price-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 12px;
}

/* Photo Preview */
.photo-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 16px;
    margin-top: 10px;
    padding: 16px;
    border: 1px dashed #ddd;
    border-radius: 8px;
    min-height: 100px;
    background-color: #fafafa;
}

.preview-img-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 100%;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.preview-img-wrapper:hover {
    transform: scale(1.05);
    z-index: 50;
}

.preview-img-wrapper img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

.preview-remove-btn {
    position: absolute;
    top: -10px;
    right: -10px;
    background: #ff3b30;
    color: white;
    border: 2px solid white;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    transition: all 0.2s ease;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.preview-remove-btn:hover,
.preview-remove-btn:active {
    background: #d32f2f;
    transform: scale(1.15);
}

.preview-remove-btn i {
    pointer-events: none;
}

.photo-preview:empty::before {
    content: 'No images selected';
    color: #999;
    font-size: 13px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 80px;
    grid-column: 1 / -1;
}

/* ===== BUTTONS ===== */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    touch-action: manipulation;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
    width: 100%;
}

.btn-primary:hover,
.btn-primary:active {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(45, 122, 62, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover,
.btn-secondary:active {
    background: #5a6268;
}

.btn-success {
    background: var(--success-color);
    color: white;
}

.btn-success:hover,
.btn-success:active {
    background: #218838;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover,
.btn-danger:active {
    background: #c82333;
}

/* Action Buttons */
.action-buttons {
    padding: 16px;
    background: #f8f9fa;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.action-buttons .btn {
    flex: 1;
}

/* ===== MAP STYLES ===== */
#map {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    touch-action: pan-x pan-y;
}

.leaflet-container {
    background: #f5f5f5;
}

.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.leaflet-popup-content {
    margin: 14px;
    font-family: inherit;
}

.popup-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.popup-info {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 4px 0;
}

.popup-btn {
    margin-top: 10px;
    padding: 10px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    min-height: 44px;
    font-size: 14px;
}

.popup-btn:hover,
.popup-btn:active {
    background: var(--primary-dark);
}

/* ===== MODAL STYLES ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s;
}

.modal-content {
    background: white;
    margin: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    animation: slideUp 0.3s;
    display: flex;
    flex-direction: column;
}

.modal-header {
    background: #fff;
    color: #222;
    border-bottom: 1px solid #e0e0e0;
    padding: 16px;
    box-shadow: 0 1px 4px rgba(30, 30, 45, 0.03);
    flex-shrink: 0;
}

.modal-header h3 {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: #222;
}

.close {
    color: #888;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.18s;
    min-width: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close:hover,
.close:active {
    color: #dc3545;
}

.modal-body {
    padding: 16px;
    background: #fff;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    flex: 1;
}

/* Detail Tabs */
.detail-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 16px;
    border-bottom: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.detail-tab {
    background: #f5f5f5;
    border-radius: 18px 18px 0 0;
    border: none;
    color: #888;
    padding: 10px 16px;
    font-weight: 600;
    font-size: 13px;
    transition: background 0.14s, color 0.14s;
    margin-bottom: -2px;
    white-space: nowrap;
    min-height: 44px;
}

.detail-tab.active,
.detail-tab:hover,
.detail-tab:active {
    background: #fff;
    color: #2579e7;
    border-bottom: 3px solid #2579e7;
}

.detail-pane {
    display: none;
}

.detail-pane.active {
    display: block;
}

.detail-pane p {
    margin-bottom: 10px;
    line-height: 1.6;
    font-size: 14px;
}

#detailOverview p {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 14px;
    margin: 10px 0 0 0;
    padding: 0;
}

#detailOverview strong {
    width: 100%;
    color: #666;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
}

#detailOverview span {
    color: #222;
    font-weight: 500;
    align-items: center;
}

#detailOverview i {
    color: #4a90e2;
    margin-right: 8px;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

#detailOverview .btn {
    margin: 12px 0;
    font-size: 14px;
    padding: 12px 18px;
    border-radius: 6px;
    width: 100%;
}

#detailMenuContent {
    background: #fafbfc;
    border: 1px solid #ececec;
    border-radius: 7px;
    margin-bottom: 12px;
    padding: 12px;
    font-size: 14px;
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.photo-gallery img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s;
}

.photo-gallery img:hover,
.photo-gallery img:active {
    transform: scale(1.05);
}

#detailAbout {
    font-size: 14px;
    color: #444;
    padding-top: 6px;
    line-height: 1.7;
}

/* Menu Table */
.menu-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 16px;
    font-size: 14px;
}

.menu-table th,
.menu-table td {
    padding: 10px 8px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.menu-table th {
    background: var(--primary-color);
    color: white;
    font-weight: 600;
}

.menu-table tr:hover {
    background: #f8f9fa;
}

.menu-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 12px;
    margin-bottom: 8px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
}

.menu-item > div:first-child {
    flex: 1;
    min-width: 0;
}

.menu-item-name {
    font-size: 14px;
    color: #202124;
    font-weight: 500;
    margin-bottom: 4px;
}

.menu-item-type {
    font-size: 12px;
    color: #70757a;
}

.menu-item-price {
    font-size: 14px;
    color: #2d7a3e;
    font-weight: 600;
    white-space: nowrap;
    flex-shrink: 0;
}


.menu-item input {
    padding: 12px 14px;
    flex-direction: column;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 16px;
    min-height: 44px;
}

.menu-item .menu-name,
.menu-item .menu-price {
    width: 100%;
}

#menuList {
    margin-bottom: 16px;
}

.btn-remove {
    background: var(--danger-color);
    color: white;
    border: none;
    padding: 12px 16px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    font-size: 14px;
    font-weight: 600;
}

.btn-remove:hover,
.btn-remove:active {
    background: #c82333;
}

.required {
    color: var(--danger-color);
    font-weight: bold;
}

/* ===== FLOATING SEARCH BAR ===== */
.floating-search-container {
    position: absolute !important;
    top: 70px !important;
    right: 12px !important;
    z-index: 999;
    pointer-events: none;
    width: calc(100% - 24px);
    max-width: 320px;
}

.floating-search-bar {
    pointer-events: all;
    display: flex;
    align-items: center;
    background: white;
    border-radius: 10px;
    padding: 12px 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    width: 100%;
    border: 2px solid transparent;
}

.floating-search-bar:hover {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.floating-search-bar:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 6px 20px rgba(45, 122, 62, 0.25);
}

.floating-search-bar .search-icon {
    color: #999;
    font-size: 16px;
    margin-right: 10px;
    transition: color 0.3s ease;
}

.floating-search-bar:focus-within .search-icon {
    color: var(--primary-color);
}

.floating-search-bar .search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-size: 15px;
    padding: 4px 0;
    font-family: inherit;
}

.floating-search-bar .search-input::placeholder {
    color: #aaa;
}

.floating-search-bar .search-clear {
    background: transparent;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 8px;
    display: none;
    transition: all 0.3s ease;
    border-radius: 6px;
    font-size: 14px;
    min-width: 32px;
    min-height: 32px;
}

.floating-search-bar .search-clear:hover,
.floating-search-bar .search-clear:active {
    color: var(--danger-color);
    background: rgba(220, 53, 69, 0.1);
}

/* ============================================ */
/* GOOGLE MAPS STYLE SEARCH RESULTS */
/* ============================================ */

.autocomplete-suggestions {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    z-index: 9999;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 500px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    animation: slideDownSearch 0.2s ease-out;
    pointer-events: all;
}

@keyframes slideDownSearch {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.search-results-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e8eaed;
    background: white;
    font-weight: 500;
    font-size: 12px;
    color: #70757a;
    display: flex;
    align-items: center;
    gap: 6px;
    position: sticky;
    top: 0;
    z-index: 10;
}

.search-results-header i {
    color: #1a73e8;
    font-size: 14px;
}

.autocomplete-item {
    padding: 0;
    cursor: pointer;
    border-bottom: 1px solid #f1f3f4;
    transition: background 0.15s ease;
    min-height: auto;
    background: white;
}

.autocomplete-item:hover,
.autocomplete-item:active,
.autocomplete-item.autocomplete-active {
    background: #f8f9fa;
}

.autocomplete-item:last-child {
    border-bottom: none;
    border-radius: 0 0 8px 8px;
}

.result-item-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    gap: 12px;
}

.result-left {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.result-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #70757a;
    font-size: 16px;
}

.result-icon.restaurant {
    color: #f9ab00;
}

.result-icon.hotels {
    color: #1e8e3e;
}

.result-icon.tourist_destination {
    color: #d93025;
}

.result-icon.cafe {
    color: #8e6f3e;
}

.result-details {
    flex: 1;
    min-width: 0;
}

.result-name {
    font-size: 14px;
    font-weight: 500;
    color: #202124;
    margin-bottom: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-name strong {
    color: #1a73e8;
    font-weight: 600;
}

.result-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #70757a;
    overflow: hidden;
}

.result-type {
    font-size: 13px;
    color: #70757a;
}

.result-separator {
    color: #dadce0;
}

.result-address {
    font-size: 13px;
    color: #70757a;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-menu-match {
    margin-top: 4px;
    padding: 4px 8px;
    background: #fff8e1;
    border-radius: 4px;
    font-size: 12px;
    color: #f9ab00;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.result-menu-match i {
    font-size: 11px;
}

.result-menu-match strong {
    color: #e37400;
}

.result-actions {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.directions-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f0fe;
    border-radius: 50%;
    color: #1a73e8;
    font-size: 18px;
    transition: all 0.2s ease;
}

.directions-icon:hover {
    background: #d2e3fc;
    transform: scale(1.05);
}

.no-results {
    padding: 32px 16px;
    text-align: center;
    color: #70757a;
}

.no-results i {
    font-size: 48px;
    color: #dadce0;
    margin-bottom: 12px;
    display: block;
}

.no-results-text {
    font-size: 14px;
    margin-top: 8px;
    color: #5f6368;
}

/* Loading State */
.search-loading {
    padding: 24px;
    text-align: center;
    color: #70757a;
    font-size: 14px;
}

.search-loading i {
    font-size: 24px;
    animation: spin 1s linear infinite;
    display: block;
    margin-bottom: 8px;
    color: #1a73e8;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Scrollbar */
.autocomplete-suggestions::-webkit-scrollbar {
    width: 8px;
}

.autocomplete-suggestions::-webkit-scrollbar-track {
    background: #f1f3f4;
}

.autocomplete-suggestions::-webkit-scrollbar-thumb {
    background: #dadce0;
    border-radius: 4px;
}

.autocomplete-suggestions::-webkit-scrollbar-thumb:hover {
    background: #bdc1c6;
}

/* ============================================ */
/* FILTER BUTTONS */
/* ============================================ */

/* FILTER BUTTONS - Vertical arrangement below zoom controls */
.filter-buttons-container {
    position: absolute !important;
    top: 140px !important; /* Position below the zoom controls */
    left: 12px !important; /* Align with zoom controls on the left */
    transform: none; /* Remove horizontal centering */
    z-index: 998;
    pointer-events: none;
    display: flex;
    flex-direction: column; /* Stack vertically */
    gap: 8px; /* Space between buttons */
    padding: 0;
    max-width: 48px; /* Width for icon-only buttons on mobile */
}

.filter-btn {
    pointer-events: all;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 12px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 4px; /* Square shape like zoom controls */
    font-size: 13px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    min-height: 44px;
    min-width: 44px;
    flex-shrink: 0;
}

.filter-btn i {
    font-size: 16px;
}

/* Hide text on mobile, show only icons */
.filter-btn .filter-text {
    display: none;
}

.filter-btn:hover,
.filter-btn:active {
    background: #f5f5f5;
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.filter-btn.active {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    box-shadow: 0 4px 12px rgba(45, 122, 62, 0.3);
}

/* Show text on desktop/tablet */
@media (min-width: 768px) {
    .filter-buttons-container {
        max-width: 180px; /* Allow wider buttons with text */
    }
    
    .filter-btn .filter-text {
        display: inline;
    }
    
    .filter-btn {
        padding: 10px 16px;
        min-width: auto;
        justify-content: flex-start; /* Align content to left when text is visible */
    }
}

/* ===== ANIMATIONS ===== */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* ===== SCROLLBAR STYLES ===== */
.tab-content::-webkit-scrollbar,
.modal-body::-webkit-scrollbar {
    width: 6px;
}

.tab-content::-webkit-scrollbar-track,
.modal-body::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.tab-content::-webkit-scrollbar-thumb,
.modal-body::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.tab-content::-webkit-scrollbar-thumb:hover,
.modal-body::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ============================================ */
/* LIVE LOCATION TRACKING & NAVIGATION */
/* ============================================ */

.user-location-marker {
    width: 20px;
    height: 20px;
    background: #4285F4;
    border: 3px solid white;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(66, 133, 244, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(66, 133, 244, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(66, 133, 244, 0);
    }
}

.user-location-accuracy {
    background: rgba(66, 133, 244, 0.15);
    border: 2px solid rgba(66, 133, 244, 0.4);
}

/* My Location Button */
.my-location-btn {
    position: absolute;
    bottom: 120px;
    right: 12px;
    z-index: 999;
    width: 44px;
    height: 44px;
    background: white;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: all 0.3s;
}

.my-location-btn:hover {
    background: #f5f5f5;
    transform: scale(1.05);
}

.my-location-btn i {
    font-size: 20px;
    color: #666;
}

.my-location-btn.active {
    background: #4285F4;
}

.my-location-btn.active i {
    color: white;
}

/* Navigation Panel */
/* Navigation Panel - GREEN THEME */
.navigation-panel {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    transform: translateY(100%);
    transition: transform 0.3s ease;
    max-height: 50vh;
    display: flex;
    flex-direction: column;
}

.navigation-panel.active {
    transform: translateY(0);
}

.nav-panel-header {
    padding: 16px;
    background: #2d7a3e; /* Changed from #4285F4 to green */
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-panel-header h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
}

.nav-close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.nav-summary {
    display: flex;
    justify-content: space-around;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 16px;
}

.nav-summary-item {
    text-align: center;
}

.nav-summary-value {
    font-size: 20px;
    font-weight: 700;
    color: #2d7a3e; /* Changed from #4285F4 to green */
    display: block;
}

.nav-summary-label {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.nav-instruction {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.nav-instruction-icon {
    width: 32px;
    height: 32px;
    background: #e6f4ea; /* Changed from #e8f0fe to light green */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.nav-instruction-icon i {
    color: #2d7a3e; /* Changed from #4285F4 to green */
    font-size: 14px;
}

.nav-instruction-text {
    flex: 1;
}

.nav-instruction-text strong {
    display: block;
    font-size: 14px;
    color: #202124;
    margin-bottom: 4px;
}

.nav-instruction-text span {
    font-size: 12px;
    color: #666;
}

.nav-panel-footer {
    padding: 16px;
    border-top: 1px solid #e0e0e0;
}

.nav-stop-btn {
    width: 100%;
    padding: 14px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.nav-stop-btn:hover {
    background: #c82333;
}


/* GPS Accuracy Indicator */
.gps-indicator {
    position: absolute;
    top: 150px;
    right: 12px;
    z-index: 9999;
    background: white;
    padding: 8px 12px;
    border-radius: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    font-size: 12px;
    font-weight: 600;
    display: none;
    align-items: center;
    gap: 6px;
}

.gps-indicator.active {
    display: flex;
}

.gps-indicator.good {
    color: #28a745;
}

.gps-indicator.medium {
    color: #ffc107;
}

.gps-indicator.poor {
    color: #dc3545;
}

.gps-indicator i {
    animation: blink 2s infinite;
}

@keyframes blink {
    0%, 50%, 100% { opacity: 1; }
    25%, 75% { opacity: 0.3; }
}

/* Directions Button in Popup */
.directions-btn {
    margin-top: 8px;
    padding: 10px 16px;
    background: #2d8a43;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    min-height: 44px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.directions-btn:hover {
    background: #28a745;
}

/* Routing Container Customization */
.leaflet-routing-container {
    display: none !important;
}

@media (min-width: 768px) {
    .navigation-panel {
        left: auto;
        width: 400px;
        max-height: none;
        height: calc(100vh - var(--topnav-height));
        top: var(--topnav-height);
        bottom: auto;
    }
    
    .my-location-btn {
        bottom: 140px;
        right: 20px;
    }
    
    .gps-indicator {
        top: 90px;
        right: 20px;
    }
}

/* ============================================ */
/* PERMANENT LOCATION LABELS (Google Maps Style) */
/* ============================================ */

.location-label {
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.2);
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    color: #202124;
    font-size: 13px;
    font-weight: 500;
    font-family: 'Segoe UI', Roboto, Arial, sans-serif;
    padding: 4px 8px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0.95;
}

.location-label::before {
    display: inline;
}

/* Hide labels on lower zoom levels for cleaner view */
.leaflet-zoom-animated .location-label {
    transition: opacity 0.2s ease;
}

/* Optional: Hide labels when map is zoomed out */
@media screen {
    .leaflet-container[data-zoom="12"] .location-label,
    .leaflet-container[data-zoom="11"] .location-label,
    .leaflet-container[data-zoom="10"] .location-label {
        opacity: 0;
        pointer-events: none;
    }
}

/* Ensure labels show above other elements but below popups */
.leaflet-tooltip-pane {
    z-index: 600;
}

/* Different styles for different location types */
.location-label.restaurant-label {
    background: #fff8e1;
    border-color: #f9ab00;
}

.location-label.hotels-label {
    background: #e6f4ea;
    border-color: #1e8e3e;
}

.location-label.tourist-label {
    background: #fce8e6;
    border-color: #d93025;
}
/* ============================================ */
/* ZOOM-BASED VISIBILITY (Google Maps Style) */
/* ============================================ */

/* Labels - Show only at close zoom levels (14+) */
.leaflet-tooltip.location-label {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Hide labels when zoomed out */
.zoom-level-13 .location-label,
.zoom-level-12 .location-label,
.zoom-level-11 .location-label,
.zoom-level-10 .location-label,
.zoom-level-9 .location-label,
.zoom-level-8 .location-label {
    opacity: 0 !important;
    transform: scale(0.8);
}

/* Partially show labels at medium zoom */
.zoom-level-13 .location-label {
    opacity: 0.5 !important;
}

/* Markers - Hide when zoomed out very far (below zoom 11) */
.zoom-level-10 .leaflet-marker-icon,
.zoom-level-9 .leaflet-marker-icon,
.zoom-level-8 .leaflet-marker-icon,
.zoom-level-7 .leaflet-marker-icon {
    opacity: 0 !important;
    transform: scale(0.5);
    pointer-events: none;
}

/* Partially show markers at zoom 11-12 */
.zoom-level-11 .leaflet-marker-icon {
    opacity: 0.6;
    transform: scale(0.85);
}

.zoom-level-12 .leaflet-marker-icon {
    opacity: 0.8;
    transform: scale(0.9);
}

/* Full visibility at zoom 13+ */
.zoom-level-13 .leaflet-marker-icon,
.zoom-level-14 .leaflet-marker-icon,
.zoom-level-15 .leaflet-marker-icon,
.zoom-level-16 .leaflet-marker-icon,
.zoom-level-17 .leaflet-marker-icon,
.zoom-level-18 .leaflet-marker-icon {
    opacity: 1;
    transform: scale(1);
}

/* Smooth transitions for markers */
.leaflet-marker-icon {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Don't hide user location marker */
.user-location-marker {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Don't hide navigation markers */
.leaflet-routing-container .leaflet-marker-icon {
    opacity: 1 !important;
    transform: scale(1) !important;
}

/* Zoom notification */
.zoom-notification {
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: slideInLeft 0.3s ease;
    pointer-events: none;
}

.zoom-notification i {
    font-size: 16px;
    color: #4285F4;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@media (max-width: 768px) {
    .zoom-notification {
        font-size: 12px;
        padding: 10px 14px;
    }
    
    .location-label {
        font-size: 11px;
        padding: 3px 6px;
        max-width: 120px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* Hover effect on labels */
.leaflet-marker-icon:hover + .leaflet-tooltip {
    opacity: 1 !important;
    font-weight: 600;
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

/* Toast Notification */
.toast-notification {
    position: fixed;
    bottom: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(100px);
    background: #323232;
    color: white;
    padding: 14px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 3000;
    opacity: 0;
    transition: all 0.3s ease;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================ */
/* GOOGLE MAPS STYLE MODAL - GREEN THEME - COMPACT */
/* ============================================ */

.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    animation: fadeIn 0.2s;
}

.modal-content.google-style {
    background: white;
    margin: 0;
    width: 100%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    overflow-y: auto;
    animation: slideUp 0.3s;
    display: flex;
    flex-direction: column;
}

/* Hero Image Section - Smaller */
.modal-hero-image {
    width: 100%;
    height: 140px;
    background: linear-gradient(135deg, #2d7a3e 0%, #1f5b2d 100%);
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}

.modal-close-btn {
    position: absolute;
    top: 10px;
    left: 10px;
    width: 36px;
    height: 36px;
    background: white;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    z-index: 10;
    transition: all 0.2s;
}

.modal-close-btn:hover {
    background: #f5f5f5;
    transform: scale(1.05);
}

.modal-close-btn i {
    font-size: 16px;
    color: #333;
}

/* Location Header - Compact */
.location-header {
    padding: 12px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.location-title {
    font-size: 18px;
    font-weight: 600;
    color: #202124;
    margin: 0 0 6px 0;
}

.location-meta {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.location-category {
    color: #2d7a3e;
    font-weight: 500;
}

/* Quick Actions Bar - Smaller, Less Prominent */
.quick-actions-bar {
    display: flex;
    padding: 8px 16px;
    gap: 8px;
    border-bottom: 1px solid #e0e0e0;
    justify-content: center;
}

.quick-action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 16px;
    background: #2d7a3e;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 13px;
}

.quick-action-btn:hover {
    background: #1f5b2d;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(45, 122, 62, 0.25);
}

.quick-action-btn i {
    font-size: 16px;
    color: white;
}

.quick-action-btn span {
    font-size: 13px;
    color: white;
    font-weight: 600;
}

/* Google Tabs - BIGGER and MORE PROMINENT */
.google-tabs {
    display: flex;
    border-bottom: 2px solid #e0e0e0;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.google-tab {
    flex: 1;
    padding: 16px 12px;
    background: transparent;
    border: none;
    border-bottom: 4px solid transparent;
    color: #5f6368;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.google-tab:hover {
    background: #f8f9fa;
    color: #202124;
}

.google-tab.active {
    color: #2d7a3e;
    border-bottom-color: #2d7a3e;
    background: #f1f8f4;
}

/* Tab Content */
.google-tab-content {
    flex: 1;
    overflow-y: auto;
}

.google-tab-pane {
    display: none;
    padding: 0;
}

.google-tab-pane.active {
    display: block;
}

/* Info Sections (Overview Tab) - Compact */
.info-section {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    gap: 12px;
    border-bottom: 1px solid #f1f3f4;
}

.info-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f5e9;
    border-radius: 50%;
    flex-shrink: 0;
}

.info-icon i {
    font-size: 15px;
    color: #2d7a3e;
}

.info-content {
    flex: 1;
    min-width: 0;
}

.info-label {
    font-size: 11px;
    color: #70757a;
    margin-bottom: 3px;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 14px;
    color: #202124;
    word-wrap: break-word;
}

.info-value.coordinates {
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #5f6368;
}

.info-action-btn {
    width: 34px;
    height: 34px;
    background: transparent;
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #5f6368;
    transition: all 0.2s;
    flex-shrink: 0;
}

.info-action-btn:hover {
    background: #e8f5e9;
    color: #2d7a3e;
}

/* Services Section - Compact */
.services-section {
    padding: 16px;
    border-bottom: 6px solid #f8f9fa;
}

.section-title {
    font-size: 15px;
    font-weight: 600;
    color: #202124;
    margin: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title i {
    color: #2d7a3e;
    font-size: 16px;
}

/* Menu Grid - Compact */
.menu-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 6px;
}

.menu-item-name {
    font-size: 14px;
    color: #202124;
    font-weight: 500;
}

.menu-item-type {
    font-size: 12px;
    color: #70757a;
    margin-top: 2px;
}

.menu-item-price {
    font-size: 14px;
    color: #2d7a3e;
    font-weight: 600;
}

/* Photos Grid - Compact */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
}

.photo-item {
    position: relative;
    padding-bottom: 75%;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    background: #f1f3f4;
}

.photo-item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.photo-item:hover img {
    transform: scale(1.1);
}

/* Add to index.css - Colored location name in popup */
.popup-title {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
    padding: 6px 10px;
    border-radius: 4px;
    display: inline-block;
}

/* Restaurant - Orange/Yellow color */
.popup-title.restaurant {
    background-color: #ffa726;
    color: white;
}

/* Hotel - Green color */
.popup-title.hotels {
    background-color: #66bb6a;
    color: white;
}

/* Tourist Destination - Red color */
.popup-title.tourist_destination {
    background-color: #ef5350;
    color: white;
}

/* Cafe - Brown color */
.popup-title.cafe {
    background-color: #8d6e63;
    color: white;
}

/* Default fallback */
.popup-title.default {
    background-color: var(--primary-color);
    color: white;
}

/* Add spacing to description in popup */
.popup-info.description {
    margin-top: 8px;
    line-height: 1.5;
    white-space: normal;
    word-wrap: break-word;
}

/* Description in modal */
.info-item-value.description {
    line-height: 1.7;
    padding: 10px 0;
    white-space: pre-line;
    word-wrap: break-word;
}

#detailDescription {
    line-height: 1.7;
    padding: 10px 0;
    white-space: pre-line;
    word-wrap: break-word;
}

/* Location header title in modal with color */
.location-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0 0 6px 0;
    padding: 8px 12px;
    border-radius: 6px;
    display: inline-block;
}

.location-title.restaurant {
    background-color: #ffa726;
    color: white;
}

.location-title.hotels {
    background-color: #66bb6a;
    color: white;
}

.location-title.tourist_destination {
    background-color: #ef5350;
    color: white;
}

.location-title.cafe {
    background-color: #8d6e63;
    color: white;
}


/* Websites List - HORIZONTAL Everything */
.websites-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.website-item {
    display: flex;
    flex-direction: row; /* Force horizontal */
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 6px;
    text-decoration: none;
    color: #202124;
    transition: all 0.2s;
}

.website-item:hover {
    background: #e8f5e9;
}

.website-icon {
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    flex-shrink: 0;
}

.website-icon i {
    font-size: 16px;
    color: #2d7a3e;
}

.website-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: row; /* Force horizontal */
    align-items: center;
    gap: 8px;
}

.website-label {
    font-size: 12px;
    color: #70757a;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}

.website-url {
    font-size: 13px;
    color: #202124;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.website-arrow {
    color: #70757a;
    font-size: 13px;
    flex-shrink: 0;
    margin-left: auto;
}



/* Responsive - Desktop */
@media (min-width: 768px) {
    .modal-content.google-style {
        margin: 2% auto;
        width: 90%;
        max-width: 550px;
        height: auto;
        max-height: 85vh;
        border-radius: 12px;
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    }
    
    .modal-hero-image {
        height: 160px;
        border-radius: 12px 12px 0 0;
    }
    
    .location-title {
        font-size: 20px;
    }
    
    .google-tab {
        padding: 18px 12px;
        font-size: 16px;
    }
    
    .photos-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) {
    .modal-content.google-style {
        max-width: 600px;
    }
}



/* ============================================ */
/* MOBILE BOTTOM DRAWER - Google Maps Style */
/* ============================================ */

/* Navigation Panel - Mobile Drawer */
.navigation-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Mobile: Collapsed state */
@media (max-width: 767px) {
    .navigation-panel {
        height: 70vh;
        max-height: 70vh;
        transform: translateY(calc(100% - 120px)); /* Show header only */
        touch-action: none;
    }
    
    .navigation-panel.expanded {
        transform: translateY(0);
    }
    
    .navigation-panel.collapsed {
        transform: translateY(calc(100% - 120px));
    }
    
    .navigation-panel.minimized {
        transform: translateY(calc(100% - 60px)); /* Show just drag handle */
    }
}

/* MOBILE BOTTOM DRAWER - Reduced Height */
.navigation-panel {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: white;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
    border-radius: 16px 16px 0 0;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: translateY(100%); /* Hidden by default */
}

/* Active state - Show panel at reduced height */
@media (max-width: 767px) {
    .navigation-panel {
        height: 45vh; /* Reduced from 70vh to 45vh */
        max-height: 45vh;
    }
}

.navigation-panel.active {
    transform: translateY(0);
}

.nav-panel-header {
    padding: 16px;
    background: #2d7a3e;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0;
    border-radius: 16px 16px 0 0;
}

.nav-panel-header h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.nav-close-btn {
    background: transparent;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s;
}

.nav-close-btn:hover {
    transform: scale(1.1);
}

.nav-panel-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 16px;
    -webkit-overflow-scrolling: touch;
}

.nav-summary {
    display: flex;
    justify-content: space-around;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-bottom: 16px;
}

.nav-summary-item {
    text-align: center;
}

.nav-summary-value {
    font-size: 20px;
    font-weight: 700;
    color: #2d7a3e;
    display: block;
}

.nav-summary-label {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
}

.nav-instruction {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px solid #e0e0e0;
}

.nav-instruction-icon {
    width: 32px;
    height: 32px;
    background: #e6f4ea;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    flex-shrink: 0;
}

.nav-instruction-icon i {
    color: #2d7a3e;
    font-size: 14px;
}

.nav-instruction-text {
    flex: 1;
}

.nav-instruction-text strong {
    display: block;
    font-size: 14px;
    color: #202124;
    margin-bottom: 4px;
}

.nav-instruction-text span {
    font-size: 12px;
    color: #666;
}

.nav-panel-footer {
    padding: 16px;
    border-top: 1px solid #e0e0e0;
    background: white;
    flex-shrink: 0;
}

.nav-stop-btn {
    width: 100%;
    padding: 14px;
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background 0.3s;
}

.nav-stop-btn:hover {
    background: #c82333;
}

/* Desktop Side panel - unchanged */
@media (min-width: 768px) {
    .navigation-panel {
        position: fixed;
        left: auto;
        right: 0;
        width: 400px;
        max-height: none;
        height: calc(100vh - var(--topnav-height));
        top: var(--topnav-height);
        bottom: auto;
        transform: translateX(100%);
        border-radius: 0;
    }
    
    .navigation-panel.active {
        transform: translateX(0);
    }
    
    .nav-panel-header {
        border-radius: 0;
    }
}


.recenter-location-btn {
    position: absolute;
    bottom: 120px;
    right: 10px;
    width: 40px;
    height: 40px;
    background: white;
    border: 2px solid rgba(0,0,0,0.2);
    border-radius: 4px;
    cursor: pointer;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.3);
    transition: all 0.2s;
}

.recenter-location-btn:hover {
    background: #f4f4f4;
    box-shadow: 0 2px 6px rgba(0,0,0,0.4);
}

.recenter-location-btn i {
    color: #666;
    font-size: 18px;
}

.recenter-location-btn:hover i {
    color: #4285F4;
}

@media (max-width: 768px) {
    .recenter-location-btn {
        bottom: 90px;
        right: 8px;
        width: 36px;
        height: 36px;
    }
    
    .recenter-location-btn i {
        font-size: 16px;
    }
}

/* Google Maps Style Popup with Image Header */
.google-style-popup .leaflet-popup-content-wrapper {
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

.google-style-popup .leaflet-popup-content {
    margin: 0;
    width: 280px !important;
}

.google-style-popup .leaflet-popup-tip {
    display: none;
}

.google-popup {
    display: flex;
    flex-direction: column;
}

/* Hero Image Header */
.popup-hero-image {
    width: 100%;
    height: 140px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

/* Popup Content */
.popup-content {
    padding: 16px;
    background: white;
}

.popup-header {
    margin-bottom: 12px;
}

.popup-title {
    font-size: 18px;
    font-weight: 600;
    color: #202124;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.popup-category {
    font-size: 13px;
    color: #2d7a3e;
    font-weight: 500;
    margin: 0;
}

.popup-address {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 8px 0 16px 0;
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 16px;
}

.popup-address i {
    color: #70757a;
    font-size: 14px;
    margin-top: 2px;
}

.popup-address span {
    font-size: 13px;
    color: #5f6368;
    line-height: 1.4;
}

/* Popup Actions */
.popup-actions {
    display: flex;
    gap: 8px;
}

.popup-btn-primary,
.popup-btn-secondary {
    flex: 1;
    padding: 10px 12px;
    border: none;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.popup-btn-primary {
    background: #2d7a3e;
    color: white;
}

.popup-btn-primary:hover {
    background: #1f5b2d;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(45, 122, 62, 0.3);
}

.popup-btn-secondary {
    background: #f1f3f4;
    color: #202124;
}

.popup-btn-secondary:hover {
    background: #e8eaed;
}

.popup-btn-primary i,
.popup-btn-secondary i {
    font-size: 14px;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .google-style-popup .leaflet-popup-content {
        width: 260px !important;
    }
    
    .popup-hero-image {
        height: 120px;
    }
    
    .popup-title {
        font-size: 16px;
    }
    
    .popup-actions {
        flex-direction: column;
    }
    
    .popup-btn-primary,
    .popup-btn-secondary {
        width: 100%;
    }
}

/* Blur message overlay */
.blur-message {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    z-index: 101;
    pointer-events: auto;
    white-space: nowrap;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Mobile Back Button - Only show for blurred locations */
.mobile-back-button {
    display: none;
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid #e8e8e8;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: none;
    border: none;
    color: #2d7a3e;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 4px;
    transition: all 0.3s ease;
    min-height: 44px;
}

.back-btn:hover,
.back-btn:active {
    background: rgba(45, 122, 62, 0.1);
}

.back-btn i {
    font-size: 18px;
}

/* Show back button on mobile */
@media (max-width: 768px) {
    .mobile-back-button {
        display: block;
    }
}
