@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;700&display=swap');

:root {
    --primary-color: #4facfe;
    --secondary-color: #00f2fe;
    --accent-color: #ff8c00;
    --bg-color: #f8fbff;
    --text-color: #2d3436;
    --glass-bg: rgba(255, 255, 255, 0.7);
    --glass-border: rgba(255, 255, 255, 0.2);
    --shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.1);
    --card-radius: 20px;
}

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

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Background Gradients */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at center, #e0f2fe 0%, transparent 70%);
    z-index: -1;
    animation: pulse 15s infinite alternate;
}

@keyframes pulse {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

header {
    padding: 40px 20px;
    text-align: center;
    background: var(--glass-bg);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--glass-border);
    position: sticky;
    top: 0;
    z-index: 1000;
}

h1 {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(to right, #4facfe 0%, #00f2fe 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

/* Month Selector */
.month-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin: 20px 0;
    overflow-x: auto;
    padding-bottom: 10px;
}

.month-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 30px;
    background: white;
    box-shadow: var(--shadow);
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.month-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.month-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
}

/* Filter Section */
.filter-section {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
    align-items: center;
}

.toggle-group {
    display: flex;
    background: #eee;
    padding: 5px;
    border-radius: 40px;
}

.toggle-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 35px;
    background: transparent;
    cursor: pointer;
    font-weight: 600;
    transition: 0.3s;
}

.toggle-btn.active {
    background: white;
    box-shadow: var(--shadow);
}

.hashtag-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-btn {
    padding: 5px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
}

.tag-btn:hover {
    border-color: var(--primary-color);
}

.tag-btn.active {
    background: #e0f2fe;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Search Bar */
.search-container {
    width: 100%;
    max-width: 400px;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: none;
    border-radius: 30px;
    box-shadow: var(--shadow);
    outline: none;
}

/* Card Grid */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.card {
    background: white;
    border-radius: var(--card-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-10px);
}

.card-image-wrapper {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.card:hover .card-img {
    transform: scale(1.1);
}

.card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}

.card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.card-reason {
    font-size: 0.95rem;
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.tag {
    font-size: 0.8rem;
    color: var(--primary-color);
    font-weight: 600;
}

.card-footer {
    border-top: 1px solid #eee;
    padding-top: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.schedule-list {
    font-size: 0.85rem;
}

.schedule-item {
    display: block;
    color: #444;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 8px;
    transition: 0.2s;
}

.schedule-item:hover {
    background: #f0f7ff;
    color: var(--primary-color);
}

.price {
    font-weight: 700;
    color: var(--accent-color);
}

/* Detail Page */
.detail-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
    background: white;
    border-radius: 30px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.detail-hero {
    height: 400px;
    width: 100%;
    object-fit: cover;
}

.detail-body {
    padding: 40px;
}

.back-btn {
    display: inline-block;
    margin-bottom: 20px;
    text-decoration: none;
    color: var(--primary-color);
    font-weight: 600;
}

.itinerary-section {
    margin-top: 30px;
}

.day-card {
    border-left: 3px solid var(--primary-color);
    padding: 20px;
    margin-bottom: 20px;
    background: #f9fcff;
    border-radius: 0 15px 15px 0;
}

.day-title {
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

.budget-sidebar {
    background: #fff3e6;
    padding: 20px;
    border-radius: 15px;
    margin-top: 30px;
}

/* Responsive */
@media (max-width: 768px) {
    h1 { font-size: 2rem; }
    .month-container { justify-content: flex-start; }
    .detail-hero { height: 250px; }
}
