/* Main Stylesheet */

:root {
    --primary-color: #0066cc;
    --secondary-color: #00a3e0;
    --success-color: #00cc66;
    --danger-color: #cc0000;
    --warning-color: #ffcc00;
    --light-bg: #f5f5f5;
    --dark-text: #333;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: #ffffff;
}

/* Navigation */
.navbar {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem 0;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-brand h1 {
    font-size: 1.8rem;
    margin-bottom: 0.25rem;
}

.nav-tagline {
    font-size: 0.85rem;
    opacity: 0.9;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-links a:hover {
    opacity: 0.8;
}

.admin-link {
    background-color: var(--secondary-color);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

/* Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #333;
    color: white;
    padding: 1rem;
    z-index: 1000;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.2);
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
}

.cookie-content p {
    margin-bottom: 1rem;
    font-size: 0.95rem;
}

.cookie-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 1rem;
    text-align: center;
}

.hero-content h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

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

/* Filters Section */
.filters-section {
    background-color: var(--light-bg);
    padding: 2rem 1rem;
    border-bottom: 1px solid var(--border-color);
}

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

.filters-container h3 {
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.filter-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--border-color);
    background-color: white;
    border-radius: 24px;
    cursor: pointer;
    transition: all 0.3s;
    font-size: 0.95rem;
}

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

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

.search-box {
    display: flex;
}

.search-box input {
    flex: 1;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
}

/* Map Section */
.map-section {
    position: relative;
    height: 500px;
    margin: 2rem 0;
}

.map {
    width: 100%;
    height: 100%;
    border-radius: 8px;
}

.map-info {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    background-color: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: var(--shadow);
    max-width: 300px;
}

/* POI List Section */
.poi-list-section {
    max-width: 1200px;
    margin: 2rem auto;
    padding: 0 1rem;
}

.poi-list-section h3 {
    margin-bottom: 2rem;
    font-size: 1.5rem;
}

.poi-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.poi-card {
    background-color: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    cursor: pointer;
}

.poi-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.poi-card h4 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
    font-size: 1.3rem;
}

.poi-type {
    display: inline-block;
    background-color: var(--light-bg);
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.poi-card p {
    margin-bottom: 0.75rem;
    font-size: 0.95rem;
}

.poi-address {
    color: #666;
    font-size: 0.9rem;
}

.poi-contact {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.poi-contact a {
    display: inline-block;
    margin-right: 1rem;
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9rem;
}

.poi-contact a:hover {
    text-decoration: underline;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
}

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

.btn-primary:hover {
    background-color: #0052a3;
}

.btn-secondary {
    background-color: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background-color: #5a6268;
}

.btn-tertiary {
    background-color: transparent;
    color: white;
    border: 1px solid white;
}

.btn-tertiary:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Loading State */
.loading {
    text-align: center;
    padding: 2rem;
    color: #999;
}

.htmx-request .htmx-indicator {
    display: inline-block;
}

.htmx-settling .htmx-swapping {
    opacity: 0;
    transition: opacity 200ms ease-out;
    swap-origin: top left;
}

.htmx-swapping.htmx-settling {
    opacity: 1;
    transition: opacity 200ms ease-in;
}

/* Footer */
.footer {
    background-color: var(--dark-text);
    color: white;
    text-align: center;
    padding: 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-content p {
    margin: 0.5rem 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-content h2 {
        font-size: 1.8rem;
    }

    .filter-buttons {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }

    .poi-list {
        grid-template-columns: 1fr;
    }

    .map-section {
        height: 300px;
    }

    .cookie-buttons {
        flex-direction: column;
    }

    .cookie-buttons button,
    .cookie-buttons a {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .nav-container {
        flex-direction: column;
        gap: 1rem;
    }

    .hero-content h2 {
        font-size: 1.5rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .poi-card {
        padding: 1rem;
    }
}
