/* Flush Platform Layout Container */
.directory-content-wrapper {
    padding: 1.5rem 4rem 4rem;
    max-width: 1600px;
    margin: 0 auto;
    width: 100%;
}

/* Directory Toolbar & Nav Controls (Stacked Rows as requested) */
.dox-directory-toolbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 24px;
    padding: 4px 0 16px;
    border-bottom: 1px solid #f1f5f9;
    width: 100%;
}

/* Hub Top Nav Tabs (Segmented Control) */
.dox-hub-nav-tabs {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    padding: 4px;
    border-radius: 12px;
    gap: 4px;
    border: 1px solid #e2e8f0;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.dox-hub-nav-tabs::-webkit-scrollbar {
    display: none;
}

.dox-hub-tab-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 0.88rem;
    cursor: pointer;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
    line-height: 1.25;
}

.dox-hub-tab-btn:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.7);
}

.dox-hub-tab-btn.active {
    background: #ffffff;
    color: #0f172a;
    border-color: rgba(226, 232, 240, 0.85);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dox-hub-tab-btn .tab-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.92rem;
    transition: transform 0.15s ease;
}

.dox-hub-tab-btn:hover .tab-icon {
    transform: scale(1.08);
}

.dox-hub-tab-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 2px 7px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    background: #e2e8f0;
    color: #475569;
    transition: all 0.18s ease;
}

.dox-hub-tab-btn.active .dox-hub-tab-count {
    background: #eff6ff;
    color: #2563eb;
}

.hub-tab-pane {
    display: none;
}

.hub-tab-pane.active {
    display: block;
}

/* Hero Context Strip */
.directory-hero-strip {
    margin-bottom: 20px;
}

.directory-breadcrumbs {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.84rem;
    color: #64748b;
    margin-bottom: 10px;
    flex-wrap: wrap;
    font-weight: 500;
}

.directory-breadcrumbs a {
    color: #64748b;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.15s ease;
}

.directory-breadcrumbs a:hover {
    color: #2563eb;
}

.directory-breadcrumbs .sep {
    color: #cbd5e1;
    font-size: 0.7rem;
}

.directory-breadcrumbs .current {
    color: #0f172a;
    font-weight: 600;
}

.directory-hero-title {
    font-size: clamp(1.45rem, 2.2vw, 1.95rem);
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 6px;
    letter-spacing: -0.025em;
    line-height: 1.25;
}

.directory-hero-title .accent-text {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.directory-hero-sub {
    font-size: 0.94rem;
    color: #64748b;
    margin: 0;
    line-height: 1.5;
    max-width: 760px;
}

/* Country Navigation Pills */
.dox-country-filter-wrap {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex-wrap: nowrap;
}

.dox-country-filter-label {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #64748b;
    white-space: nowrap;
}

.dox-country-pills-bar {
    display: inline-flex;
    align-items: center;
    background: #f8fafc;
    padding: 4px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    gap: 4px;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.02);
}

.dox-country-pills-bar::-webkit-scrollbar {
    display: none;
}

.dox-country-pill {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: #64748b;
    font-weight: 600;
    font-size: 0.82rem;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
    line-height: 1.25;
}

.dox-country-pill:hover {
    color: #0f172a;
    background: rgba(255, 255, 255, 0.7);
}

.dox-country-pill.active {
    background: #ffffff;
    color: #0f172a;
    border-color: rgba(226, 232, 240, 0.85);
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 1px 2px rgba(15, 23, 42, 0.04);
}

.dox-country-code-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    padding: 1px 5px;
    border-radius: 4px;
    background: #f1f5f9;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.dox-country-pill.active .dox-country-code-badge {
    background: #eff6ff;
    color: #2563eb;
    border-color: #bfdbfe;
}

.dox-country-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1px 6px;
    border-radius: 9999px;
    font-size: 0.7rem;
    font-weight: 700;
    background: #e2e8f0;
    color: #64748b;
    transition: all 0.18s ease;
}

.dox-country-pill.active .dox-country-count {
    background: #eff6ff;
    color: #2563eb;
}

/* Section Cards */
.dox-sec-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02);
}

.dox-sec-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.dox-sec-title {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
}

.dox-sec-badge {
    background: #eff6ff;
    color: #2563eb;
    font-size: 0.78rem;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 9999px;
    border: 1px solid #dbeafe;
}

/* Combination Cards Grid */
.dox-city-combo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 16px;
}

.dox-city-combo-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px 18px;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.dox-city-combo-card:hover {
    border-color: #bfdbfe;
    box-shadow: 0 6px 18px rgba(37, 99, 235, 0.05);
    transform: translateY(-2px);
}

.city-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.city-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 800;
    font-size: 0.98rem;
    color: #0f172a;
    text-decoration: none;
}

.city-card-title:hover {
    color: #2563eb;
}

.city-card-title i {
    color: #ef4444;
    font-size: 1rem;
}

.city-all-link {
    font-size: 0.76rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    padding: 3px 8px;
    background: #eff6ff;
    border-radius: 6px;
}

.city-specialties-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.city-spec-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 9px;
    border-radius: 6px;
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    color: #475569;
    font-size: 0.78rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.city-spec-chip:hover {
    background: #eff6ff;
    border-color: #dbeafe;
    color: #2563eb;
}

/* Specialties Simple Grid */
.dox-item-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
}

.dox-card-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 15px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    color: #1e293b;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.88rem;
    transition: all 0.18s ease;
}

.dox-card-link:hover {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
}

.dox-card-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #eff6ff;
    color: #2563eb;
    border: 1px solid #dbeafe;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    flex-shrink: 0;
    transition: all 0.18s ease;
}

.dox-card-link:hover .dox-card-icon {
    background: #2563eb;
    border-color: #2563eb;
    color: #ffffff;
}

@media (max-width: 1650px) {
    .directory-content-wrapper {
        padding-left: 2rem;
        padding-right: 2rem;
    }
}

@media (max-width: 700px) {
    .directory-content-wrapper {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }
}
