:root {
    --primary-color: #6A1B9A; /* Dark Purple */
    --secondary-color: #8E24AA; /* Medium Purple */
    --light-purple-bg: #F3E5F5; /* Light Purple Background */
    --text-color-dark: #212121; /* Off-black for text */
    --text-color-light: #ffffff;
    --white-color: #ffffff;
    --light-gray-border: #eeeeee;
    --medium-gray-text: #555555;
    --dark-color: #333; /* From original footer, might need re-evaluation */
    --success-color: #4CAF50; /* Example success color */
}

/* CSS for Search Results Page - Based on fatalmodel.com */

body {
    font-family: 'Poppins', sans-serif;
    background-color: var(--light-purple-bg); /* Reverted to light-purple-bg */
    color: var(--text-color-dark);
    margin: 0;
    padding: 0;
    padding-bottom: 80px; /* Add padding to prevent overlap with fixed bottom nav */
}

.container-search-results {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 15px;
}

/* Header and Navigation */
header {
    background-color: var(--white-color);
    padding: 5px 0; /* Reduced header padding for compactness */
    color: var(--text-color-dark);
    border-bottom: 1px solid var(--light-gray-border);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.logo-container {
    display: flex;
    align-items: center;
}

.fm-logo-container {
    display: flex;
    align-items: center;
}

.logo-img, .fm-logo-img {
    height: 35px; /* Consistent logo height */
    width: auto;
    margin-right: 10px;
}

.logo-text {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-color-dark);
    text-decoration: none;
}

.nav-buttons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-buttons a {
    color: var(--text-color-dark);
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    transition: background-color 0.3s, color 0.3s;
}

.nav-buttons a:hover {
    background-color: var(--light-gray-border);
}

.nav-buttons a.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* Public Header (FatalModel Style) */
.fm-header {
    /* Styles for the public header mimicking fatalmodel */
}

.fm-search-container {
    display: flex;
    align-items: center;
    flex-grow: 1;
    margin: 0 20px;
    max-width: 500px;
}

.fm-location-search {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 20px 0 0 20px;
    font-size: 0.9rem;
    flex-grow: 1;
    outline: none;
}

.fm-search-button {
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-left: none;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 0 20px 20px 0;
    cursor: pointer;
    transition: background-color 0.3s;
}

.fm-search-button:hover {
    background-color: var(--secondary-color);
}

.fm-actions-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.fm-btn-register-free,
.fm-btn-login {
    padding: 8px 15px;
    text-decoration: none;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
}

.fm-btn-register-free {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 1px solid var(--primary-color);
}

.fm-btn-register-free:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
}

.fm-btn-login {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

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

.fm-language-selector {
    padding: 8px 10px;
    font-size: 0.9rem;
    color: var(--medium-gray-text);
    cursor: pointer;
}

.fm-notification-btn {
    background-color: transparent;
    border: none;
    color: var(--medium-gray-text);
    font-size: 1.5rem; /* Adjusted for better visibility */
    cursor: pointer;
    padding: 5px;
}

.fm-notification-btn:hover {
    color: var(--primary-color);
}


/* Search Results Specific Styles */
.search-results-content {
    display: flex;
    gap: 20px;
}

.filters-container {
    flex: 0 0 250px; /* Fixed width for filters sidebar */
    background-color: var(--white-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    align-self: flex-start; /* Align to the top */
}

.filters-container h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--text-color-dark);
}

.filter-group {
    margin-bottom: 15px;
}

.filter-group h4 {
    font-size: 1rem;
    margin-bottom: 8px;
    color: var(--medium-gray-text);
}

.filter-group ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.filter-group ul li a {
    text-decoration: none;
    color: #666;
    transition: color 0.3s;
}

.filter-group ul li a:hover {
    color: var(--primary-color);
}

.results-grid {
    flex-grow: 1;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

/* Styles for Stories Section */
.stories-section-fm {
    background-color: var(--white-color);
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray-border);
    margin-bottom: 20px;
}

.stories-section-header {
    font-size: 1.2rem; /* Increased size */
    font-weight: 600;
    margin-bottom: 15px;
    padding-left: 15px; /* Align with carousel content */
    color: var(--text-color-dark);
}

.stories-carousel {
    display: flex;
    overflow-x: auto;
    padding: 10px 15px; /* Added padding to match container */
    gap: 15px;
    scrollbar-width: thin; /* For Firefox */
    scrollbar-color: var(--primary-color) var(--light-gray-border); /* For Firefox */
}

.stories-carousel::-webkit-scrollbar {
    height: 8px;
}

.stories-carousel::-webkit-scrollbar-track {
    background: var(--light-gray-border);
    border-radius: 4px;
}

.stories-carousel::-webkit-scrollbar-thumb {
    background-color: var(--primary-color);
    border-radius: 4px;
}

.story-item {
    flex: 0 0 auto; /* Prevent items from shrinking/growing */
    width: 80px; /* Width of each story item */
    text-align: center;
    cursor: pointer;
    position: relative;
}

.story-image-wrapper {
    width: 65px; /* Diameter of the circle */
    height: 65px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 8px auto; /* Increased bottom margin */
    border: 3px solid;
    border-image-slice: 1;
    border-image-source: linear-gradient(to right, var(--primary-color), var(--secondary-color));
    padding: 2px; /* Space between border and image */
    background-color: var(--white-color); /* Background for the padding */
}

.story-item.fatal-shots-item .story-image-wrapper {
    border-image-source: linear-gradient(to right, #e4405f, #f7b733); /* Special gradient for fatal shots */
}

.story-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%; /* Ensure image itself is circular */
}

.story-user {
    display: block;
    font-size: 0.8rem; /* Slightly larger text for username */
    color: var(--text-color-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.story-item.fatal-shots-item .story-user {
    font-weight: 600;
    color: var(--primary-color);
}

/* Profile Card Styles (FatalModel like) */
.fm-profile-card {
    background-color: #CDB8F8; /* User requested: Lighter purple, halfway between old card and page bg */
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    margin-bottom: 20px;
}

/* Ensure specific text elements that were blue are now dark purple */
.fm-card-reviews-link, /* Example of a link that might have been blue */
.fm-card-location, /* Location text, if it was blue */
.fm-card-price /* Price, if it was blue */
{
    color: var(--primary-color); /* Dark Purple - User Request */
}

/* Keep main card text black or very dark gray */
.fm-card-name,
.fm-card-description-preview,
.fm-card-details span, /* General spans in details */
.fm-card-actions button span,
.fm-card-actions a span {
    color: var(--text-color-dark); /* Ensure it's black or off-black */
}

/* Ensure rating stars are not affected if they were blue */
.fm-card-rating i {
    color: #ffc107; /* Gold for stars - keep as is */
}

.profile-card-fm:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.12);
}

.profile-card-fm-image-container {
    width: 100%;
    height: 350px; /* Increased height for better visuals */
    background-color: var(--light-gray-border);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.profile-card-fm-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-card-fm-photo-count {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(0,0,0,0.6);
    color: var(--white-color);
    padding: 4px 8px;
    border-radius: 15px;
    font-size: 0.75rem;
}

.profile-card-fm-online-status {
    position: absolute;
    top: 10px;
    right: 10px;
    color: var(--white-color);
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
}

.profile-card-fm-online-status i {
    margin-right: 5px;
    font-size: 0.6rem;
}

.profile-card-fm-online-status.online {
    background-color: rgba(76, 175, 80, 0.8); /* Green for online */
}

.profile-card-fm-online-status.offline {
    background-color: rgba(128, 128, 128, 0.8); /* Grey for offline */
}

.profile-card-fm-video-icon {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background-color: rgba(0,0,0,0.6);
    color: var(--white-color);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
}

.profile-card-fm-info {
    padding: 15px;
}

.profile-card-fm-name-location {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.profile-card-fm-name {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-color-dark);
}

.profile-card-fm-location {
    font-size: 0.85rem;
    color: var(--medium-gray-text);
    display: flex;
    align-items: center;
}

.profile-card-fm-location i {
    margin-right: 5px;
    color: var(--primary-color);
}

.profile-card-fm-details {
    margin-bottom: 10px;
}

.profile-card-fm-description {
    font-size: 0.9rem;
    color: var(--medium-gray-text);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* Limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 42px; /* Approx 2 lines height */
}

.profile-card-fm-price-rating {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.profile-card-fm-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-color);
}

.profile-card-fm-rating {
    display: flex;
    align-items: center;
    color: #ffc107; /* Gold for stars */
}

.profile-card-fm-rating i {
    font-size: 0.9rem;
    margin-right: 3px;
}

.profile-card-fm-rating span {
    font-size: 0.8rem;
    color: var(--medium-gray-text);
    margin-left: 5px;
}

.profile-card-fm-actions {
    display: grid; /* Changed to grid for better control */
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 0 15px 15px 15px; /* Adjusted padding */
}

.profile-card-fm-btn-phone,
.profile-card-fm-btn-profile {
    background-color: transparent;
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
    padding: 10px 12px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.3s, color 0.3s;
    text-align: center;
}

.profile-card-fm-btn-phone:hover,
.profile-card-fm-btn-profile:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.profile-card-fm-btn-phone i,
.profile-card-fm-btn-profile i {
    margin-right: 6px;
}

/* Fixed Bottom Navigation Bar */
.fixed-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--white-color);
    border-top: 1px solid var(--light-gray-border);
    padding: 8px 0; /* Adjusted padding */
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 -2px 5px rgba(0,0,0,0.05);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--medium-gray-text);
    font-size: 0.75rem; /* Adjusted font size */
    padding: 5px 10px;
    flex-grow: 1; /* Ensure items take up equal space */
    text-align: center;
}

.bottom-nav-item i {
    font-size: 1.4rem; /* Adjusted icon size */
    margin-bottom: 4px;
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

/* Responsive adjustments */
@media (max-width: 992px) {
    .fm-search-container {
        margin: 0 15px;
    }
}

@media (max-width: 768px) {
    .header-content.public-header {
        flex-wrap: wrap; /* Allow wrapping for smaller screens */
        padding: 10px 15px;
    }
    .fm-logo-container {
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
    }
    .fm-search-container {
        width: 100%;
        margin: 0 0 10px 0;
        order: 3; /* Move search below logo */
    }
    .fm-actions-container {
        width: 100%;
        justify-content: space-around;
        order: 2; /* Move actions below logo but before search */
        margin-bottom: 10px;
    }
    .search-results-content {
        flex-direction: column;
    }
    .filters-container {
        width: 100%;
        margin-bottom: 20px;
    }
    .results-grid {
        grid-template-columns: 1fr; /* Single column for smaller screens */
    }
    .profile-card-fm-image-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .fm-logo-img {
        height: 30px;
    }
    .fm-actions-container .fm-btn-register-free,
    .fm-actions-container .fm-btn-login {
        padding: 7px 12px;
        font-size: 0.85rem;
    }
    .fm-notification-btn {
        font-size: 1.4rem;
    }
    .stories-section-header {
        font-size: 1.1rem;
    }
    .story-image-wrapper {
        width: 60px;
        height: 60px;
    }
    .story-user {
        font-size: 0.75rem;
    }
    .search-results-main-title h1 {
        font-size: 1.4rem;
    }
    .filter-chip {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    .main-filter-controls .btn {
        padding: 7px 10px;
        font-size: 0.85rem;
    }
    .profile-card-fm-name {
        font-size: 1.1rem;
    }
    .profile-card-fm-location,
    .profile-card-fm-description,
    .profile-card-fm-price,
    .profile-card-fm-rating span {
        font-size: 0.8rem;
    }
    .profile-card-fm-actions .profile-card-fm-btn-phone,
    .profile-card-fm-actions .profile-card-fm-btn-profile {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
    .bottom-nav-item {
        font-size: 0.7rem;
    }
    .bottom-nav-item i {
        font-size: 1.3rem;
    }
}

/* Main Category Navigation Tabs */
.category-tabs-fm {
    display: flex;
    justify-content: center; /* Center tabs */
    background-color: var(--white-color);
    border-bottom: 1px solid var(--light-gray-border);
    padding: 0 15px; /* Add some horizontal padding */
    margin-bottom: 20px;
}

.category-tab-fm {
    padding: 15px 25px; /* Increased padding */
    cursor: pointer;
    color: var(--medium-gray-text);
    font-weight: 500;
    font-size: 1rem; /* Increased font size */
    border-bottom: 3px solid transparent;
    transition: color 0.3s, border-bottom-color 0.3s;
    text-transform: uppercase; /* Uppercase text like reference */
}

.category-tab-fm:hover {
    color: var(--primary-color);
}

.category-tab-fm.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

/* Quick Filters (Chips) */
.quick-filters-fm {
    display: flex;
    overflow-x: auto;
    padding: 10px 0; /* Add some vertical padding */
    margin-bottom: 15px;
    gap: 10px;
    scrollbar-width: none; /* Hide scrollbar for Firefox */
}

.quick-filters-fm::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, Edge */
}

.filter-chip-fm {
    background-color: var(--white-color);
    border: 1px solid #ddd; /* Light border */
    color: var(--medium-gray-text);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.filter-chip-fm:hover {
    background-color: var(--light-gray-border);
    border-color: #ccc;
}

.filter-chip-fm.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

/* Main Action Buttons (Filter, Sort, Distance) */
.main-filter-controls-fm {
    display: flex;
    justify-content: space-between; /* Align items with space between */
    align-items: center;
    padding: 10px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--light-gray-border);
}

.main-filter-controls-fm .btn-filter-main,
.main-filter-controls-fm .btn-sort-main,
.main-filter-controls-fm .btn-distance-main {
    background-color: transparent;
    border: none;
    color: var(--medium-gray-text);
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    transition: color 0.3s;
}

.main-filter-controls-fm .btn-filter-main:hover,
.main-filter-controls-fm .btn-sort-main:hover,
.main-filter-controls-fm .btn-distance-main:hover {
    color: var(--primary-color);
}

.main-filter-controls-fm i {
    margin-right: 8px;
    font-size: 1.1rem;
}

/* Dynamic Page Title for Search Results */
.search-results-main-title {
    text-align: left; /* Align to the left as per reference */
    margin-bottom: 15px;
    padding: 0; /* Remove extra padding if container has it */
}

.search-results-main-title h1 {
    font-size: 1.6rem; /* Adjusted size */
    font-weight: 600;
    color: var(--text-color-dark);
    margin: 0;
}

/* Detailed Filter Modal */
.filter-modal-fm {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
}

.filter-modal-content-fm {
    background-color: var(--white-color);
    margin: 0; /* Full screen modal */
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.filter-modal-header-fm {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px;
    border-bottom: 1px solid var(--light-gray-border);
}

.filter-modal-header-fm .back-arrow {
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

.filter-modal-header-fm h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.filter-modal-header-fm .applied-filters-count {
    font-size: 0.9rem;
    color: var(--medium-gray-text);
}

.filter-modal-body-fm {
    padding: 15px;
    overflow-y: auto;
    flex-grow: 1;
}

.filter-modal-section-fm {
    margin-bottom: 20px;
}

.filter-modal-section-fm h4 {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--text-color-dark);
}

.filter-modal-search-input {
    width: calc(100% - 30px); /* Full width minus padding */
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 20px;
    margin-bottom: 15px;
}

.filter-modal-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
}

.filter-modal-option-btn {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: var(--white-color);
    color: var(--medium-gray-text);
    text-align: center;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

.filter-modal-option-btn.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

.filter-modal-footer-fm {
    padding: 15px;
    border-top: 1px solid var(--light-gray-border);
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.filter-modal-btn-close,
.filter-modal-btn-apply {
    flex-grow: 1;
    padding: 12px 15px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    text-align: center;
}

.filter-modal-btn-close {
    background-color: var(--light-gray-border);
    color: var(--text-color-dark);
    border: 1px solid var(--light-gray-border);
}

.filter-modal-btn-apply {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 1px solid var(--primary-color);
}

/* General Button Styles (if needed for other buttons not covered) */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
    display: inline-block;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    background-color: var(--secondary-color);
    border-color: var(--secondary-color);
    transform: translateY(-2px);
}

.btn-secondary {
    background-color: var(--white-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-secondary:hover {
    background-color: var(--light-purple-bg);
    transform: translateY(-2px);
}


/* Hero section styles from index.html for consistency if needed elsewhere */
.hero {
    background-image: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('https://images.unsplash.com/photo-1517840901100-8179e982acb7?ixlib=rb-1.2.1&auto=format&fit=crop&w=1950&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 6rem 15px; /* Added horizontal padding */
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    animation: fadeInUp 1s ease-out;
}

.hero p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    animation: fadeInUp 1s ease-out 0.2s;
    animation-fill-mode: both;
}

.search-container {
    background-color: rgba(26, 30, 37, 0.8);
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
    border-radius: 10px;
    animation: fadeInUp 1s ease-out 0.4s;
    animation-fill-mode: both;
}

.search-form {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 1rem;
}

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

.search-form input,
.search-form select,
.search-form button {
    padding: 0.75rem;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
}

.search-form button {
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
    transition: background-color 0.3s;
}

.search-form button:hover {
    background-color: var(--secondary-color);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* FM Quick Filters */
.fm-quick-filters-container {
    display: flex;
    align-items: center;
    margin: 20px 0;
    position: relative;
}

.fm-quick-filters-scrollable {
    display: flex;
    overflow-x: auto;
    white-space: nowrap;
    padding: 10px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE 10+ */
}

.fm-quick-filters-scrollable::-webkit-scrollbar {
    display: none; /* Safari and Chrome */
}

.fm-quick-filter-chip {
    background-color: #f0f0f0;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    margin-right: 10px;
    cursor: pointer;
    font-size: 0.9rem;
    color: #333;
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
    flex-shrink: 0; /* Prevent chips from shrinking */
}

.fm-quick-filter-chip:hover {
    background-color: #e0e0e0;
    border-color: #ccc;
}

.fm-quick-filter-chip.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.fm-scroll-arrow {
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid #ccc;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.3s;
}

.fm-scroll-arrow:hover {
    background-color: #f0f0f0;
}

.fm-scroll-arrow.prev {
    margin-right: 5px;
}

.fm-scroll-arrow.next {
    margin-left: 5px;
}

.fm-scroll-arrow i {
    color: #555;
    font-size: 0.8rem;
}

/* Hide arrows if not needed (JS will handle this) */
.fm-scroll-arrow.hidden {
    display: none;
}




/* FM Main Filter Controls */
.fm-main-filter-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px; /* Increased margin */
    padding: 10px 0; /* Added some padding */
    border-bottom: 1px solid #eee; /* Subtle separator */
}

.fm-filter-actions .fm-btn-filter,
.fm-filter-actions .fm-btn-sort,
.fm-distance-filter .fm-btn-distance {
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px 20px; /* Increased padding */
    border-radius: 8px; /* Slightly more modern radius */
    cursor: pointer;
    font-size: 0.95rem; /* Slightly larger font */
    color: #333;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s;
}

.fm-filter-actions .fm-btn-filter i,
.fm-filter-actions .fm-btn-sort i,
.fm-distance-filter .fm-btn-distance i {
    margin-right: 8px; /* Increased icon spacing */
}

.fm-filter-actions .fm-btn-filter:hover,
.fm-filter-actions .fm-btn-sort:hover,
.fm-distance-filter .fm-btn-distance:hover {
    background-color: #f5f5f5;
    border-color: #bbb;
}

.fm-filter-actions .fm-btn-filter.active,
.fm-filter-actions .fm-btn-sort.active,
.fm-distance-filter .fm-btn-distance.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.fm-filter-actions .fm-btn-filter.active i,
.fm-filter-actions .fm-btn-sort.active i,
.fm-distance-filter .fm-btn-distance.active i {
    color: white;
}

.fm-filter-actions .fm-btn-sort {
    margin-left: 10px;
}

/* Filter Modal (Basic Styles - already partially present) */
.filter-modal {
    /* Ensuring it's hidden by default, JS handles display */
    display: none; 
    position: fixed;
    z-index: 1000; /* High z-index */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5); /* Darker overlay */
}

.filter-modal-content {
    background-color: #fefefe;
    margin: 10% auto; /* Centered, more top margin */
    padding: 25px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px; /* Max width */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.filter-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.filter-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: #333;
}

.filter-modal-close-button {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.filter-modal-close-button:hover,
.filter-modal-close-button:focus {
    color: #000;
    text-decoration: none;
}

.filter-modal-body {
    margin-bottom: 20px;
}

.filter-group {
    margin-bottom: 20px;
}

.filter-group h4 {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 10px;
}

.filter-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 1rem;
    color: #444;
}

.filter-group input[type="checkbox"], .filter-group input[type="radio"] {
    margin-right: 8px;
}

.filter-modal-footer {
    display: flex;
    justify-content: flex-end;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.filter-modal-footer .btn {
    padding: 10px 20px;
    margin-left: 10px;
    border-radius: 5px;
    font-size: 1rem;
}

.filter-modal-footer .btn-secondary {
    background-color: #6c757d;
    color: white;
    border: none;
}

.filter-modal-footer .btn-primary {
    background-color: var(--primary-color);
    color: white;
    border: none;
}




/* Profile Card Image Carousel */
.fm-image-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 100%; /* Ensure it fills the image container */
}

.fm-carousel-item {
    display: none; /* Hide all items by default */
    width: 100%;
    height: 100%;
    transition: opacity 0.5s ease-in-out; /* Optional: for fade effect */
}

.fm-carousel-item.active {
    display: block; /* Show only the active item */
}

.fm-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fm-carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s;
}

.fm-carousel-control:hover {
    background-color: rgba(0, 0, 0, 0.6);
}

.fm-carousel-control.prev {
    left: 10px;
}

.fm-carousel-control.next {
    right: 10px;
}

.fm-carousel-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.fm-carousel-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.fm-carousel-dot.active {
    background-color: white;
}

/* Ensure the image container itself allows for these absolute positioned elements */
.fm-card-image-container {
    position: relative; /* Crucial for positioning controls and dots */
    width: 100%;
    /* height: 350px; or whatever height is set */
    overflow: hidden; /* To contain the carousel items */
}

.fm-profile-carousel {
    position: relative;
    width: 100%;
    height: 100%; /* Ensure it fills the image container */
    overflow: hidden;
}

.fm-carousel-images {
    display: flex;
    width: 100%; /* Should be set by JS to total width of all images */
    height: 100%;
    transition: transform 0.5s ease-in-out;
}

.fm-carousel-image {
    width: 100%; /* Each image takes full width of the container */
    height: 100%;
    object-fit: cover;
    flex-shrink: 0; /* Prevent images from shrinking */
}

.fm-carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.fm-profile-carousel:hover .fm-carousel-arrow {
    opacity: 1;
}

.fm-carousel-arrow.prev {
    left: 10px;
}

.fm-carousel-arrow.next {
    right: 10px;
}

.fm-carousel-dots {
    position: absolute;
    bottom: 15px; /* Adjusted from 10px to avoid overlap with video icon if present */
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.fm-carousel-dot {
    width: 10px;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.fm-carousel-dot.active {
    background-color: white;
}

/* Ensure image container allows carousel to fill it */
.fm-card-image-container {
    /* height: 350px; or whatever is set */
    /* position: relative; already set */
}



/* Carousel Display Fix - Ensure only one image is visible */
.fm-image-carousel {
    position: relative;
    width: 100%;
    height: 100%; /* Ensure it fills its container like .profile-card-fm-image-container */
    overflow: hidden; /* Important to hide non-active items if they were to overflow due to other styles */
}

.fm-carousel-item {
    display: none; /* Hide all items by default */
    width: 100%;
    height: 100%;
    text-align: center; /* Center image if it's smaller than container */
    /* transition: opacity 0.2s ease-in-out; /* Optional: for fade effect, ensure JS handles 'active' for display block/none primarily */
}

.fm-carousel-item.active {
    display: block; /* Show only the active item */
}

/* Ensure the image itself within the item behaves correctly */
.fm-carousel-item .fm-carousel-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* This is crucial for consistent image display within the carousel item space */
}

