/* ========================================
   Find a Dog Minder - Main Styles
   Australian Dog Park Directory
   ======================================== */

/* CSS Variables */
:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-light: #3b82f6;
    --secondary: #10b981;
    --secondary-dark: #059669;
    --accent: #f59e0b;
    --accent-dark: #d97706;

    --text-primary: #1f2937;
    --text-secondary: #4b5563;
    --text-muted: #6b7280;
    --text-light: #9ca3af;

    --bg-primary: #ffffff;
    --bg-secondary: #f9fafb;
    --bg-tertiary: #f3f4f6;
    --bg-dark: #111827;

    --border-color: #e5e7eb;
    --border-light: #f3f4f6;

    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
    --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
    --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);

    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;

    --transition: 150ms ease;
    --transition-slow: 300ms ease;

    --container-max: 1280px;
    --header-height: 72px;
}

/* Reset & Base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

input, select {
    font-family: inherit;
    font-size: inherit;
}

ul {
    list-style: none;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ========================================
   Header
   ======================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--header-height);
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--text-primary);
    text-decoration: none;
}

.logo:hover {
    color: var(--text-primary);
}

.logo-icon {
    font-size: 1.75rem;
}

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

.nav-link {
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition);
}

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

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    gap: 5px;
}

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

@media (max-width: 768px) {
    .nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-primary);
        border-bottom: 1px solid var(--border-color);
        padding: 1rem;
        gap: 0.5rem;
    }

    .nav.active {
        display: flex;
    }

    .nav-link {
        display: block;
        padding: 0.75rem 1rem;
        border-radius: var(--radius);
    }

    .nav-link:hover {
        background: var(--bg-secondary);
    }

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

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

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

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

/* ========================================
   Hero Section
   ======================================== */
.hero {
    position: relative;
    padding: calc(var(--header-height) + 4rem) 0 4rem;
    background: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.hero-content {
    position: relative;
    text-align: center;
    color: white;
}

.hero-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto 2rem;
}

/* Search Box */
.search-box {
    max-width: 600px;
    margin: 0 auto 3rem;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.search-icon {
    position: absolute;
    left: 1.25rem;
    color: var(--text-muted);
    pointer-events: none;
}

.search-input {
    width: 100%;
    padding: 1.25rem 3rem 1.25rem 3.5rem;
    font-size: 1.125rem;
    border: none;
    border-radius: var(--radius-xl);
    background: white;
    box-shadow: var(--shadow-xl);
    outline: none;
    transition: box-shadow var(--transition);
}

.search-input::placeholder {
    color: var(--text-light);
}

.search-input:focus {
    box-shadow: var(--shadow-xl), 0 0 0 4px rgba(255, 255, 255, 0.3);
}

.clear-search {
    position: absolute;
    right: 1rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-muted);
    border-radius: 50%;
    transition: var(--transition);
}

.clear-search:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Hero Stats */
.hero-stats {
    display: flex;
    justify-content: center;
    gap: 3rem;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-number {
    font-family: 'Outfit', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.stat-label {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-top: 0.25rem;
}

/* ========================================
   Filters Section
   ======================================== */
.filters-section {
    background: var(--bg-secondary);
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: var(--header-height);
    z-index: 100;
}

.filters-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
    flex: 1;
    min-width: 150px;
}

.filter-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.filter-select {
    padding: 0.625rem 2rem 0.625rem 0.875rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E") right 0.75rem center no-repeat;
    appearance: none;
    cursor: pointer;
    transition: border-color var(--transition), box-shadow var(--transition);
}

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

.filter-select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.reset-btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    background: white;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    transition: var(--transition);
    white-space: nowrap;
}

.reset-btn:hover {
    color: var(--primary);
    border-color: var(--primary-light);
    background: var(--bg-secondary);
}

.results-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-muted);
}

.sort-select {
    padding: 0.5rem 2rem 0.5rem 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    background: white url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%236b7280' d='M6 8L1 3h10z'/%3E%3C/svg%3E") right 0.5rem center no-repeat;
    font-size: 0.875rem;
    appearance: none;
    cursor: pointer;
}

@media (max-width: 768px) {
    .filters-section {
        position: relative;
        top: 0;
    }

    .filter-group {
        min-width: calc(50% - 0.5rem);
    }

    .reset-btn {
        width: 100%;
    }
}

/* ========================================
   Parks Grid
   ======================================== */
.parks-section {
    padding: 3rem 0;
    min-height: 50vh;
}

.parks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

/* Park Card */
a.park-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.park-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
    cursor: pointer;
}

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

.park-card-header {
    padding: 1.5rem 1.5rem 0;
}

.park-card-location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-bottom: 0.5rem;
}

.park-card-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.75rem;
}

.park-card-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.stars {
    display: flex;
    gap: 2px;
}

.star {
    color: var(--accent);
    font-size: 0.875rem;
}

.star.empty {
    color: var(--border-color);
}

.rating-text {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.rating-text strong {
    color: var(--text-primary);
}

.park-card-body {
    padding: 1rem 1.5rem;
}

.park-card-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.park-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0 1.5rem;
}

.feature-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
}

.feature-tag-icon {
    font-size: 0.875rem;
}

.park-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem;
    margin-top: 0.5rem;
    border-top: 1px solid var(--border-light);
    background: var(--bg-secondary);
}

.park-size {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--secondary-dark);
    background: rgba(16, 185, 129, 0.1);
    padding: 0.25rem 0.625rem;
    border-radius: var(--radius-xl);
}

.park-size.small {
    color: var(--accent-dark);
    background: rgba(245, 158, 11, 0.1);
}

.park-size.medium {
    color: var(--primary);
    background: rgba(37, 99, 235, 0.1);
}

.view-details {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.view-details svg {
    transition: transform var(--transition);
}

.park-card:hover .view-details svg {
    transform: translateX(4px);
}

/* No Results */
.no-results {
    text-align: center;
    padding: 4rem 2rem;
}

.no-results-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.no-results h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.no-results p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

@media (max-width: 640px) {
    .parks-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Features Section
   ======================================== */
.features-section {
    padding: 5rem 0;
    background: var(--bg-secondary);
}

.section-title {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 3rem;
    color: var(--text-primary);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    text-align: center;
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* ========================================
   Modal
   ======================================== */
.modal {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.modal.active {
    display: flex;
}

.modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    width: 100%;
    max-width: 640px;
    max-height: 90vh;
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    color: var(--text-muted);
    background: white;
    border-radius: 50%;
    box-shadow: var(--shadow);
    transition: var(--transition);
    z-index: 10;
}

.modal-close:hover {
    color: var(--text-primary);
    background: var(--bg-tertiary);
}

.modal-body {
    overflow-y: auto;
    max-height: 90vh;
}

/* Modal Content */
.modal-header {
    padding: 2rem 2rem 1.5rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
}

.modal-location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.5rem;
}

.modal-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.modal-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.modal-rating .stars {
    font-size: 1.125rem;
}

.modal-rating-text {
    font-size: 0.9375rem;
    opacity: 0.9;
}

.modal-info {
    padding: 1.5rem 2rem;
}

.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section-title {
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.modal-section-title svg {
    color: var(--primary);
}

.modal-description {
    color: var(--text-secondary);
    line-height: 1.7;
}

.modal-detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.modal-detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.modal-detail-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.modal-detail-value {
    font-size: 0.9375rem;
    color: var(--text-primary);
}

.modal-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.modal-feature {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--text-secondary);
    background: var(--bg-tertiary);
    border-radius: var(--radius-xl);
}

.modal-feature-icon {
    font-size: 1rem;
}

.modal-actions {
    display: flex;
    gap: 1rem;
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

.btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    border-radius: var(--radius);
    transition: var(--transition);
}

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

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

.btn-secondary {
    color: var(--text-primary);
    background: white;
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--bg-tertiary);
    border-color: var(--text-muted);
}

@media (max-width: 640px) {
    .modal-content {
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-header {
        padding: 1.5rem;
    }

    .modal-info {
        padding: 1.5rem;
    }

    .modal-detail-grid {
        grid-template-columns: 1fr;
    }

    .modal-actions {
        flex-direction: column;
        padding: 1.5rem;
    }
}

/* ========================================
   SEO Section
   ======================================== */
.seo-section {
    padding: 5rem 0;
    background: white;
}

.seo-content {
    max-width: 800px;
    margin: 0 auto;
}

.seo-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.seo-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 1rem;
}

.seo-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.seo-content ul {
    margin: 1rem 0 1.5rem 1.5rem;
}

.seo-content li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.seo-content li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--primary);
    border-radius: 50%;
}

.seo-content strong {
    color: var(--text-primary);
}

.seo-cta {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    font-size: 0.875rem;
    color: var(--text-muted);
    text-align: center;
}

/* ========================================
   Footer
   ======================================== */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.5fr 2fr;
    gap: 4rem;
}

.footer-brand {
    max-width: 300px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: white;
    margin-bottom: 1rem;
}

.footer-logo:hover {
    color: white;
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.footer-column h4 {
    font-family: 'Outfit', sans-serif;
    font-size: 0.9375rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    color: white;
}

.footer-column ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-column a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9375rem;
    transition: color var(--transition);
}

.footer-column a:hover {
    color: white;
}

.footer-bottom {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.6);
}

.footer-bottom a:hover {
    color: white;
}

@media (max-width: 768px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .footer-brand {
        max-width: none;
        text-align: center;
    }

    .footer-logo {
        justify-content: center;
    }

    .footer-links {
        grid-template-columns: repeat(2, 1fr);
        text-align: center;
    }
}

@media (max-width: 480px) {
    .footer-links {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   Animations & Utilities
   ======================================== */
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   Breadcrumbs
   ======================================== */
.breadcrumbs {
    padding: 1rem 0;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    margin-top: var(--header-height);
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
}

.breadcrumb-list li {
    display: flex;
    align-items: center;
}

.breadcrumb-list li:not(:last-child)::after {
    content: '›';
    margin-left: 0.5rem;
    color: var(--text-muted);
}

.breadcrumb-list a {
    color: var(--text-muted);
}

.breadcrumb-list a:hover {
    color: var(--primary);
}

.breadcrumb-list li[aria-current="page"] {
    color: var(--text-primary);
    font-weight: 500;
}

/* ========================================
   Intro Section
   ======================================== */
.intro-section {
    padding: 3rem 0;
    background: var(--bg-secondary);
}

.intro-content {
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}

.intro-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.intro-content p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

/* ========================================
   FAQ Section (Home Page)
   ======================================== */
.faq-section {
    padding: 4rem 0;
    background: var(--bg-secondary);
}

.faq-content {
    max-width: 900px;
    margin: 0 auto;
}

.faq-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
    text-align: center;
}

.faq-content > p {
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    text-align: center;
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
    margin-top: 2rem;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
}

.faq-item h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.7;
}

/* ========================================
   Latest Articles Section
   ======================================== */
.latest-articles-section {
    padding: 5rem 0;
    background: white;
}

.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-top: -1.5rem;
    margin-bottom: 3rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.article-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.article-card-image {
    height: 160px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.article-emoji {
    font-size: 4rem;
}

.article-card-content {
    padding: 1.5rem;
}

.article-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.75rem;
}

.article-card-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.article-card-content h3 a {
    color: var(--text-primary);
}

.article-card-content h3 a:hover {
    color: var(--primary);
}

.article-card-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.read-more {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary);
}

.articles-cta {
    text-align: center;
    margin-top: 3rem;
}

/* ========================================
   Page Content (About, Contact, etc.)
   ======================================== */
.page-content {
    padding: 4rem 0;
    min-height: 60vh;
}

.content-wrapper {
    max-width: 800px;
    margin: 0 auto;
}

.article-content {
    line-height: 1.8;
}

.article-content h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.article-content .lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.article-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
}

.article-content h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 0.75rem;
}

.article-content p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.article-content ul,
.article-content ol {
    margin: 1.25rem 0 1.25rem 1.5rem;
}

.article-content li {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    padding-left: 0.5rem;
}

.article-content ul li {
    list-style: disc;
}

.article-content ol li {
    list-style: decimal;
}

.article-content strong {
    color: var(--text-primary);
}

.cta-box {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 3rem;
}

.cta-box h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.cta-box p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

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

.cta-box .btn-primary:hover {
    background: var(--bg-tertiary);
}

/* Legal Pages */
.legal-content .last-updated {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

.terms-acceptance {
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: var(--radius);
    margin-top: 2rem;
}

/* ========================================
   Contact Page
   ======================================== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin-top: 2rem;
}

.contact-info h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.contact-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-details h3 {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.25rem;
}

.contact-details p {
    color: var(--text-secondary);
    margin-bottom: 0.25rem;
}

.contact-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.help-topics {
    margin-top: 2rem;
}

.help-topic {
    margin-bottom: 1.5rem;
}

.help-topic h3 {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.help-topic p {
    font-size: 0.9375rem;
}

.contact-form-wrapper h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.contact-form {
    background: var(--bg-secondary);
    padding: 2rem;
    border-radius: var(--radius-lg);
}

.form-group {
    margin-bottom: 1.25rem;
}

.form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 1rem;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-full {
    width: 100%;
}

.form-note {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 1rem;
    text-align: center;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* ========================================
   Blog Pages
   ======================================== */
.blog-hero {
    padding: calc(var(--header-height) + 3rem) 0 3rem;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    text-align: center;
    color: white;
    margin-top: calc(-1 * var(--header-height) - 3rem);
    padding-top: calc(var(--header-height) + 4rem);
}

.blog-hero h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(2rem, 4vw, 2.5rem);
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.blog-hero p {
    font-size: 1.125rem;
    opacity: 0.9;
}

.blog-section {
    padding: 4rem 0;
}

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

.blog-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    transition: transform var(--transition), box-shadow var(--transition);
}

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

.blog-card-image {
    height: 140px;
    background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.blog-emoji {
    font-size: 3.5rem;
}

.blog-card-content {
    padding: 1.5rem;
}

.blog-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.blog-card-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.blog-card-content h2 a {
    color: var(--text-primary);
}

.blog-card-content h2 a:hover {
    color: var(--primary);
}

.blog-card-content p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.blog-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8125rem;
    color: var(--text-muted);
}

.blog-cta {
    background: var(--bg-secondary);
    padding: 3rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 3rem;
}

.blog-cta h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
}

.blog-cta p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

/* ========================================
   Blog Article Page
   ======================================== */
.article-page {
    padding: 3rem 0 5rem;
}

.blog-article {
    max-width: 800px;
    margin: 0 auto;
}

.article-header {
    margin-bottom: 2.5rem;
}

.article-header .article-category {
    margin-bottom: 1rem;
}

.article-header h1 {
    font-family: 'Outfit', sans-serif;
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 1rem;
}

.article-meta {
    display: flex;
    gap: 1.5rem;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.article-body {
    line-height: 1.8;
}

.article-body .lead {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.article-body h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2.5rem 0 1rem;
}

.article-body h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 0.75rem;
}

.article-body p {
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
}

.article-body a {
    color: var(--primary);
    text-decoration: underline;
    text-decoration-color: rgba(37, 99, 235, 0.3);
    text-underline-offset: 2px;
}

.article-body a:hover {
    text-decoration-color: var(--primary);
}

.article-cta {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    color: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    margin-top: 3rem;
}

.article-cta h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: white;
}

.article-cta p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1.5rem;
}

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

.article-cta .btn-primary:hover {
    background: var(--bg-tertiary);
}

/* Active nav link */
.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

/* ========================================
   Park Detail Page
   ======================================== */
.park-detail {
    padding: 3rem 0;
}

.park-detail-header {
    margin-bottom: 2rem;
}

.park-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.park-detail-title {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.park-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.park-detail-content {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 2rem;
}

.park-detail-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.park-section {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

.park-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.park-description {
    font-size: 1.0625rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.hours-display {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--primary);
    margin-bottom: 1rem;
}

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

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-secondary);
    border-radius: var(--radius);
}

.feature-icon {
    font-size: 1.25rem;
}

.feature-label {
    font-weight: 500;
    color: var(--text-primary);
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.detail-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.detail-value {
    font-weight: 600;
    color: var(--text-primary);
}

.tips-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tips-list li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-secondary);
}

.tips-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary);
    font-weight: bold;
}

.park-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-card {
    background: white;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    padding: 1.5rem;
}

.sidebar-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.quick-info {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.info-row {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-light);
}

.info-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.info-label {
    color: var(--text-muted);
}

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

.nearby-parks {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nearby-parks li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-light);
}

.nearby-parks li:last-child {
    border-bottom: none;
}

.nearby-parks a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.nearby-parks a:hover {
    text-decoration: underline;
}

.share-buttons {
    display: flex;
    gap: 0.75rem;
}

.share-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: var(--radius);
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.875rem;
    color: white;
}

.share-btn.facebook {
    background: #1877f2;
}

.share-btn.twitter {
    background: #1da1f2;
}

.back-section {
    padding: 2rem 0 4rem;
}

@media (max-width: 900px) {
    .park-detail-content {
        grid-template-columns: 1fr;
    }

    .park-detail-title {
        font-size: 1.75rem;
    }

    .details-grid {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .header,
    .filters-section,
    .modal,
    .search-box,
    .hero-stats,
    .breadcrumbs {
        display: none !important;
    }

    .hero {
        padding: 2rem 0;
        background: none;
        color: var(--text-primary);
    }

    .park-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid var(--border-color);
    }
}
