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

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

.header {
    text-align: center;
    color: white;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.navigation {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
}

.nav-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    padding: 12px 20px;
    border-radius: 15px;
    cursor: pointer;
    font-weight: 600;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-family: inherit;
}

.nav-btn:hover {
    background: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.nav-btn.active {
    background: linear-gradient(45deg, #3498db, #2980b9);
    color: white;
}

.content-section {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
    backdrop-filter: blur(10px);
    display: none;
}

.content-section.active {
    display: block;
    animation: fadeIn 0.5s ease-in-out;
}

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

.section-title {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 25px;
    text-align: center;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
}

.day-card {
    background: linear-gradient(135deg, #d63384 0%, #dc3545 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-bottom: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.day-card h3 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    text-align: center;
}

.time-block {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
    backdrop-filter: blur(5px);
}

.time-block h4 {
    color: #ffef5e;
    margin-bottom: 12px;
    font-size: 1.2rem;
}

.activity {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    line-height: 1.5;
}

.activity::before {
    position: absolute;
    left: 0;
    top: 2px;
    font-size: 16px;
}

.activity.culture::before { content: "🏛️"; }
.activity.beach::before { content: "🏖️"; }
.activity.food::before { content: "🍽️"; }
.activity.transport::before { content: "🚌"; }
.activity.night::before { content: "🌙"; }
.activity.general::before { content: "📍"; }

.english-name {
    color: #ddd;
    font-size: 0.9em;
    font-style: italic;
}

.location-link {
    color: #ffef5e;
    text-decoration: none;
    font-weight: bold;
    opacity: 0.9;
    transition: all 0.3s ease;
    border-bottom: 1px dotted rgba(255, 239, 94, 0.5);
}

.location-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.food-link {
    color: #20c997;
    text-decoration: none;
    font-weight: bold;
    opacity: 0.9;
    transition: all 0.3s ease;
    border-bottom: 1px dotted rgba(32, 201, 151, 0.5);
}

.food-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.info-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.info-card h4 {
    color: #ffef5e;
    margin-bottom: 18px;
    font-size: 1.3rem;
    text-align: center;
}

.info-card ul {
    list-style: none;
    padding-left: 0;
}

.info-card li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
    line-height: 1.4;
}

.info-card li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: #2ecc71;
    font-weight: bold;
    font-size: 16px;
}

.budget-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}

.budget-item span:last-child {
    font-weight: bold;
    color: #ffef5e;
}

.weather-widget {
    background: linear-gradient(135deg, #fdbb2d 0%, #22c1c3 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    text-align: center;
    margin-bottom: 25px;
}

.weather-widget h3 {
    margin-bottom: 20px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
    font-size: 1.5rem;
}

.weather-stats {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 15px;
}

.weather-stat {
    background: rgba(255, 255, 255, 0.2);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
    min-width: 120px;
}

.weather-stat div:first-child {
    font-weight: bold;
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.search-box {
    margin-bottom: 25px;
    text-align: center;
}

.search-input {
    padding: 12px 20px;
    border: none;
    border-radius: 25px;
    width: 400px;
    max-width: 100%;
    font-size: 16px;
    outline: none;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-family: inherit;
}

.search-input::placeholder {
    color: #999;
}

.highlight {
    background: linear-gradient(120deg, #a8edea 0%, #fed6e3 100%);
    padding: 2px 6px;
    border-radius: 4px;
    color: #333;
    font-weight: bold;
}

.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 25px;
    border-radius: 10px;
    color: white;
    font-weight: bold;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    max-width: 300px;
}

.notification.success {
    background: linear-gradient(45deg, #2ecc71, #27ae60);
}

.notification.warning {
    background: linear-gradient(45deg, #e74c3c, #c0392b);
}

@keyframes slideIn {
    from { 
        transform: translateX(100%); 
        opacity: 0; 
    }
    to { 
        transform: translateX(0); 
        opacity: 1; 
    }
}

@keyframes pulse {
    0% { 
        transform: scale(1); 
        box-shadow: 0 4px 12px rgba(255,68,68,0.6); 
    }
    50% { 
        transform: scale(1.1); 
        box-shadow: 0 6px 16px rgba(255,68,68,0.8); 
    }
    100% { 
        transform: scale(1); 
        box-shadow: 0 4px 12px rgba(255,68,68,0.6); 
    }
}

.pros-cons {
    margin-top: 15px;
    position: relative;
}

.pros-cons .budget-item {
    margin-bottom: 8px;
    font-size: 0.95rem;
    position: relative;
}

.pros-cons .budget-item span:first-child {
    font-weight: bold;
}

/* Floating Map Component */
.floating-map {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    width: 350px;
    height: 400px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    z-index: 1000;
    overflow: hidden;
    resize: both;
    min-width: 250px;
    min-height: 200px;
    max-width: 80vw;
    max-height: 80vh;
    display: none; /* Initially hidden */
}

.floating-map:not(.resizing) {
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.floating-map.resizing {
    transition: none; /* Disable transitions during resize */
}

.floating-map.minimized {
    height: 50px;
    width: 200px;
    cursor: pointer;
}

.floating-map.hidden {
    display: none !important;
}

.floating-map:not(.hidden) {
    display: block;
}

.map-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 10px 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: move;
    user-select: none;
}

.map-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.day-selector {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 8px;
    padding: 5px 8px;
    font-size: 0.8rem;
    color: #333;
    outline: none;
    flex: 1;
    max-width: 150px;
}

.map-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    border-radius: 6px;
    padding: 5px 8px;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s ease;
}

.map-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.map-resize-handle {
    color: rgba(255, 255, 255, 0.7);
    cursor: ns-resize;
    padding: 2px 5px;
    user-select: none;
    font-size: 0.8rem;
    position: relative;
}

/* Native resize handle styling - more obvious */
.floating-map::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 20px;
    height: 20px;
    background: linear-gradient(-45deg, transparent 0%, transparent 30%, rgba(255,255,255,0.3) 30%, rgba(255,255,255,0.3) 40%, transparent 40%, transparent 50%, rgba(255,255,255,0.3) 50%, rgba(255,255,255,0.3) 60%, transparent 60%, transparent 70%, rgba(255,255,255,0.3) 70%, rgba(255,255,255,0.3) 80%, transparent 80%);
    cursor: nw-resize;
    z-index: 1001;
    pointer-events: none;
}

.floating-map:hover::after {
    background: linear-gradient(-45deg, transparent 0%, transparent 30%, rgba(255,255,255,0.6) 30%, rgba(255,255,255,0.6) 40%, transparent 40%, transparent 50%, rgba(255,255,255,0.6) 50%, rgba(255,255,255,0.6) 60%, transparent 60%, transparent 70%, rgba(255,255,255,0.6) 70%, rgba(255,255,255,0.6) 80%, transparent 80%);
}

.map-container {
    width: 100%;
    height: calc(100% - 50px);
    position: relative;
}

.floating-map.minimized .map-container {
    display: none;
}

.floating-map.minimized .day-selector {
    display: none;
}

.floating-map.minimized .map-resize-handle {
    display: none;
}

@media (max-width: 768px) {
    .container {
        padding: 10px;
    }
    
    .header {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .header h1 {
        font-size: 1.5rem;
        margin-bottom: 5px;
    }
    
    .header p {
        font-size: 0.9rem;
    }
    
    .navigation {
        position: sticky;
        top: 0;
        z-index: 100;
        background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
        backdrop-filter: blur(15px);
        padding: 12px;
        margin: 0 -10px 20px -10px;
        overflow-x: auto;
        overflow-y: hidden;
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: flex-start;
        align-items: center;
        gap: 8px;
        scrollbar-width: none;
        -ms-overflow-style: none;
        white-space: nowrap;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .navigation::-webkit-scrollbar {
        display: none;
    }
    
    .nav-btn {
        flex-shrink: 0;
        flex-grow: 0;
        width: auto;
        min-width: 70px;
        padding: 8px 10px;
        font-size: 0.75rem;
        margin: 0;
        white-space: nowrap;
        background: rgba(255, 255, 255, 0.9);
        border: 1px solid rgba(255, 255, 255, 0.3);
    }
    
    .nav-btn.active {
        background: rgba(255, 255, 255, 1);
        color: #667eea;
        font-weight: 600;
    }
    
    .content-section {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .section-title {
        font-size: 1.4rem;
        margin-bottom: 15px;
        padding-bottom: 8px;
    }
    
    .day-card {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .day-card h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }
    
    .time-block {
        padding: 10px;
        margin-bottom: 10px;
    }
    
    .time-block h4 {
        font-size: 1rem;
        margin-bottom: 8px;
    }
    
    .activity {
        margin-bottom: 8px;
        font-size: 0.85rem;
        line-height: 1.4;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .info-card {
        padding: 15px;
    }
    
    .info-card h4 {
        font-size: 1.1rem;
        margin-bottom: 12px;
    }
    
    .info-card li {
        font-size: 0.85rem;
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .budget-item {
        padding: 8px 10px;
        margin-bottom: 8px;
        font-size: 0.85rem;
    }

    .weather-widget {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .weather-widget h3 {
        font-size: 1.2rem;
        margin-bottom: 15px;
    }

    .weather-stats {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .weather-stat {
        width: 100%;
        max-width: 200px;
        padding: 10px;
        min-width: 100px;
    }
    
    .weather-stat div:first-child {
        font-size: 1rem;
    }

    .search-box {
        margin-bottom: 15px;
    }

    .search-input {
        width: 90%;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    .english-name {
        font-size: 0.8em;
    }
    
    /* Mobile Map Styling */
    .floating-map:not(.hidden) {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        top: auto;
        transform: none;
        width: 100%;
        height: 250px;
        border-radius: 15px 15px 0 0;
        resize: none;
        max-width: none;
        max-height: 70vh;
        display: block;
    }
    
    .floating-map.minimized {
        height: 50px;
        width: 100%;
    }
    
    .map-header {
        padding: 8px 15px;
        cursor: default;
    }
    
    .day-selector {
        font-size: 0.75rem;
        padding: 4px 6px;
        max-width: 120px;
    }
    
    .map-close {
        padding: 4px 6px;
        font-size: 0.8rem;
    }
    
    .map-resize-handle {
        cursor: ns-resize;
        font-size: 1rem;
        padding: 2px 8px;
    }
    
    .floating-map::after {
        display: none; /* Hide native resize indicator on mobile */
    }
}