/* Ontario Festivals – Nearby Attractions: Public Styles */

.ofn-wrap {
    font-family: inherit;
    margin: 36px 0;
}

.ofn-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 20px;
}

.ofn-header-icon {
    font-size: 32px;
    line-height: 1;
}

.ofn-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 4px;
    color: #1a1a2e;
}

.ofn-subtitle {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Category Filters */
.ofn-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.ofn-filter {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 99px;
    padding: 6px 14px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    color: #374151;
}

.ofn-filter:hover,
.ofn-filter.active {
    background: #1a1a2e;
    border-color: #1a1a2e;
    color: #fff;
}

/* Grid */
.ofn-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

/* Cards */
.ofn-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    display: flex;
    flex-direction: column;
}

.ofn-card:hover {
    box-shadow: 0 6px 24px rgba(0,0,0,0.10);
    transform: translateY(-2px);
}

.ofn-card.ofn-featured {
    border-color: #f59e0b;
    box-shadow: 0 2px 12px rgba(245, 158, 11, 0.15);
}

.ofn-card-img {
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.ofn-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ofn-card-body {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.ofn-card-top {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.ofn-cat-badge {
    font-size: 12px;
    background: #f3f4f6;
    border-radius: 99px;
    padding: 3px 10px;
    color: #374151;
    font-weight: 500;
}

.ofn-featured-badge {
    font-size: 11px;
    background: #fef3c7;
    border: 1px solid #f59e0b;
    border-radius: 99px;
    padding: 3px 10px;
    color: #92400e;
    font-weight: 600;
}

.ofn-card-name {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 10px;
    line-height: 1.3;
}

.ofn-card-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 14px;
    flex: 1;
}

.ofn-meta-item {
    font-size: 13px;
    color: #555;
    display: flex;
    align-items: flex-start;
    gap: 5px;
}

.ofn-address {
    color: #777;
}

.ofn-card-link {
    display: inline-block;
    background: #1a1a2e;
    color: #fff;
    text-decoration: none;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-align: center;
    transition: background 0.2s;
    margin-top: auto;
}

.ofn-card-link:hover {
    background: #2d2d4e;
    color: #fff;
    text-decoration: none;
}

.ofn-featured .ofn-card-link {
    background: #d97706;
}

.ofn-featured .ofn-card-link:hover {
    background: #b45309;
}

.ofn-empty {
    color: #888;
    text-align: center;
    padding: 30px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px dashed #e5e7eb;
}

/* Hidden for filter */
.ofn-card.ofn-hidden {
    display: none;
}

@media (max-width: 600px) {
    .ofn-grid {
        grid-template-columns: 1fr;
    }
    .ofn-title {
        font-size: 18px;
    }
}
