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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #e4e6ea;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    min-height: 100vh;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

header {
    margin-bottom: 40px;
    color: #ffffff;
}

.header-content {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    flex-wrap: wrap;
    gap: 20px;
}

.header-left {
    text-align: center;
}

.header-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    color: #ffd700;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.2s ease;
}

header h1:hover {
    transform: scale(1.02);
    text-shadow: 0 3px 6px rgba(0,0,0,0.6);
    color: #ffed4e;
}

.logo-image {
    height: 5rem;
    width: auto;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
    color: #b8bcc8;
}

.title-with-beta {
    position: relative;
    display: inline-block;
}

.beta-badge {
    position: absolute;
    top: -5px;
    right: -45px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    padding: 2px 6px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    animation: subtle-pulse 3s ease-in-out infinite;
}

@keyframes subtle-pulse {
    0%, 100% { 
        opacity: 1;
        transform: scale(1);
    }
    50% { 
        opacity: 0.8;
        transform: scale(1.02);
    }
}

.header-strava-btn {
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 6px;
}

.header-strava-btn:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

.header-strava-btn:active {
    transform: scale(0.98);
}

.strava-btn-image {
    height: 40px;
    width: auto;
    display: block;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7));
}

.header-strava-btn.connected .strava-btn-image {
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7)) hue-rotate(90deg) brightness(1.1);
}

.header-strava-btn.connected:hover .strava-btn-image {
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.7)) hue-rotate(90deg) brightness(1.2);
}

/* Settings Panel */
.settings-panel {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    overflow: hidden;
}

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.settings-header h3 {
    margin: 0;
    color: #ffffff;
    font-weight: 600;
}

.toggle-btn {
    background: rgba(100, 179, 244, 0.2);
    border: 1px solid rgba(100, 179, 244, 0.3);
    font-size: 1.2rem;
    color: #64b3f4;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.toggle-btn:hover {
    background: rgba(100, 179, 244, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(100, 179, 244, 0.2);
}

.settings-content {
    padding: 30px;
    display: none;
}

.api-key-section label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
    font-size: 14px;
}

.api-key-input-group {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

#api-key {
    flex: 1;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 14px;
    color: #ffffff;
    transition: all 0.3s ease;
}

#api-key::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#api-key:focus {
    outline: none;
    border-color: #64b3f4;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(100, 179, 244, 0.2);
}

.save-btn {
    padding: 14px 24px;
    background: linear-gradient(135deg, #00c851 0%, #007e33 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 200, 81, 0.3);
}

.save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 200, 81, 0.4);
}

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

.status-message {
    font-size: 12px;
    margin-top: 8px;
    font-weight: 500;
}

.status-message.success {
    color: #00c851;
}

.status-message.error {
    color: #ff4444;
}

.api-key-section small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

.api-key-section small a {
    color: #64b3f4;
    text-decoration: none;
    transition: color 0.3s ease;
}

.api-key-section small a:hover {
    color: #4fa8e8;
}

/* Location Selection */
.location-selection {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
    overflow: visible;
}

.location-tabs {
    display: flex;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.tab-btn {
    flex: 1;
    padding: 16px 20px;
    background: none;
    border: none;
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
    transition: all 0.3s ease;
    border-bottom: 3px solid transparent;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.tab-btn span:first-child {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.tab-btn:hover {
    background: rgba(100, 179, 244, 0.1);
    color: #ffffff;
}

.tab-btn.active {
    background: rgba(100, 179, 244, 0.15);
    border-bottom-color: #64b3f4;
    color: #64b3f4;
}

.tab-content {
    display: none;
    padding: 30px;
    overflow: visible;
    position: relative;
}

.tab-content.active {
    display: block;
}

/* Search Tab */
.search-type-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 4px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.search-type-btn {
    flex: 1;
    padding: 12px 16px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
}

.search-type-btn span:first-child {
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

.search-type-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.search-type-btn.active {
    background: #64b3f4;
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(100, 179, 244, 0.3);
}

.search-container {
    position: relative;
    z-index: 2147483646;
}

#location-search, #trail-search {
    width: 100%;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

#location-search::placeholder, #trail-search::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#location-search:focus, #trail-search:focus {
    outline: none;
    border-color: #64b3f4;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(100, 179, 244, 0.2);
}

.trail-suggestion-item {
    padding: 16px 20px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
}

.trail-suggestion-item:hover {
    background: rgba(100, 179, 244, 0.2);
}

.trail-suggestion-item:last-child {
    border-bottom: none;
}

.trail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}

.trail-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
}

.trail-grade {
    padding: 3px 8px;
    border-radius: 4px;
    font-weight: 700;
    text-transform: none;
    letter-spacing: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.trail-grade.grade-white {
    background: transparent;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 24px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.trail-grade.grade-green {
    background: transparent;
    color: #4caf50 !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 24px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.trail-grade.grade-blue {
    background: transparent;
    color: #2196f3 !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 24px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.trail-grade.grade-black {
    background: transparent;
    color: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 30px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.trail-grade.grade-double-black {
    background: transparent;
    color: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 30px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.trail-details {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.trail-description {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.4;
    font-style: italic;
    margin-top: 4px;
}

.trail-surface {
    background: rgba(100, 179, 244, 0.2);
    color: #64b3f4;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

.trail-length {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.trail-rating {
    background: rgba(255, 215, 0, 0.2);
    color: #ffd700;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.trail-last-ridden {
    background: rgba(96, 165, 250, 0.2);
    color: #60a5fa;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.trail-activity {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 6px;
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.trail-difficulty {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 600;
}

.trail-difficulty.easy { background: rgba(76, 175, 80, 0.2); color: #4caf50; }
.trail-difficulty.moderate { background: rgba(255, 193, 7, 0.2); color: #ffc107; }
.trail-difficulty.difficult { background: rgba(255, 152, 0, 0.2); color: #ff9800; }
.trail-difficulty.expert { background: rgba(244, 67, 54, 0.2); color: #f44336; }

.no-trails-found {
    padding: 20px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.no-trails-found p {
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 500;
}

.no-trails-found small {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12px;
}

body > .suggestions-dropdown,
.suggestions-dropdown {
    position: fixed !important;
    background: rgba(30, 30, 46, 0.98) !important;
    backdrop-filter: blur(15px) !important;
    border: 2px solid rgba(255, 255, 255, 0.4) !important;
    border-radius: 12px !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8) !important;
    z-index: 2147483647 !important;
    display: none;
    max-height: 400px;
    overflow-y: auto;
    min-width: 300px;
    transform: translateZ(0) !important;
    pointer-events: auto !important;
    will-change: transform !important;
    isolation: isolate !important;
}

.suggestion-item {
    padding: 14px 18px;
    cursor: pointer;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.suggestion-item:hover {
    background: rgba(100, 179, 244, 0.2);
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item strong {
    display: block;
    color: #ffffff;
    font-weight: 600;
}

.suggestion-item span {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
}

.check-btn, #check-trail-rain {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #64b3f4 0%, #4fa8e8 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 16px rgba(100, 179, 244, 0.3);
}

.check-btn:hover, #check-trail-rain:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(100, 179, 244, 0.4);
}

.check-btn:active, #check-trail-rain:active {
    transform: translateY(0);
}

/* Map Tab */
.map-container {
    text-align: center;
}

#map {
    border-radius: 12px;
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    filter: brightness(0.85) contrast(1.1) hue-rotate(15deg);
}

/* Dark theme for Leaflet map controls */
#map .leaflet-control-zoom {
    border: none !important;
    border-radius: 8px !important;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3) !important;
}

#map .leaflet-control-zoom a {
    background: rgba(30, 41, 59, 0.95) !important;
    color: #e4e6ea !important;
    border: none !important;
    width: 40px !important;
    height: 40px !important;
    line-height: 40px !important;
    font-size: 18px !important;
    font-weight: bold !important;
    border-radius: 0 !important;
    transition: all 0.2s ease !important;
}

#map .leaflet-control-zoom a:hover {
    background: rgba(60, 165, 250, 0.9) !important;
    color: white !important;
}

#map .leaflet-control-zoom a:first-child {
    border-radius: 8px 8px 0 0 !important;
}

#map .leaflet-control-zoom a:last-child {
    border-radius: 0 0 8px 8px !important;
}

/* Style attribution control */
#map .leaflet-control-attribution {
    background: rgba(30, 41, 59, 0.9) !important;
    color: rgba(255, 255, 255, 0.8) !important;
    border-radius: 6px !important;
    padding: 4px 8px !important;
    font-size: 11px !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

#map .leaflet-control-attribution a {
    color: #60a5fa !important;
}

.map-instruction {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin: 0;
}

/* Trail Map Popup Styling */
.trail-popup {
    min-width: 200px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: rgba(30, 41, 59, 0.98) !important;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.trail-popup h4 {
    margin: 0 0 8px 0;
    color: #ffffff;
    font-size: 16px;
    font-weight: 600;
}

/* Custom Leaflet popup styling */
#map .leaflet-popup-content-wrapper {
    background: rgba(30, 41, 59, 0.98) !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4) !important;
}

#map .leaflet-popup-tip {
    background: rgba(30, 41, 59, 0.98) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-top: none !important;
    border-right: none !important;
}

#map .leaflet-popup-close-button {
    color: #ffffff !important;
    font-size: 18px !important;
    padding: 4px 8px !important;
    background: rgba(255, 255, 255, 0.1) !important;
    border-radius: 4px !important;
}

.trail-popup-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.trail-popup-info .trail-distance {
    color: #b8bcc8;
    font-size: 14px;
}

.trail-popup-details {
    margin: 8px 0;
    font-size: 14px;
    color: #e4e6ea;
}

.trail-popup-details p {
    margin: 4px 0;
}

.trail-popup-btn {
    background: #60a5fa;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    width: 100%;
    margin-top: 8px;
    transition: background-color 0.2s;
}

.trail-popup-btn:hover {
    background: #3b82f6;
}

.trail-marker-icon {
    transition: transform 0.2s ease;
}

.trail-marker-icon:hover {
    transform: scale(1.1);
}

/* Saved Locations Tab */
.saved-locations {
    min-height: 200px;
}

.locations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.saved-locations-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.saved-locations-placeholder p {
    font-size: 16px;
    margin-bottom: 8px;
    color: #ffffff;
}

.saved-locations-placeholder small {
    font-size: 12px;
    opacity: 0.7;
}

.saved-location-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.saved-location-card:hover {
    border-color: #64b3f4;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(100, 179, 244, 0.2);
}

.saved-location-card .location-info h4 {
    margin-bottom: 5px;
    color: #ffffff;
    font-weight: 600;
}

.saved-location-card .location-info p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 5px;
}

.saved-location-card .location-info small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
}

.location-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.select-btn {
    flex: 1;
    padding: 10px 16px;
    background: linear-gradient(135deg, #64b3f4 0%, #4fa8e8 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.select-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(100, 179, 244, 0.3);
}

.delete-btn {
    padding: 10px 12px;
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.delete-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 68, 68, 0.3);
}

/* Loading */
.loading {
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.loading p {
    color: #ffffff;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #64b3f4;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

/* Results */
.results {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.results-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.results-left {
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

.results-right {
    /* Right side for forecast */
}

.location-info {
    background: rgba(255, 255, 255, 0.03);
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
}

.location-info-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}


.location-info h2 {
    font-size: 1.5rem;
    margin-bottom: 5px;
    color: #ffffff;
    font-weight: 600;
}

.location-info p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.trail-description {
    width: 100%;
    margin: 8px 0 5px 0;
}

.trail-description-text {
    color: rgba(255, 255, 255, 0.7);
    font-size: 13px;
    font-style: italic;
    line-height: 1.4;
    margin: 0;
}

.save-location-btn {
    padding: 12px 20px;
    background: linear-gradient(135deg, #00c851 0%, #007e33 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 200, 81, 0.3);
}

.save-location-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 200, 81, 0.4);
}

.rainfall-data {
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.rainfall-data h3 {
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
}

.time-periods {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.period-card {
    text-align: center;
    padding: 24px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.period-card:hover {
    border-color: #64b3f4;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(100, 179, 244, 0.2);
}

.period-card h4 {
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.rainfall-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: #64b3f4;
    margin-bottom: 5px;
    text-shadow: 0 2px 4px rgba(100, 179, 244, 0.3);
}

.rainfall-unit {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
}

.trail-conditions {
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trail-conditions h3 {
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
}

.condition-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    border-radius: 12px;
    border-left: 4px solid #ccc;
    background: rgba(255, 255, 255, 0.05);
}

.condition-card.excellent {
    background: rgba(76, 175, 80, 0.15);
    border-left-color: #4caf50;
}

.condition-card.good {
    background: rgba(255, 193, 7, 0.15);
    border-left-color: #ffc107;
}

.condition-card.caution {
    background: rgba(255, 152, 0, 0.15);
    border-left-color: #ff9800;
}

.condition-card.poor {
    background: rgba(244, 67, 54, 0.15);
    border-left-color: #f44336;
}

.condition-icon {
    font-size: 2.5rem;
    min-width: 60px;
    text-align: center;
}

.condition-text h4 {
    margin-bottom: 8px;
    color: #ffffff;
    font-weight: 600;
}

.condition-text p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

.recommendations {
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.recommendations h3 {
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
}

.recommendations ul {
    list-style: none;
}

.recommendations li {
    padding: 12px 0;
    padding-left: 25px;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.5;
}

.recommendations li:before {
    content: "•";
    color: #64b3f4;
    font-weight: bold;
    position: absolute;
    left: 8px;
}

.recommendations li:last-child {
    border-bottom: none;
}

/* Cycling Types Section */
.cycling-types {
    padding: 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.cycling-types h3 {
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
}

.cycling-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 16px;
}

.cycling-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cycling-type-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 18px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.cycling-type-card.suitable {
    border-color: #4caf50;
    background: rgba(76, 175, 80, 0.15);
}

.cycling-type-card.caution {
    border-color: #ff9800;
    background: rgba(255, 152, 0, 0.15);
}

.cycling-type-card.not-suitable {
    border-color: #f44336;
    background: rgba(244, 67, 54, 0.15);
}

.cycling-type-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(100, 179, 244, 0.2);
}

.cycling-icon {
    font-size: 2rem;
    margin-bottom: 8px;
    display: block;
}

.cycling-name {
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.cycling-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 500;
}

.status-icon {
    font-size: 16px;
}

.cycling-status.suitable {
    color: #4caf50;
}

.cycling-status.caution {
    color: #ff9800;
}

.cycling-status.not-suitable {
    color: #f44336;
}

.cycling-description {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 6px;
    line-height: 1.3;
}

/* Forecast Section */
.forecast-section {
    padding: 30px;
}

.forecast-section h3 {
    margin-bottom: 20px;
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 600;
}

.forecast-container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-bottom: 24px;
}

.forecast-placeholder {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.forecast-day {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.forecast-day::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: #64b3f4;
    opacity: 0.3;
}

.forecast-day.excellent::before {
    background: #4caf50;
    opacity: 1;
}

.forecast-day.good::before {
    background: #ffc107;
    opacity: 1;
}

.forecast-day.caution::before {
    background: #ff9800;
    opacity: 1;
}

.forecast-day.poor::before {
    background: #f44336;
    opacity: 1;
}

.forecast-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(100, 179, 244, 0.2);
    border-color: #64b3f4;
}

.forecast-header {
    margin-bottom: 12px;
}

.forecast-day-info {
    text-align: center;
}

.forecast-header h4 {
    color: #ffffff;
    font-weight: 600;
    margin: 0 0 4px 0;
    font-size: 14px;
}

.forecast-date {
    color: rgba(255, 255, 255, 0.7);
    font-size: 11px;
    display: block;
    font-weight: 500;
}

.forecast-weather {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    flex-grow: 1;
}

.weather-icon {
    font-size: 2rem;
}

.weather-temp {
    text-align: right;
}

.temp-high {
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 600;
    margin-right: 4px;
}

.temp-low {
    color: rgba(255, 255, 255, 0.6);
    font-size: 1rem;
}

.forecast-details {
    margin-bottom: 12px;
    flex-grow: 1;
}

.detail-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 11px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-icon {
    margin-right: 8px;
    width: 16px;
    text-align: center;
}

.ride-score {
    text-align: center;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 12px;
}

.score-label {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}

.score-value {
    font-size: 1.1rem;
    font-weight: 700;
}

.score-value.excellent {
    color: #4caf50;
}

.score-value.good {
    color: #ffc107;
}

.score-value.caution {
    color: #ff9800;
}

.score-value.poor {
    color: #f44336;
}

.estimate-badge {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Best Day Recommendation */
.best-day-card {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.15) 0%, rgba(255, 193, 7, 0.1) 100%);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    padding: 20px;
    display: none;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
}

.best-day-icon {
    font-size: 2rem;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.best-day-content h4 {
    color: #ffc107;
    margin-bottom: 4px;
    font-weight: 600;
}

.best-day-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    line-height: 1.4;
}

/* Modal Styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background: rgba(26, 26, 46, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-header h3 {
    color: #ffffff;
    margin: 0;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 24px;
    cursor: pointer;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.modal-close:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.1);
}

.modal-body {
    padding: 30px;
}

.modal-body label {
    display: block;
    color: #ffffff;
    font-weight: 600;
    margin-bottom: 8px;
}

#location-label {
    width: 100%;
    padding: 14px 16px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    color: #ffffff;
    font-size: 16px;
    margin-bottom: 20px;
    transition: all 0.3s ease;
}

#location-label::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

#location-label:focus {
    outline: none;
    border-color: #64b3f4;
    background: rgba(255, 255, 255, 0.12);
    box-shadow: 0 0 0 3px rgba(100, 179, 244, 0.2);
}

.location-preview {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.location-preview h4 {
    color: #ffffff;
    margin-bottom: 4px;
    font-weight: 600;
}

.location-preview p {
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    font-size: 14px;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 20px 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.cancel-btn {
    padding: 12px 24px;
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.cancel-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.confirm-btn {
    padding: 12px 24px;
    background: linear-gradient(135deg, #00c851 0%, #007e33 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 200, 81, 0.3);
}

.confirm-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 200, 81, 0.4);
}

/* Trail Comparison Section (Chiang Mai Mode) */
.trail-comparison-section {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin-top: 20px;
    overflow: hidden;
    position: relative;
    z-index: 10;
}

.comparison-header {
    background: rgba(96, 165, 250, 0.1);
    border-bottom: 1px solid rgba(96, 165, 250, 0.2);
    padding: 25px 30px;
    text-align: center;
}

.comparison-header h3 {
    color: #60a5fa;
    margin-bottom: 8px;
    font-size: 1.4rem;
    font-weight: 600;
}

.comparison-header p {
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 15px 0;
    font-size: 14px;
}

.refresh-btn {
    background: rgba(96, 165, 250, 0.2);
    border: 1px solid #60a5fa;
    color: #60a5fa;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.refresh-btn:hover {
    background: rgba(96, 165, 250, 0.3);
    transform: translateY(-1px);
}

.trail-comparison-grid {
    padding: 30px;
}

.trail-comparison-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.trail-comparison-table th {
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 16px 12px;
    font-weight: 600;
    font-size: 13px;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trail-comparison-table th:first-child {
    width: 200px;
}

.trail-comparison-table th.day-header {
    text-align: center;
    width: 120px;
}

.trail-comparison-table td {
    padding: 14px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    vertical-align: middle;
}

.trail-comparison-table tr:last-child td {
    border-bottom: none;
}

.trail-comparison-table tr:hover {
    background: rgba(255, 255, 255, 0.05);
}

.trail-info-cell {
    display: flex;
    align-items: center;
    gap: 12px;
}

.trail-mini-grade {
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.trail-mini-grade.grade-white {
    background: transparent;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 21px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.trail-mini-grade.grade-green {
    background: transparent;
    color: #4caf50 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 21px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.trail-mini-grade.grade-blue {
    background: transparent;
    color: #2196f3 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 21px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.trail-mini-grade.grade-black {
    background: transparent;
    color: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 24px;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.trail-mini-grade.grade-double-black {
    background: transparent;
    color: #000000 !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 24px;
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(255, 255, 255, 0.8);
}

.trail-name-cell {
    font-weight: 600;
    color: #ffffff;
    font-size: 13px;
}

.trail-surface-cell {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.6);
    text-transform: capitalize;
}

.trail-last-ridden-small {
    font-size: 10px;
    color: #60a5fa;
    margin-top: 2px;
}

.trail-description-small {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.7);
    margin-top: 3px;
    line-height: 1.3;
    font-style: italic;
}

.day-condition-cell {
    text-align: center;
    position: relative;
}

.day-score {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.day-score.excellent { color: #4caf50; }
.day-score.good { color: #ffc107; }
.day-score.caution { color: #ff9800; }
.day-score.poor { color: #f44336; }

.day-rain {
    font-size: 10px;
    color: rgba(255, 255, 255, 0.6);
    margin-bottom: 2px;
}

.best-trail-indicator {
    position: absolute;
    top: -2px;
    right: -2px;
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #000;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.4);
}

/* Location Comparison Styles */
.location-comparison {
    min-height: 400px;
}

.comparison-placeholder {
    text-align: center;
    padding: 60px 20px;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-placeholder p {
    font-size: 16px;
    margin-bottom: 8px;
    color: #ffffff;
}

.comparison-placeholder small {
    font-size: 12px;
    opacity: 0.7;
}

.comparison-grid {
    display: grid;
    gap: 20px;
}

.comparison-day {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-day h4 {
    color: #ffffff;
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.best-location-badge {
    background: linear-gradient(135deg, #ffd700 0%, #ffb700 100%);
    color: #000;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.location-comparison-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.location-compare-card {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.location-compare-card.best {
    border-color: #ffd700;
    background: rgba(255, 215, 0, 0.15);
}

.location-compare-card h5 {
    color: #ffffff;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
}

.compare-score {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.compare-rain {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.7);
}

.compare-rating {
    font-size: 12px;
    font-weight: 600;
}

.compare-rating.excellent { color: #4caf50; }
.compare-rating.good { color: #ffc107; }
.compare-rating.caution { color: #ff9800; }
.compare-rating.poor { color: #f44336; }

/* Desktop optimizations */
@media (min-width: 1200px) {
    .container {
        padding: 30px;
    }
    
    .location-selection {
        display: grid;
        grid-template-columns: 300px 1fr;
        gap: 0;
    }
    
    .location-tabs {
        writing-mode: vertical-lr;
        background: rgba(255, 255, 255, 0.03);
        border-right: 1px solid rgba(255, 255, 255, 0.1);
        border-bottom: none;
    }
    
    .tab-btn {
        writing-mode: horizontal-tb;
        border-bottom: none;
        border-right: 3px solid transparent;
        text-align: left;
    }
    
    .tab-btn.active {
        border-right-color: #64b3f4;
        border-bottom: none;
    }
    
    .forecast-container {
        gap: 16px;
    }
    
    .forecast-day {
        padding: 20px;
        min-height: 240px;
    }
    
    .settings-header {
        padding: 25px 40px;
    }
    
    .settings-content {
        padding: 40px;
    }
}

/* Error */
.error {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 68, 68, 0.3);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    padding: 30px;
    text-align: center;
}

.error-message h3 {
    color: #ff4444;
    margin-bottom: 15px;
    font-weight: 600;
}

.error-message p {
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
}

/* Footer */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 20px;
    color: rgba(255, 255, 255, 0.6);
}

footer a {
    color: #64b3f4;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #4fa8e8;
}

.github-link {
    margin-top: 15px !important;
}

.github-link a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #8b949e;
    transition: color 0.2s ease;
    font-weight: 500;
}

.github-link a:hover {
    color: #f0f6fc;
    text-decoration: none;
}

.github-link svg {
    transition: transform 0.2s ease;
}

.github-link a:hover svg {
    transform: scale(1.1);
}

/* About Page Styles */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    color: #e4e6ea;
    line-height: 1.7;
}

.about-content h2 {
    text-align: center;
    color: #60a5fa;
    font-size: 1.8rem;
    margin-bottom: 40px;
    font-weight: 600;
}

.about-section {
    margin-bottom: 35px;
    background: rgba(255, 255, 255, 0.03);
    padding: 25px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.about-section h3 {
    color: #ffd700;
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.about-section p {
    margin-bottom: 15px;
    font-size: 1rem;
}

.about-section ul {
    margin: 15px 0;
    padding-left: 20px;
}

.about-section li {
    margin-bottom: 8px;
    color: #d1d5db;
}

.about-section li strong {
    color: #60a5fa;
    font-weight: 600;
}

.about-placeholder {
    text-align: center;
    padding: 40px 20px;
    color: rgba(255, 255, 255, 0.7);
}

.about-placeholder p {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: #60a5fa;
}

.about-placeholder small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* GPS and Nearby Trails Styles */
.location-buttons-container {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap;
}

.use-location-btn {
    background: rgba(96, 165, 250, 0.2);
    border: 1px solid #60a5fa;
    color: #60a5fa;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    min-width: 140px;
}

.use-location-btn:hover {
    background: rgba(96, 165, 250, 0.3);
    transform: translateY(-1px);
}

.trail-matrix-btn {
    background: rgba(255, 215, 0, 0.2);
    border: 1px solid #ffd700;
    color: #ffd700;
    padding: 12px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    min-width: 140px;
}

.trail-matrix-btn:hover {
    background: rgba(255, 215, 0, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.2);
}

.nearby-trails-toggle-btn {
    background: rgba(96, 165, 250, 0.15);
    border: 1px solid rgba(96, 165, 250, 0.3);
    color: #60a5fa;
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    margin-top: 15px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.nearby-trails-toggle-btn:hover {
    background: rgba(96, 165, 250, 0.25);
    transform: translateY(-1px);
}

.nearby-trails-section {
    margin-top: 30px;
    padding: 25px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.nearby-trails-section h3 {
    color: #60a5fa;
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.nearby-trails-section p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
}

.nearby-trails-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.nearby-trail-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 16px;
    transition: all 0.3s ease;
}

.nearby-trail-card:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    border-color: rgba(96, 165, 250, 0.3);
}

.trail-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.trail-card-header h4 {
    color: #ffffff;
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
}

.trail-card-info {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-size: 0.85rem;
}

.trail-distance {
    color: #60a5fa;
    font-weight: 500;
}

.trail-surface {
    color: rgba(255, 255, 255, 0.7);
}

.trail-select-btn {
    width: 100%;
    background: rgba(96, 165, 250, 0.2);
    border: 1px solid #60a5fa;
    color: #60a5fa;
    padding: 8px 16px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.trail-select-btn:hover {
    background: #60a5fa;
    color: #ffffff;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .results-content {
        grid-template-columns: 1fr;
    }
    
    .results-left {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .forecast-container {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
    
    .location-selection {
        display: block;
    }
    
    .location-tabs {
        writing-mode: horizontal-tb;
        display: flex;
        background: rgba(255, 255, 255, 0.03);
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        border-right: none;
    }
    
    .tab-btn {
        writing-mode: horizontal-tb;
        border-right: none;
        border-bottom: 3px solid transparent;
    }
    
    .tab-btn.active {
        border-bottom-color: #64b3f4;
        border-right: none;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .container {
        padding: 15px;
        max-width: 100%;
    }
    
    .header-content {
        flex-direction: column;
        text-align: center;
        gap: 15px;
        position: static;
    }
    
    .header-left {
        order: 1;
    }
    
    .header-right {
        order: 2;
        position: static;
        transform: none;
    }
    
    header h1 {
        font-size: 2rem;
        gap: 10px;
    }
    
    .logo-image {
        height: 4rem;
    }
    
    .header-strava-btn {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .beta-badge {
        font-size: 9px;
        padding: 2px 5px;
        right: -35px;
        top: -3px;
    }
    
    .settings-content,
    .tab-content {
        padding: 20px;
    }
    
    .api-key-input-group {
        flex-direction: column;
    }
    
    .location-tabs {
        flex-direction: column;
    }
    
    .tab-btn {
        border-bottom: none;
        border-right: 3px solid transparent;
    }
    
    .tab-btn.active {
        border-right-color: #64b3f4;
        border-bottom: none;
    }
    
    .time-periods {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .condition-card {
        flex-direction: column;
        text-align: center;
    }
    
    .condition-icon {
        min-width: auto;
    }
    
    .location-info {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .locations-grid {
        grid-template-columns: 1fr;
    }
    
    .forecast-container {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .forecast-day {
        min-height: auto;
        padding: 16px;
    }
    
    .best-day-card {
        flex-direction: column;
        text-align: center;
    }
    
    .results-content {
        grid-template-columns: 1fr;
    }
    
    .results-left {
        border-right: none;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .cycling-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content {
        width: 95%;
        margin: 10px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        flex-direction: column;
        gap: 8px;
    }
    
    .location-comparison-cards {
        grid-template-columns: 1fr;
    }
    
    .nearby-trails-pagination {
        flex-direction: column;
        gap: 10px;
    }
    
    .pagination-btn {
        min-width: 120px;
    }
    
    .location-buttons-container {
        flex-direction: column;
    }
    
    .use-location-btn,
    .trail-matrix-btn {
        min-width: 100%;
    }
}

/* Nearby Trails Pagination */
.nearby-trails-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin-top: 20px;
    padding: 15px;
}

.pagination-btn {
    background: rgba(96, 165, 250, 0.8);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 80px;
}

.pagination-btn:hover:not(:disabled) {
    background: rgba(96, 165, 250, 1);
    transform: translateY(-1px);
}

.pagination-btn:disabled {
    background: rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    transform: none;
}

.pagination-info {
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
    font-weight: 500;
    min-width: 120px;
    text-align: center;
}

/* Strava Integration Styles */
.strava-integration {
    max-width: 600px;
    margin: 0 auto;
}

.strava-header {
    text-align: center;
    margin-bottom: 30px;
}

.strava-header h3 {
    margin-bottom: 10px;
    color: #ffd700;
}

.strava-benefits {
    margin-bottom: 25px;
}

.strava-benefits h4 {
    margin-bottom: 15px;
    color: #e2e8f0;
}

.strava-benefits ul {
    list-style: none;
    padding: 0;
}

.strava-benefits li {
    padding: 8px 0;
    color: #b8bcc8;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.strava-benefits li:last-child {
    border-bottom: none;
}

.connect-strava-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
    background: linear-gradient(135deg, #FC4C02 0%, #FF6B35 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 20px;
}

.connect-strava-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(252, 76, 2, 0.3);
}

.strava-logo {
    font-size: 20px;
}

.strava-permissions {
    text-align: center;
    color: #94a3b8;
}

.connection-success {
    text-align: center;
    margin-bottom: 25px;
}

.connection-success h4 {
    color: #10b981;
    margin-bottom: 10px;
}

.strava-status {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
}

.status-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.status-item:last-child {
    border-bottom: none;
}

.status-label {
    color: #94a3b8;
    font-weight: 500;
}

.status-value {
    color: #e2e8f0;
    font-weight: 600;
}

.status-active {
    color: #10b981;
}

.strava-example {
    margin-bottom: 25px;
}

.strava-example h5 {
    margin-bottom: 12px;
    color: #e2e8f0;
}

.example-summary {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 15px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    line-height: 1.6;
    color: #94a3b8;
    border-left: 4px solid #ffd700;
}

.disconnect-strava-btn {
    width: 100%;
    padding: 12px 24px;
    background: transparent;
    color: #ef4444;
    border: 1px solid #ef4444;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.disconnect-strava-btn:hover {
    background: #ef4444;
    color: white;
}