
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600&family=Inter:wght@300;400;500;600&display=swap');

:root {
    /* Primary Colors - Rich Blacks with warm undertones */
    --primary: #1C1C1C;          /* Softer black for main elements */
    --primary-light: #2C2C2C;    /* Warm gray for interactive elements */
    --primary-dark: #161616;     /* Deep black for contrast */
    
    /* Secondary Colors */
    --secondary: #0082ab;
    --secondary-light: #00b9f3;
    --secondary-dark: #01536c;
    
    /* Text Colors */
    --text: #2C2C2C;            /* Soft black for main text */
    --text-light: #5C5C5C;      /* Warm gray for secondary text */
    --text-muted: #8A8A8A;      /* Muted text */
    
    /* Background Colors */
    --bg: #F5F5F5;              /* Warm white background */
    --card-bg: #FFFFFF;         /* Pure white for cards */
    --overlay: rgba(28, 28, 28, 0.03); /* Subtle overlay for hover states */
    
    /* UI Elements */
    --header-height: 80px;      /* Taller header for luxury feel */
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Tags */
    --tag-bg: #2C2C2C;          /* Soft black for tags */
    --tag-bg-hover: #802431;    /* Burgundy on hover */
    
    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 6px rgba(0,0,0,0.05), 0 2px 4px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 16px rgba(0,0,0,0.06), 0 4px 8px rgba(0,0,0,0.1);
}

/* Typography */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 300;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg);
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, .header-title {
    font-family: 'Playfair Display', serif;
    font-weight: 500;
}

/* Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}



/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--primary);
    color: white;
    z-index: 1000;
    box-shadow: var(--shadow-md);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.header-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-title {
    font-size: 1.75rem;
    letter-spacing: 0.5px;
    cursor: pointer;
    margin: 0;
    color: white;
}

.home-button {
    background: var(--primary-light);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: var(--transition);
    display: none;
    letter-spacing: 0.5px;
}

.home-button:hover {
    background: var(--secondary);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Main Container */
.main-container {
    margin-top: var(--header-height);
    min-height: calc(100vh - var(--header-height));
    padding: 2rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Search Container */
.search-container {
    position: relative;
    margin: 2rem auto;
    max-width: 800px;
    width: 100%;
    padding: 0 1rem;
}

.search-input {
    width: 100%;
    padding: 1rem 1.5rem;
    font-size: 1.1rem;
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 30px;
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
}

.search-input:focus {
    outline: none;
    border-color: var(--secondary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

/* Categories Grid */
.categories {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
    width: 100%;
    justify-content: center;
    grid-template-columns: repeat(auto-fit, 380px); /* Fixed width columns */
    max-width: 1920px; /* Maximum width for ultra-wide screens */
    padding: 0 1rem;
}


/* Category Cards */
.category {
    width: 380px; /* Fixed width */
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.08);
    transition: var(--transition);
    height: auto;
    max-height: fit-content;
}

/* Responsive adjustments */
@media (max-width: 420px) {
    .categories {
        grid-template-columns: 1fr; /* Full width on very small screens */
        padding: 0 0.5rem;
    }

    .category {
        width: 100%;
        min-width: unset;
    }
}

.category:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-header {
    background: var(--primary);
    color: white;
    padding: 1.5rem;
    border-bottom: 2px solid var(--secondary);
}

.category-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.category-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}



/* Optional: For categories that should span full width */
.category.full-width {
    grid-column: 1 / -1;
}

/* Optional: For categories that should take up more space */
.category.large {
    grid-row: span 2;
}

/* Optional: For categories that need to span multiple columns */
.category.span-2 {
    grid-column: span 2;
}

.category.span-full {
    grid-column: 1 / -1;
}

/* Listings */
.listing {
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    padding: 1.5rem;
    margin: 0.5rem 0;
    border-radius: 15px;
    background: var(--bg);
    cursor: pointer;
    transition: var(--transition);
    border: 1px solid rgba(0,0,0,0.08);
}

.listing:hover {
    border-color: var(--secondary);
    background: rgba(0,0,0,0.02);
    transform: translateX(5px);
}

.listing h3 {
    color: var(--primary);
    margin-bottom: 0.5rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

.listing p {
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tag {
    background: var(--tag-bg);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 15px;
    font-size: 0.85rem;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.1);
    letter-spacing: 0.5px;
    font-weight: 500;
}

.tag:hover {
    background: var(--secondary);
    transform: translateY(-1px);
}


/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .header-content {
        padding: 0 1rem;
    }

    .main-container {
        padding: 1rem;
    }

    .categories {
        grid-template-columns: 1fr;
    }

    .content-page {
        margin: 1rem;
        padding: 1.5rem;
    }

    .img-left, .img-right {
        float: none;
        margin: 1rem 0;
        max-width: 100%;
    }
}


/* Active Filters Container */
.active-filters {
    max-width: 800px;
    margin: 1rem auto;
    width: 100%;
    padding: 0.5rem 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    min-height: 40px;
    /* padding: 0.5rem; */
    border-radius: 8px;
    transition: var(--transition);
}

.active-filters:not(:empty) {
    background: var(--card-bg);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0,0,0,0.06);
    padding: 1rem;
}

.filter-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--primary-light);
    color: white;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.12);
    letter-spacing: 0.3px;
    font-weight: 400;
    animation: fadeIn 0.3s ease;
}

.filter-tag:hover {
    background: var(--secondary);
}

.filter-tag .remove {
    cursor: pointer;
    opacity: 0.8;
    font-size: 1.2rem;
    line-height: 0.8;
    padding: 0 0.2rem;
}

.filter-tag .remove:hover {
    opacity: 1;
}

.clear-filters {
    font-family: 'Inter', sans-serif;
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.4rem 1rem;
    border-radius: 15px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition);
    letter-spacing: 0.3px;
    font-weight: 400;
    margin-left: auto;
}

.clear-filters:hover {
    background: var(--secondary);
}

/* Make listing tags clickable */
.tag {
    cursor: pointer;
}

/* Highlight active tag in listings */
.tag.active {
    background: var(--secondary);
}