
/* =========================================
   HOMEPAGE NEW DESIGN SYSTEM
   ========================================= */

/* Hero */
.home-hero {
    position: relative;
    background: #0a0a1a;
    padding: 36px 16px 28px;
    overflow: hidden;
}
/* When search is active, allow dropdown to overflow hero boundaries */
.home-hero:has(.home-search-results--visible),
.home-hero.home-hero--search-open {
    overflow: visible;
}
.home-hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(255, 56, 56, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 50%, rgba(110, 61, 131, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 100%, rgba(255, 56, 56, 0.06) 0%, transparent 60%);
}
.home-hero__content {
    position: relative;
    z-index: 10;
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
}
.home-hero__title {
    color: #fff;
    font-size: 20px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 6px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}
.home-hero__subtitle {
    color: rgba(255,255,255,0.45);
    font-size: 12px;
    text-align: center;
    margin: 0 0 20px;
    line-height: 1.5;
    font-weight: 400;
}
@media (min-width: 640px) {
    .home-hero { padding: 56px 40px 40px; }
    .home-hero__title { font-size: 36px; margin-bottom: 10px; }
    .home-hero__subtitle { font-size: 15px; margin-bottom: 32px; }
}
@media (min-width: 1024px) {
    .home-hero { padding: 64px 40px 48px; }
    .home-hero__title { font-size: 42px; }
    .home-hero__subtitle { font-size: 16px; margin-bottom: 36px; }
}

/* Search Bar */
.home-search-bar {
    display: flex;
    align-items: stretch;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}
.home-search-bar:focus-within {
    box-shadow: 0 8px 40px rgba(255, 56, 56, 0.15), 0 8px 32px rgba(0,0,0,0.25);
}
.home-search-bar__icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 41;
    display: flex;
    align-items: center;
    pointer-events: none;
}
.home-search-bar__icon svg {
    width: 18px;
    height: 18px;
}
.home-search-input {
    width: 100%;
    border: none;
    outline: none;
    padding: 14px 12px 14px 40px;
    font-size: 14px;
    border-radius: 0;
    background: transparent;
    color: #111;
}
.home-search-input:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
}
.home-search-input::placeholder {
    color: #b0b0b0;
}
.home-search-btn {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #FF3838, #e02020);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    padding: 14px 18px;
    border: none;
    border-radius: 0;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}
.home-search-btn:hover {
    opacity: 0.9;
}
.home-search-btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Search Results Dropdown */
.home-search-results {
    position: absolute;
    background: #fff;
    width: 100%;
    left: 0;
    top: 100%;
    border-radius: 0 0 14px 14px;
    padding: 0;
    box-shadow: 0 12px 40px rgba(0,0,0,0.18);
    z-index: 55;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.25s ease, opacity 0.2s ease;
    border-top: 1px solid #f3f4f6;
}
.home-search-results--visible {
    max-height: 70vh;
    overflow-y: auto;
    opacity: 1;
    padding: 6px 0;
}
.home-search-results ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}
.home-search-results__empty {
    text-align: center;
    color: #9ca3af;
    font-size: 13px;
    padding: 20px 16px;
    margin: 0;
    display: none;
}

/* Search Result Item */
.home-search-result-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
    text-decoration: none;
    color: #111827;
    transition: background 0.15s ease;
    cursor: pointer;
}
.home-search-result-item:hover {
    background: #f9fafb;
}
.home-search-result-item__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    border-radius: 8px;
    color: #6b7280;
}
.home-search-result-item__text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.home-search-result-item__name {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-search-result-item__date {
    font-size: 11px;
    color: #9ca3af;
    font-weight: 400;
}
.home-search-result-item__arrow {
    flex-shrink: 0;
    color: #d1d5db;
    display: flex;
    align-items: center;
    transition: color 0.15s;
}
.home-search-result-item:hover .home-search-result-item__arrow {
    color: #FF3838;
}
@media (min-width: 640px) {
    .home-search-result-item { padding: 12px 20px; gap: 12px; }
    .home-search-result-item__icon { width: 36px; height: 36px; }
    .home-search-result-item__name { font-size: 14px; }
    .home-search-result-item__date { font-size: 12px; }
    .home-search-results--visible { max-height: 50vh; }
}

/* Search Loading Skeleton */
.search-loading-skeleton {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 4px 0;
}
.search-loading-skeleton__row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 16px;
}
@media (min-width: 640px) {
    .search-loading-skeleton__row { padding: 12px 20px; gap: 12px; }
}
.search-loading-skeleton__icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    background: #e5e7eb;
    border-radius: 8px;
    animation: searchShimmer 1.4s ease infinite;
}
@media (min-width: 640px) {
    .search-loading-skeleton__icon { width: 36px; height: 36px; }
}
.search-loading-skeleton__lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.search-loading-skeleton__line {
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    animation: searchShimmer 1.4s ease infinite;
}
.search-loading-skeleton__line--title { width: 70%; }
.search-loading-skeleton__line--sub { width: 45%; height: 10px; }
.search-loading-skeleton__row:nth-child(2) .search-loading-skeleton__line--title { width: 85%; }
.search-loading-skeleton__row:nth-child(2) .search-loading-skeleton__line--sub { width: 35%; }
.search-loading-skeleton__row:nth-child(3) .search-loading-skeleton__line--title { width: 60%; }
.search-loading-skeleton__row:nth-child(3) .search-loading-skeleton__line--sub { width: 50%; }
@keyframes searchShimmer {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

/* Search Overlay */
.home-search-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    z-index: 9;
    pointer-events: none;
    transition: background 0.3s ease;
}
.home-search-overlay--visible {
    background: rgba(0, 0, 0, 0.5);
    pointer-events: auto;
    cursor: pointer;
}

/* Search wrap z-index when active */
.home-hero__search-wrap {
    margin-bottom: 16px;
    position: relative;
    z-index: 10;
}
.home-hero__search-wrap--active {
    z-index: 30;
}
@media (min-width: 640px) {
    .home-search-bar__icon { left: 20px; }
    .home-search-bar__icon svg { width: 22px; height: 22px; }
    .home-search-input { padding: 20px 24px 20px 54px; font-size: 16px; }
    .home-search-btn { padding: 20px 28px; font-size: 15px; gap: 8px; }
    .home-hero__search-wrap { margin-bottom: 20px; }
}
@media (min-width: 1024px) {
    .home-search-input { padding: 22px 24px 22px 56px; font-size: 17px; }
    .home-search-btn { padding: 22px 32px; font-size: 16px; }
    .home-hero__search-wrap { margin-bottom: 24px; }
}

/* Popular Tags */
.home-hero__tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}
.home-hero__tags-label {
    display: flex;
    align-items: center;
    gap: 4px;
    color: rgba(255,255,255,0.45);
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}
.home-hero__tags-label svg {
    color: #FF3838;
}
.home-hero__tag {
    display: inline-block;
    padding: 4px 10px;
    background: rgba(255,255,255,0.07);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 20px;
    color: rgba(255,255,255,0.7);
    font-size: 11px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.home-hero__tag:hover {
    background: rgba(255, 56, 56, 0.15);
    border-color: rgba(255, 56, 56, 0.3);
    color: #fff;
}
@media (min-width: 640px) {
    .home-hero__tags { gap: 8px; margin-bottom: 28px; }
    .home-hero__tags-label { font-size: 12px; gap: 5px; }
    .home-hero__tag { padding: 5px 14px; font-size: 12px; }
}

/* Featured Events Strip in Hero */
.home-hero__events {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 4px;
}
.home-hero__events::-webkit-scrollbar {
    display: none;
}
.home-hero__event-chip {
    flex-shrink: 0;
    position: relative;
    width: 140px;
    height: 80px;
    border-radius: 10px;
    overflow: hidden;
    scroll-snap-align: start;
    text-decoration: none;
    transition: transform 0.2s ease;
}
.home-hero__event-chip:hover {
    transform: scale(1.04);
}
.home-hero__event-chip img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.home-hero__event-chip-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.75) 0%, rgba(0,0,0,0.1) 50%, transparent 100%);
}
.home-hero__event-chip-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 6px 8px;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.home-hero__event-chip-date {
    font-size: 9px;
    font-weight: 700;
    color: #FF3838;
    text-transform: uppercase;
}
.home-hero__event-chip-title {
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (min-width: 640px) {
    .home-hero__events { gap: 12px; justify-content: center; flex-wrap: wrap; overflow-x: visible; }
    .home-hero__event-chip { width: 180px; height: 100px; border-radius: 12px; }
    .home-hero__event-chip-info { padding: 8px 10px; gap: 2px; }
    .home-hero__event-chip-date { font-size: 10px; }
    .home-hero__event-chip-title { font-size: 12px; }
}
@media (min-width: 1024px) {
    .home-hero__events { gap: 14px; }
    .home-hero__event-chip { width: 200px; height: 110px; }
}

/* Sections Container */
.home-sections {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 12px;
    overflow-x: clip;
}
@media (min-width: 640px) {
    .home-sections { padding: 0 40px; }
}
@media (min-width: 1024px) {
    .home-sections { padding: 0 10px; }
}

/* Section Block */
.home-section {
    padding: 16px 0;
}
@media (min-width: 640px) {
    .home-section { padding: 32px 0; }
}

/* Section Header */
.home-section__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.home-section__title {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 600;
    color: #111;
    line-height: 1.3;
}
.home-section__title svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
@media (min-width: 640px) {
    .home-section__header { margin-bottom: 16px; }
    .home-section__title { font-size: 22px; gap: 8px; }
    .home-section__title svg { width: 18px; height: 18px; }
}

/* Events Grid (card layout) */
.home-events-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
@media (min-width: 640px) {
    .home-events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
@media (min-width: 768px) {
    .home-events-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 14px;
    }
}
@media (min-width: 1024px) {
    .home-events-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

/* =========================================
   HOME EVENT CARD (dedicated homepage card)
   ========================================= */
.home-event-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    height: 100%;
}
.home-event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}
.home-event-card__image {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    flex-shrink: 0;
}
.home-event-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.home-event-card__date-badge {
    position: absolute;
    top: 5px;
    left: 5px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(4px);
    border-radius: 5px;
    padding: 2px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 30px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.home-event-card__month {
    font-size: 7px;
    font-weight: 700;
    color: #FF3838;
    text-transform: uppercase;
    line-height: 1;
    letter-spacing: 0.5px;
}
.home-event-card__day {
    font-size: 13px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}
.home-event-card__body {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding: 8px;
    flex: 1;
}
.home-event-card__title {
    font-size: 12px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.home-event-card__meta {
    display: flex;
    align-items: center;
    gap: 3px;
    font-size: 9px;
    color: #6b7280;
    line-height: 1.2;
}
.home-event-card__meta svg {
    flex-shrink: 0;
    color: #9ca3af;
    width: 9px;
    height: 9px;
}
.home-event-card__meta span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.home-event-card__footer {
    margin-top: auto;
    padding: 0;
}
.home-event-card__price {
    font-size: 13px;
    font-weight: 800;
    color: #111827;
    line-height: 1.2;
}
.home-event-card__tickets {
    font-size: 9px;
    font-weight: 600;
    color: #FF3838;
    margin-top: 1px;
}
.home-event-card__no-ticket {
    font-size: 10px;
    color: #9ca3af;
}
@media (min-width: 640px) {
    .home-event-card { border-radius: 12px; }
    .home-event-card__date-badge { top: 8px; left: 8px; padding: 4px 8px; border-radius: 8px; min-width: 40px; }
    .home-event-card__month { font-size: 9px; }
    .home-event-card__day { font-size: 18px; }
    .home-event-card__body { padding: 12px; gap: 5px; }
    .home-event-card__title { font-size: 14px; }
    .home-event-card__meta { font-size: 11px; gap: 5px; }
    .home-event-card__meta svg { width: 12px; height: 12px; }
    .home-event-card__footer { padding: 0; }
    .home-event-card__price { font-size: 16px; }
    .home-event-card__tickets { font-size: 11px; margin-top: 2px; }
}
@media (min-width: 1024px) {
    .home-event-card__body { padding: 14px; gap: 6px; }
    .home-event-card__footer { padding: 0; }
}

/* Events List (row layout - category page style) */
.home-events-list {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

/* Event Row (category page style) */
.home-event-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 10px;
    border-bottom: 1px solid #f3f4f6;
    text-decoration: none;
    color: inherit;
    transition: all 0.18s ease;
    cursor: pointer;
}
.home-event-row:last-child {
    border-bottom: none;
}
.home-event-row:hover {
    background: #f9fafb;
    box-shadow: inset 3px 0 0 0 #FF3838;
}
@media (min-width: 640px) {
    .home-event-row { gap: 12px; padding: 12px 16px; }
}

/* Date Badge */
.home-event-row__date {
    flex-shrink: 0;
    width: 38px;
    text-align: center;
    background: #f9fafb;
    border-radius: 6px;
    padding: 4px 2px;
}
.home-event-row__month {
    font-size: 9px;
    font-weight: 600;
    color: #FF3838;
    text-transform: uppercase;
    line-height: 1;
}
.home-event-row__day {
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
}
.home-event-row__weekday {
    font-size: 8px;
    color: #9ca3af;
    line-height: 1;
}
@media (min-width: 640px) {
    .home-event-row__date { width: 44px; border-radius: 8px; padding: 6px 2px; }
    .home-event-row__month { font-size: 10px; }
    .home-event-row__day { font-size: 18px; }
    .home-event-row__weekday { font-size: 9px; }
}

/* Event Info */
.home-event-row__info {
    flex: 1;
    min-width: 0;
}
.home-event-row__title-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}
.home-event-row__title {
    font-weight: 600;
    font-size: 12px;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (max-width: 639px) {
    .home-event-row__title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .home-event-row__title-wrap {
        flex-wrap: wrap;
        gap: 3px;
    }
}
@media (min-width: 640px) {
    .home-event-row__title { font-size: 13px; }
    .home-event-row__title-wrap { gap: 6px; }
}
.home-event-row__meta {
    display: flex;
    align-items: center;
    gap: 3px;
    margin-top: 2px;
    font-size: 10px;
    color: #9ca3af;
}
.home-event-row__meta span:last-child {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
@media (min-width: 640px) {
    .home-event-row__meta { font-size: 11px; gap: 4px; }
}

/* Price */
.home-event-row__price {
    flex-shrink: 0;
    text-align: right;
    min-width: 70px;
}
.home-event-row__price-value {
    font-weight: 700;
    font-size: 12px;
    color: #111827;
    line-height: 1.3;
}
.home-event-row__tickets {
    font-size: 9px;
    color: #FF3838;
    font-weight: 500;
    line-height: 1;
    margin-top: 1px;
}
@media (min-width: 640px) {
    .home-event-row__price { min-width: 90px; }
    .home-event-row__price-value { font-size: 13px; }
    .home-event-row__tickets { font-size: 10px; margin-top: 2px; }
}

/* Badges */
.home-badge {
    font-size: 8px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
}
@media (min-width: 640px) {
    .home-badge { font-size: 9px; padding: 2px 7px; }
}
.home-badge--popular {
    background: #FFF1F0;
    color: #FF3838;
}
.home-badge--featured {
    background: #FFF7ED;
    color: #EA580C;
}
.home-badge--nearby {
    background: #EFF6FF;
    color: #2563EB;
}

/* Categories Grid */
.home-categories-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}
@media (min-width: 640px) {
    .home-categories-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
@media (min-width: 1024px) {
    .home-categories-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }
}

/* 12-column Grid System */
.home-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 0 24px;
    min-width: 0;
}
.home-col-1 { grid-column: span 1; }
.home-col-2 { grid-column: span 2; }
.home-col-3 { grid-column: span 3; }
.home-col-4 { grid-column: span 4; }
.home-col-5 { grid-column: span 5; }
.home-col-6 { grid-column: span 6; }
.home-col-7 { grid-column: span 7; }
.home-col-8 { grid-column: span 8; }
.home-col-9 { grid-column: span 9; }
.home-col-10 { grid-column: span 10; }
.home-col-11 { grid-column: span 11; }
.home-col-12 { grid-column: span 12; }

/* All sections stretch to fill their grid area */
.home-grid > .home-section {
    justify-self: stretch;
    width: 100%;
    min-width: 0;
}

.home-events-list,
.home-events-grid,
.home-categories-grid {
    min-width: 0;
    max-width: 100%;
}

/* On small screens, all sections full width */
@media (max-width: 1023px) {
    .home-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .home-col-1, .home-col-2, .home-col-3,
    .home-col-4, .home-col-5, .home-col-6,
    .home-col-7, .home-col-8, .home-col-9,
    .home-col-10, .home-col-11, .home-col-12 {
        grid-column: span 1;
    }
    /* Hide spacers on mobile — no point in empty space on single column */
    .home-grid > div:not(.home-section) {
        display: none;
    }
}

/* Adjust events-grid inside smaller columns */
.home-col-3 .home-events-grid,
.home-col-4 .home-events-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}
.home-col-6 .home-events-grid {
    grid-template-columns: repeat(3, 1fr) !important;
}
@media (max-width: 1023px) {
    .home-col-3 .home-events-grid,
    .home-col-4 .home-events-grid,
    .home-col-6 .home-events-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* Adjust categories grid inside smaller columns */
.home-col-3 .home-categories-grid,
.home-col-4 .home-categories-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}
.home-col-6 .home-categories-grid {
    grid-template-columns: repeat(2, 1fr) !important;
}

/* Pulse animation for skeletons */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Event row hover (for AJAX-rendered rows like nearby) */
.event-line-row {
    transition: all 0.18s ease;
}
.event-line-row:hover {
    background: #f9fafb !important;
    box-shadow: inset 3px 0 0 0 #FF3838;
}
@media (max-width: 639px) {
    .event-line-row {
        padding: 8px 10px !important;
        gap: 8px !important;
    }
    .event-line-row > div:first-child {
        width: 38px !important;
        padding: 4px 2px !important;
    }
    .event-line-row > div:first-child > div:first-child {
        font-size: 9px !important;
    }
    .event-line-row > div:first-child > div:nth-child(2) {
        font-size: 16px !important;
    }
    .event-line-row > div:first-child > div:last-child {
        font-size: 8px !important;
    }
    .event-line-row > div:last-of-type {
        min-width: 70px !important;
    }
}

/* Event badges */
.event-badge {
    display: inline-block;
    font-size: 8px;
    font-weight: 600;
    padding: 2px 5px;
    border-radius: 10px;
    text-transform: uppercase;
    white-space: nowrap;
    flex-shrink: 0;
    vertical-align: middle;
}
@media (min-width: 640px) {
    .event-badge { font-size: 9px; padding: 2px 7px; }
}
.event-badge--featured {
    background: #FFF7ED;
    color: #EA580C;
}
.event-badge--popular {
    background: #FFF1F0;
    color: #FF3838;
}
.event-badge--nearby {
    background: #EFF6FF;
    color: #2563EB;
}

/* iPhone 12 / small mobile refinements */
@media (max-width: 430px) {
    .home-hero,
    .home-sections,
    .home-grid,
    .home-section,
    .home-events-grid,
    .home-events-list {
        max-width: 100%;
        min-width: 0;
    }

    .home-hero {
        padding: 28px 12px 22px;
    }

    .home-hero__title {
        font-size: 18px;
    }

    .home-hero__subtitle {
        font-size: 11px;
        margin-bottom: 14px;
    }

    .home-search-bar {
        border-radius: 12px;
    }

    .home-search-input {
        min-width: 0;
        padding: 12px 10px 12px 36px;
        font-size: 13px;
    }

    .home-search-btn {
        padding: 12px 12px;
        font-size: 12px;
        gap: 4px;
    }

    .home-search-btn svg {
        width: 14px;
        height: 14px;
    }

    .home-hero__events {
        max-width: 100%;
        margin: 0;
        padding: 0 0 4px;
    }

    .home-hero__event-chip {
        width: 124px;
        height: 74px;
    }

    .home-events-grid {
        grid-template-columns: 1fr !important;
        gap: 12px;
    }

    .home-event-row {
        align-items: flex-start;
        padding: 9px 8px;
        gap: 6px;
    }

    .home-event-row__meta {
        margin-top: 3px;
    }

    .home-event-row__price {
        min-width: 64px;
    }

    .home-event-row__price-value {
        font-size: 11px;
        line-height: 1.2;
        word-break: break-word;
    }
}
.event-badge--default {
    background: #F3F4F6;
    color: #6B7280;
}

/* Event title in row */
.event-title-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
}
.event-title {
    font-weight: 600;
    font-size: 12px;
    color: #111827;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}
@media (max-width: 639px) {
    .event-title {
        white-space: normal;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .event-title-wrap {
        flex-wrap: wrap;
        gap: 3px;
    }
}
@media (min-width: 640px) {
    .event-title { font-size: 13px; }
    .event-title-wrap { gap: 6px; }
}

/* =========================================
   NEARBY EVENTS BLUR OVERLAY
   ========================================= */
.nearby-blur-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: #f3f4f6;
}
.nearby-blur-wrapper .nearby-blur-content {
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}
.nearby-blur-wrapper .nearby-blur-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: transparent;
    z-index: 5;
    gap: 10px;
    border-radius: 10px;
}
.nearby-blur-wrapper .nearby-blur-overlay svg {
    width: 28px;
    height: 28px;
    color: #FF3838;
}
.nearby-blur-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #FF3838;
    color: #fff;
    border: none;
    padding: 10px 22px;
    border-radius: 24px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.15s;
    box-shadow: 0 2px 8px rgba(255,56,56,0.25);
}
.nearby-blur-btn:hover {
    background: #e02e2e;
    transform: scale(1.03);
}
.nearby-blur-btn:active {
    transform: scale(0.97);
}
.nearby-blur-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #fff;
    stroke: #fff;
}
/* Revealed state: remove effects */
.nearby-blur-wrapper.nearby-revealed .nearby-blur-content {
    filter: none;
    -webkit-filter: none;
    opacity: 1;
    pointer-events: auto;
    user-select: auto;
    -webkit-user-select: auto;
    transition: filter 0.4s ease, opacity 0.3s ease;
}
.nearby-blur-wrapper.nearby-revealed .nearby-blur-overlay {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
