/*
 Theme Name: GeneratePress Child
 Theme URI: https://generatepress.com
 Description: Child theme for GeneratePress.
 Author: Service Desk Team
 Template: generatepress
 Version: 1.8 (Full Audit & Logic Restoration)
*/

/* NOTE: Parent styles are loaded via functions.php. Do NOT add @import here. */

/* =========================================================
   1. GLOBAL & UTILITIES
   ========================================================= */

/* Force light background for all directory-related pages */
body.page-template-page-mi-city,
body.page-id-9329,
body.page-id-9329 .site,
body.page-id-9329 .site-content,
body.page-id-9329 .site-container {
    background-color: #f4f6fb !important;
}


body.page-id-9329 .site-content {
    padding: 0 !important;
    margin: 0 !important;
}

.mi-city-page,
.mi-directory-page {
    width: 92%;
    max-width: 1200px;
    margin: 0 auto;
    background: transparent;
    padding-top: 10px;
    padding-bottom: 40px;
    box-sizing: border-box;
}

/* ===== CONTAINMENT FIX  ===== */
.mi-city-page,
.mi-directory-page,
.mi-city-page *,
.mi-directory-page * {
    box-sizing: border-box;
}


.mi-notice-box {
    background-color: #f9fafb;
    border: 1px solid #e5e7eb;
    border-left: 4px solid #ff6700;
    color: #4b5563;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 30px;
    font-size: 13px;
    line-height: 1.6;
}

/* =========================================
   STATE PAGE – STATS CARDS (SERVICE CENTERS / CITIES)
   ========================================= */

.mi-state-stats {
    display: flex;
    gap: 20px;
    margin: 30px 0 40px; /* Aligns with page content */
    flex-wrap: wrap;
    width: 100%;
}

/* Individual Stat Card */
.mi-state-stats > div {
    background: #ffffff;
    border-radius: 14px;
    padding: 14px 22px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    border-left: 4px solid #FF6700;
    min-width: 180px;
    font-size: 13px;
    color: #6b7280;
}

/* Big Number */
.mi-state-stats > div strong {
    display: block;
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 2px;
}

.margin-bottom-10 {
    margin-bottom: 10px;
}

/* =========================================================
   2. BRANDING ELEMENTS & BADGES (FINAL – FIXED)
   ========================================================= */

/* Base badge styling (shared) */
.mi-badge,
.mi-badge-authorized,
.mi-badge-exclusive,
.mi-badge-independent {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 10px;
    font-weight: 600;
    vertical-align: middle;
    white-space: nowrap;
}

/* Authorized – Blue */
.mi-badge,
.mi-badge-authorized {
    background: #eef2ff;
    color: #3730a3;
    border: 1px solid #c7d2fe;
}

/* Exclusive – Orange */
.mi-badge-exclusive {
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
}

/* Independent – Grey */
.mi-badge-independent {
    background: #f3f4f6;
    color: #4b5563;
    border: 1px solid #d1d5db;
}

/* Recently Updated badge (unchanged) */
.mi-updated-badge {
    display: inline-block;
    font-size: 13px;
    color: #9a3412;
    background: #ffedd5;
    padding: 4px 10px;
    border-radius: 4px;
    font-weight: 600;
    margin: 8px 0 15px;
}


/* Page Titles (Standard City and Main Hub) */
.mi-city-page h1,
.page-id-9329 .entry-title {
    background: #ffffff;
    color: #111827;
    padding: 10px 0 14px;  
    margin: 15px 0 10px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border-top: 4px solid #FF6700;
    line-height: 1.0;
}

/* Direct Hub Title Override */
.page-id-9329 .entry-title {
    background: #FF6700;
    color: #ffffff;
    border-radius: 0;
    margin-top: 10px;
    box-shadow: none;
    margin-bottom: 0;
}

/* Breadcrumbs */
.mi-breadcrumbs {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 10px;
}
.mi-breadcrumbs a {
    text-decoration: none;
    color: #6b7280;
}
.mi-breadcrumbs a:hover {
    color: #FF6700;
}
.mi-breadcrumbs .current {
    color: #111827;
    font-weight: 600;
}

/* =========================================================
   3. DIRECTORY SEARCH & FILTERS
   ========================================================= */

.mi-directory-form {
    background: #FF6700;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 10px 25px rgba(255, 103, 0, 0.25);
    margin-bottom: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.mi-directory-notice {
    background: rgba(0,0,0,0.2);
    color: #ffffff;
    padding: 10px;
    border-radius: 6px;
    font-size: 13px;
    border: 1px solid rgba(255,255,255,0.2);
    line-height: 1.4;
    margin-bottom: 20px;
}

/* Container for all inputs defined in functions.php */
.mi-filter-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.mi-search-row { 
    margin-bottom: 10px; 
}

/* Grid Layout for Desktop Filter Row */
.mi-filter-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 110px; /* Fixes button width on desktop */
    gap: 10px;
    width: 100%;
}

/* Universal input height to prevent search button from shifting */
.mi-directory-form input,
.mi-directory-form select,
.mi-pincode-wrap input,
.mi-search-btn-icon {
    width: 100%;
    height: 52px !important;
    padding: 10px 15px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background-color: #ffffff;
    font-size: 16px;
    box-sizing: border-box;
    transition: border-color 0.3s;
}

.mi-directory-form input:focus,
.mi-directory-form select:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.4);
}

.mi-pincode-wrap { 
    position: relative; 
    width: 100%; 
}

/* Search Button Style */
.mi-search-btn-icon {
    background: #333 !important;
    color: #ffffff !important;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mi-search-btn-icon:hover {
    background: #000 !important;
}

/* =========================================================
   4. SERVICE CENTER CARDS & GRID
   ========================================================= */

.mi-centers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.mi-center-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.06);
    margin-bottom: 30px;
    border-top: 4px solid #FF6700;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #f3f4f6;
}

.mi-center-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
}

.mi-center-card h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #111827;
    line-height: 1.4;
}

.mi-center-card p {
    font-size: 15px;
    line-height: 1.7;
    margin: 8px 0;
    color: #4b5563;
}

.mi-center-card strong {
    color: #111827;
    font-weight: 600;
}

/* Standard link color inside card */
.mi-center-card a:not(.mi-action-call):not(.mi-map-call):not(.mi-map-btn):not(.mi-call-btn) {
    color: #ea580c;
    text-decoration: none;
    font-weight: 600;
}

.mi-rating-badge {
    display: inline-flex;
    align-items: center;
    background: #fffbeb;
    color: #b45309;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    margin-left: 10px;
    border: 1px solid #fcd34d;
    vertical-align: middle;
    line-height: 1;
}

/* =========================================================
   5. ACTION BUTTONS (CALL vs DIRECTIONS)
   ========================================================= */

.mi-center-actions {
    display: flex;
    gap: 12px;
    margin-top: 15px;
}

.mi-center-actions a {
    flex: 1;
    text-align: center;
    padding: 14px 10px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Green Call Buttons */
.mi-call-btn, 
.mi-action-call {
    background: #16a34a; 
    color: #ffffff !important;
}
.mi-call-btn:hover, 
.mi-action-call:hover {
    background: #15803d;
}

/* Orange Directions Buttons */
.mi-map-btn, 
.mi-map-call {
    background: #FF6700; 
    color: #ffffff !important;
}
.mi-map-btn:hover, 
.mi-map-call:hover {
    background: #ea580c;
}



/* =========================================================
   6. REVIEWS & SUBMISSION FORMS
   ========================================================= */

/* ===== FLEX / GRID OVERFLOW FIX ===== */
.mi-centers-grid,
.mi-center-card,
.mi-card-reviews,
.mi-review-form {
    min-width: 0;
    max-width: 100%;
}


.mi-card-reviews {
    margin-top: 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 15px;
}

.mi-card-reviews h4 {
    margin: 0 0 10px 0;
    font-size: 14px;
    color: #374151;
    border-bottom: 2px solid #e5e7eb;
    padding-bottom: 8px;
}

.mi-card-review-item {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    line-height: 1.5;
    color: #555;
}

.mi-review-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
    color: #111827;
    font-weight: 600;
}

.mi-review-span {
    color: #f59e0b;
}

.mi-review-summary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-weight: 700;
    color: #ea580c; 
    font-size: 15px;
}

.mi-review-summary::before {
    content: "✍️";
    font-size: 18px;
    display: inline-block;
}

.mi-review-section-toggle {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #e5e7eb;
}

.mi-review-form {
    margin-top: 18px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    padding: 22px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
    overflow: hidden;
}

.mi-review-form input,
.mi-review-form select,
.mi-review-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid #fdba74;
    font-size: 14px;
    box-sizing: border-box;
    background: #ffffff;
}

.mi-review-form button,
.mi-submit-review {
    background: #FF6700;
    color: #ffffff;
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 600;
    width: 100%;
    max-width: 800px;
    display: block;
    box-sizing: border-box;
    margin: 10px auto 0;
}


.mi-review-form-input { 
    display: none !important; 
}

.mi-review-form button:hover {
    background: #ea580c;
}


/* =========================================================
   7. SEO CONTENT & HELPER BLOCKS
   ========================================================= */

.mi-area-seo-text {
    background: #ffffff;
    border-left: 5px solid #FF6700;
    padding: 25px;
    margin-bottom: 30px;
    border-radius: 12px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    font-size: 15px;
    line-height: 1.7;
}

.mi-area-seo-text h2 {
    font-size: 20px;
    margin-top: 0;
    margin-bottom: 15px;
    color: #1f2937;
}


.mi-how-to-reach, 
.mi-faq {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px;
    margin: 40px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    text-align: left;
}


.mi-faq-item {
    background: #f9fafb;
    border-left: 4px solid #FF6700;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.mi-faq-item h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 600;
    color: #1f2937;
}

/* Internal Links – navigation block */
.mi-internal-links {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px;
    margin: 20px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    max-width: 1200px;
    width: 100%;
    text-align: center;
}

.mi-internal-links ul {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 14px;
    max-width: 1100px;
}

.mi-internal-links li {
    margin: 0;
}

.mi-internal-links li span {
    opacity: 0.7;
    font-size: 13px;
    margin-left: 4px;
}

.mi-internal-links li a {
    display: block;
    padding: 12px 10px;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    color: #c2410c;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: all 0.2s ease;
}


.mi-internal-links li a:hover {
    background: #FF6700;
    color: #ffffff;
    border-color: #FF6700;
}

.mi-internal-links h3, 
.mi-internal-links h2 {
    font-size: 20px !important;
    margin-top: 0;
    margin-bottom: 20px;
    display: block;
}

.mi-city-disclaimer, 
.mi-directory-disclaimer {
    background: #fff7ed;
    border-left: 5px solid #ea580c;
    padding: 20px;
    margin-top: 40px;
    border-radius: 12px;
    font-size: 14px;
    color: #9a3412;
    line-height: 1.6;
}


/* === MI Hub page introduction and content === */

.mi-hub-intro {
    background: #fff7ed;
    padding: 20px;
    border: 1px solid #fed7aa;
    border-radius: 12px;
    margin: 30px 0;
    box-shadow: 0 5px 20px rgba(0,0,0,0.06);
}

.mi-hub-intro h2 {
    margin-top: 25px;
    font-size: 22px;
    font-weight: 700;
    color: #9a3412;
    margin-bottom: 10px;
}

.mi-hub-intro h3{
    margin-top:0;
    margin-bottom:15px;
    color:#9a3412;
    font-size: 20px;
    font-weight: 600;
}  

.mi-hub-steps,
.mi-hub-checklist {
    margin-left: 20px;
    margin-left:18px;
    line-height:1.7;
    color:#374151;
    font-size:14px;
}

.mi-hub-steps li,
.mi-hub-checklist li {
    margin-bottom: 8px;
}


/* =========================================
   STATE PAGE – HUB LINK BLOCK
   ========================================= */

.mi-state-hub-link {
    background: #ffffff;                /* White background */
    border-radius: 18px;                /* Rounded corners */
    padding: 30px;                      
    margin: 40px auto;                  /* Center alignment spacing */
    box-shadow: 0 10px 30px rgba(0,0,0,0.06); /* Soft shadow effect */
    max-width: 1200px;
    width: 100%;
    text-align: center;
    border: none;                       /* Removes the old thin grey border completely */
    border-left: 5px solid #FF6700;     /* Adds the Site-Matching Orange Accent */
}

/* Improve text spacing to match city block */
.mi-state-hub-link p {
    font-size: 15px;
    line-height: 1.6;
    color: #374151;
    margin-bottom: 15px;
}

/* BUTTON CHANGED TO ORANGE */
.mi-hub-link-btn {
    display: inline-block;
    padding: 10px 18px;
    background: #FF6700;                /* Orange Button (Matches site theme) */
    color: #ffffff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 600;
    font-size: 14px;
    transition: background-color 0.2s ease;
}

.mi-hub-link-btn:hover {
    background: #ea580c;                /* Darker Orange on Hover */
}

.mi-internal-links .mi-redundant-city-count {
    display: none;
}


/* =========================================================
   FIX: BROWSE BY STATE – GRID LAYOUT (HUB PAGE)
   ========================================================= */

.browse-by-state {
    background: #ffffff;
    border-radius: 18px;
    padding: 30px;
    margin: 40px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    max-width: 1200px;
    width: 100%;
}

.browse-by-state h2 {
    font-size: 22px;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 25px;
    color: #1f2937;
    text-align: center;
}

/* GRID */
.browse-by-state .state-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* 200px min-width ensures buttons don't get too squashed */
    gap: 16px;
    width: 100%;
}

/* STATE CARD - CENTERED STACK LAYOUT */
.browse-by-state .state-item {
    display: flex;
    flex-direction: column;       /* This stacks the Name and Count vertically */
    align-items: center;          /* This centers them horizontally */
    justify-content: center;      /* This centers them vertically */
    text-align: center;           /* Ensures text is centered */
    
    padding: 16px 10px;           /* Vertical padding gives it height */
    border-radius: 12px;
    background: #fff7ed;          /* Light Orange Background */
    border: 1px solid #fed7aa;    /* Soft Orange Border */
    color: #ea580c;               /* Dark Orange Text */
    
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
    line-height: 1.3;
}

/* COUNT STYLING */
.browse-by-state .state-item .count {
    font-size: 13px;
    opacity: 0.85;
    margin-left: 0;               /* Remove old left margin */
    margin-top: 5px;              /* Add space between Name and Count */
    color: #9a3412;
    display: block;               /* Ensures it sits on its own line */
}

/* HOVER EFFECT */
.browse-by-state .state-item:hover {
    background: #ffffff;
    color: #c2410c;
    border-color: #ea580c;
    box-shadow: 0 5px 15px rgba(234, 88, 12, 0.15); /* Orange glow on hover */
    transform: translateY(-2px);
}

.browse-by-state .state-item:hover .count {
    opacity: 1;
}


/* =========================================================
   8. XIAOMI OFFICIAL SUPPORT BLOCK (HUB PAGE)
   ========================================================= */
.mi-official-support {
    background: rgba(0, 0, 0, 0.03); /* Safe, neutral light grey */
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 24px;
    margin: 40px 0;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
}

.mi-official-support h2 {
    font-size: 1.5rem;
    margin-bottom: 16px;
    color: #333;
    margin-top: 0;
}

.mi-support-list {
    margin: 20px 0;
    padding-left: 0;
    list-style: none;
}

.mi-support-list li {
    margin-bottom: 12px;
    font-size: 16px;
    padding-left: 12px;
    /* Uses text color for border to match theme automatically */
    border-left: 3px solid currentColor; 
}

.mi-link {
    color: #0066cc; /* Standard link blue */
    text-decoration: none;
    font-weight: 600;
}

.mi-link:hover {
    text-decoration: underline;
}

.mi-support-note {
    font-size: 14px;
    color: #666;
    font-style: italic;
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 15px;
}


/* SEO Highlight Box (FAQ / Context) - Required for the new Intro */
.mi-hub-faq-highlight {
    background: #ffffff;
    border-left: 4px solid #FF6700;
    padding: 15px 20px;
    margin: 25px 0;
    font-size: 14px;
    line-height: 1.6;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.mi-hub-faq-highlight strong {
    color: #1f2937;
    display: block;
    margin-bottom: 4px;
    font-size: 15px;
}


.mi-directory-summary {
    font-size: 15px;
    color: #444;
    margin-top: 10px;
    margin-bottom: 20px;
}


/* ======================================
   POCO UX POLISH (PHASE-5)
====================================== */

body.poco-skin h1 {
    border-left: 4px solid #f59e0b;
    padding-left: 12px;
}

.poco-back-links {
    margin: 10px 0 20px;
    font-size: 14px;
}

.poco-back-links a {
    color: #2563eb;
    text-decoration: none;
}

.poco-back-links a:hover {
    text-decoration: underline;
}

.poco-device-coverage,
.poco-warranty-info,
.poco-brand-clarification {
    background: #fff;
    border-radius: 12px;
    padding: 18px;
    margin: 30px 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

/* ======================================
   POCO ONLY – BREADCRUMB VISIBILITY FIX
   ====================================== */

body.poco-skin .mi-breadcrumbs {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    margin: 12px 0 16px;
    font-size: 13px;
    line-height: 1.4;
}

body.poco-skin .mi-breadcrumbs a {
    color: #2563eb;
    text-decoration: none;
}

body.poco-skin .mi-breadcrumbs a:hover {
    text-decoration: underline;
}


.brand-cross-link {
    background: #eef2ff;
    border: 1px solid #c7d2fe;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    margin: 20px 0;
    font-weight: 600;
    color: #3730a3;
}
.brand-cross-link a {
    color: #4338ca;
    text-decoration: underline;
}


/* === CLS-SAFE AD CONTAINER (Mi Theme Optimized) === */
.gp-ad-slot {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 15px 0; 
  text-align: center;
  min-height: 280px;
  background-color: transparent;
}

/* Label Styling - Clean & Neutral */
.ad-label {
  font-size: 11px; /* Slightly readable but small */
  color: #888;     /* Darker gray for better visibility on white screens */
  display: block;
  margin-bottom: 5px; /* Little more breathing room */
  text-transform: uppercase;
  letter-spacing: 0.5px; /* Adds a premium "Tech Site" feel */
  font-family: inherit;  /* Uses your theme's font */
  font-weight: 500;      /* Slightly cleaner look */
}


/* =========================================================
   9. UNIFIED MOBILE STYLES (FINAL MASTER LOCKED)
   ========================================================= */

/* --- MAIN MOBILE STYLES (Max Width 768px) --- */
@media (max-width: 768px) {

    .mi-city-page h1 {
        line-height: 1.35;
        margin-bottom: 10px;
    }

    /* Page Container */
    .mi-city-page, 
    .mi-directory-page {
        width: 100%;
        max-width: 100%;
        padding: 20px 12px 100px;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    body.page-id-9329 .entry-content {
        margin-top: 0;
    }

    .mi-city-page h1 {
        font-size: 22px;
        padding: 15px;
        margin: 20px 0 15px;
        border-radius: 12px;
    }

    /* INTERNAL LINKS - Base Style (2 Columns) */
    .mi-city-page .mi-internal-links {
        width: 100%;
        padding: 15px 10px;
        margin: 10px 0;
        box-sizing: border-box;
    }

    .mi-city-page .mi-internal-links ul {
        display: grid;
        grid-template-columns: 1fr; /* ONE item per row on mobile */
        gap: 10px;
        padding: 0;
        margin: 0;
        list-style: none;
    }

    .mi-city-page .mi-internal-links a {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        text-align: center;
        font-size: 14px;
        line-height: 1.35;
        padding: 10px 6px;
        white-space: normal;
        word-break: break-word;
        hyphens: auto;
        box-sizing: border-box;
    }

    .mi-city-page .mi-internal-links h2,
    .mi-city-page .mi-internal-links h3 {
        font-size: 18px;
        margin-bottom: 15px;
    }

    /* Directory Forms */
    .mi-filter-row { display: block; }

    .mi-directory-form input,
    .mi-directory-form select,
    .mi-search-btn-icon {
        display: block;
        width: 100% !important;
        height: 50px !important;
        margin-bottom: 12px !important;
        box-sizing: border-box;
    }

    .mi-directory-form {
        padding: 25px 15px;
        margin-bottom: 40px;
        width: 100%;
        box-sizing: border-box;
    }

    /* Cards & Content */
    .mi-centers-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 20px;
        width: 100%;
    }
    
    .mi-center-card {
        padding: 20px;
        width: 100%;
        box-sizing: border-box;
    }

    .mi-how-to-reach,
    .mi-faq {
        padding: 20px;
        margin: 30px 0;
        width: 100%;
        box-sizing: border-box;
    }
    
    .mi-state-stats > div {
        flex: 1;
        min-width: 100%;
    }

    .mi-updated-badge {
    margin: 8px 0 8px;
    }

    .mi-notice-box {
    margin-bottom: 10px;
    }

/* browser by state links on directory page*/

    .browse-by-state {
        padding: 20px 15px;
        margin: 20px 0;
    }
    .browse-by-state .state-grid {
        grid-template-columns: 1fr 1fr; /* 2 columns on mobile looks better than 1 */
        gap: 10px;
    }
    .browse-by-state .state-item {
        padding: 12px 5px;
        font-size: 14px;
    }

    body.poco-skin .mi-breadcrumbs {
        font-size: 12px;
        white-space: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

}
