body {
    font-family: 'Tektur', sans-serif;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: all 0.3s ease-in-out;
    transform: translateY(-10px);
    z-index: 1;
}

.card:hover .overlay {
    opacity: 1;
    transform: translateY(0);
}

.post-header .d-flex {
    width: 100%;
}

.action-buttons {
    gap: 8px;
}

.action-button {
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 2px 6px;
    border-radius: 4px;
}

.action-button:hover {
    background: #f8f9fa;
}

.action-button.liked .fa-heart,
.action-button.bookmarked .fa-bookmark {
    font-weight: 900;
}

.filter-sidebar {
    position: sticky;
    top: 20px;
    transition: transform 0.3s ease-in-out;
}

.filter-sidebar.show {
    transform: translateX(0);
}

.filter-item {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
}

.filter-item.selected {
    background: #e63946;
    color: white;
    border: 1px solid #e63946;
}

.filter-item:not(.selected) {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #ddd;
}

.tab-button {
    flex: 1;
    margin: 0 8px;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    background: #303030;
    color: white;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    font-family: 'Tektur', sans-serif;
}

.tab-button.active {
    background: #e63946;
    color: white;
    border-color: #e63946;
}

.tab-button:hover:not(.active) {
    background: #c72c38;
}

.search-form-container {
    position: relative;
    margin-bottom: 20px;
}

.search-form-container input {
    border: 2px solid #e63946;
    border-radius: 25px;
    padding: 10px 40px 10px 20px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-form-container input:focus {
    border-color: #c72c38;
    box-shadow: 0 0 8px rgba(230, 57, 70, 0.3);
    outline: none;
}

.search-form-container button {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: #e63946;
    border: none;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    transition: all 0.3s ease;
}

.search-form-container button:hover {
    background: #c72c38;
}

/* Pagination styles */
.page-link {
    color: #e63946 !important;
    border: 1px solid #e63946 !important;
    transition: all 0.3s ease;
}

.page-link:hover {
    background: #c72c38 !important;
    color: white !important;
}

.page-item.active .page-link {
    background: #e63946 !important;
    border-color: #e63946 !important;
    color: white !important;
}

/* Desktop card spacing */
.place-container, .event-container {
    margin-right: 16px;
}

/* Ensure lists are centered */
.places-list, .movies-list, .events-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    padding: 0;
}

/* Mobile version */
@media (max-width: 767px) {
    .filter-sidebar {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: white;
        z-index: 1000;
        padding: 20px;
        overflow-y: auto;
        transform: translateX(-100%);
    }

    .filter-sidebar.show {
        display: block;
        transform: translateX(0);
    }

    .filter-toggle {
        display: block;
        background: #e63946;
        color: white;
        padding: 10px;
        border-radius: 10px;
        text-align: center;
        cursor: pointer;
        margin-bottom: 20px;
        width: 100%;
        max-width: 200px;
        margin-left: auto;
        margin-right: auto;
    }

    .filter-hide {
        display: block;
        background: #333;
        color: white;
        padding: 8px 16px;
        border-radius: 20px;
        text-align: center;
        cursor: pointer;
        margin-bottom: 20px;
        width: 100%;
        max-width: 150px;
        margin-left: auto;
        margin-right: auto;
        font-size: 14px;
        font-weight: 600;
        border: none;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    .filter-hide:hover {
        background: #555;
    }

    .category-container {
        padding: 0 10px;
    }

    .place-container, .event-container {
        margin: 0 auto 20px auto;
    }

    .place-card {
        width: 300px !important; 
    }

    .event-card {
        width: 200px !important; 
    }

    .tab-button {
        width: 100px;
        font-size: 14px;
        padding: 8px;
    }

    .category-tabs, .places-list, .movies-list, .events-list {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        margin: 0 auto;
        padding: 0;
    }
}

@media (min-width: 768px) {
    .filter-toggle, .filter-hide {
        display: none;
    }
}