:root {
    --primary: #000000;
    --primary-dark: #000000;
    --secondary: #666666;
    --success: #000000;
    --warning: #000000;
    --danger: #000000;
    --info: #000000;
    --light: #FFFFFF;
    --dark: #000000;
    --border-radius: 8px;
    --border-radius-sm: 4px;
    --box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --box-shadow-lg: 0 4px 8px rgba(0, 0, 0, 0.1);
    --transition: all 0.2s ease;
}

* {
    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.5;
    color: var(--dark);
    background: var(--light);
    padding: 5px;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding-top: 1.5rem;
    margin: 0;
}

.container {
    width: 100%;
    max-width: 500px;
    background: var(--light);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow);
    padding: 0;
    text-align: left;
    margin: 0.75rem auto;
    overflow: hidden;
}

/* Landing Section */
.landing-section {
    padding: 3rem 2rem;
    text-align: center;
    background: var(--light);
    border-bottom: 1px solid #e0e0e0;
}

.hero-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1rem;
    color: var(--secondary);
    margin-bottom: 2rem;
    font-weight: 400;
}

.hero-cta {
    background: var(--dark);
    color: var(--light);
    border: 1px solid var(--dark);
    padding: 0.75rem 1.5rem;
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.hero-cta:hover {
    background: var(--light);
    color: var(--dark);
}

.social-proof {
    font-size: 1rem;
    color: var(--secondary);
}

.users-count {
    background: #f5f5f5;
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius);
    font-weight: 400;
    border: 1px solid #e0e0e0;
}

/* Dashboard Styles */
.dashboard {
    padding: 2rem;
}

.weather-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: var(--dark);
    border-radius: var(--border-radius);
    color: var(--light);
    flex-wrap: wrap;
    gap: 1rem;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.install-pwa-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.install-pwa-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

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

.install-pwa-btn i {
    font-size: 0.9rem;
}

/* PWA Install Popup Notification */
.pwa-install-popup {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.pwa-popup-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--dark);
    color: var(--light);
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pwa-popup-icon {
    font-size: 2rem;
    color: var(--warning);
    flex-shrink: 0;
}

.pwa-popup-text {
    flex: 1;
}

.pwa-popup-text h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
}

.pwa-popup-text p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.3;
}

.pwa-popup-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.pwa-install-confirm {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--light);
    color: var(--dark);
    border: none;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.pwa-install-confirm:hover {
    background: #f5f5f5;
    transform: translateY(-1px);
}

.pwa-install-dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
}

.pwa-install-dismiss:hover {
    background: rgba(255, 255, 255, 0.2);
}

@media (max-width: 480px) {
    .pwa-popup-content {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        max-width: 90vw;
    }

    .pwa-popup-icon {
        font-size: 2.5rem;
    }

    .pwa-popup-actions {
        width: 100%;
        justify-content: center;
    }
}

/* Offline Notification */
.offline-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1001;
    animation: slideDown 0.5s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.offline-notification-content {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f44336;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: var(--border-radius);
    box-shadow: var(--box-shadow-lg);
    max-width: 400px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.offline-notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.offline-notification-text {
    flex: 1;
}

.offline-notification-text h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
    font-weight: 600;
}

.offline-notification-text p {
    margin: 0;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.3;
}

.offline-dismiss {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    flex-shrink: 0;
}

.offline-dismiss:hover {
    background: rgba(255, 255, 255, 0.3);
}

@media (max-width: 480px) {
    .offline-notification-content {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
        max-width: 90vw;
    }

    .offline-notification-icon {
        font-size: 2rem;
    }
}

.location-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.location-display {
    display: flex;
    align-items: left;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
}

.weather-status {
    display: flex;
    align-items: center;
    gap: 1rem;
    font-size: 1.1rem;
}

.weather-status span:first-child {
    opacity: 0.9;
}

.weather-status span:last-child {
    font-size: 1.5rem;
    font-weight: 700;
}

.time-display {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.3rem;
    text-align: right;
}

.current-time {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--light);
    background: rgba(255, 255, 255, 0.1);
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius);
    min-width: 80px;
    text-align: center;
    white-space: nowrap;
}

.time-phase {
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.route-nav-section {
    margin-bottom: 1.5rem;
    text-align: center;
    position: relative;
    z-index: 10;
}

.route-nav-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--dark);
    color: var(--light);
    border: 1px solid var(--dark);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
    z-index: 10;
}

.route-nav-btn:hover {
    background: var(--light);
    color: var(--dark);
}

@media (max-width: 480px) {
    .header-content {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 0.5rem;
    }
    
    .current-time {
        font-size: 1.2rem;
        padding: 0.3rem 0.7rem;
        min-width: 70px;
        margin: 0;
    }
    
    h1 {
        font-size: 1.6rem;
    }
    
    h1 + p {
        font-size: 0.8rem;
    }
    
    .time-phase {
        font-size: 0.7rem;
    }
}

/* Alert System */
.alerts-section {
    margin-bottom: 2rem;
}

.alert-critical, .alert-warning {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-radius: var(--border-radius);
    margin-bottom: 1rem;
    position: relative;
    border: 1px solid var(--dark);
    background: var(--light);
}

.alert-critical {
    border-left: 3px solid var(--dark);
}

.alert-warning {
    border-left: 3px solid var(--secondary);
}

.alert-icon {
    font-size: 1.2rem;
    color: var(--dark);
}

.alert-warning .alert-icon {
    color: var(--secondary);
}

.alert-content h3 {
    margin: 0 0 0.25rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
}

.alert-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--secondary);
}

.alert-dismiss {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
    padding: 0.25rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    transition: var(--transition);
}

.alert-dismiss:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* Smart Recommendation */
.smart-recommendation {
    margin-bottom: 2rem;
}

.recommendation-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.recommendation-header i {
    color: var(--warning);
    font-size: 1.2rem;
}

.recommendation-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
}

.recommendation-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--light);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    transition: var(--transition);
}

.recommendation-card:hover {
    border-color: var(--dark);
}

.recommendation-icon {
    font-size: 1.5rem;
    color: var(--dark);
    background: #f5f5f5;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e0e0e0;
}

.recommendation-content h3 {
    margin: 0 0 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
}

.recommendation-content p {
    margin: 0;
    font-size: 0.95rem;
    color: var(--secondary);
    line-height: 1.5;
}

.check-recommendation-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.75rem;
    padding: 0.5rem 1rem;
    background: var(--dark);
    color: var(--light);
    border: 1px solid var(--dark);
    border-radius: var(--border-radius-sm);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.check-recommendation-btn:hover {
    background: var(--light);
    color: var(--dark);
}

.check-recommendation-btn i {
    font-size: 1rem;
}

.check-recommendation-btn span {
    font-size: 0.875rem;
}

/* Activity Planner */
.activity-planner {
    margin-bottom: 2rem;
}

.planner-header {
    margin-bottom: 1.5rem;
}

.planner-header i {
    color: var(--dark);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.planner-header h2 {
    margin: 0 0 0.5rem;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
}

.planner-header p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--secondary);
}

/* Route Page Header */
.route-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    background: var(--dark);
    color: var(--light);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.header-left {
    flex-shrink: 0;
}

.back-home-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--light);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-sm);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.back-home-btn:hover {
    background: rgba(255, 255, 255, 0.2);
}

.header-center {
    text-align: center;
    flex: 1;
    min-width: 0;
}

.header-center h1 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.header-center p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
}

/* Route Planner */
.route-planner {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    background: var(--light);
}

.route-step {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.step-number {
    width: 32px;
    height: 32px;
    background: var(--dark);
    color: var(--light);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    flex-shrink: 0;
}

.step-content {
    flex: 1;
}

.step-content h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.location-input-group {
    display: flex;
    gap: 0.5rem;
}

.location-display {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
}

.location-display span {
    font-size: 0.9rem;
    color: var(--dark);
}

.location-btn {
    padding: 0.5rem 1rem;
    background: var(--dark);
    color: var(--light);
    border: 1px solid var(--dark);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.location-btn:hover {
    background: var(--light);
    color: var(--dark);
}

.location-search {
    flex: 1;
    padding: 0.75rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    font-size: 0.9rem;
}

.location-options {
    margin-top: 0.5rem;
}

.map-select-btn {
    width: 100%;
    padding: 0.5rem;
    background: white;
    color: var(--dark);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.map-select-btn:hover {
    background: #f5f5f5;
}

.map-container {
    margin-top: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.map-placeholder {
    height: 300px;
    background: #f5f5f5;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.map-placeholder i {
    font-size: 3rem;
    color: var(--secondary);
}

.map-placeholder p {
    font-size: 0.9rem;
    color: var(--secondary);
    margin: 0;
}

.close-map-btn {
    padding: 0.5rem 1rem;
    background: var(--dark);
    color: var(--light);
    border: none;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.85rem;
    transition: var(--transition);
}

.close-map-btn:hover {
    background: var(--light);
    color: var(--dark);
}

/* Map Modal */
.map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.map-modal-content {
    background: white;
    border-radius: var(--border-radius);
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.map-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.map-modal-header h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.map-modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--secondary);
    cursor: pointer;
    padding: 0.25rem;
    transition: var(--transition);
}

.map-modal-close:hover {
    color: var(--dark);
}

.map-modal-body {
    flex: 1;
    overflow: hidden;
}

.leaflet-map {
    width: 100%;
    height: 400px;
}

.map-modal-footer {
    padding: 1rem;
    border-top: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.map-modal-footer p {
    font-size: 0.85rem;
    color: var(--secondary);
    margin: 0;
    flex: 1;
}

.confirm-location-btn {
    padding: 0.5rem 1rem;
    background: var(--dark);
    color: var(--light);
    border: 1px solid var(--dark);
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.confirm-location-btn:hover:not(:disabled) {
    background: var(--light);
    color: var(--dark);
}

.confirm-location-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Today's Summary */
.today-summary {
    background: var(--light);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.today-summary h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-content {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.summary-weather {
    display: flex;
    align-items: center;
    gap: 1rem;
}

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

.summary-text {
    display: flex;
    flex-direction: column;
}

.summary-text span:first-child {
    font-size: 1.5rem;
    font-weight: 600;
}

.summary-text span:last-child {
    font-size: 0.9rem;
    color: var(--secondary);
}

.summary-risk {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.risk-label {
    font-size: 0.9rem;
    color: var(--secondary);
}

.risk-level {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border-radius: var(--border-radius-sm);
}

.risk-level.safe {
    background: #e8f5e9;
    color: #2e7d32;
}

.risk-level.moderate {
    background: #fff3e0;
    color: #f57c00;
}

.risk-level.risky {
    background: #ffebee;
    color: #c62828;
}

#summary-advice {
    font-size: 0.9rem;
    color: var(--dark);
    margin: 0;
    font-style: italic;
}

/* Heat Index */
.heat-index {
    background: var(--light);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.heat-index h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.heat-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.heat-temp {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
}

.heat-temp span:first-child,
.heat-temp span:last-child {
    font-weight: 600;
}

.heat-warning {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    border-radius: var(--border-radius-sm);
    background: #fff3e0;
    color: #f57c00;
}

.heat-warning.hot {
    background: #fff3e0;
    color: #f57c00;
}

.heat-warning.very-hot {
    background: #ffe0b2;
    color: #e65100;
}

.heat-warning.extreme {
    background: #ffccbc;
    color: #bf360c;
}

/* Route Risk Indicator */
.route-risk {
    background: var(--light);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.route-risk h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.risk-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.risk-bar {
    display: flex;
    gap: 0.5rem;
}

.risk-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #e0e0e0;
    transition: var(--transition);
}

.risk-dot.filled {
    background: var(--dark);
}

.risk-dot.filled.green {
    background: #4caf50;
}

.risk-dot.filled.yellow {
    background: #ff9800;
}

.risk-dot.filled.red {
    background: #f44336;
}

.risk-text {
    font-size: 0.9rem;
    font-weight: 600;
}

#risk-description,
#risk-advice {
    font-size: 0.9rem;
    color: var(--secondary);
    margin: 0.25rem 0;
}

/* Best Time to Go */
.best-time {
    background: var(--light);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.best-time h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.time-suggestion {
    margin-bottom: 0.75rem;
}

.time-suggestion p {
    font-size: 0.9rem;
    margin: 0.2rem 0;
}

.time-suggestion p:first-child {
    font-weight: 600;
    color: var(--dark);
}

.time-suggestion p:last-child {
    color: var(--secondary);
}

.time-timeline {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.timeline-hour {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.2rem;
    min-width: 50px;
    padding: 0.4rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
}

.timeline-hour span:first-child {
    font-size: 0.8rem;
    color: var(--secondary);
}

.timeline-hour .timeline-icon {
    font-size: 1.2rem;
}

.timeline-hour .timeline-status {
    font-size: 0.7rem;
    font-weight: 600;
}

.timeline-hour .timeline-status.good {
    color: #4caf50;
}

.timeline-hour .timeline-status.warning {
    color: #ff9800;
}

.timeline-hour .timeline-status.bad {
    color: #f44336;
}

/* What to Bring Checklist */
.what-to-bring {
    background: var(--light);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.what-to-bring h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checklist {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checklist-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.checklist-item:hover {
    background: #f5f5f5;
}

.checklist-item.checked {
    background: #e8f5e9;
    border-color: #4caf50;
}

.checklist-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.checklist-item .item-icon {
    font-size: 1.2rem;
}

.checklist-item .item-label {
    flex: 1;
    font-size: 0.9rem;
}

.checklist-item .item-reason {
    font-size: 0.8rem;
    color: var(--secondary);
}

/* Before You Go Summary Card */
.before-you-go {
    background: var(--dark);
    color: var(--light);
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.before-you-go h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.byg-content {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.byg-risk {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.byg-risk-label {
    font-size: 0.9rem;
    font-weight: 600;
}

.byg-risk-level {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: var(--border-radius-sm);
}

.byg-risk-level.safe {
    background: #4caf50;
}

.byg-risk-level.moderate {
    background: #ff9800;
}

.byg-risk-level.risky {
    background: #f44336;
}

.byg-risk-dots {
    display: flex;
    gap: 0.25rem;
}

.byg-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
}

.byg-dot.filled {
    background: var(--light);
}

.byg-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.byg-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.byg-section li {
    padding: 0.3rem 0;
    font-size: 0.85rem;
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.byg-section li::before {
    content: "•";
    color: var(--light);
}

.byg-section p {
    font-size: 0.9rem;
    margin: 0;
    color: rgba(255, 255, 255, 0.8);
}

/* Saved Routes */
.saved-routes {
    background: var(--light);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.saved-routes h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.saved-routes-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.saved-routes-actions {
    display: flex;
    gap: 0.5rem;
}

.view-history-btn {
    padding: 0.5rem 0.75rem;
    background: white;
    color: var(--dark);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.view-history-btn:hover {
    background: #f5f5f5;
    border-color: var(--dark);
}

.add-route-btn {
    padding: 0.5rem 0.75rem;
    background: var(--dark);
    color: var(--light);
    border: 1px solid var(--dark);
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.add-route-btn:hover {
    background: var(--light);
    color: var(--dark);
}

.routes-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Route History */
.route-history {
    background: var(--light);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.history-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
}

.history-header h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
}

.clear-history-btn {
    padding: 0.5rem 0.75rem;
    background: white;
    color: #f44336;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.clear-history-btn:hover {
    background: #f44336;
    color: white;
    border-color: #f44336;
}

.history-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.history-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.history-item:hover {
    background: #f5f5f5;
    border-color: var(--dark);
}

.history-item-info {
    flex: 1;
}

.history-item-route {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.history-item-details {
    font-size: 0.8rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.history-item-date {
    font-size: 0.75rem;
    color: var(--secondary);
}

.history-item-actions {
    display: flex;
    gap: 0.5rem;
}

.history-action-btn {
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    padding: 0.25rem;
    transition: var(--transition);
}

.history-action-btn:hover {
    color: var(--dark);
}

.history-action-btn.delete:hover {
    color: #f44336;
}

.history-empty {
    text-align: center;
    padding: 2rem;
    color: var(--secondary);
}

.history-empty i {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    display: block;
}

.history-empty p {
    font-size: 0.9rem;
    margin: 0;
}

.saved-route-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    transition: var(--transition);
}

.saved-route-item:hover {
    background: #f5f5f5;
}

.route-name {
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.route-path-display {
    font-size: 0.85rem;
    color: var(--secondary);
}

.delete-route-btn {
    background: none;
    border: none;
    color: var(--secondary);
    cursor: pointer;
    padding: 0.25rem;
    transition: var(--transition);
}

.delete-route-btn:hover {
    color: #f44336;
}

.destination-results {
    margin-top: 0.5rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    max-height: 200px;
    overflow-y: auto;
}

.destination-result-item {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: var(--transition);
}

.destination-result-item:hover {
    background: #f5f5f5;
}

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

.purpose-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
}

.purpose-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    background: white;
    cursor: pointer;
    transition: var(--transition);
    min-height: 70px;
}

.purpose-card i {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
    color: var(--dark);
}

.purpose-card span {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--dark);
    text-align: center;
}

.purpose-card.active {
    border-color: var(--dark);
    background: var(--dark);
    color: var(--light);
}

.purpose-card.active i,
.purpose-card.active span {
    color: var(--light);
}

.purpose-card:hover:not(.active) {
    border-color: var(--dark);
    background: #f5f5f5;
}

.analyze-route-btn {
    width: 100%;
    padding: 1rem;
    background: var(--dark);
    color: var(--light);
    border: 1px solid var(--dark);
    border-radius: var(--border-radius);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.analyze-route-btn:hover {
    background: var(--light);
    color: var(--dark);
}

/* Route Results */
.route-results {
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    background: var(--light);
}

.results-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.back-btn {
    padding: 0.5rem 1rem;
    background: white;
    color: var(--dark);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    cursor: pointer;
    font-size: 0.9rem;
    transition: var(--transition);
}

.back-btn:hover {
    background: #f5f5f5;
}

.route-summary {
    padding: 1rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.route-path {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.route-details {
    font-size: 0.9rem;
    color: var(--secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.weather-comparison {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.weather-point {
    text-align: center;
    flex: 1;
}

.weather-point h4 {
    font-size: 0.9rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
}

.weather-icon {
    font-size: 2.5rem;
    margin-bottom: 0.25rem;
}

.weather-temp {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.weather-condition {
    font-size: 0.85rem;
    color: var(--secondary);
}

.weather-arrow {
    color: var(--secondary);
    font-size: 1.5rem;
}

.route-alerts {
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--danger);
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.route-alerts h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.alert-item {
    padding: 0.75rem;
    background: white;
    border-left: 3px solid var(--danger);
    border-radius: var(--border-radius-sm);
    margin-bottom: 0.5rem;
}

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

.route-suggestions {
    margin-bottom: 1.5rem;
}

.route-suggestions h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.suggestion-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 1rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    margin-bottom: 0.75rem;
}

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

.suggestion-icon {
    font-size: 1.2rem;
    color: var(--dark);
}

.suggestion-content h4 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.25rem;
}

.suggestion-content p {
    font-size: 0.85rem;
    color: var(--secondary);
    margin: 0;
}

.weather-timeline {
    padding: 1rem;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
}

.weather-timeline h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
}

.timeline-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.75rem;
    border-bottom: 1px solid #f5f5f5;
}

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

.timeline-time {
    font-size: 0.85rem;
    color: var(--secondary);
    min-width: 50px;
}

.timeline-location {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
    flex: 1;
}

.timeline-weather {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--dark);
}

/* Mobile Responsive Styles for Route Page */
@media (max-width: 480px) {
    .route-header {
        padding: 0.75rem;
    }
    
    .header-center h1 {
        font-size: 1rem;
    }
    
    .header-center p {
        font-size: 0.75rem;
    }
    
    .back-home-btn {
        font-size: 0.85rem;
        padding: 0.4rem 0.75rem;
    }
    
    .route-step {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .step-number {
        width: 28px;
        height: 28px;
        font-size: 0.9rem;
    }
    
    .step-content h3 {
        font-size: 0.9rem;
    }
    
    .location-input-group {
        flex-direction: column;
    }
    
    .location-btn {
        width: 100%;
        justify-content: center;
    }
    
    .purpose-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .purpose-card {
        min-height: 60px;
        padding: 0.5rem 0.25rem;
    }
    
    .purpose-card i {
        font-size: 1rem;
    }
    
    .purpose-card span {
        font-size: 0.7rem;
    }
    
    .analyze-route-btn {
        font-size: 0.9rem;
        padding: 0.875rem;
    }
    
    .route-summary {
        padding: 0.75rem;
    }
    
    .route-path {
        font-size: 1rem;
    }
    
    .route-details {
        font-size: 0.85rem;
    }
    
    .weather-comparison {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    .weather-point h4 {
        font-size: 0.8rem;
    }
    
    .weather-icon {
        font-size: 2rem;
    }
    
    .weather-temp {
        font-size: 1.2rem;
    }
    
    .weather-condition {
        font-size: 0.75rem;
    }
    
    .weather-arrow {
        font-size: 1.2rem;
    }
    
    .suggestion-item {
        padding: 0.75rem;
    }
    
    .suggestion-icon {
        font-size: 1rem;
    }
    
    .suggestion-content h4 {
        font-size: 0.9rem;
    }
    
    .suggestion-content p {
        font-size: 0.8rem;
    }
    
    .timeline-item {
        padding: 0.5rem;
    }
    
    .timeline-time {
        font-size: 0.75rem;
        min-width: 40px;
    }
    
    .timeline-location {
        font-size: 0.85rem;
    }
    
    .timeline-weather {
        font-size: 0.85rem;
    }
    
    .map-placeholder {
        height: 250px;
    }
    
    .map-placeholder i {
        font-size: 2.5rem;
    }
    
    .map-placeholder p {
        font-size: 0.85rem;
    }
    
    .map-modal {
        padding: 0.5rem;
    }
    
    .map-modal-content {
        max-height: 95vh;
    }
    
    .map-modal-header h3 {
        font-size: 1rem;
    }
    
    .leaflet-map {
        height: 300px;
    }
    
    .map-modal-footer {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .map-modal-footer p {
        font-size: 0.8rem;
        text-align: center;
    }
    
    .confirm-location-btn {
        width: 100%;
        justify-content: center;
    }
}

.purpose-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 0.25rem;
    position: relative;
    z-index: 5;
}

.purpose-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 0.5rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    background: var(--light);
    cursor: pointer;
    transition: var(--transition);
    min-height: 70px;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.purpose-btn i {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.purpose-btn span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--dark);
    text-align: center;
    line-height: 1.2;
    padding: 0 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.purpose-btn.active {
    border-color: var(--dark);
    background: var(--dark);
    color: var(--light);
}

.purpose-btn.active i {
    color: var(--light);
}

.purpose-btn.active span {
    color: var(--light);
}

.purpose-btn:not(.active):hover {
    border-color: var(--dark);
    background: #f5f5f5;
}

/* Verdict Section */
.verdict-section {
    margin-bottom: 2rem;
}

.verdict-container {
    text-align: center;
    padding: 1.5rem 1rem;
    background: var(--light);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    margin-bottom: 1.5rem;
}

.verdict-icon {
    font-size: 4rem;
    margin: 1rem 0;
    text-align: center;
    min-height: 4.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verdict-icon i {
    font-size: 4rem;
    color: var(--primary);
    display: inline-block;
    width: 1em;
    height: 1em;
}

.verdict-container h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--dark);
}

.explanation {
    color: var(--secondary);
    font-size: 1.1rem;
    margin-bottom: 0;
}

/* Smart Tips */
.smart-tips {
    background: var(--light);
    border-radius: var(--border-radius);
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-left: 3px solid var(--dark);
}

.smart-tips .tip-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
    padding: 0.5rem;
    background: #f5f5f5;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.smart-tips .tip-item:hover {
    background: #e8e8e8;
}

.smart-tips .tip-item:last-child {
    margin-bottom: 0;
}

.smart-tips .tip-item i {
    color: var(--primary);
    font-size: 1.1rem;
    margin-top: 0.1rem;
}

.smart-tips .tip-content {
    flex: 1;
}

.smart-tips .tip-content p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--dark);
    line-height: 1.4;
}

/* Section Titles */
.section-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.section-title::before {
    content: '';
    width: 4px;
    height: 24px;
    background: var(--primary);
    border-radius: 2px;
}

/* Weather Details Section */
.weather-details-section {
    margin-bottom: 2rem;
}

.weather-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
    padding: 1rem;
    background: var(--light);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
}

.weather-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.75rem 0.5rem;
    background: #f5f5f5;
    border-radius: var(--border-radius-sm);
    transition: var(--transition);
}

.weather-item:hover {
    background: #e8e8e8;
}

.weather-item i {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
    transition: var(--transition);
}

.weather-icon {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 0.5rem;
    font-size: 0.85rem;
    color: var(--secondary);
    font-weight: 500;
}

.weather-icon i {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
    color: var(--primary);
}

.weather-item span:not(.weather-icon span) {
    font-weight: 600;
    color: var(--dark);
    font-size: 1.1rem;
}


/* Hourly Forecast */
.hourly-forecast {
    margin-bottom: 2rem;
}

.forecast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.forecast-date {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--secondary);
}

.forecast-timeline {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding: 1rem 0;
}

.forecast-item {
    flex-shrink: 0;
    text-align: center;
    padding: 0.75rem 0.5rem;
    background: var(--light);
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius-sm);
    min-width: 70px;
    transition: var(--transition);
}

.forecast-item:hover {
    border-color: var(--dark);
}

.forecast-time {
    font-size: 0.8rem;
    color: var(--secondary);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.forecast-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary);
}

.forecast-temp {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    min-width: 140px;
    justify-content: center;
}

.primary-btn {
    background: var(--dark);
    color: var(--light);
    border: 1px solid var(--dark);
}

.primary-btn:hover {
    background: var(--light);
    color: var(--dark);
}

.secondary-btn {
    background: var(--light);
    color: var(--dark);
    border: 1px solid var(--dark);
}

.secondary-btn:hover {
    background: var(--dark);
    color: var(--light);
}

.location-input {
    margin: 1.5rem 0;
    display: flex;
    gap: 0.5rem;
}

#city-input {
    flex: 1;
    padding: 0.8rem;
    border: 1px solid #ddd;
    border-radius: 50px;
    font-size: 1rem;
}

/* Why Outwise Section */
.why-outwise {
    padding: 2rem;
    background: var(--light);
    border-top: 1px solid #e0e0e0;
}

.value-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 1.5rem;
}

.value-card {
    background: var(--light);
    padding: 1rem;
    border: 1px solid #e0e0e0;
    border-radius: var(--border-radius);
    text-align: center;
    transition: var(--transition);
}

.value-card:hover {
    border-color: var(--dark);
}

.value-icon {
    font-size: 1.5rem;
    color: var(--dark);
    margin-bottom: 0.75rem;
    background: #f5f5f5;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.75rem;
    border: 1px solid #e0e0e0;
}

.value-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--dark);
    margin-bottom: 0.75rem;
}

.value-card p {
    font-size: 0.9rem;
    color: var(--secondary);
    line-height: 1.5;
    margin: 0;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.modal-content {
    background-color: white;
    padding: 1.5rem;
    border-radius: 12px;
    width: 100%;
    max-width: 350px;
    position: relative;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    margin: auto;
    max-height: 90vh;
    overflow-y: auto;
}

.close-btn {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    font-size: 1.75rem;
    line-height: 1;
    cursor: pointer;
    color: #666;
    background: none;
    border: none;
    padding: 0.5rem;
    width: 2.5rem;
    height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.close-btn:hover,
.close-btn:focus {
    color: #333;
    background-color: rgba(0, 0, 0, 0.05);
    outline: none;
}

.modal h3 {
    color: #00a67e;
    margin: 0.5rem 0 1.25rem;
    font-size: 1.4rem;
    line-height: 1.3;
    padding: 0 1rem;
}

.qr-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    width: 100%;
    padding: 0 0.5rem;
}

.qr-code {
    width: 100%;
    max-width: 600px;
    height: auto;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 0.75rem;
    background: white;
    object-fit: contain;
    margin: 0 auto;
    display: block;
}

.gcash-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: #f5f5f5;
    padding: 0.6rem 1.25rem;
    border-radius: 50px;
    margin: 0.75rem 0 0;
    font-size: 1rem;
    width: auto;
    max-width: 100%;
    box-sizing: border-box;
    word-break: break-all;
}

.gcash-number i {
    color: #00a67e;
}

.donate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background-color: #00a67e; /* GCash green */
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1rem;
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Animations */
@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Responsive Design */
@media (max-width: 768px) {
    .container {
        max-width: 100%;
        margin: 0;
        border-radius: 0;
        min-height: 100vh;
    }
    
    .dashboard {
        padding: 0.5rem;
    }
    
    .weather-header {
        flex-direction: row;
        gap: 0.5rem;
        text-align: left;
    }

    .location-info {
        align-items: left;
    }

    .time-display {
        align-items: center;
    }
    
    .purpose-selector {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .value-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }

    .btn {
        width: 100%;
    }

    .forecast-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .forecast-date {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .landing-section {
        padding: 2rem 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .dashboard {
        padding: 1rem;
    }
    
    .weather-header {
        padding: 1rem;
    }
    
    .recommendation-card {
        flex-direction: column;
        text-align: center;
    }
    
    .forecast-timeline {
        gap: 0.5rem;
    }
    
    .forecast-item {
        min-width: 70px;
        padding: 0.75rem 0.5rem;
    }
    
    .weather-details {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
        padding: 1rem;
    }
    
    .value-card {
        padding: 1rem;
    }
    
    .modal-content {
        padding: 1.25rem;
        max-height: 95vh;
    }
    
    .modal h3 {
        font-size: 1.3rem;
        margin-bottom: 1rem;
    }
    
    .qr-code {
        max-width: 220px;
        padding: 0.5rem;
    }
    
    .gcash-number {
        padding: 0.5rem 1rem;
    }
}

/* Animated Footer Styles */
.animated-footer {
    position: relative;
    width: 100%;
    margin-top: 0;
    overflow: hidden;
    border-top: 1px solid #e0e0e0;
    background: var(--light);
    padding-top: 2.5rem;
    margin-top: 3rem;
}

.footer-container {
    max-width: 768px;
    margin: 0 auto;
    min-height: 20rem;
    position: relative;
    padding: 1rem 1rem 2rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.footer-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 3rem;
    width: 100%;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.footer-brand-name {
    font-size: 1.875rem;
    font-weight: 900;
    color: black;
}

.footer-brand-desc {
    text-align: center;
    font-weight: 600;
    color: var(--secondary);
    max-width: 24rem;
    margin: 0;
    line-height: 1.5;
}

.footer-social {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.social-link {
    color: var(--secondary);
    transition: color 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
}

.social-link:hover {
    color: var(--dark);
}

.social-link:hover i {
    transform: scale(1.1);
}

.social-link i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.footer-donate-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--dark);
    color: var(--light);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-sm);
    font-weight: 500;
    transition: var(--transition);
    border: 1px solid var(--dark);
    cursor: pointer;
    font-size: 0.875rem;
}

.footer-donate-btn:hover {
    background: var(--light);
    color: var(--dark);
}

.footer-donate-btn i {
    font-size: 1rem;
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.nav-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--dark);
    text-decoration: none;
    transition: all 0.3s ease;
}

.nav-link:hover {
    color: var(--dark);
    font-weight: 600;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin-top: 2rem;
}

.footer-copyright {
    font-size: 1rem;
    color: var(--dark);
    text-align: center;
    margin: 0;
}

.footer-creator {
    font-size: 1rem;
    color: var(--secondary);
    text-decoration: none;
    transition: all 0.3s ease;
}

.footer-creator:hover {
    color: var(--dark);
    font-weight: 500;
}

.footer-bg-text {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.08), rgba(0, 0, 0, 0.04), transparent);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 10rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    pointer-events: none;
    user-select: none;
    text-align: center;
    padding: 0 1rem;
    font-size: clamp(3rem, 12vw, 10rem);
    max-width: 95vw;
}

.footer-logo {
    position: absolute;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%);
    backdrop-filter: blur(0.25rem);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.6);
    border: 2px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem;
    z-index: 10;
    transition: border-color 0.4s ease;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.footer-logo:hover {
    border-color: var(--dark);
}

.footer-logo-inner {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(to bottom right, var(--dark), rgba(0, 0, 0, 0.8));
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.footer-logo-inner i {
    font-size: 1.5rem;
    color: var(--light);
}

.footer-line {
    position: absolute;
    bottom: 8rem;
    backdrop-filter: blur(0.25rem);
    height: 0.25rem;
    background: linear-gradient(to right, transparent, #e0e0e0, transparent);
    width: 100%;
    left: 50%;
    transform: translateX(-50%);
}

.footer-shadow {
    background: linear-gradient(to top, var(--light), rgba(255, 255, 255, 0.8), rgba(255, 255, 255, 0.4));
    filter: blur(4rem);
    position: absolute;
    bottom: 7rem;
    width: 100%;
    height: 6rem;
}

/* Responsive styles for footer */
@media (min-width: 768px) {
    .footer-container {
        max-width: 80rem;
        min-height: 25rem;
        padding: 2.5rem 1rem 2.5rem;
    }

    .footer-main {
        margin-bottom: 0;
    }

    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        margin-top: 4rem;
        padding: 0 1rem;
    }

    .footer-copyright {
        text-align: left;
    }

    .footer-bg-text {
        bottom: 8rem;
    }

    .footer-logo {
        bottom: 5rem;
    }

    .footer-logo-inner {
        width: 4rem;
        height: 4rem;
    }

    .footer-logo-inner i {
        font-size: 2rem;
    }

    .footer-line {
        bottom: 6.5rem;
    }

    .footer-shadow {
        bottom: 5.5rem;
    }
}

@media (min-width: 640px) {
    .footer-logo-inner {
        width: 3.5rem;
        height: 3.5rem;
    }

    .footer-logo-inner i {
        font-size: 1.75rem;
    }
}