/* ==========================================
   ISOLATED DIRECTORY PAGE STYLES (Prefix: dir-)
   ========================================== */

/* --- Header Section --- */
/* --- Sophisticated Centered Header --- */
.dir-header {
    text-align: center;
    padding: 70px 20px 50px; /* Space for sticky header + breathing room */
    background: #ffffff;
    position: relative;
}

.dir-title {
    font-size: 2.8rem;
    margin-bottom: 15px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: 1px; /* Slightly more space between letters for a premium feel */
    text-transform: uppercase;
}

/* Centered gold accent line */
.dir-title::after {
    content: '';
    display: block;
    width: 50px;
    height: 3px;
    background: var(--primary-accent, #c29b40);
    margin: 15px auto 0; /* Centers the line */
}

.dir-description {
    color: #777;
    font-size: 1.1rem;
    max-width: 700px;
    margin: 20px auto 0; /* Centers the text block */
    line-height: 1.6;
    font-weight: 400;
}

/* --- Centered Filters --- */
.dir-filters {
    display: flex;
    justify-content: center; /* Keeps buttons centered */
    gap: 12px;
    margin-bottom: 50px;
    padding: 0 20px;
    flex-wrap: wrap;
}

/* --- Main Section & Filters --- */
.dir-main-section {
    padding-top: 30px;
    padding-bottom: 80px;
    background-color: #ffffff;
}

.dir-filters {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 60px;
    padding: 0 20px;
    flex-wrap: wrap; /* Essential for mobile */
}

.dir-filter-btn {
    padding: 12px 28px;
    background-color: #f0f2f5;
    color: #4a4a4a;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.dir-filter-btn:hover {
    background-color: #e4e6e9;
    color: #1a1a1a;
    transform: translateY(-2px);
}

.dir-filter-btn.active {
    background-color: var(--primary-accent, #c29b40); /* Using your Gold color */
    color: #ffffff;
    box-shadow: 0 8px 20px rgba(194, 155, 64, 0.3);
    transform: translateY(-2px);
}

/* --- Grid & Cards --- */
.dir-grid {
    display: grid;
    /* Slightly smaller min-width for better fit on small screens */
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.dir-card {
    background-color: #ffffff;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.4s ease;
}

.dir-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.dir-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    color: #fff;
    background-color: #555555; 
    z-index: 2;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dir-badge-open {
    background-color: var(--primary-accent, #c29b40); /* Matching Brand Gold */
}

.dir-image {
    height: 220px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-bottom: 1px solid #f0f2f5;
    transition: transform 0.5s ease;
}

.dir-card:hover .dir-image {
    transform: scale(1.05); /* Slightly more zoom for effect */
}

.dir-info {
    padding: 25px 20px;
    background: #ffffff;
    position: relative;
    z-index: 1;
}

.dir-category {
    font-size: 0.8rem;
    color: var(--primary-accent, #c29b40);
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.dir-name {
    font-size: 1.3rem;
    margin-bottom: 12px;
    color: #1a1a1a;
    font-weight: 600;
}

.dir-location {
    font-size: 0.9rem;
    color: #666666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.dir-location i {
    color: #c29b40; /* Changed to gold to stand out */
}

/* --- Responsive Adjustments --- */

@media (max-width: 850px) {
    .dir-header {
        padding: 45px 20px 40px; 
    }
    .dir-title {
        font-size: 2.4rem;
    }
}

@media (max-width: 480px) {
    .dir-header {
        padding: 30px 15px 30px;
    }
    .dir-title {
        font-size: 2rem;
        letter-spacing: 0;
    }
    .dir-description {
        font-size: 1rem;
    }
    .dir-filters {
        gap: 8px;
        margin-bottom: 30px;
    }
    .dir-filter-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
    .dir-grid {
        grid-template-columns: 1fr; /* Single column for mobile phones */
    }
}