:root {
    --teal-blue: #008080;
    --teal-light: #4db3b3;
    --teal-dark: #005959;
    --white: #ffffff;
    --border-color: #e0e0e0;
    --sand-beige: #f5f5dc;
    --sand-dark: #e8e8cf;
    --text-dark: #333333;
    --text-light: #666666;
    --bg-light: #f9f9f9;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    background-color: var(--bg-light);
    line-height: 1.6;
}

#app {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* Hero Section */
.hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    background-image: url('okinawa_hero.png');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    animation: fadeInDown 1s ease-out;
}

.hero h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero .subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 0.9;
}

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

.nav-btn {
    padding: 0.75rem 1.5rem;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.nav-btn:hover {
    background-color: var(--white);
    color: var(--teal-blue);
    transform: translateY(-2px);
}

/* Overview Section */
.overview-section {
    background: linear-gradient(135deg, var(--teal-dark) 0%, var(--teal-blue) 100%);
    color: var(--white);
    padding: 3rem 1rem;
}

.overview-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.overview-container h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    font-weight: 700;
}

.overview-grid {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.overview-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 1.5rem;
    border-radius: 16px;
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.3s ease;
}

.overview-item:hover {
    transform: translateY(-5px);
}

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

.overview-item strong {
    font-size: 1.1rem;
    color: var(--sand-beige);
}

.overview-item span {
    font-size: 0.95rem;
    opacity: 0.9;
}

.overview-item small {
    font-size: 0.8rem;
    opacity: 0.7;
    margin-top: 0.25rem;
}

/* Main Layout */
.main-container {
    display: flex;
    flex: 1;
    max-width: 1400px;
    margin: 0 auto;
    width: 100%;
    padding: 2rem;
    gap: 2rem;
}

.content-panel {
    flex: 1;
    background: var(--white);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.map-panel {
    flex: 1;
    background: var(--sand-beige);
    border-radius: 16px;
    box-shadow: var(--shadow-md);
    overflow: hidden;
    position: sticky;
    top: 2rem;
    height: calc(100vh - 4rem);
}

#map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Tabs */
.tabs-header {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    margin-bottom: 1.5rem;
}

.tab-btn {
    flex: 1;
    padding: 1rem;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: var(--teal-blue);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.tab-btn.active {
    color: var(--teal-blue);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-btn:hover {
    background-color: var(--bg-light);
}

.tab-content {
    display: none;
    flex: 1;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.tab-content.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

/* Timeline specific */
.day-selectors {
    display: flex;
    justify-content: space-between;
    margin-bottom: 1.5rem;
    background: var(--bg-light);
    padding: 0.5rem;
    border-radius: 12px;
}

.day-btn {
    padding: 0.5rem 1rem;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--text-light);
}

.day-btn.active {
    background: var(--white);
    color: var(--teal-blue);
    box-shadow: var(--shadow-sm);
}

.timeline-cards {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Timeline Card Design */
.card {
    display: flex;
    padding: 1.25rem;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid var(--border-color);
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--teal-light);
}

.card-time {
    font-weight: 700;
    color: var(--teal-blue);
    min-width: 70px;
    font-size: 1.1rem;
}

.card-content h3 {
    margin-bottom: 0.25rem;
    font-size: 1.1rem;
}

.card-content p {
    font-size: 0.9rem;
    color: var(--text-light);
}

.tag {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--sand-beige);
    color: var(--teal-dark);
    margin-top: 0.5rem;
}

/* Food specific */
.filter-group {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--border-color);
    background: var(--white);
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

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

.food-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.food-card {
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: transform 0.2s;
}

.food-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.food-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
}

.food-card-info {
    padding: 1rem;
}

.food-card-info h4 {
    margin-bottom: 0.25rem;
}

.food-card-info p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.map-link {
    font-size: 0.8rem;
    color: var(--teal-blue);
    text-decoration: none;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
}

/* Animations & Responsive */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-width: 992px) {
    .main-container {
        flex-direction: column;
        padding: 1rem;
    }

    .map-panel {
        position: static;
        height: 50vh;
        min-height: 400px;
        order: -1;
        /* Map on top in mobile */
    }

    .hero h1 {
        font-size: 2.5rem;
    }
}