/* ==================== GLOBAL STYLES ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ==================== HOMEPAGE - HERO SECTION ==================== */
.hero {
    position: relative;
    height: 100vh;
    width: 100%;
    background-image: url('https://vanlio.b-cdn.net/hero-mobile.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Tablet - medium resolution */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero {
        background-image: url('https://vanlio.b-cdn.net/hero-tablet.jpg');
    }
}

/* Desktop - high resolution */
@media (min-width: 1025px) {
    .hero {
        background-image: url('https://vanlio.b-cdn.net/hero.jpg');
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
    max-width: 900px;
    width: 100%;
}

.hero-title {
    font-size: clamp(3rem, 8vw, 5rem);
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.8s ease-out;
}

.hero-logo {
    height: 200px;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin-bottom: 3rem;
    opacity: 0.95;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

/* Search Container */
.search-container {
    position: relative;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* Place Type Selector */
.place-type-selector {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 16px 24px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    color: white;
    font-weight: 600;
    font-size: 14px;
    min-width: 120px;
}

.type-option:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.type-option.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
}

.type-icon {
    font-size: 32px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

.type-label {
    font-size: 14px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.search-box {
    display: flex;
    gap: 12px;
    max-width: 700px;
    margin: 0 auto;
}

.search-input-container {
    position: relative;
    flex: 1;
}

#searchInput {
    width: 100%;
    padding: 18px 24px;
    font-size: 16px;
    border: none;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    outline: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

#searchInput:focus {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.25);
}

#searchBtn {
    padding: 18px 36px;
    font-size: 16px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff5252 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(255, 107, 107, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

#searchBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(255, 107, 107, 0.5);
}

#searchBtn:active {
    transform: translateY(0);
}

/* Autocomplete Suggestions */
.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.suggestions.hidden {
    display: none;
}

/* Map Hint */
.map-hint {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

.map-hint.hidden {
    display: none;
}

.use-map-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    background: white;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-size: 15px;
    color: #333;
    width: 100%;
    transition: background 0.2s;
}

.use-map-btn:hover {
    background: #f8f9fa;
}

.map-icon {
    font-size: 16px;
    color: #667eea;
}

/* Explore Map Button (mobile only) */
.explore-map-btn {
    display: none; /* Hidden by default (desktop) */
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 36px;
    font-size: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
    transition: transform 0.2s, box-shadow 0.2s;
    white-space: nowrap;
}

.explore-map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(102, 126, 234, 0.5);
}

.explore-map-btn:active {
    transform: translateY(0);
}

.explore-map-btn i {
    font-size: 18px;
}

.suggestion-item {
    padding: 14px 24px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s;
}

.suggestion-item:first-child {
    border-radius: 20px 20px 0 0;
}

.suggestion-item:last-child {
    border-bottom: none;
    border-radius: 0 0 20px 20px;
}

.suggestion-item:hover {
    background: #f8f9fa;
}

.suggestion-item div {
    color: #333;
    font-size: 15px;
}

/* Loading Spinner (Homepage) */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(102, 126, 234, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    color: white;
}

.loading.hidden {
    display: none;
}

.loading p {
    margin-top: 20px;
    font-size: 18px;
}

.spinner {
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid white;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
}

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

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== RESULTS PAGE ==================== */
.results-page {
    overflow: hidden;
    background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
}

/* Header */
.results-header {
    position: relative;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    padding: 16px 24px;
    display: flex;
    align-items: center;
    gap: 24px;
    z-index: 1000;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    flex-shrink: 0;
    transition: transform 0.2s;
}

.logo:hover {
    transform: scale(1.05);
}

.logo-icon {
    font-size: 28px;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.logo-text {
    font-weight: 800;
    font-size: 22px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.header-search-container {
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1;
    max-width: 600px;
}

/* Compact Place Type Selector for Results Header */
.place-type-selector-compact {
    display: flex;
    gap: 8px;
    background: rgba(102, 126, 234, 0.08);
    padding: 6px;
    border-radius: 30px;
    flex-shrink: 0;
}

.type-option-compact {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: white;
    border: 2px solid transparent;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
}

.type-option-compact:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.type-option-compact.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.type-option-compact .type-icon {
    font-size: 20px;
    transition: transform 0.2s;
}

.type-option-compact:hover .type-icon {
    transform: scale(1.1);
}

.search-box-header {
    display: flex;
    gap: 12px;
    flex: 1;
}

.search-input-wrapper {
    position: relative;
    flex: 1;
}

.search-input-wrapper .suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
}

.search-input-wrapper .suggestions.hidden {
    display: none;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    opacity: 0.4;
    pointer-events: none;
}

.search-box-header #searchInput {
    width: 100%;
    padding: 14px 20px 14px 48px;
    font-size: 15px;
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 10px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.search-box-header #searchInput:focus {
    border-color: #667eea;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
    transform: translateY(-1px);
}

.search-box-header #searchBtn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    font-size: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 30px;
    cursor: pointer;
    font-weight: 700;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.search-box-header #searchBtn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.search-box-header #searchBtn:active {
    transform: translateY(0);
}

.btn-icon {
    font-size: 18px;
    transition: transform 0.3s;
}

.search-box-header #searchBtn:hover .btn-icon {
    transform: translateX(4px);
}

/* Results Container */
.results-container {
    display: flex;
    height: calc(100vh - 70px);
    position: relative;
}

/* Sidebar */
.results-sidebar {
    width: 420px;
    background: transparent;
    overflow-y: auto;
    overflow-x: hidden;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    order: 2;
}

.results-sidebar::-webkit-scrollbar {
    width: 10px;
}

.results-sidebar::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
    margin: 8px 0;
}

.results-sidebar::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    border-radius: 10px;
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: background 0.3s;
}

.results-sidebar::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.5) 0%, rgba(118, 75, 162, 0.5) 100%);
    background-clip: padding-box;
}

.results-sidebar::-webkit-scrollbar-thumb:active {
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.7) 0%, rgba(118, 75, 162, 0.7) 100%);
    background-clip: padding-box;
}

.results-sidebar.hidden-mobile {
    transform: translateX(100%);
    width: 0;
    overflow: hidden;
}

.results-info {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 24px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
    position: sticky;
    top: 0;
    z-index: 10;
    margin: 16px 16px 16px;
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
}

.results-count-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #333;
}

.count-icon {
    font-size: 20px;
}

/* Filter Dialog */
.filter-dialog {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.filter-dialog.hidden {
    display: none;
}

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

.filter-dialog-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.filter-dialog-content {
    position: relative;
    background: white;
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    animation: slideUp 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.filter-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 28px;
    border-bottom: 1px solid rgba(102, 126, 234, 0.1);
}

.filter-dialog-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
}

.filter-dialog-close {
    background: none;
    border: none;
    font-size: 32px;
    color: #999;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
    line-height: 1;
    padding: 0;
}

.filter-dialog-close:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.filter-dialog-body {
    padding: 16px 28px 24px;
    overflow-y: auto;
    flex: 1;
}

.filter-section {
    margin-bottom: 24px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    cursor: pointer;
    user-select: none;
}

.filter-section-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: #667eea;
}

.collapse-icon {
    font-size: 12px;
    color: #667eea;
    transition: transform 0.2s;
}

.filter-section.collapsed .collapse-icon {
    transform: rotate(-90deg);
}

.filter-section.collapsed .filter-chips {
    display: none;
}

.filter-dialog-body::-webkit-scrollbar {
    width: 8px;
}

.filter-dialog-body::-webkit-scrollbar-track {
    background: rgba(102, 126, 234, 0.05);
    border-radius: 10px;
}

.filter-dialog-body::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%);
    border-radius: 10px;
}

.filter-dialog-body::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, rgba(102, 126, 234, 0.5) 0%, rgba(118, 75, 162, 0.5) 100%);
}

.filter-dialog-footer {
    display: flex;
    gap: 12px;
    padding: 20px 28px;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.clear-filters-btn {
    flex: 1;
    padding: 14px 24px;
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 2px solid rgba(102, 126, 234, 0.2);
    border-radius: 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
}

.clear-filters-btn:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: #667eea;
}

.clear-filters-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.apply-filters-btn {
    flex: 1;
    padding: 14px 24px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.apply-filters-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.filter-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: 2px solid rgba(102, 126, 234, 0.2);
    background: white;
    color: #667eea;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    user-select: none;
}

.filter-chip:hover {
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.2);
}

.filter-chip:active {
    transform: translateY(0);
}

.filter-chip.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.filter-icon {
    font-size: 16px;
    line-height: 1;
}

.filter-name {
    line-height: 1;
}

.filter-count {
    background: rgba(0, 0, 0, 0.1);
    color: inherit;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.filter-chip.active .filter-count {
    background: rgba(255, 255, 255, 0.3);
}

/* Results List */
.results-list {
    padding: 16px 16px 16px;
}

.place-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    overflow: hidden;
}

.place-card:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
}

.place-card.selected {
    border-color: #667eea;
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.3);
    transform: translateY(-4px) scale(1.01);
}

.place-image {
    width: 100%;
    height: 160px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    position: relative;
    overflow: hidden;
}

.place-image::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.3) 0%, transparent 100%);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.place-card:hover .place-image::after {
    opacity: 1;
}

.place-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.place-card:hover .place-image img {
    transform: scale(1.05);
}

.place-image-placeholder {
    font-size: 56px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.2));
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.place-card:hover .place-image-placeholder {
    transform: scale(1.1) rotate(5deg);
}

.place-content {
    padding: 0;
}

.place-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 12px;
    gap: 12px;
}

.place-header-left {
    flex: 1;
    min-width: 0;
}

.place-title {
    font-size: 17px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 6px;
    line-height: 1.3;
}

.place-location {
    color: #666;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
}


.place-price {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}

.place-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}

.place-type {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #e8eaf6 0%, #f3e5f5 100%);
    color: #5c6bc0;
    padding: 8px 16px;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 700;
}

.place-type i {
    font-size: 18px;
}

.place-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 13px;
    font-weight: 600;
    color: #ffa726;
}

.place-rating::before {
    content: '⭐';
    font-size: 14px;
}

.place-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 6px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    border: 1px solid rgba(102, 126, 234, 0.2);
    transition: all 0.2s;
}

.tag:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.tag.activity {
    background: rgba(123, 31, 162, 0.1);
    color: #7b1fa2;
    border-color: rgba(123, 31, 162, 0.2);
}

.tag.activity:hover {
    background: rgba(123, 31, 162, 0.15);
    border-color: rgba(123, 31, 162, 0.3);
}

/* Icon-based tags */
.tag.tag-icon {
    padding: 6px 8px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 16px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.tag.tag-icon:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.2);
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.tag.tag-icon i {
    display: block;
}

/* Count badge tag */
.tag.tag-count {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border-color: rgba(102, 126, 234, 0.2);
    cursor: pointer;
}

.tag.tag-count:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

/* Search Loading State */
.search-loading {
    text-align: center;
    padding: 60px 30px;
    color: #667eea;
    font-size: 16px;
    font-weight: 600;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 0.6; }
    50% { opacity: 1; }
}

/* No Results */
.no-results {
    text-align: center;
    padding: 60px 30px;
    color: #666;
}

.no-results.hidden {
    display: none;
}

.no-results-illustration {
    position: relative;
    display: inline-block;
    margin-bottom: 32px;
    animation: float 3s ease-in-out infinite;
}

.magnifier {
    font-size: 72px;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}

.empty-marker {
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 36px;
    opacity: 0.6;
    animation: bounce 2s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}

.no-results h3 {
    color: #1a1a1a;
    margin-bottom: 12px;
    font-size: 22px;
    font-weight: 800;
}

.no-results p {
    font-size: 15px;
    color: #666;
    margin-bottom: 24px;
    line-height: 1.6;
}

.no-results-tips {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
}

.tip {
    background: rgba(102, 126, 234, 0.08);
    color: #667eea;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    display: inline-block;
}

/* Map Container */
.map-container {
    flex: 1;
    position: relative;
    background: #e0e5ec;
    order: 1;
}

#map {
    width: 100%;
    height: 100%;
}

/* Glassmorphism components */
.glass-button {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.glass-button:hover {
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.glass-panel {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border-radius: 20px;
}

/* Fix Leaflet attribution z-index and positioning */
.leaflet-control-attribution {
    z-index: 999 !important;
    max-width: calc(100% - 20px);
    font-size: 10px;
    line-height: 1.4;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(10px);
    border-radius: 8px;
}

.leaflet-bottom.leaflet-right {
    z-index: 999;
}

/* Custom popup styling */
.leaflet-popup-content-wrapper {
    border-radius: 20px;
    box-shadow: 0 12px 48px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.leaflet-popup-content {
    margin: 20px;
    line-height: 1.6;
}

.leaflet-popup-tip {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.custom-popup .leaflet-popup-close-button {
    font-size: 24px;
    padding: 8px 12px;
    color: #666;
    transition: color 0.2s;
}

.custom-popup .leaflet-popup-close-button:hover {
    color: #667eea;
}

/* Custom Markers */
.custom-marker {
    transition: filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible !important;
}

.custom-marker.highlighted {
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.4));
    z-index: 1000 !important;
}

/* Marker Icon Styling */
.marker-icon {
    background: white;
    width: 36px;
    height: 36px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
    border: 3px solid white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.marker-icon i {
    transform: rotate(45deg);
    font-size: 18px;
}

/* Highlighted marker - increase size and animate */
.custom-marker.highlighted .marker-icon {
    width: 50px;
    height: 50px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
    animation: markerBounce 0.8s ease-in-out infinite;
}

@keyframes markerBounce {
    0% {
        transform: translateY(0px) rotate(-45deg);
    }
    50% {
        transform: translateY(-20px) rotate(-45deg);
    }
    100% {
        transform: translateY(0px) rotate(-45deg);
    }
}

.custom-marker.highlighted .marker-icon i {
    font-size: 24px;
}

/* Map Controls Container (top-right) */
.map-controls-top-right {
    position: absolute;
    top: 24px;
    right: 24px;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
}

/* Toggle Sidebar Button */
.toggle-sidebar {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 16px;
    padding: 14px 18px;
    cursor: pointer;
    font-size: 20px;
    color: #667eea;
    flex-shrink: 0;
}

.toggle-sidebar:hover {
    color: #764ba2;
}

/* Filter Button */
.filter-btn {
    border: none;
    border-radius: 16px;
    padding: 14px 18px;
    cursor: pointer;
    font-size: 20px;
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex-shrink: 0;
}

.filter-btn.hidden {
    display: none;
}

.filter-btn:hover {
    color: #764ba2;
}

/* Floating Search */
.floating-search {
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
    flex-shrink: 0;
}

.floating-search-btn {
    border: none;
    border-radius: 16px;
    padding: 14px 18px;
    cursor: pointer;
    font-size: 20px;
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: opacity 0.2s;
}

.floating-search-btn:hover {
    color: #764ba2;
}


.floating-search-box {
    position: absolute;
    right: calc(100% + 8px);
    top: 0;
    width: 300px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.floating-search-box.hidden {
    display: none;
}

.floating-search-box input {
    width: 100%;
    padding: 14px 18px;
    font-size: 20px;
    border: 2px solid rgba(102, 126, 234, 0.15);
    border-radius: 16px;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    height: 48px;
    box-sizing: border-box;
}

.floating-search-box input:focus {
    border-color: #667eea;
    box-shadow: 0 4px 20px rgba(102, 126, 234, 0.15);
}

.floating-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    margin-top: 4px;
}

.floating-suggestions.hidden {
    display: none;
}

.filter-btn-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 11px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.4);
}

.filter-btn-badge.hidden {
    display: none;
}

/* Search This Area Button */
.search-this-area {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 30px;
    padding: 16px 32px;
    font-size: 15px;
    font-weight: 700;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.4);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
}

.search-this-area:hover {
    transform: translateX(-50%) translateY(-4px);
    box-shadow: 0 12px 48px rgba(102, 126, 234, 0.5);
}

.search-this-area:active {
    transform: translateX(-50%) translateY(-2px);
}

.search-this-area.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(20px);
}

.button-icon {
    font-size: 18px;
}

/* Map Legend */
.map-legend {
    position: absolute;
    bottom: 40px;
    right: 24px;
    z-index: 1000;
    padding: 16px 20px;
    max-width: 200px;
}

.map-legend.hidden {
    display: none;
}

.legend-title {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.legend-items {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.legend-item span {
    font-size: 20px;
    width: 24px;
    text-align: center;
}

/* Map Popup Card (shown when sidebar is hidden) */
.map-popup-card {
    position: absolute;
    z-index: 1000;
    width: 320px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    border: 2px solid rgba(102, 126, 234, 0.3);
    pointer-events: auto;
    transition: opacity 0.2s, transform 0.2s;
}

.map-popup-card.hidden {
    display: none;
}

.map-popup-card::before {
    content: '';
    position: absolute;
    width: 0;
    height: 0;
    border: 10px solid transparent;
}

/* Arrow pointing left (when popup is on the right of marker) */
.map-popup-card.arrow-left::before {
    left: -20px;
    top: 20px;
    border-right-color: rgba(102, 126, 234, 0.3);
}

/* Arrow pointing right (when popup is on the left of marker) */
.map-popup-card.arrow-right::before {
    right: -20px;
    top: 20px;
    border-left-color: rgba(102, 126, 234, 0.3);
}

/* Arrow pointing down (when popup is above marker) */
.map-popup-card.arrow-down::before {
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-top-color: rgba(102, 126, 234, 0.3);
}

/* Arrow pointing up (when popup is below marker) */
.map-popup-card.arrow-up::before {
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-bottom-color: rgba(102, 126, 234, 0.3);
}

.map-popup-card .place-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 10px;
    gap: 10px;
}

.map-popup-card .place-header-left {
    flex: 1;
    min-width: 0;
}

.map-popup-card .place-title {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.map-popup-card .place-location {
    color: #666;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.map-popup-card .place-location::before {
    content: '📍';
    font-size: 11px;
}

.map-popup-card .place-price {
    background: linear-gradient(135deg, #4caf50 0%, #45a049 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.map-popup-card .place-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.map-popup-card .place-type {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #e8eaf6 0%, #f3e5f5 100%);
    color: #5c6bc0;
    padding: 7px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 600;
}

.map-popup-card .place-type i {
    font-size: 16px;
}

.map-popup-card .place-rating {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    color: #f57c00;
    padding: 5px 10px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 3px;
}

.map-popup-card .place-rating::before {
    content: '⭐';
    font-size: 12px;
}

.map-popup-card .place-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 10px;
}

.map-popup-card .tag {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 10px;
    font-weight: 600;
}

.map-popup-card .tag.tag-icon {
    padding: 4px 6px;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    font-size: 14px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.map-popup-card .tag.tag-icon:hover {
    background: rgba(255, 255, 255, 1);
    border-color: rgba(0, 0, 0, 0.2);
    transform: scale(1.15);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.map-popup-card .tag.tag-count {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 1px solid rgba(102, 126, 234, 0.2);
    cursor: pointer;
}

.map-popup-card .tag.tag-count:hover {
    background: rgba(102, 126, 234, 0.15);
    border-color: rgba(102, 126, 234, 0.3);
}

.map-popup-card .popup-actions {
    display: flex;
    gap: 6px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.map-popup-card .popup-btn {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.map-popup-card .popup-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.map-popup-card .popup-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.map-popup-card .popup-btn-secondary {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.map-popup-card .popup-btn-secondary:hover {
    background: rgba(102, 126, 234, 0.2);
}

.map-popup-card .popup-close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.1);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: #666;
    transition: all 0.2s;
}

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

/* Loading Overlay (Results Page) */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-overlay.hidden {
    display: none;
}

.loading-content {
    text-align: center;
    animation: fadeInUp 0.5s ease-out;
}

.loading-van {
    font-size: 80px;
    margin-bottom: 24px;
    animation: drive 2s ease-in-out infinite;
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.15));
}

@keyframes drive {
    0%, 100% { transform: translateX(-20px); }
    50% { transform: translateX(20px); }
}

.loading-overlay p {
    margin-top: 24px;
    font-size: 18px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.loading-overlay .spinner {
    border-color: rgba(102, 126, 234, 0.15);
    border-top-color: #667eea;
    width: 50px;
    height: 50px;
    border-width: 4px;
}

/* ==================== RESPONSIVE ==================== */

/* Tablet */
@media (max-width: 1024px) {
    .results-sidebar {
        width: 380px;
    }

    .results-header {
        padding: 14px 20px;
        gap: 16px;
    }

    .search-box-header {
        max-width: 500px;
    }

    .place-image {
        height: 140px;
    }

    .place-content {
        padding: 16px;
    }
}

/* Mobile */
@media (max-width: 768px) {
    /* Homepage */
    .hero-logo {
        height: 150px;
    }

    .place-type-selector {
        gap: 8px;
        margin-bottom: 20px;
    }

    .type-option {
        min-width: auto;
        padding: 12px 16px;
        flex: 1;
    }

    .type-icon {
        font-size: 24px;
    }

    .type-label {
        font-size: 12px;
    }

    .search-box {
        flex-direction: column;
        gap: 12px;
    }

    #searchBtn {
        width: 100%;
        padding: 16px;
    }

    .suggestions {
        width: 90%;
    }

    /* Hide mapHint on mobile */
    .map-hint {
        display: none !important;
    }

    /* Show explore map button on mobile */
    .explore-map-btn {
        display: flex;
        width: 100%;
        padding: 16px;
    }

    /* Results Page - Fix overflow issue */
    .results-page {
        height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: column;
    }

    /* Results Page Header */
    .results-header {
        flex-wrap: wrap;
        padding: 12px 16px;
        flex-shrink: 0;
    }

    .logo {
        font-size: 18px;
    }

    .logo-icon {
        font-size: 22px;
    }

    .header-search-container {
        order: 3;
        width: 100%;
        max-width: none;
        margin-top: 12px;
        flex-direction: column;
        gap: 12px;
    }

    .place-type-selector-compact {
        justify-content: center;
        width: 100%;
    }

    .type-option-compact {
        width: 40px;
        height: 40px;
    }

    .type-option-compact .type-icon {
        font-size: 18px;
    }

    .search-box-header {
        width: 100%;
        max-width: none;
        flex-direction: column;
    }

    .search-input-wrapper {
        width: 100%;
    }

    .search-box-header #searchBtn {
        width: 100%;
        justify-content: center;
    }

    /* Results container - use flex to take remaining space */
    .results-container {
        flex: 1;
        height: auto;
        min-height: 0;
    }

    /* Sidebar - Hidden by default on mobile */
    .results-sidebar {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 1001;
        background: rgba(245, 247, 250, 0.98);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        transform: translateX(-100%);
    }

    .results-sidebar:not(.hidden-mobile) {
        transform: translateX(0);
    }

    .results-info {
        margin: 12px;
    }

    .filter-chip {
        font-size: 12px;
        padding: 7px 12px;
        gap: 5px;
    }

    .filter-icon {
        font-size: 14px;
    }

    .filter-count {
        font-size: 10px;
        padding: 2px 6px;
    }

    /* Filter dialog on mobile */
    .filter-dialog-content {
        width: 95%;
        max-height: 85vh;
    }

    .filter-dialog-header {
        padding: 20px 20px;
    }

    .filter-dialog-header h3 {
        font-size: 18px;
    }

    .filter-dialog-body {
        padding: 20px;
    }

    .filter-dialog-footer {
        padding: 16px 20px;
        flex-direction: column;
    }

    .clear-filters-btn,
    .apply-filters-btn {
        width: 100%;
    }

    .results-list {
        padding: 0 12px 12px;
    }

    .place-card {
        margin-bottom: 12px;
    }

    .place-image {
        height: 140px;
    }

    /* Map takes full available space on mobile */
    .map-container {
        width: 100%;
        height: 100%;
    }

    #map {
        width: 100%;
        height: 100%;
    }

    /* Hide toggle button on mobile */
    .toggle-sidebar {
        display: none !important;
    }

    /* Force sidebar to stay hidden on mobile */
    .results-sidebar {
        transform: translateX(100%) !important;
        width: 0 !important;
        overflow: hidden !important;
    }

    /* Ensure "Search this area" button is visible and accessible */
    .search-this-area {
        bottom: 80px;
        font-size: 14px;
        padding: 14px 24px;
    }

    .button-text {
        display: none;
    }

    .button-icon {
        font-size: 20px;
    }

    /* Hide map legend on mobile */
    .map-legend {
        display: none !important;
    }

    /* Map controls on mobile - ensure they stay on one line */
    .map-controls-top-right {
        top: 16px;
        right: 16px;
        gap: 6px;
    }

    .floating-search-btn,
    .filter-btn,
    .toggle-sidebar {
        padding: 10px 12px;
        font-size: 18px;
    }

    .floating-search-box {
        /* Position to overlay the button on mobile */
        left: auto;
        right: 0;
        width: calc(100vw - 32px);
        max-width: 350px;
    }

    .map-controls-top-right {
        /* Make controls wrap on mobile if needed */
        flex-wrap: wrap;
    }

    /* Hide button when search box is visible on mobile */
    .floating-search:has(.floating-search-box:not(.hidden)) .floating-search-btn {
        opacity: 0;
        pointer-events: none;
    }

    /* Adjust loading animation */
    .loading-van {
        font-size: 60px;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    #searchInput {
        padding: 16px 20px;
        font-size: 15px;
    }

    .results-sidebar {
        width: 100%;
    }

    .place-title {
        font-size: 16px;
    }

    .place-price {
        font-size: 12px;
        padding: 6px 12px;
    }

    .place-tags {
        gap: 6px;
    }

    .tag {
        font-size: 10px;
        padding: 5px 10px;
    }

    .search-this-area {
        bottom: 100px;
    }

    .no-results {
        padding: 40px 20px;
    }

    .magnifier {
        font-size: 56px;
    }

    .empty-marker {
        font-size: 28px;
    }
}

/* Landscape Mobile */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 40px 0;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        margin-bottom: 2rem;
    }
}
