/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #ff6b35;
    --secondary-color: #004e89;
    --accent-color: #1a936f;
    --holiday-color: #f94144;
    --festival-color: #f3722c;
    --weekend-color: #f8f9fa;
    --text-dark: #2b2d42;
    --text-light: #6c757d;
    --bg-light: #ffffff;
    --bg-grey: #f8f9fa;
    --border-color: #dee2e6;
    --shadow: 0 2px 8px rgba(0,0,0,0.1);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 10px;
}

.container {
    max-width: 100%;
    margin: 0 auto;
    background: var(--bg-light);
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    overflow: hidden;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    padding: 20px;
    text-align: center;
}

header h1 {
    font-size: 1.8em;
    margin-bottom: 5px;
}

.subtitle {
    font-size: 0.9em;
    opacity: 0.95;
}

/* Navigation */
.year-selector {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 15px;
    background: var(--bg-grey);
    border-bottom: 2px solid var(--border-color);
}

.year-btn {
    padding: 10px 30px;
    border: 2px solid var(--primary-color);
    background: white;
    color: var(--primary-color);
    border-radius: 25px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.year-btn.active {
    background: var(--primary-color);
    color: white;
}

/* Search Section */
.search-section {
    padding: 15px;
    background: white;
}

#searchInput {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 1em;
    transition: border-color 0.3s ease;
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Filters */
.filters {
    display: flex;
    gap: 8px;
    padding: 15px;
    overflow-x: auto;
    background: var(--bg-grey);
    -webkit-overflow-scrolling: touch;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 20px;
    font-size: 0.9em;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background: var(--secondary-color);
    color: white;
    border-color: var(--secondary-color);
}

/* Holiday Combinations */
.holiday-combos {
    padding: 20px;
    background: #fff3cd;
    border-bottom: 2px solid #ffc107;
}

.holiday-combos h2 {
    font-size: 1.3em;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.combo-card {
    background: white;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 8px;
    border-left: 4px solid var(--accent-color);
    box-shadow: var(--shadow);
}

.combo-card h3 {
    font-size: 1.1em;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.combo-dates {
    font-size: 0.9em;
    color: var(--text-light);
    margin-bottom: 8px;
}

.combo-days {
    display: inline-block;
    padding: 4px 12px;
    background: var(--accent-color);
    color: white;
    border-radius: 15px;
    font-size: 0.85em;
    font-weight: 600;
    margin-bottom: 8px;
}

.combo-suggestions {
    font-size: 0.9em;
    color: var(--text-dark);
    margin-top: 8px;
}

/* Calendar View */
.calendar-view {
    padding: 15px;
}

.month-card {
    background: white;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.month-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    color: white;
    padding: 15px;
    text-align: center;
}

.month-header h2 {
    font-size: 1.3em;
    margin-bottom: 5px;
}

.month-info {
    font-size: 0.85em;
    opacity: 0.9;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 1px;
    background: var(--border-color);
    border: 1px solid var(--border-color);
}

.day-label {
    background: var(--bg-grey);
    padding: 8px 4px;
    text-align: center;
    font-size: 0.75em;
    font-weight: 600;
    color: var(--text-light);
}

.calendar-day {
    background: white;
    padding: 8px 4px;
    min-height: 60px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s ease;
}

.calendar-day:hover {
    background: var(--bg-grey);
}

.calendar-day.weekend {
    background: var(--weekend-color);
}

.calendar-day.empty {
    background: #f8f9fa;
    cursor: default;
}

.calendar-day.holiday {
    background: #ffe5e5;
}

.calendar-day.festival {
    background: #fff4e5;
}

.day-number {
    font-size: 0.9em;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-dark);
}

.day-events {
    font-size: 0.65em;
    line-height: 1.2;
}

.event-badge {
    display: block;
    padding: 2px 4px;
    margin-bottom: 2px;
    border-radius: 3px;
    font-weight: 500;
    word-break: break-word;
}

.event-badge.holiday {
    background: var(--holiday-color);
    color: white;
}

.event-badge.festival {
    background: var(--festival-color);
    color: white;
}

.travel-recommendations {
    padding: 15px;
    background: #e8f5e9;
    border-top: 2px solid var(--accent-color);
}

.travel-recommendations h3 {
    font-size: 1em;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.travel-item {
    background: white;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.travel-item h4 {
    font-size: 0.95em;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.travel-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 5px;
}

.meta-badge {
    font-size: 0.75em;
    padding: 3px 8px;
    border-radius: 12px;
    white-space: nowrap;
}

.meta-badge.distance {
    background: #e3f2fd;
    color: #1565c0;
}

.meta-badge.season {
    background: #fff3e0;
    color: #e65100;
}

.meta-badge.rating {
    background: #f3e5f5;
    color: #6a1b9a;
}

.travel-description {
    font-size: 0.85em;
    color: var(--text-light);
    line-height: 1.4;
}

/* Destination View */
.destination-view {
    padding: 20px;
}

.destination-view h2 {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: var(--text-dark);
}

.destination-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.destination-filters select {
    flex: 1;
    min-width: 140px;
    padding: 10px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    font-size: 0.9em;
    background: white;
    cursor: pointer;
}

.destination-card {
    background: white;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
    border-left: 4px solid var(--primary-color);
}

.destination-header {
    padding: 15px;
    background: var(--bg-grey);
}

.destination-name {
    font-size: 1.2em;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.destination-tags {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.tag {
    font-size: 0.75em;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: 500;
}

.tag.best-time {
    background: #4caf50;
    color: white;
}

.tag.favorable {
    background: #8bc34a;
    color: white;
}

.tag.off-season {
    background: #ff9800;
    color: white;
}

.tag.avoid {
    background: #f44336;
    color: white;
}

.destination-body {
    padding: 15px;
}

.destination-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}

.info-item {
    font-size: 0.85em;
}

.info-label {
    color: var(--text-light);
    display: block;
    margin-bottom: 3px;
}

.info-value {
    font-weight: 600;
    color: var(--text-dark);
}

.destination-description {
    font-size: 0.9em;
    color: var(--text-dark);
    line-height: 1.5;
    margin-bottom: 12px;
}

.season-info {
    background: var(--bg-grey);
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.season-info h4 {
    font-size: 0.9em;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

.season-details {
    font-size: 0.85em;
    color: var(--text-dark);
    line-height: 1.4;
}

.highlights {
    margin-top: 12px;
}

.highlights h4 {
    font-size: 0.9em;
    color: var(--secondary-color);
    margin-bottom: 8px;
}

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

.highlights li {
    font-size: 0.85em;
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.highlights li:before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--accent-color);
    font-weight: bold;
}

/* Footer */
footer {
    background: var(--text-dark);
    color: white;
    padding: 20px;
    text-align: center;
    font-size: 0.9em;
}

.footer-note {
    font-size: 0.8em;
    opacity: 0.8;
    margin-top: 8px;
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Responsive Design */
@media (min-width: 768px) {
    body {
        padding: 20px;
    }

    .container {
        max-width: 600px;
    }

    header h1 {
        font-size: 2.2em;
    }

    .calendar-day {
        min-height: 80px;
        padding: 10px 6px;
    }

    .day-number {
        font-size: 1em;
    }

    .day-events {
        font-size: 0.75em;
    }
}

@media (max-width: 360px) {
    header h1 {
        font-size: 1.5em;
    }

    .calendar-day {
        min-height: 50px;
        padding: 6px 2px;
    }

    .day-number {
        font-size: 0.8em;
    }

    .day-events {
        font-size: 0.6em;
    }

    .event-badge {
        padding: 1px 2px;
    }
}

/* Loading Animation */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-light);
}

.loading:after {
    content: "...";
    animation: dots 1.5s steps(4, end) infinite;
}

@keyframes dots {
    0%, 20% { content: "."; }
    40% { content: ".."; }
    60%, 100% { content: "..."; }
}
