/* =========================================
   Bus Operators Directory Page
   ========================================= */



/* ---- Hero ---- */
.dir-hero {
    padding: 150px 0 90px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.dir-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    /* Add grid pattern ONLY to background */
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100'%3E%3Crect x='10' y='10' width='80' height='80' rx='20' fill='none' stroke='%23f1f3f9' stroke-width='1.5'/%3E%3C/svg%3E");
    background-size: 80px 80px;
    background-position: center top;
    
    /* Fade the background pattern at the edges */
    -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 80%);
    mask-image: radial-gradient(ellipse at center, rgba(0,0,0,1) 40%, rgba(0,0,0,0) 80%);
}

.dir-hero .container {
    position: relative;
    z-index: 1;
}

.dir-hero-title {
    font-size: 4rem;
    font-weight: 800;
    color: var(--text-navy);
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin: 16px 0 20px;
}

.dir-hero-sub {
    font-size: 1.15rem;
    color: var(--text-gray);
    max-width: 560px;
    margin: 0 auto 40px;
    line-height: 1.6;
}

/* ---- Search Bar ---- */
.dir-search {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 600px;
    margin: 0 auto;
    background: white;
    border: 1.5px solid #d8e0ec;
    border-radius: 50px;
    padding: 10px 10px 10px 24px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}


.dir-search input {
    flex: 1;
    border: none;
    outline: none;
    font-family: 'Sora', sans-serif;
    font-size: 1rem;
    color: var(--text-navy);
    background: transparent;
}

.dir-search input::placeholder {
    color: #a0aab8;
}

.dir-search button {
    background: var(--text-navy);
    color: white;
    border: none;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-family: 'Sora', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.dir-search button:hover {
    background: var(--brand-green-hover);
}

/* ---- Stats Bar ---- */
.ops-stats-bar {
    background: var(--text-navy);
    padding: 28px 0;
}

.ops-stats-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
}

.ops-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 50px;
}

.ops-stat strong {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-green);
    line-height: 1;
}

.ops-stat span {
    font-size: 0.85rem;
    color: #889bb0;
    margin-top: 4px;
    font-weight: 500;
}

.ops-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.1);
}

/* ---- Operators Section ---- */
.operators-section {
    padding: 80px 0 120px;
    background: #ffffff;
}

/* ---- Filter Row ---- */
.ops-filter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 16px;
}

.ops-count {
    font-size: 1rem;
    color: var(--text-gray);
}

.ops-count strong {
    color: var(--text-navy);
}

.ops-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 8px 20px;
    border-radius: 50px;
    border: 1.5px solid #d8e0ec;
    background: white;
    font-family: 'Sora', sans-serif;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-gray);
    cursor: pointer;
    transition: all 0.2s;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--text-navy);
    color: white;
    border-color: var(--text-navy);
}

/* ---- Operator Cards ---- */
.operators-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}

.operator-card {
    background: white;
    border: 1.5px solid #e8edf5;
    border-radius: 20px;
    padding: 32px;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.operator-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 16px 40px rgba(0,0,0,0.08);
    border-color: #c8d5ea;
}

.op-card-top {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
}

.op-card-top-info {
    flex: 1;
    min-width: 0;
}

.op-logo {
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: rgba(253, 82, 2, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--brand-green);
    letter-spacing: -0.02em;
}

.op-logo-blue {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.op-logo-purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

.op-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 50px;
    font-size: 0.78rem;
    font-weight: 600;
    background: rgba(253, 82, 2, 0.1);
}

.op-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-green);
}

.op-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-navy);
    margin-bottom: 4px;
    line-height: 1.3;
}

.op-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-gray);
    margin-bottom: 0;
}

.op-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 24px;
}

.op-tags span {
    padding: 4px 12px;
    border-radius: 50px;
    background: #f1f4f9;
    color: var(--text-navy);
    font-size: 0.8rem;
    font-weight: 500;
}

.op-meta {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 16px 0;
    border-top: 1px solid #f0f3f8;
    border-bottom: 1px solid #f0f3f8;
    margin-bottom: 24px;
}

.op-meta-item {
    flex: 1;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.op-meta-item strong {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--text-navy);
}

.op-meta-item span {
    font-size: 0.78rem;
    color: var(--text-gray);
    font-weight: 500;
}

.op-meta-divider {
    width: 1px;
    height: 32px;
    background: #e8edf5;
}

.op-view-btn {
    display: block;
    text-align: center;
    padding: 13px;
    border-radius: 50px;
    background: var(--text-navy);
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s, transform 0.2s;
}

.op-view-btn:hover {
    background: #0f1e3a;
    transform: translateY(-1px);
}

/* ---- Join CTA ---- */
.ops-join-cta {
    background: var(--bg-light);
    padding: 80px 0;
}

.ops-join-inner {
    background: var(--text-navy);
    border-radius: 24px;
    padding: 60px 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    overflow: hidden;
}

.ops-join-inner::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Crect x='5' y='5' width='50' height='50' rx='12' fill='none' stroke='%23ffffff' stroke-opacity='0.04' stroke-width='1'/%3E%3C/svg%3E");
    background-size: 60px 60px;
    pointer-events: none;
}

.ops-join-text {
    position: relative;
    z-index: 1;
}

.ops-join-text h2 {
    font-size: 2.4rem;
    font-weight: 800;
    color: white;
    margin-bottom: 12px;
    letter-spacing: -0.03em;
}

.ops-join-text p {
    color: #889bb0;
    font-size: 1.05rem;
    line-height: 1.6;
    max-width: 480px;
}

.ops-join-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
}

.ops-join-btn-primary {
    display: inline-block;
    background: var(--brand-green);
    color: var(--text-navy);
    font-weight: 700;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: opacity 0.2s, transform 0.2s;
}

.ops-join-btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

.ops-join-btn-outline {
    display: inline-block;
    border: 1.5px solid rgba(255,255,255,0.2);
    color: white;
    font-weight: 600;
    text-decoration: none;
    padding: 16px 28px;
    border-radius: 50px;
    font-size: 0.95rem;
    white-space: nowrap;
    transition: border-color 0.2s, background 0.2s;
}

.ops-join-btn-outline:hover {
    border-color: rgba(255,255,255,0.5);
    background: rgba(255,255,255,0.05);
}

/* ---- Responsive ---- */

/* =====================================================================
   RESPONSIVE — operators.css
   320px mobile-small | 480px mobile | 768px tablet | 1024px laptop
   ===================================================================== */



/* laptop (≤ 1024px) */
@media (max-width: 1024px) {
    .operators-grid { grid-template-columns: repeat(2, 1fr); }
    .ops-join-inner {
        flex-direction: column;
        text-align: center;
        padding: 50px 40px;
    }
    .ops-join-text p { max-width: 100%; }
}

/* tablet (≤ 768px) */
@media (max-width: 768px) {
    .dir-hero { padding: 110px 0 60px; }
    .dir-hero-title { font-size: 2rem; }
    .dir-hero-sub { font-size: 1rem; }

    .dir-search {
        border-radius: 50px;
        padding: 8px 8px 8px 20px;
    }
    .dir-search button { margin: 0; }

    .ops-stats-inner { flex-wrap: wrap; gap: 20px; justify-content: center; }
    .ops-stat { padding: 0 20px; }
    .ops-stat-div { display: none; }

    .ops-filter-row { flex-direction: column; align-items: flex-start; }
    .ops-filters { flex-wrap: wrap; }

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

    .ops-join-inner { flex-direction: column; text-align: center; padding: 40px 24px; }
    .ops-join-text h2 { font-size: 1.8rem; }
    .ops-join-actions { flex-direction: column; width: 100%; }
    .ops-join-btn-primary,
    .ops-join-btn-outline { text-align: center; }
}

/* mobile (≤ 480px) */
@media (max-width: 480px) {
    .dir-hero-title { font-size: 2rem; }
    .ops-stat strong { font-size: 1.5rem; }
    .operator-card { padding: 22px; }
    .ops-join-inner { padding: 30px 16px; }
    .ops-join-text h2 { font-size: 1.5rem; }
}

/* mobile-small (≤ 320px) */
@media (max-width: 320px) {
    .dir-hero-title { font-size: 1.6rem; }
    .dir-search { padding: 6px 6px 6px 16px; }
    .operator-card { padding: 16px; }
}