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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --border-color: #e5e7eb;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* Navigation */
.navbar {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
    z-index: 1000;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.nav-brand:hover {
    opacity: 0.8;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav-menu a:hover {
    color: var(--primary-color);
}

.nav-menu a.active {
    color: var(--primary-color);
}

.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--primary-color);
}

.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--text-primary);
    transition: var(--transition);
}

/* Sections */
.section {
    padding: 5rem 0;
}

.section-alt {
    background-color: var(--bg-secondary);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-align: center;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 3rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Gear Section */
.gear-toc {
    background: var(--bg-secondary);
    border-radius: 0.5rem;
    padding: 2rem;
    margin-bottom: 3rem;
    border-left: 4px solid var(--primary-color);
}

.gear-toc h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.gear-toc ul {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
}

.gear-toc li {
    margin: 0;
}

.gear-toc a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

.gear-toc a:hover {
    text-decoration: underline;
}

.gear-content {
    max-width: 800px;
}

.gear-section {
    margin-bottom: 4rem;
    scroll-margin-top: 100px;
}

.gear-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.gear-list {
    list-style: none;
    padding: 0;
}

.gear-list li {
    margin-bottom: 1.5rem;
    line-height: 1.8;
    color: var(--text-primary);
}

.gear-list strong {
    color: var(--primary-color);
    font-weight: 600;
}

.gear-list strong a {
    color: var(--primary-color);
    text-decoration: none;
    transition: var(--transition);
}

.gear-list strong a:hover {
    text-decoration: underline;
}

.gear-category {
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
}

/* City Guide Section */
.city-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    justify-content: center;
}

.city-tab {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background: var(--bg-primary);
    border-radius: 2rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.city-tab:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.city-tab.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.city-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.map-container {
    width: 100%;
    height: 500px;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.restaurants-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.restaurant-card {
    background: var(--bg-primary);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.restaurant-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

.restaurant-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.restaurant-address {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.restaurant-date {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-style: italic;
    margin-bottom: 0.75rem;
}

.restaurant-dishes {
    color: var(--text-primary);
    font-size: 0.875rem;
}

.dish-tag {
    display: inline-block;
    background-color: var(--bg-secondary);
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    margin: 0.25rem 0.25rem 0.25rem 0;
    font-size: 0.875rem;
}

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

/* Photos Section */
.photos-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    align-items: center;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 1rem;
    cursor: pointer;
    max-width: 100%;
}

.photo-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: var(--transition);
}

.photo-item:hover img {
    transform: scale(1.05);
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    padding: 1.5rem;
    transform: translateY(100%);
    transition: var(--transition);
}

.photo-item:hover .photo-overlay {
    transform: translateY(0);
}

.photo-location {
    color: white;
    font-weight: 500;
}

/* Books Section */
.books-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.book-item {
    background: var(--bg-primary);
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    display: flex;
    flex-direction: column;
}

.book-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.book-cover {
    width: 100%;
    height: 300px;
    overflow: hidden;
    background-color: var(--bg-secondary);
}

.book-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.book-content {
    padding: 1.5rem;
}

.book-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.book-author {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    font-style: italic;
}

.book-review {
    color: var(--text-primary);
    line-height: 1.6;
}

/* Footer */
.footer {
    background-color: var(--text-primary);
    color: white;
    padding: 2rem 0;
    text-align: center;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        background: white;
        flex-direction: column;
        padding: 2rem;
        box-shadow: var(--shadow-lg);
        transition: var(--transition);
        gap: 1rem;
    }

    .nav-menu.active {
        left: 0;
    }

    .mobile-menu-toggle {
        display: flex;
    }

    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(7px, -6px);
    }

    .section-title {
        font-size: 2rem;
    }

    .city-content {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 300px;
    }

    .gear-grid,
    .photos-grid,
    .books-grid {
        grid-template-columns: 1fr;
    }

    .section {
        padding: 3rem 0;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 1.75rem;
    }

    .city-tabs {
        gap: 0.5rem;
    }

    .city-tab {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }
}

/* Hero Section */
.hero-section {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    padding: 5rem 0;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.hero-subtitle {
    font-size: 1.5rem;
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 4rem;
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.hero-card {
    background: var(--bg-primary);
    border: 2px solid var(--border-color);
    border-radius: 1rem;
    padding: 3rem 2rem;
    text-align: center;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    cursor: pointer;
}

.hero-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.hero-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

.hero-card p {
    color: var(--text-secondary);
    font-size: 1rem;
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.25rem;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}
