/* General Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* General Body Styling */
body {
    background-color: #FFF7F2;
    color: #1C1C1C;
    font-family: 'Space Grotesk', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

/* App Container */
.app-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    background-color: #FFF7F2;
}

/* Desktop Header container */
#header-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 1600px;
    padding: 20px 20px 0 20px;
    background: #FFF7F2;
    text-align: center;
}

@media (min-width: 768px) {
    #header-container {
        flex-direction: row;
        justify-content: center;
        align-items: center;
        padding: 20px 20px 0 20px;
    }
}

/* Left Header Section */
#left-header {
    display: none;
}

#site-logo {
    display: none;
}

#site-tagline {
    display: none;
}

#tagline-description {
    display: none;
}

#tagline-description li {
    display: none;
}

/* Desktop Top Bar */
.desktop-top-bar {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: #FFF7F2;
    border-bottom: 1px solid rgba(255, 103, 85, 0.1);
}

@media (min-width: 768px) {
    .desktop-top-bar {
        display: flex;
    }
}

/* Top Bar Controls */
.top-bar-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Month Navigation */
.month-navigation {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: center;
}

.month-navigation button {
    padding: 12px 16px;
    font-size: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    background-color: transparent;
    color: #1C1C1C;
    border: none;
    border-radius: 8px;
    transition: all 0.2s ease;
    font-weight: 400;
}

.month-navigation button:hover {
    background-color: rgba(255, 103, 85, 0.1);
    color: #FF6755;
}

.month-navigation button.active {
    font-weight: 700;
    color: #FF6755;
    text-decoration: underline;
    text-decoration-color: #FF6755;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

/* Filters Button */
.filters-button {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    background-color: white;
    color: #1C1C1C;
    border: 1px solid #e0e0e0;
    border-radius: 25px;
    transition: all 0.2s ease;
    font-weight: 500;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.filters-button:hover {
    border-color: #FF6755;
    box-shadow: 0 4px 12px rgba(255, 103, 85, 0.2);
    transform: translateY(-1px);
}

.filters-button i {
    font-size: 0.9rem;
}

/* Dark Mode Toggle */
.dark-mode-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background-color: transparent;
    color: #1C1C1C;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.dark-mode-toggle:hover {
    background-color: transparent;
    transform: translateY(-1px);
    color: #FF6755;
}

.dark-mode-toggle i {
    transition: all 0.3s ease;
}

/* Dark Mode Styles */
body.dark-mode {
    background-color: #0b132b;
    color: #e0e6f0;
}

body.dark-mode .app-container {
    background-color: #0b132b;
}

body.dark-mode #header-container {
    background: #0b132b;
}

body.dark-mode .desktop-top-bar {
    background-color: #0b132b;
    border-bottom: 2px solid #223a5e;
}

body.dark-mode .month-navigation button {
    color: #ffffff;
}

body.dark-mode .month-navigation button:hover {
    background-color: rgba(255, 103, 85, 0.2);
    color: #FF6755;
}

body.dark-mode .month-navigation button.active {
    color: #FF6755;
    text-decoration-color: #FF6755;
}

body.dark-mode .filters-button {
    background-color: #182040;
    color: #e0e6f0;
    border-color: #223;
}

body.dark-mode .filters-button:hover {
    border-color: #FF6755;
    background-color: #2a2a2a;
}

body.dark-mode .dark-mode-toggle {
    background-color: transparent;
    color: #FFD700;
}

body.dark-mode .dark-mode-toggle:hover {
    background-color: transparent;
    color: #FF6755;
}

body.dark-mode .dark-mode-toggle i {
    transform: rotate(180deg);
}

body.dark-mode .desktop-filters-dropdown {
    background-color: #0b132b;
    border-bottom: 1px solid #16203a;
}

body.dark-mode .filter-group h3 {
    color: #e0e6f0;
}

body.dark-mode .filter-pill {
    background-color: #223;
    color: #e0e6f0;
}

body.dark-mode .filter-pill:hover {
    background-color: rgba(255, 103, 85, 0.2);
    color: #FF6755;
}

body.dark-mode .filter-pill.active {
    background-color: #3a4a7a;
    color: #fff;
}

body.dark-mode .desktop-search-container {
    background-color: #0b132b;
    border-bottom-color: #223;
}

body.dark-mode #desktopSearchInput {
    background-color: #223;
    color: #e0e6f0;
    border-color: #223;
}

body.dark-mode #desktopSearchInput::placeholder {
    color: #7a8bbd;
}

body.dark-mode .map-container {
    background-color: #0b132b !important;
}

body.dark-mode .map-container svg {
    background-color: #0b132b !important;
}

/* Dark mode: map dots hover handled in JS */

.tooltip {
    position: fixed !important;
    background: #fff;
    color: #1C1C1C;
    border-radius: 16px;
    padding: 20px 24px;
    min-width: 220px;
    max-width: 320px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 1px solid rgba(0,0,0,0.08);
    opacity: 0;
    pointer-events: none;
    z-index: 1000;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    transition: opacity 0.2s ease, left 0.15s ease, top 0.15s ease;
}

.tooltip.active {
    opacity: 1;
}

@media (max-width: 767px) {
    .tooltip {
        max-width: calc(100vw - 32px);
        padding: 18px 20px;
        font-size: 0.95rem;
    }
}

.tooltip-title {
    font-size: 1.15em;
    font-weight: 700;
    margin-bottom: 6px;
    color: #1C1C1C;
}

.tooltip-temp {
    font-size: 2em;
    font-weight: 700;
    color: #FF6755;
    margin-bottom: 10px;
}

.tooltip-row {
    font-size: 1em;
    margin-bottom: 4px;
    color: #333;
}

.tooltip-label {
    font-weight: 500;
    color: #888;
    margin-right: 6px;
}

.tooltip-value {
    font-weight: 600;
    color: #1C1C1C;
}

/* Wind background box */
.tooltip-wind {
  background: #111827; /* gray-900 */
  border: 1px solid #1f2937; /* gray-800 */
  color: #ffffff;
  padding: 8px 10px;
  border-radius: 10px;
  margin: 8px 0;
}
body.dark-mode .tooltip-wind {
  background: #0b2533;
  border-color: #0ea5e9;
  color: #e6f6ff;
}
.tooltip-wind .tooltip-label { color: #93c5fd; }
body.dark-mode .tooltip-wind .tooltip-label { color: #67e8f9; }
.tooltip-wind .tooltip-value { color: #ffffff; }
body.dark-mode .tooltip-wind .tooltip-value { color: #e6f6ff; }

/* (removed wind highlight styles per simplified design) */

/* Footer */
#footer {
    width: 100%;
    background: white;
    padding: 40px 20px 20px 20px;
    margin-top: 40px;
    border-top: 1px solid #e0e0e0;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    text-align: center;
}

.footer-section h3 {
    font-size: 1.2rem;
    color: #1C1C1C;
    margin-bottom: 12px;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
}

#newsletter-form {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-top: 16px;
}

#newsletter-form input {
    padding: 12px 16px;
    font-size: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    width: 300px;
    font-family: 'Space Grotesk', sans-serif;
}

#newsletter-form button {
    padding: 12px 24px;
    background-color: #FF6755;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1rem;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
}

#newsletter-form button:hover {
    background-color: #e55a4a;
}

.footer-bottom {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.footer-bottom p {
    color: #666;
    font-size: 0.9rem;
    font-family: 'Space Grotesk', sans-serif;
    margin-bottom: 8px;
}

.footer-bottom p:last-child {
    margin-bottom: 0;
}

/* On-brand footer links */
.footer-links nav a {
    color: #f47461;
    font-weight: 600;
    text-decoration: none;
    padding: 6px 8px;
    border-radius: 8px;
    transition: color 0.2s, background 0.2s;
}
.footer-links nav a:hover {
    background: rgba(244, 116, 97, 0.1);
    color: #e55a4a;
}
body.dark-mode .footer-links nav a {
    color: #FFB4A9;
}
body.dark-mode .footer-links nav a:hover {
    background: rgba(255, 180, 169, 0.15);
    color: #ff967f;
}

/* Temperature Indicators */
.temp-indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 4px;
}

.temp-cold { background-color: #6baed6; }
.temp-mild { background-color: #72c2c3; }
.temp-warm { background-color: #eac784; }
.temp-hot { background-color: #f47461; }

/* Hide mobile elements on desktop */
@media (min-width: 768px) {
    .mobile-nav,
    .list-preferences,
    .bottom-nav,
    .search-panel {
        display: none !important;
    }
    
    .list-view {
        display: none !important;
    }
}

/* Mobile Optimized Styles - Best Practices Applied */
@media (max-width: 767px) {
    .desktop-top-bar,
    .desktop-filters-dropdown,
    .desktop-search-container {
        display: none !important;
    }
    
    body {
        background-color: #ffffff;
        color: #1f2937;
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Helvetica Neue', Arial, sans-serif;
        font-size: 16px; /* Prevent zoom on iOS */
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    .app-container {
        background-color: #ffffff;
        padding-bottom: 80px; /* Space for bottom nav */
    }
    
    #header-container {
        background: white;
        padding: 16px;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
        margin-bottom: 0;
    }
    
    .map-container {
        background-color: #f8f9fa !important;
        padding: 20px 12px !important;
    }
    
    .map-container svg {
        background-color: #f8f9fa !important;
        border-radius: 12px;
    }
}

/* Debug styles removed - mobile optimization applied */

/* Mobile Navigation Styles - Optimized */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: white;
    z-index: 1000;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding: env(safe-area-inset-top) 16px 20px 16px;
}

.mobile-nav-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0 16px;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 20px;
}

.mobile-nav-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.mobile-nav-section h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.mobile-nav-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mobile-nav-buttons button {
    min-height: 48px; /* Touch target optimization */
    min-width: 60px;
    padding: 12px 18px;
    font-size: 1rem;
    background-color: #f9fafb;
    color: #1f2937;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: rgba(244, 116, 97, 0.1);
}

.mobile-nav-buttons button:active {
    transform: scale(0.97);
}

.mobile-nav-buttons button.active {
    background-color: #f47461;
    color: white;
    border-color: #f47461;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(244, 116, 97, 0.3);
}

.mobile-nav-advanced {
    display: none;
    flex-direction: column;
    gap: 24px;
    padding-top: 12px;
}

.mobile-nav-advanced.active {
    display: flex;
}

/* List View Styles - Mobile Optimized */
.list-view {
    display: none;
    padding: 12px;
    background: #f9fafb;
}

/* Mobile-first: show list view on mobile by default */
@media (max-width: 767px) {
    .list-view {
        display: block !important;
        padding: 8px 12px 90px;
    }
    
    .map-container {
        display: none;
    }
}

.list-preferences {
    display: none;
    padding: 16px;
    background: white;
    border-bottom: 1px solid #e5e7eb;
    position: sticky;
    top: 0;
    z-index: 50;
}

.sort-container {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sort-container h3 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.sort-container select {
    min-height: 44px; /* Touch target */
    padding: 10px 14px;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    background: white;
    color: #1f2937;
    font-weight: 500;
}

/* Travel Cards - Mobile Optimized */
.travel-card {
    background: white;
    border-radius: 16px;
    padding: 18px;
    margin-bottom: 14px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    -webkit-tap-highlight-color: rgba(244, 116, 97, 0.1);
}

.travel-card:active {
    transform: scale(0.98);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 4px 0 12px;
    min-height: 48px; /* Touch target */
}

.card-header .flag {
    font-size: 1.5rem;
    margin-right: 10px;
}

.card-header .location {
    font-weight: 700;
    font-size: 1.125rem;
    color: #111827;
    line-height: 1.3;
}

.country-locations-list {
    max-width: 100%;
    overflow-x: hidden;
}

.location-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 52px; /* Touch target */
    padding: 14px 12px;
    margin-bottom: 10px;
    background: #f9fafb;
    border-radius: 12px;
    transition: all 0.2s ease;
    flex-wrap: wrap;
    gap: 10px;
    cursor: pointer;
    -webkit-tap-highlight-color: rgba(244, 116, 97, 0.1);
}

.location-row:active {
    background: #f3f4f6;
    transform: scale(0.99);
}

/* Tags - Mobile Optimized */
.tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 600;
    white-space: nowrap;
    letter-spacing: -0.01em;
}

.tag.rainfall {
    background-color: #e3f2fd;
    color: #1976d2;
}

.tag.safety {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.tag.safety.medium {
    background-color: #fff3e0;
    color: #f57c00;
}

.tag.safety.risk {
    background-color: #ffebee;
    color: #c62828;
}

.tag.budget {
    background-color: #f3e5f5;
    color: #7b1fa2;
}

.tag.budget-budget {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.tag.budget-mid {
    background-color: #fff3e0;
    color: #f57c00;
}

.tag.budget-high {
    background-color: #ffebee;
    color: #c62828;
}

.tag.eco {
    background-color: #e8f5e9;
    color: #2e7d32;
}

.tag.eco-mid {
    background-color: #fff3e0;
    color: #f57c00;
}

.tag.eco-bad {
    background-color: #ffebee;
    color: #c62828;
}

/* Bottom Navigation - Modern Mobile Design */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
    padding: 8px env(safe-area-inset-right) max(12px, env(safe-area-inset-bottom)) env(safe-area-inset-left);
    z-index: 999;
}

.bottom-nav button {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 52px; /* Touch target */
    padding: 8px;
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    -webkit-tap-highlight-color: transparent;
}

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

.bottom-nav button.active {
    color: #f47461;
}

.bottom-nav button i {
    font-size: 1.35rem;
    margin-bottom: 2px;
}

.bottom-nav button span {
    font-size: 0.75rem;
    font-weight: 600;
}

/* Search Panel - Mobile Optimized */
.search-panel {
    position: fixed;
    bottom: -100%;
    left: 0;
    right: 0;
    width: 100%;
    max-height: 80vh;
    background: white;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -4px 30px rgba(0, 0, 0, 0.15);
    transition: bottom 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    padding-bottom: env(safe-area-inset-bottom);
}

.search-panel.active {
    bottom: 0;
}

.search-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 16px;
    border-bottom: 1px solid #e5e7eb;
}

.search-panel-header h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

.close-btn {
    background: #f3f4f6;
    border: none;
    border-radius: 50%;
    min-height: 40px;
    min-width: 40px;
    font-size: 1.25rem;
    color: #6b7280;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: transparent;
}

.close-btn:active {
    transform: scale(0.95);
    background: #e5e7eb;
}

.search-panel-content {
    padding: 20px;
    display: flex;
    gap: 12px;
}

.search-panel-content input {
    flex: 1;
    min-height: 48px;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    transition: border-color 0.2s ease;
}

.search-panel-content input:focus {
    outline: none;
    border-color: #f47461;
}

/* Mobile Responsive Adjustments */
@media (max-width: 767px) {
    .location-row {
        flex-direction: column;
        align-items: flex-start !important;
    }
    
    .location-row > div:last-child {
        width: 100%;
        justify-content: flex-start !important;
        margin-top: 8px;
    }
    
    .tag {
        font-size: 0.85em;
        padding: 3px 6px;
    }
    
    .bottom-nav {
        display: flex;
    }
    
    .mobile-nav {
        display: none; /* Hide by default - was covering entire screen */
    }
    
    .list-preferences {
        display: block;
    }
    
    .list-view {
        display: block;
    }
}

.filter-group-disabled {
    background: none;
    border-radius: 0;
    padding: 0;
    margin-top: 0;
    color: #b0b0b0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 220px;
}
.filter-group-disabled h3 {
    color: #b0b0b0;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.filter-group-disabled .filter-pills {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.filter-group-disabled .filter-pill {
    background: #ededed;
    color: #aaa;
    cursor: not-allowed;
    border: none;
    box-shadow: none;
    opacity: 1;
    pointer-events: none;
}
.coming-soon {
    font-size: 0.95em;
    color: #b0b0b0;
    font-weight: 400;
    margin-left: 6px;
}

body.dark-mode .filter-group-disabled {
    background: none;
    color: #555;
}
body.dark-mode .filter-group-disabled h3 {
    color: #555;
}
body.dark-mode .filter-group-disabled .filter-pill {
    background: #232323;
    color: #555;
}
body.dark-mode .coming-soon {
    color: #555;
}

/* Remove old peace-of-mind-group styles */
.peace-of-mind-group, .peace-of-mind-pills { all: unset; }

body.dark-mode .circular-tooltip-content {
    color: #ffffff;
}

body.dark-mode .tooltip-label {
    color: #ccc;
}

body.dark-mode .tooltip-value {
    color: #ffffff;
}

body.dark-mode .tooltip {
    background-color: rgba(42, 42, 42, 0.95);
    color: #ffffff;
    border-color: rgba(255, 103, 85, 0.3);
}

body.dark-mode .tooltip-title {
    color: #ffffff;
}

body.dark-mode #footer,
body.dark-mode .footer-container {
    background-color: #080e1a;
}

body.dark-mode .footer-bottom {
    background: #080e1a;
    border-top: 1px solid #16203a;
}

body.dark-mode .footer-section h3 {
    color: #ffffff;
}

body.dark-mode #newsletter-form input {
    background-color: #1a1a1a;
    color: #ffffff;
    border-color: #404040;
}

body.dark-mode .footer-bottom p {
    color: #999;
}

/* Desktop Search Container - moved back under map */
.desktop-search-container {
    display: none;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: #FFF7F2;
    position: relative;
    z-index: 10;
    margin-top: -160px;
}

@media (min-width: 768px) {
    .desktop-search-container {
        display: flex;
    }
}

#desktopSearchInput {
    padding: 16px 24px;
    font-size: 16px;
    font-family: 'Space Grotesk', sans-serif;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    width: 400px;
    background-color: white;
    color: #1C1C1C;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

#desktopSearchInput:focus {
    border-color: #FF6755;
    outline: none;
    box-shadow: 0 4px 12px rgba(255, 103, 85, 0.1);
}

#desktopSearchInput::placeholder {
    color: #999;
}

.search-btn {
    padding: 16px 24px;
    font-size: 16px;
    font-family: 'Space Grotesk', sans-serif;
    background-color: #FF6755;
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(255, 103, 85, 0.2);
}

.search-btn:hover {
    background-color: #e55a4a;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 103, 85, 0.3);
}

/* Desktop Filters Dropdown */
.desktop-filters-dropdown {
    display: none;
    width: 100%;
    background: #FFF7F2;
    border-bottom: 1px solid rgba(255, 103, 85, 0.15);
    padding: 30px 20px;
}

.desktop-filters-dropdown.active {
    display: block;
}

.filters-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.filter-group h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1C1C1C;
    margin-bottom: 16px;
    font-family: 'Space Grotesk', sans-serif;
}

.filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.filter-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    font-size: 0.95rem;
    font-family: 'Space Grotesk', sans-serif;
    cursor: pointer;
    background-color: #F1F1F1;
    color: #1C1C1C;
    border: none;
    border-radius: 25px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.filter-pill:hover {
    background-color: rgba(255, 103, 85, 0.1);
    color: #FF6755;
}

.filter-pill.active {
    background-color: #FF6755;
    color: white;
}

.filter-pill i {
    font-size: 0.9rem;
}

/* Map Container */
.map-container {
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    background-color: #FFF7F2 !important;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px 20px 20px;
}

.map-container.fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    max-width: none;
    margin: 0;
    padding: 0;
    z-index: 9999;
}

.map-container svg {
    display: block;
    margin: 0 auto;
    background-color: #FFF7F2 !important;
    border-radius: 0;
    box-shadow: none;
}

/* Map Dots Hover Effects */
.map-container circle {
    transition: none;
    cursor: pointer;
}

/* Map dots hover effects handled in JavaScript */

/* Map Controls */
.map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

/* Map loader overlay */
.map-loader {
    position: absolute;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8);
    color: #1C1C1C;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 600;
    z-index: 200;
}
body.dark-mode .map-loader {
    background: rgba(11, 19, 43, 0.75);
    color: #e0e6f0;
}

.map-button {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.map-button:hover {
    border-color: #FF6755;
    box-shadow: 0 4px 12px rgba(255, 103, 85, 0.2);
}

.tooltip-center-label {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #1C1C1C;
    font-size: 2em;
    font-weight: 700;
    pointer-events: none;
    line-height: 1.1;
    width: 100%;
}

body.dark-mode .footer-bottom {
    background: #080e1a;
    border-top: 1px solid #16203a;
}

body.dark-mode .tooltip-city {
    color: #8fa2c7 !important;
}

body.dark-mode .desktop-top-bar {
    background-color: #0b132b;
    border-bottom: 2px solid #223a5e;
}

body.dark-mode .desktop-filters-dropdown {
    background-color: #0b132b;
    border-bottom: 1px solid #16203a;
}

@media (max-width: 1500px) and (min-width: 768px) {
  .desktop-top-bar {
    padding: 10px 8px;
    gap: 10px;
  }
  .month-navigation button {
    font-size: 0.85rem;
    padding: 8px 10px;
  }
  .filters-button {
    font-size: 0.85rem;
    padding: 8px 14px;
    gap: 6px;
  }
  .dark-mode-toggle {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }
}

/* Search suggestion match highlighting */
.search-suggestion-match {
    background-color: #fbbf24;
    color: #92400e;
    padding: 0;
    margin: 0;
    border-radius: 0;
}

/* Region/Continent Tabs for Mobile - Optimized */
.mobile-region-tabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 10px;
    padding: 10px 0 14px 0;
    margin-bottom: 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE 10+ */
    -webkit-overflow-scrolling: touch;
}
.mobile-region-tabs::-webkit-scrollbar {
    display: none;
}
.mobile-region-tabs button {
    flex: 0 0 auto;
    min-height: 44px;
    padding: 12px 20px;
    font-size: 1rem;
    background-color: #f9fafb;
    color: #374151;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 600;
    white-space: nowrap;
    -webkit-tap-highlight-color: rgba(244, 116, 97, 0.1);
}
.mobile-region-tabs button:active {
    transform: scale(0.97);
}
.mobile-region-tabs button.active {
    background-color: #f47461;
    color: #fff;
    border-color: #f47461;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(244, 116, 97, 0.3);
}

@media (max-width: 767px) {
  .list-view {
    padding: 8px 0 80px 0;
    background: #f8f9fa;
  }
  .travel-card {
    width: 96vw;
    max-width: 480px;
    margin: 16px auto;
    border-radius: 18px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.07);
    padding: 20px 16px 18px 16px;
    font-size: 1.08em;
    transition: box-shadow 0.2s;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .travel-card:active {
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
  }
  .card-header {
    gap: 12px;
    font-size: 1.1em;
    padding: 0 0 6px 0;
  }
  .country-summary-row {
    gap: 10px;
    flex-wrap: wrap;
    font-size: 0.98em;
    margin-bottom: 0;
  }
  .country-group-card {
    margin-bottom: 24px;
  }
  .card-header .flag {
    font-size: 1.3em;
  }
  .card-header .location {
    font-size: 1.1em;
    font-weight: 600;
  }
  .country-locations-list {
    padding: 0;
    margin: 0;
  }
  .location-row {
    border-radius: 10px;
    margin-bottom: 8px;
    padding: 10px 8px;
    font-size: 0.98em;
  }
}

/* Mobile Detail Panel Styles */
.mobile-detail-panel {
  display: none;
  position: fixed;
  left: 0; right: 0; bottom: 0; top: 0;
  width: 100vw;
  height: 100vh;
  background: #fff;
  z-index: 2000;
  box-shadow: 0 -8px 32px rgba(0,0,0,0.18);
  border-top-left-radius: 18px;
  border-top-right-radius: 18px;
  overflow-y: auto;
  transition: transform 0.3s cubic-bezier(.4,1.4,.6,1), background 0.2s;
  transform: translateY(100%);
}
.mobile-detail-panel.active {
  display: block;
  transform: translateY(0);
  background: linear-gradient(to bottom, rgba(0,0,0,0.08) 0 60px, #fff 60px 100%);
}
.mobile-detail-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 20px 20px 8px 20px;
  border-bottom: 1px solid #f3f4f6;
  background: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 2;
}
.mobile-detail-close {
  background: none;
  border: none;
  color: #6b7280;
  font-size: 1.6em;
  margin-right: 8px;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;
  transition: background 0.2s;
}
.mobile-detail-close:hover {
  background: #f3f4f6;
}
.mobile-detail-title {
  font-size: 1.2em;
  font-weight: 700;
  color: #1f2937;
}
.mobile-detail-subtitle {
  font-size: 1em;
  color: #6b7280;
  font-weight: 400;
}
.mobile-detail-content {
  padding: 18px 20px 32px 20px;
}
@media (max-width: 767px) {
  .mobile-detail-panel {
    border-radius: 0;
    width: 100vw;
    height: 100vh;
    left: 0; right: 0; top: 0; bottom: 0;
  }
}

/* Sticky top bar for mobile - Enhanced UX */
.mobile-sticky-top {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  padding: 12px 16px;
}
@media (max-width: 767px) {
  .mobile-sticky-top {
    top: 0;
    background: rgba(255, 255, 255, 0.98);
    z-index: 100;
    padding-top: max(12px, env(safe-area-inset-top));
  }
}

/* Improved Bottom Navigation for Mobile */
.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  background: #fff;
  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.06);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 0 env(safe-area-inset-right) 8px env(safe-area-inset-left);
  z-index: 3000;
  height: 64px;
}
.bottom-nav button {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 0 0 0;
  background: none;
  border: none;
  color: #666;
  cursor: pointer;
  font-size: 1.08em;
  transition: color 0.2s;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
.bottom-nav button.active {
  color: #f47461;
  font-weight: 600;
}
.bottom-nav button i {
  font-size: 1.5em;
  margin-bottom: 2px;
}
.bottom-nav button span {
  font-size: 0.92em;
  font-weight: 500;
}
@media (max-width: 767px) {
  .bottom-nav {
    height: 64px;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
  }
}

/* Final mobile polish - Enhanced UX */
.mobile-nav-buttons button,
.mobile-region-tabs button {
  min-width: 60px;
  min-height: 48px;
  font-size: 1rem;
  border-radius: 12px;
}
.mobile-nav-buttons button:active:not(.active),
.mobile-region-tabs button:active:not(.active) {
  background-color: #fef3f2;
  border-color: #f47461;
  color: #f47461;
}
.travel-card {
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.travel-card:active {
  transform: scale(0.98);
}
.location-row {
  min-height: 52px;
  padding: 14px 12px;
}
.mobile-detail-panel {
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), background 0.2s ease;
  background: #fff;
}
.mobile-detail-panel.active {
  background: linear-gradient(to bottom, rgba(0,0,0,0.04) 0 60px, #fff 60px 100%);
}

/* Mobile Filter Toggle Enhancement */
@media (max-width: 767px) {
  .mobile-nav-section h3[onclick] {
    min-height: 48px;
    display: flex !important;
    align-items: center;
    padding: 12px;
    margin: -12px -12px 12px -12px;
    border-radius: 10px;
    transition: background 0.2s ease;
    -webkit-tap-highlight-color: rgba(244, 116, 97, 0.1);
  }
  .mobile-nav-section h3[onclick]:active {
    background: #f9fafb;
  }
}

body.dark-mode .location-sidebar {
  background: #181c24;
  color: #e0e6f0;
  box-shadow: -4px 0 20px rgba(0,0,0,0.45);
}
body.dark-mode .sidebar-header {
  background: #23283a;
  border-bottom: 1px solid #23283a;
}
body.dark-mode .sidebar-title .location-main-title {
  color: #fff;
}
body.dark-mode .sidebar-title .location-subtitle {
  color: #b0b8c9;
}
body.dark-mode .sidebar-close {
  color: #b0b8c9;
}
body.dark-mode .sidebar-close:hover {
  background: #23283a;
  color: #fff;
}
body.dark-mode .sidebar-content {
  background: #181c24;
}
body.dark-mode .data-section {
  background: #181c24;
  border-bottom: 1px solid #23283a;
}
body.dark-mode .data-section-title {
  color: #e0e6f0;
}
body.dark-mode .temperature-display {
  background: #23283a;
}
body.dark-mode .weather-graphic .weather-icon {
  color: #fbbf24;
}
body.dark-mode .weather-description {
  background: #23283a;
  border-left: 4px solid #0ea5e9;
  color: #b0b8c9;
}
body.dark-mode .weather-description i {
  color: #0ea5e9;
}
body.dark-mode .highlights-content {
  background: #2d2f3a;
  border-left: 4px solid #f59e0b;
  color: #ffe6b3;
}
body.dark-mode .notable-places-content {
  background: #1e2a26;
  border-left: 4px solid #10b981;
  color: #a7f3d0;
}
body.dark-mode .location-info {
  color: #e0e6f0;
}
body.dark-mode .location-name {
  color: #fff;
}
body.dark-mode .location-pin {
  color: #f47461;
}
body.dark-mode .coordinates {
  color: #b0b8c9;
}
body.dark-mode .intensity-bar {
  background: #23283a;
}
body.dark-mode .intensity-fill {
  opacity: 0.85;
}
body.dark-mode .metric-card {
  background: #23283a;
  color: #e0e6f0;
}
body.dark-mode .metric-value {
  color: #fbbf24;
}
body.dark-mode .metric-label {
  color: #b0b8c9;
}
body.dark-mode .intensity-fill {
  opacity: 1;
}

/* Toolbox above search (same style as legend) */
.toolbox-above-search {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  padding: 0 0 18px 0;
  flex-wrap: wrap;
  margin-bottom: 0;
  text-align: center;
  width: 100%;
}
.toolbox-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 0.98em;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-weight: 500;
  transition: color 0.2s;
  user-select: none;
}
.toolbox-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #e5e7eb;
  border: 2px solid #eac784;
  display: inline-block;
  transition: background 0.2s, border 0.2s;
}
.toolbox-toggle.active .toolbox-dot {
  background: #f47461;
  border-color: #f47461;
}
.toolbox-icon {
  font-size: 1em;
  color: #6b7280;
  transition: color 0.2s;
}
.toolbox-toggle.active .toolbox-icon {
  color: #f47461;
}
.toolbox-label {
  font-size: 0.95em;
  color: #6b7280;
  font-weight: 500;
  transition: color 0.2s;
}
.toolbox-toggle.active .toolbox-label {
  color: #f47461;
}
@media (max-width: 767px) {
  .toolbox-above-search {
    gap: 18px;
    padding: 0 0 10px 0;
  }
  .toolbox-label {
    font-size: 0.92em;
  }
}
body.dark-mode .toolbox-dot {
  background: #23283a;
  border: 2px solid #eac784;
}
body.dark-mode .toolbox-toggle.active .toolbox-dot {
  background: #f47461;
  border-color: #f47461;
}
body.dark-mode .toolbox-icon {
  color: #b0b8c9;
}
body.dark-mode .toolbox-toggle.active .toolbox-icon {
  color: #f47461;
}
body.dark-mode .toolbox-label {
  color: #b0b8c9;
}
body.dark-mode .toolbox-toggle.active .toolbox-label {
  color: #f47461;
}

.toolbox-toggle, .toolbox-toggle * {
  cursor: pointer;
}
.toolbox-toggle:hover .toolbox-dot {
  border-color: #f47461;
}
.toolbox-toggle:hover .toolbox-label {
  color: #f47461;
}
.toolbox-toggle:active {
  filter: brightness(0.95);
}

/* SEO Content Section */
.seo-content {
    width: 100%;
    background: #FFF7F2;
    padding: 40px 20px 10px 20px;
}
.seo-container {
    max-width: 1000px;
    margin: 0 auto;
}
.seo-container h1 {
    font-size: 1.8rem;
    line-height: 1.2;
    margin: 0 0 14px 0;
    font-weight: 800;
    color: #1C1C1C;
    letter-spacing: -0.02em;
}
.seo-container h2 {
    font-size: 1.3rem;
    margin: 20px 0 10px 0;
    font-weight: 700;
    color: #1C1C1C;
}
.seo-container p {
    margin: 0 0 10px 0;
    color: #333;
}
.seo-container ul {
    margin: 0 0 10px 18px;
    padding: 0;
}
.seo-container li {
    margin: 6px 0;
}

/* Dark mode */
body.dark-mode .seo-content {
    background: #0b132b;
}
body.dark-mode .seo-container h1,
body.dark-mode .seo-container h2 {
    color: #e0e6f0;
}
body.dark-mode .seo-container p,
body.dark-mode .seo-container li {
    color: #b0b8c9;
}
