/* ==========================================================================
   York Events Public Site Styles
   ========================================================================== */

/* ==========================================================================
   Base & Variables
   ========================================================================== */

:root {
    --primary-color: #667eea;
    --primary-dark: #5a67d8;
    --secondary-color: #764ba2;
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
    
    --text-dark: #1a202c;
    --text-medium: #4a5568;
    --text-light: #718096;
    
    --bg-light: #f7fafc;
    --bg-white: #ffffff;
    --border-color: #e2e8f0;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    
    --radius-sm: 4px;
    --radius: 8px;
    --radius-lg: 12px;
    
    --transition: all 0.2s ease-in-out;
}

/* ==========================================================================
   Accessibility
   ========================================================================== */

.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 10000;
    border-radius: 0 0 var(--radius) 0;
}

.skip-link:focus {
    top: 0;
}

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

/* Focus styles */
:focus-visible {
    outline: 3px solid var(--primary-color);
    outline-offset: 2px;
}

/* ==========================================================================
   Layout
   ========================================================================== */

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

main {
    flex: 1;
}

.container {
    max-width: 1200px;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */

.site-header {
    background: var(--bg-white);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    display: flex;
    align-items: center;
    gap: 8px;
}

.navbar-brand img {
    max-height: 40px;
    width: auto;
}

.nav-link {
    font-weight: 500;
    color: var(--text-medium) !important;
    transition: var(--transition);
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius);
}

.nav-link:hover,
.nav-link:focus {
    color: var(--primary-color) !important;
    background: var(--bg-light);
}

/* ==========================================================================
   Breadcrumb
   ========================================================================== */

.breadcrumb-nav {
    background: var(--bg-light);
    padding: 12px 0;
    font-size: 0.875rem;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
}

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

.breadcrumb-item + .breadcrumb-item::before {
    content: "/";
    padding-right: 8px;
    color: var(--text-light);
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: var(--text-light);
}

/* ==========================================================================
   Event Status Banners
   ========================================================================== */

.event-status-banner {
    padding: 16px 0;
    text-align: center;
    font-size: 1rem;
}

.event-passed {
    background: #fff3cd;
    color: #856404;
    border-bottom: 2px solid #ffeaa7;
}

.event-soon {
    background: #d1ecf1;
    color: #0c5460;
    border-bottom: 2px solid #bee5eb;
}

.event-status-banner i {
    margin-right: 8px;
}

.banner-link {
    margin-left: 16px;
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

.banner-link:hover {
    color: inherit;
}

/* ==========================================================================
   Hero Section (Homepage)
   ========================================================================== */

.hero-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 80px 0 30px 0; /* 30px bottom padding inside hero */
    text-align: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
}

/* Ensure content is above any overlay */
.hero-section .container {
    position: relative;
    z-index: 1;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 50px 0; /* 50px internal spacing top and bottom */
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.9;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto 24px;
}

.hero-search .input-group-text {
    background: white;
    border: none;
    padding-left: 20px;
}

.hero-search .form-control {
    border: none;
    padding: 16px;
    font-size: 1.1rem;
}

.hero-search .btn {
    padding: 16px 32px;
    font-weight: 600;
}

.hero-quick-links {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.hero-quick-links span {
    opacity: 0.8;
}

.hero-quick-links a {
    color: white;
    text-decoration: underline;
    font-weight: 500;
}

.hero-quick-links a:hover {
    opacity: 0.8;
}

/* ==========================================================================
   Section Spacing (Homepage)
   ========================================================================== */

.festivals-section,
.new-events-section {
    padding: 80px 0;
}

/* Featured events section - extra top padding for gap below hero */
.featured-events {
    padding: 50px 0 80px 0; /* 50px top gap from hero, 80px bottom */
    background: var(--bg-white);
}

.new-events-section {
    background: var(--bg-white);
}

/* Mobile adjustments for section spacing */
@media (max-width: 768px) {
    .featured-events {
        padding: 40px 0 60px 0;
    }
}

/* ==========================================================================
   Page Header
   ========================================================================== */

.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 60px 0;
}

.page-header-light {
    background: var(--bg-light);
    color: var(--text-dark);
}

.page-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

.page-header-light .page-subtitle {
    color: var(--text-medium);
}

/* ==========================================================================
   Listing Sections (Festivals & Events)
   ========================================================================== */

.festivals-listing,
.events-listing {
    padding: 80px 0;
    background: var(--bg-light);
    margin-top: 0;
}

/* Ensure spacing between page header and listing content */
.page-header + .festivals-listing,
.page-header + .events-listing {
    padding-top: 80px;
}

.filter-form {
    max-width: 600px;
    margin-top: 24px;
}

.filter-form .input-group {
    background: white;
    border-radius: var(--radius-lg);
    overflow: hidden;
    padding: 4px;
}

.filter-form .form-control {
    border: none;
    padding: 12px 16px;
}

.filter-form .btn {
    border-radius: var(--radius);
}

.search-results-info {
    margin-top: 16px;
    font-size: 0.95rem;
    opacity: 0.9;
}

/* ==========================================================================
   Event Cards
   ========================================================================== */

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

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

.event-card:hover,
.event-card:focus-within {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.event-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.event-card-link:hover {
    color: inherit;
}

.event-image {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: var(--bg-light);
}

.event-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.event-card:hover .event-image img {
    transform: scale(1.05);
}

.event-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: var(--text-light);
    font-size: 3rem;
}

.event-festival-badge,
.event-festival-badge-small {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 500;
}

.event-festival-badge-small {
    font-size: 0.7rem;
    padding: 3px 10px;
}

.event-content {
    padding: 20px;
    position: relative;
}

.event-date-badge {
    position: absolute;
    top: -30px;
    right: 20px;
    background: var(--bg-white);
    border-radius: var(--radius);
    padding: 8px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    min-width: 60px;
}

.date-day {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.date-month {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--text-medium);
}

.event-title,
.event-title-small {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding-right: 80px; /* Make room for date badge */
}

.event-title {
    font-size: 1.25rem;
    padding-right: 0;
}

.event-location,
.event-time {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-location i,
.event-time i {
    width: 16px;
    text-align: center;
}

.event-excerpt {
    font-size: 0.9rem;
    color: var(--text-medium);
    margin-top: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.event-date-hint {
    font-size: 0.8rem;
    color: var(--success-color);
    font-weight: 500;
    margin-top: 8px;
}

/* Compact card variant */
.event-card-compact .event-content {
    padding: 16px;
}

.event-card-compact .event-title-small {
    padding-right: 0;
}

.event-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.event-date {
    font-size: 0.85rem;
    color: var(--text-light);
    font-weight: 500;
}

.event-new-badge {
    background: var(--success-color);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 10px;
    text-transform: uppercase;
}

/* ==========================================================================
   Event Detail Page
   ========================================================================== */

.event-hero {
    padding: 40px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.event-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

@media (max-width: 768px) {
    .event-hero-grid {
        grid-template-columns: 1fr;
    }
}

.event-main-image {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.event-info .event-festival-badge {
    position: static;
    display: inline-block;
    margin-bottom: 16px;
    background: rgba(255, 255, 255, 0.2);
}

.event-info .event-title {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 24px;
    line-height: 1.2;
}

.event-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.event-meta > * {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
}

.event-meta i {
    width: 20px;
    opacity: 0.8;
}

.event-meta address {
    margin: 0;
    font-style: normal;
}

.event-actions {
    display: flex;
    gap: 12px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.event-actions .btn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-description-section {
    padding: 60px 0;
}

.event-description-section .section-title {
    font-size: 1.75rem;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.event-description-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-medium);
    max-width: 800px;
}

/* Similar Events Section */
.similar-events {
    padding: 60px 0;
    background: var(--bg-light);
}

.similar-events-empty {
    text-align: center;
}

.similar-events .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.similar-events .section-title {
    font-size: 1.75rem;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.section-subtitle {
    color: var(--text-light);
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
}

.empty-state > i {
    font-size: 4rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

.empty-state h2,
.empty-state h3 {
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.empty-state p {
    color: var(--text-medium);
    margin-bottom: 24px;
}

/* ==========================================================================
   Festivals
   ========================================================================== */

.festivals-section {
    padding: 60px 0;
    background: var(--bg-light);
}

.festivals-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 24px;
}

.festival-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.festival-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.festival-image {
    height: 160px;
    overflow: hidden;
}

.festival-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.festival-card:hover .festival-image img {
    transform: scale(1.05);
}

.festival-content {
    padding: 20px;
}

.festival-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-dark);
}

.festival-description {
    font-size: 0.9rem;
    color: var(--text-medium);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Festival Large Cards */
.festivals-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 32px;
}

.festival-card-large {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

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

.festival-image-large {
    height: 220px;
    overflow: hidden;
}

.festival-image-large img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.festival-card-large:hover .festival-image-large img {
    transform: scale(1.05);
}

.festival-image-placeholder-large {
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-size: 4rem;
}

.festival-content-large {
    padding: 28px;
}

.festival-content-large .festival-title {
    font-size: 1.5rem;
    margin-bottom: 16px;
}

.festival-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    color: var(--text-medium);
}

.festival-meta i {
    width: 20px;
    color: var(--primary-color);
}

.festival-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 16px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Festival Hero */
.festival-hero {
    padding: 60px 0;
    background: var(--bg-light);
}

.festival-hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: center;
}

@media (max-width: 768px) {
    .festival-hero-grid {
        grid-template-columns: 1fr;
    }
}

.festival-hero-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.festival-hero-content .festival-title {
    font-size: 2.5rem;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.festival-hero-content .festival-meta {
    gap: 12px;
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.festival-hero-content .festival-description {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 24px;
}

.festival-events {
    padding: 60px 0;
}

/* ==========================================================================
   Services / Company Signup
   ========================================================================== */

.services-section {
    padding: 60px 0;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
}

.service-card {
    background: var(--bg-white);
    border-radius: var(--radius-lg);
    padding: 32px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

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

.service-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.75rem;
    margin-bottom: 20px;
}

.service-card h2 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.service-card p {
    color: var(--text-medium);
    margin-bottom: 16px;
}

.service-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.service-card li {
    padding: 6px 0;
    color: var(--text-light);
    display: flex;
    align-items: center;
    gap: 8px;
}

.service-card li::before {
    content: "✓";
    color: var(--success-color);
    font-weight: 700;
}

.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.cta-section-dark {
    background: var(--text-dark);
}

.cta-content h2 {
    font-size: 2rem;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 24px;
}

.cta-buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-info {
    margin: 32px 0;
}

.contact-info p {
    margin-bottom: 8px;
}

.contact-info a {
    color: white;
    text-decoration: underline;
}

.contact-section {
    padding: 60px 0;
}

/* ==========================================================================
   Section Headers
   ========================================================================== */

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    flex-wrap: wrap;
    gap: 16px;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

/* ==========================================================================
   Pagination
   ========================================================================== */

.pagination-nav {
    margin-top: 48px;
}

.pagination {
    gap: 8px;
}

.page-link {
    padding: 10px 16px;
    border-radius: var(--radius);
    color: var(--primary-color);
    border: 1px solid var(--border-color);
    transition: var(--transition);
}

.page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.page-item.active .page-link {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.page-item.disabled .page-link {
    color: var(--text-light);
    background: var(--bg-light);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.site-footer {
    background: var(--text-dark);
    color: white;
    padding: 60px 0 24px;
}

.site-footer h5 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: white;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: var(--transition);
}

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

.site-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer li {
    margin-bottom: 8px;
}

.site-footer address {
    font-style: normal;
}

.site-footer address i {
    width: 20px;
    margin-right: 8px;
}

.social-links {
    display: flex;
    gap: 16px;
    margin-top: 16px;
}

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.social-links a:hover {
    background: var(--primary-color);
}

/* App Store Badges (Footer) */
.app-store-badges {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 16px;
    align-items: flex-start;
}

.app-store-badges a {
    display: block;
    transition: var(--transition);
    line-height: 0;
}

.app-store-badges a:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.app-store-badges img {
    height: 40px;
    width: auto;
    display: block;
}

/* Google Play badge has built-in padding, adjust to match App Store */
.app-store-badges img[src*="google-play-badge"] {
    height: 56px;
    margin: -8px -8px;
}

/* App Download Section (for listings pages) */
.app-download-section {
    background: var(--bg-light);
    padding: 40px 0;
    border-top: 1px solid var(--border-color);
}

.app-download-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    flex-wrap: wrap;
}

.app-download-text {
    text-align: center;
}

.app-download-text h3 {
    font-size: 2rem;
    margin-bottom: 12px;
    color: var(--text-dark);
}

.app-download-text p {
    font-size: 1.1rem;
    color: var(--text-medium);
    margin-bottom: 0;
}

.app-download-badges {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.app-download-badges a {
    display: block;
    transition: var(--transition);
    line-height: 0;
}

.app-download-badges a:hover {
    opacity: 0.8;
    transform: scale(1.02);
}

.app-download-badges img {
    height: 48px;
    width: auto;
    display: block;
}

/* Google Play badge has built-in padding, adjust to match App Store */
.app-download-badges img[src*="google-play-badge"] {
    height: 64px;
    margin: -8px -8px;
}

@media (max-width: 768px) {
    .app-download-content {
        flex-direction: column;
        gap: 24px;
    }
}

.site-footer hr {
    border-color: rgba(255, 255, 255, 0.1);
    margin: 40px 0 24px;
}

/* ==========================================================================
   Error Pages
   ========================================================================== */

.error-page {
    padding: 80px 0;
}

.error-code {
    font-size: 6rem;
    color: var(--text-light);
    margin-bottom: 24px;
}

.error-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.error-message {
    font-size: 1.25rem;
    color: var(--text-medium);
    margin-bottom: 8px;
}

.error-details {
    color: var(--text-light);
    margin-bottom: 32px;
}

.error-details code {
    background: var(--bg-light);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
}

.similar-suggestions {
    margin: 40px 0;
}

.similar-suggestions h2 {
    font-size: 1.25rem;
    margin-bottom: 24px;
    color: var(--text-dark);
}

.events-grid-small {
    max-width: 800px;
    margin: 0 auto;
}

.error-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}

.error-help {
    max-width: 400px;
    margin: 0 auto;
}

.error-search .input-group {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 4px;
}

.error-search .form-control {
    border: none;
    background: transparent;
}

/* ==========================================================================
   Utility Classes
   ========================================================================== */

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    padding: 10px 20px;
    border-radius: var(--radius);
    transition: var(--transition);
}

.btn-lg {
    padding: 14px 28px;
    font-size: 1.1rem;
}

.btn-sm {
    padding: 6px 14px;
    font-size: 0.875rem;
}

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

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

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

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

.btn-outline-light {
    border-color: white;
    color: white;
}

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

.btn-outline-secondary {
    border-color: var(--border-color);
    color: var(--text-medium);
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
    .hero-section {
        padding: 60px 0 20px 0;
        min-height: 400px;
    }

    .hero-content {
        padding: 40px 0;
    }

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

    .hero-subtitle {
        font-size: 1rem;
    }

    .festivals-section,
    .new-events-section {
        padding: 60px 0;
    }

    /* featured-events has its own mobile padding defined earlier */
    
    .event-title {
        font-size: 1.75rem;
    }
    
    .event-info .event-title {
        font-size: 1.75rem;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .festivals-grid-large {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .error-code {
        font-size: 4rem;
    }
    
    .error-title {
        font-size: 1.75rem;
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .site-header,
    .site-footer,
    .event-actions,
    .similar-events,
    .breadcrumb-nav,
    .hero-quick-links,
    .filter-form {
        display: none !important;
    }
    
    .event-hero {
        background: white !important;
        color: black !important;
        padding: 20px 0;
    }
    
    .event-info .event-title {
        color: black !important;
    }
    
    .event-main-image {
        max-width: 300px;
    }
    
    a[href]::after {
        content: " (" attr(href) ")";
        font-size: 0.8rem;
        color: #666;
    }
}
