/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.5;
    color: #222;
    background-color: #fff;
    font-size: 16px;
}

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.header {
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.95);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    gap: 32px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 24px;
    font-weight: 600;
    color: #000;
    text-decoration: none;
    letter-spacing: -0.02em;
    transition: all 0.3s ease;
}

.logo:hover {
    color: #ff385c;
    transform: translateY(-1px);
}

.logo-icon {
    color: #ff385c;
    transition: transform 0.3s ease;
}

.logo:hover .logo-icon {
    transform: rotate(5deg) scale(1.1);
}

/* Search form */
.search-form {
    display: flex;
    gap: 0;
    flex: 1;
    max-width: 480px;
    margin-left: auto;
    border: 1px solid #e1e5e9;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.search-input {
    flex: 1;
    padding: 14px 20px;
    border: none;
    font-size: 16px;
    background-color: #fff;
    color: #222;
}

.search-input:focus {
    outline: none;
}

.search-input::placeholder {
    color: #717171;
}

.search-button {
    padding: 14px 24px;
    background-color: #ff385c;
    color: white;
    border: none;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-button:hover {
    background-color: #e31c5f;
}

/* Main content */
.main {
    padding: 32px 0 64px;
    min-height: calc(100vh - 200px);
}

/* Search results info */
.search-results {
    margin-bottom: 24px;
}

.search-info {
    font-size: 16px;
    color: #717171;
    font-weight: 400;
}

/* Events grid */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 24px;
    margin-bottom: 48px;
}

/* Event cards */
.event-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.event-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: #e1e5e9;
}

.event-image {
    width: 100%;
    height: 240px;
    overflow: hidden;
    background-color: #f7f7f7;
}

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

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

.event-content {
    padding: 20px;
}

.event-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.event-title a {
    color: #222;
    text-decoration: none;
    transition: color 0.2s ease;
}

.event-title a:hover {
    color: #ff385c;
}

.event-date {
    display: block;
    font-size: 14px;
    color: #717171;
    font-weight: 400;
    margin-bottom: 6px;
}

.event-location {
    font-size: 14px;
    color: #717171;
    margin-bottom: 8px;
}

.event-description {
    font-size: 14px;
    color: #717171;
    line-height: 1.5;
    margin-bottom: 12px;
}

.event-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
}

.event-source {
    display: inline-block;
    padding: 4px 10px;
    background-color: #f7f7f7;
    color: #717171;
    font-size: 12px;
    font-weight: 500;
    border-radius: 20px;
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 120px 20px;
    color: #717171;
}

.empty-state h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #222;
    letter-spacing: -0.02em;
}

.empty-state p {
    font-size: 16px;
    line-height: 1.5;
}

/* Footer */
.footer {
    background-color: #f7f7f7;
    padding: 32px 0;
    text-align: center;
    color: #717171;
    font-size: 14px;
    margin-top: 64px;
}

/* Event Detail Page */
.back-link {
    color: #717171;
    text-decoration: none;
    font-size: 16px;
    font-weight: 400;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #222;
}

.event-detail {
    max-width: 800px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #f0f0f0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.event-detail-image {
    width: 100%;
    height: 400px;
    overflow: hidden;
    background-color: #f7f7f7;
}

.event-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-detail-content {
    padding: 32px;
}

.event-detail-header {
    margin-bottom: 24px;
}

.event-source-badge {
    display: inline-block;
    padding: 6px 12px;
    background-color: #f7f7f7;
    color: #717171;
    font-size: 13px;
    font-weight: 500;
    border-radius: 20px;
    margin-bottom: 12px;
}

.event-detail-title {
    font-size: 32px;
    font-weight: 600;
    color: #222;
    line-height: 1.3;
    letter-spacing: -0.02em;
    margin: 0;
}

.event-detail-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
    padding: 24px 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

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

.meta-label {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.meta-value {
    font-size: 16px;
    color: #717171;
    line-height: 1.5;
}

.event-detail-description {
    margin-bottom: 32px;
}

.event-detail-description h2 {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.event-detail-description p {
    font-size: 16px;
    color: #717171;
    line-height: 1.6;
}

.event-detail-actions {
    text-align: center;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.primary-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 16px 32px;
    background-color: #ff385c;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    transition: background-color 0.2s ease;
    margin-bottom: 16px;
}

.primary-button:hover {
    background-color: #e31c5f;
}

.primary-button svg {
    width: 16px;
    height: 16px;
}

.source-attribution {
    font-size: 14px;
    color: #717171;
    margin: 0;
}

/* Transportation Page Styles */
.transport-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 24px;
    margin-top: 32px;
}

.transport-card {
    background: #fff;
    border-radius: 16px;
    border: 1px solid #f0f0f0;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.transport-card:hover {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.transport-content {
    padding: 24px;
}

.transport-title {
    font-size: 20px;
    font-weight: 600;
    color: #222;
    margin-bottom: 8px;
    line-height: 1.3;
}

.transport-type {
    font-size: 14px;
    color: #ff385c;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.transport-description {
    font-size: 16px;
    color: #717171;
    line-height: 1.5;
    margin-bottom: 16px;
}

.transport-price,
.transport-contact {
    font-size: 14px;
    color: #555;
    margin-bottom: 12px;
    padding: 8px 0;
    border-top: 1px solid #f0f0f0;
}

.transport-link {
    margin-top: 16px;
}

.link-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #ff385c;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.link-button:hover {
    background-color: #e31c5f;
}

/* Price range styling */
.price-range {
    background-color: #f0f8f0;
    color: #2d7d32;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

/* Search placeholder styling */
.search-placeholder {
    color: #717171;
    font-size: 16px;
    font-weight: 500;
}

/* Responsive design */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
        gap: 20px;
    }
    
    .search-form {
        max-width: 100%;
        margin-left: 0;
    }
    
    .events-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .event-card {
        margin-bottom: 0;
    }
    
    .event-content {
        padding: 20px;
    }
    
    .container {
        padding: 0 16px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 24px;
    }
    
    .search-input,
    .search-button {
        font-size: 16px;
        padding: 10px 14px;
    }
    
    .search-form {
        flex-direction: column;
    }
    
    .search-button {
        padding: 12px 24px;
    }
    
    .event-title {
        font-size: 20px;
    }
    
    .empty-state h2 {
        font-size: 28px;
    }
    
    /* Navigation Tabs */
.nav-tabs {
    background: linear-gradient(135deg, #fff 0%, #fafbfc 100%);
    border-bottom: 1px solid #e8eaed;
    margin-bottom: 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tab-list {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 8px 12px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tab-list::-webkit-scrollbar {
    display: none;
}

.tab-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 20px;
    color: #5f6368;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    border-radius: 24px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    white-space: nowrap;
    min-width: fit-content;
    position: relative;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(10px);
}

.tab-link:hover {
    color: #1a73e8;
    background: rgba(26, 115, 232, 0.08);
    border-color: rgba(26, 115, 232, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
}

.tab-link.active {
    color: #fff;
    background: linear-gradient(135deg, #ff385c 0%, #e31c5f 100%);
    border-color: transparent;
    font-weight: 600;
    box-shadow: 0 4px 20px rgba(255, 56, 92, 0.3);
}

.tab-link.active .tab-icon {
    filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.3));
}

.tab-icon {
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.tab-link:hover .tab-icon {
    transform: scale(1.1);
}

.tab-link.active .tab-icon {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .tab-link {
        padding: 12px 16px;
        font-size: 14px;
        gap: 6px;
    }
    
    .tab-icon {
        width: 18px;
        height: 18px;
    }
    
    .tab-link span {
        display: none;
    }
    
    .tab-list {
        justify-content: space-around;
        gap: 4px;
    }
    
    .tab-link {
        flex: 1;
        justify-content: center;
        min-width: auto;
    }
}

/* Google Ads Styling */
.ad-container {
    margin: 24px 0;
    text-align: center;
    border-radius: 8px;
    overflow: hidden;
}

.ad-banner {
    margin: 32px 0;
    max-width: 100%;
}

.ad-feed {
    grid-column: 1 / -1;
    margin: 16px 0;
    padding: 16px;
    background-color: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 12px;
}

.ad-sidebar {
    position: sticky;
    top: 120px;
    height: fit-content;
    margin: 24px 0;
}

/* Responsive ad adjustments */
@media (max-width: 768px) {
    .ad-container {
        margin: 16px 0;
    }
    
    .ad-banner {
        margin: 24px 0;
    }
    
    .ad-feed {
        margin: 12px 0;
        padding: 12px;
    }
}

/* Event Detail Mobile */
@media (max-width: 768px) {
    .event-detail-content {
        padding: 24px 20px;
    }
    
    .event-detail-title {
        font-size: 28px;
    }
    
    .event-detail-meta {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .event-detail-image {
        height: 280px;
    }
    
    .primary-button {
        padding: 14px 28px;
        font-size: 16px;
    }
}
