/*
Theme Name: Menhu GEO
Theme URI: https://loscat/
Description: Menhu child theme optimized for GEO AI City Generator - responsive mobile/tablet/desktop
Author: Codex
Version: 1.0
Template: menhu
License: GPL-2.0+
Text Domain: menhu-geo
*/

/* ============================================
   GEO City & Business - Mobile First Styles
   ============================================ */

/* ============================================
   AGGRESSIVE RESET - Override menhu parent constraints
   ============================================ */
body.geo-city-page .container,
body.geo-business-page .container,
.geo-city-page .container,
.geo-business-page .container {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box !important;
}
body.geo-city-page #primary,
body.geo-business-page #primary,
.geo-city-page #primary,
.geo-business-page #primary {
    width: 100% !important;
    max-width: 100% !important;
    float: none !important;
    overflow: visible !important;
}
body.geo-city-page .content-area,
body.geo-business-page .content-area {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
}
body.geo-city-page .site-main,
body.geo-business-page .site-main {
    width: 100% !important;
    overflow: visible !important;
}
body.geo-city-page .sidebar,
body.geo-business-page .sidebar,
body.geo-city-page #secondary,
body.geo-business-page #secondary,
body.geo-city-page .widget-area,
body.geo-business-page .widget-area {
    display: none !important;
}
.geo-city-page .geo-city-page,
.geo-business-page .geo-business-detail {
    max-width: 1280px;
    margin: 0 auto;
    overflow: visible !important;
}

/* Reset menhu fixed widths for GEO pages */
@media (max-width: 1024px) {
    body.geo-city-page .container,
    body.geo-business-page .container {
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 10px !important;
    }
    body.geo-city-page #primary,
    body.geo-business-page #primary {
        width: 100% !important;
        float: none !important;
    }
}
@media (max-width: 768px) {
    body.geo-city-page .container,
    body.geo-business-page .container {
        padding: 0 8px !important;
    }
    body.geo-city-page #primary,
    body.geo-business-page #primary {
        width: 100% !important;
    }
}
@media (max-width: 480px) {
    body.geo-city-page .container,
    body.geo-business-page .container {
        padding: 0 4px !important;
    }
}

/* ---- Variables ---- */
:root {
    --geo-primary: #2271b1;
    --geo-primary-dark: #135e96;
    --geo-accent: #f0a500;
    --geo-success: #00a32a;
    --geo-danger: #d63638;
    --geo-bg: #f8f9fa;
    --geo-card-bg: #ffffff;
    --geo-border: #e8e8e8;
    --geo-text: #333333;
    --geo-text-light: #666666;
    --geo-radius: 12px;
    --geo-shadow: 0 2px 12px rgba(0,0,0,0.06);
    --geo-shadow-hover: 0 6px 24px rgba(0,0,0,0.12);
}

/* ---- City Page ---- */
.geo-city-page {
    padding: 0;
}

.geo-city-hero {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #fff;
    padding: 40px 24px;
    border-radius: var(--geo-radius);
    margin-bottom: 30px;
    text-align: center;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
}

.geo-city-hero h1 {
    color: #fff;
    font-size: 2em;
    margin: 0 0 8px;
    line-height: 1.3;
}

.geo-city-hero .geo-city-subtitle {
    font-size: 1.1em;
    opacity: 0.9;
    margin: 0;
}

/* ---- Category Pills ---- */
.geo-category-nav {
    margin-bottom: 30px;
}

.geo-category-nav h2 {
    font-size: 1.3em;
    margin: 0 0 16px;
    color: var(--geo-text);
}

.geo-cat-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.geo-cat-pills li {
    margin: 0;
}

.geo-cat-pills a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 22px;
    background: #fff;
    border: 2px solid var(--geo-border);
    border-radius: 50px;
    color: var(--geo-text);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95em;
    transition: all 0.2s;
}

.geo-cat-pills a:hover,
.geo-cat-pills a.active {
    background: var(--geo-primary);
    color: #fff;
    border-color: var(--geo-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34,113,177,0.3);
}

.geo-cat-pills a .geo-cat-icon {
    font-size: 1.2em;
}

/* ---- Business Grid ---- */
.geo-section-title {
    font-size: 1.5em;
    margin: 30px 0 20px;
    padding-bottom: 12px;
    border-bottom: 3px solid var(--geo-primary);
    display: block;
    color: var(--geo-text);
    line-height: 1.4;
}

.geo-business-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

.geo-business-card {
    background: var(--geo-card-bg);
    border: 1px solid var(--geo-border);
    border-radius: var(--geo-radius);
    overflow: hidden;
    transition: all 0.25s;
    box-shadow: var(--geo-shadow);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.geo-business-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--geo-shadow-hover);
}

.geo-biz-thumb {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* 16:9 */
    overflow: hidden;
    background: #e0e0e0;
}

.geo-biz-thumb img {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.geo-business-card:hover .geo-biz-thumb img {
    transform: scale(1.05);
}

.geo-biz-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--geo-accent);
    color: #fff;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 700;
}

.geo-biz-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.geo-biz-body h3 {
    font-size: 1.15em;
    margin: 0 0 8px;
    line-height: 1.4;
}

.geo-biz-body h3 a {
    color: var(--geo-text);
    text-decoration: none;
}

.geo-biz-body h3 a:hover {
    color: var(--geo-primary);
}

.geo-biz-rating {
    color: var(--geo-accent);
    font-weight: 700;
    font-size: 0.9em;
    margin-bottom: 8px;
}

.geo-biz-meta {
    font-size: 0.85em;
    color: var(--geo-text-light);
    margin-bottom: 10px;
    line-height: 1.6;
    word-break: break-all;
    overflow-wrap: break-word;
}

.geo-biz-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-right: 12px;
}

.geo-biz-excerpt {
    font-size: 0.9em;
    color: var(--geo-text-light);
    flex: 1;
    line-height: 1.6;
}

.geo-biz-footer {
    padding: 12px 18px;
    border-top: 1px solid var(--geo-border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.geo-biz-footer .geo-btn-more {
    padding: 6px 16px;
    background: var(--geo-primary);
    color: #fff;
    border-radius: 20px;
    text-decoration: none;
    font-size: 0.85em;
    font-weight: 600;
    transition: background 0.2s;
}

.geo-biz-footer .geo-btn-more:hover {
    background: var(--geo-primary-dark);
}

/* ---- Business Detail Page ---- */
.geo-business-detail {
    width: 100%;
}

.geo-biz-detail-header {
    margin-bottom: 24px;
}

.geo-biz-detail-header h1 {
    font-size: 1.8em;
    margin: 0 0 10px;
    line-height: 1.3;
}

.geo-biz-detail-rating {
    display: inline-block;
    background: var(--geo-accent);
    color: #fff;
    padding: 4px 14px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.95em;
}

.geo-biz-detail-image {
    position: relative;
    max-height: 105px;
    overflow: hidden;
    border-radius: var(--geo-radius);
    margin-bottom: 24px;
}
.geo-biz-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.geo-biz-image-title {
    position: absolute;
    bottom: 12px;
    left: 20px;
    color: #fff;
    font-size: 1.3em;
    font-weight: 700;
    z-index: 2;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    max-width: 80%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.geo-biz-detail-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(0,0,0,0.4), rgba(0,0,0,0.1));
    pointer-events: none;
}
.geo-biz-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.geo-biz-info-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    background: var(--geo-bg);
    border-radius: var(--geo-radius);
    overflow: hidden;
}

.geo-biz-info-table th,
.geo-biz-info-table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--geo-border);
}

.geo-biz-info-table th {
    width: 100px;
    color: var(--geo-text-light);
    font-weight: 600;
    font-size: 0.9em;
    background: #f0f0f1;
}

.geo-biz-info-table td {
    color: var(--geo-text);
    font-size: 0.95em;
}

.geo-biz-detail-content {
    line-height: 1.8;
    font-size: 1.05em;
}

/* ---- FAQ Section ---- */
.geo-faq-section {
    margin: 30px 0;
    background: var(--geo-bg);
    border-radius: var(--geo-radius);
    padding: 24px;
}

.geo-faq-section h3 {
    margin: 0 0 18px;
    font-size: 1.2em;
}

.geo-faq-item {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--geo-border);
}

.geo-faq-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.geo-faq-q {
    font-weight: 700;
    color: var(--geo-text);
    cursor: pointer;
    font-size: 1em;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.geo-faq-q::before {
    content: "Q";
    color: var(--geo-primary);
    font-weight: 900;
    font-size: 1.1em;
    flex-shrink: 0;
}

.geo-faq-a {
    margin-top: 8px;
    color: var(--geo-text-light);
    padding-left: 24px;
    font-size: 0.95em;
    line-height: 1.7;
    display: flex;
    gap: 8px;
}

.geo-faq-a::before {
    content: "A";
    color: var(--geo-success);
    font-weight: 900;
    font-size: 1.1em;
    flex-shrink: 0;
}

/* ---- Related Businesses ---- */
.geo-related {
    margin: 30px 0;
}

.geo-related h3 {
    font-size: 1.2em;
    margin-bottom: 16px;
}

.geo-related-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.geo-related-list li a {
    display: block;
    padding: 12px 16px;
    background: var(--geo-card-bg);
    border: 1px solid var(--geo-border);
    border-radius: 8px;
    color: var(--geo-text);
    text-decoration: none;
    transition: all 0.2s;
}

.geo-related-list li a:hover {
    border-color: var(--geo-primary);
    color: var(--geo-primary);
}

/* ---- Back Button ---- */
.geo-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 20px;
    background: #fff;
    border: 2px solid var(--geo-border);
    border-radius: 50px;
    color: var(--geo-text);
    text-decoration: none;
    font-weight: 600;
    margin: 20px 0;
    transition: all 0.2s;
}

.geo-back-btn:hover {
    border-color: var(--geo-primary);
    color: var(--geo-primary);
}
.geo-back-btn,
.geo-btn-more {
    white-space: nowrap;
}

/* ---- Breadcrumb ---- */
.geo-breadcrumb {
    font-size: 0.9em;
    color: var(--geo-text-light);
    margin-bottom: 20px;
    padding: 10px 0;
}

.geo-breadcrumb a {
    color: var(--geo-primary);
    text-decoration: none;
}

.geo-breadcrumb a:hover {
    text-decoration: underline;
}

.geo-breadcrumb .geo-sep {
    margin: 0 8px;
    color: #ccc;
}

/* ---- Skeleton Loading ---- */
.geo-skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: geo-shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes geo-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ============================================
   RESPONSIVE - Tablet (768px - 1024px)
   ============================================ */
@media (min-width: 768px) {
    .geo-city-hero {
        padding: 50px 40px;
        text-align: left;
    }

    .geo-city-hero h1 {
        font-size: 2.4em;
    }

    .geo-business-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .geo-related-list {
        grid-template-columns: repeat(2, 1fr);
    }

    .geo-biz-detail-header h1 {
        font-size: 2em;
    }

    .geo-faq-section {
        padding: 30px;
    }

    .geo-biz-info-table th {
        width: 100px;
    }

    .geo-biz-detail-sidebar {
        width: 100%;
        float: none;
        clear: both;
    }

    .geo-business-detail {
        display: block;
    }

    .geo-cat-pills a {
        padding: 10px 20px;
        font-size: 0.95em;
    }

    .geo-biz-detail-image {
        max-height: 105px;
        margin-left: 0;
        margin-right: 0;
        border-radius: var(--geo-radius);
    }
}

/* ============================================
   RESPONSIVE - Desktop (> 1024px)
   ============================================ */
@media (min-width: 1025px) {
    .geo-city-hero {
        padding: 60px 50px;
    }

    .geo-city-hero h1 {
        font-size: 2.8em;
    }

    .geo-business-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 24px;
    }

    .geo-related-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .geo-business-detail {
        display: grid;
        grid-template-columns: 1fr 300px;
        gap: 30px;
        align-items: start;
    }

    .geo-biz-detail-header {
        grid-column: 1 / -1;
    }

    .geo-biz-detail-sidebar {
        grid-column: 2;
        grid-row: 3 / 6;
        position: sticky;
        top: 20px;
        align-self: start;
    }

    .geo-biz-detail-image {
        grid-column: 1;
        grid-row: 2;
        max-height: 105px;
    }

    .geo-biz-detail-content {
        grid-column: 1;
        grid-row: 3;
    }

    .geo-biz-detail-sidebar-inner {
        background: var(--geo-bg);
        border-radius: var(--geo-radius);
        padding: 20px;
    }

    .geo-faq-section {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .geo-related {
        grid-column: 1 / -1;
        grid-row: auto;
    }
}

/* ============================================
   RESPONSIVE - Small Mobile (< 480px)
   ============================================ */
/* ---- Mobile Sidebar Fix ---- */
.geo-biz-detail-sidebar {
    clear: both;
    margin: 20px 0;
    width: 100%;
}
.geo-biz-detail-sidebar-inner {
    background: var(--geo-bg);
    border-radius: var(--geo-radius);
    padding: 16px;
    overflow: hidden;
}
.geo-biz-info-table {
    width: 100%;
    table-layout: fixed;
    word-break: break-all;
}

/* ---- Mobile general fixes ---- */
.geo-section-title small {
    display: block;
    font-size: 0.7em;
    color: var(--geo-text-light);
    margin-top: 2px;
}
.geo-biz-thumb {
    padding-top: 50%;
}
.geo-biz-badge {
    top: 8px;
    right: 8px;
    font-size: 0.75em;
    padding: 2px 8px;
}

@media (max-width: 479px) {
    .geo-city-hero {
        padding: 24px 14px;
        border-radius: 8px;
    }

    .geo-city-hero h1 {
        font-size: 1.4em;
    }

    .geo-city-hero .geo-city-subtitle {
        font-size: 0.85em;
    }

    .geo-cat-pills {
        gap: 6px;
    }

    .geo-cat-pills a {
        padding: 6px 14px;
        font-size: 0.82em;
    }

    .geo-section-title {
        font-size: 1.2em;
    }

    .geo-business-card {
        margin: 0 -8px;
    }

    .geo-biz-body {
        padding: 12px;
    }

    .geo-biz-body h3 {
        font-size: 1em;
    }

    .geo-biz-meta {
        font-size: 0.8em;
    }

    .geo-biz-footer {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
        padding: 10px 12px;
    }

    .geo-biz-footer .geo-btn-more {
        text-align: center;
        padding: 8px 16px;
    }

    .geo-biz-detail-header h1 {
        font-size: 1.3em;
    }

    .geo-biz-info-table th {
        width: 70px;
        font-size: 0.82em;
    }

    .geo-biz-info-table td {
        font-size: 0.85em;
    }

    .geo-biz-detail-sidebar-inner {
        padding: 12px;
    }

    .geo-biz-detail-image {
        max-height: 80px;
        margin-left: -14px;
        margin-right: -14px;
        border-radius: 0;
    }

    .geo-biz-image-title {
        font-size: 1em;
        bottom: 8px;
        left: 14px;
    }

    .geo-back-btn {
        padding: 8px 16px;
        font-size: 0.9em;
    }

    .geo-faq-section {
        padding: 16px;
        margin: 20px -8px;
        border-radius: 0;
    }

    .geo-faq-q {
        font-size: 0.9em;
    }

    .geo-faq-a {
        font-size: 0.85em;
    }

    .geo-related-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .geo-related-list li a {
        padding: 10px 14px;
        font-size: 0.9em;
    }

    .breadcrumbs {
        font-size: 0.8em;
    }

    .geo-business-grid {
        gap: 14px;
    }

    .geo-biz-thumb {
        padding-top: 45%;
    }

    .geo-biz-badge {
        top: 6px;
        right: 6px;
        font-size: 0.7em;
        padding: 2px 6px;
    }

    .geo-city-hero .geo-city-subtitle {
        font-size: 0.78em;
        line-height: 1.5;
    }

    .geo-cat-pills a .geo-cat-icon {
        font-size: 1em;
    }

    .geo-biz-detail-sidebar {
        margin: 16px 0;
    }

    .geo-biz-detail-sidebar-inner {
        border-radius: 8px;
    }
}

/* ---- Print Styles ---- */
@media print {
    .geo-biz-footer,
    .geo-back-btn,
    .geo-cat-pills {
        display: none;
    }
    .geo-business-card {
        box-shadow: none;
        border: 1px solid #ccc;
        break-inside: avoid;
    }
}

/* === Rich Content Sections === */
.geo-biz-features {
    margin: 30px 0;
    padding: 24px 28px;
    background: #f8fdf8;
    border-left: 4px solid #00a32a;
    border-radius: 8px;
}
.geo-biz-features h3 {
    margin: 0 0 16px;
    font-size: 1.15em;
    color: #1a6e2a;
}
.geo-features-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 24px;
}
.geo-features-list li {
    padding: 6px 0;
    font-size: 0.95em;
    color: #333;
}
.geo-feature-icon {
    color: #00a32a;
    font-weight: 700;
    margin-right: 8px;
}

.geo-biz-area {
    margin: 30px 0;
    padding: 24px 28px;
    background: #f0f6fc;
    border-left: 4px solid #2271b1;
    border-radius: 8px;
}
.geo-biz-area h3 {
    margin: 0 0 12px;
    font-size: 1.15em;
    color: #135e96;
}
.geo-biz-area p {
    margin: 0;
    font-size: 0.95em;
    line-height: 1.7;
    color: #444;
}

.geo-biz-why-us {
    margin: 30px 0;
    padding: 28px;
    background: linear-gradient(135deg, #fef9f0, #fff8e8);
    border: 1px solid #f0d78c;
    border-radius: 10px;
}
.geo-biz-why-us h3 {
    margin: 0 0 14px;
    font-size: 1.2em;
    color: #b85c00;
}
.geo-biz-why-us p {
    margin: 8px 0;
    font-size: 0.95em;
    line-height: 1.8;
    color: #555;
}

.geo-btn-call:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Responsive for features grid */
@media (max-width: 768px) {
    .geo-features-list {
        grid-template-columns: 1fr;
        gap: 6px;
    }
    .geo-biz-features,
    .geo-biz-area,
    .geo-biz-why-us {
        padding: 18px 16px;
        margin: 20px 0;
    }
}

/* === Fix ul styling inside business content === */
.geo-biz-detail-content ul {
    list-style: none;
    padding: 12px 0;
    margin: 16px 0;
}
.geo-biz-detail-content ul li {
    padding: 8px 0 8px 24px;
    position: relative;
    line-height: 1.7;
    border-bottom: 1px dashed #e8e8e8;
}
.geo-biz-detail-content ul li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: #00a32a;
    font-weight: 700;
}
.geo-biz-detail-content ul li:last-child {
    border-bottom: none;
}

/* === Ensure new sections fill full width on desktop grid === */
@media (min-width: 1025px) {
    .geo-biz-features,
    .geo-biz-area,
    .geo-biz-why-us {
        grid-column: 1 / -1;
    }
}

/* === Fix spacing between sections === */
.geo-biz-detail-content {
    margin-bottom: 20px;
}

/* === Business detail grid: ensure all direct children are placed === */
.geo-business-detail > * {
    min-width: 0;
}

/* === Full-width grid on city pages === */
.geo-city-page .geo-biz-link-grid {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px 24px;
}
/* Override any parent theme restrictions */
.geo-city-page .geo-city-businesses,
.geo-city-page .geo-business-grid {
    width: 100% !important;
    max-width: 100% !important;
}

/* Force grid to span full available width */
.geo-city-page .site-main,
.geo-city-page article.geo-city-page,
.geo-city-page .geo-biz-detail-content {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}
.geo-city-page .geo-biz-link-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px 20px;
    width: 100%;
}

/* === KILL ALL WIDTH RESTRICTIONS on city pages === */
.geo-city-page,
.geo-city-page body,
.geo-city-page .container,
.geo-city-page #page,
.geo-city-page #primary,
.geo-city-page .content-area,
.geo-city-page .site-main,
.geo-city-page .site-content,
.geo-city-page article,
.geo-city-page .geo-city-page,
.geo-city-page .geo-biz-detail-content,
.geo-city-page .geo-city-businesses,
.geo-city-page .geo-business-grid {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* Grid fills full container width with equal columns */
.geo-city-page .geo-biz-link-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 16px 24px !important;
    width: 100% !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

.geo-city-page .geo-biz-link-item {
    padding: 12px 16px !important;
    border-bottom: 1px dashed #ddd !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* === 3-column grid ON geo-business-grid (inside city content) === */
.geo-city-page .geo-city-businesses .geo-business-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 14px 20px !important;
    width: 100% !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}
.geo-city-page .geo-city-businesses .geo-business-grid .geo-biz-link-grid {
    display: contents !important;
}
.geo-city-page .geo-city-businesses .geo-business-grid .geo-biz-link-item {
    padding: 12px 16px !important;
    border-bottom: 1px dashed #ddd !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

/* Responsive */
@media (max-width: 768px) {
    .geo-city-page .geo-city-businesses .geo-business-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px 14px !important;
        padding: 0 14px !important;
    }
}
@media (max-width: 480px) {
    .geo-city-page .geo-city-businesses .geo-business-grid {
        grid-template-columns: 1fr !important;
        padding: 0 10px !important;
    }
}

/* === Pagination === */
.geo-pagination {
    margin: 30px 0;
    text-align: center;
}
.geo-pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 3px;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #2271b1;
    text-decoration: none;
    font-size: 0.95em;
    transition: all 0.2s;
}
.geo-pagination .page-numbers:hover {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
}
.geo-pagination .page-numbers.current {
    background: #2271b1;
    color: #fff;
    border-color: #2271b1;
    font-weight: 700;
}
.geo-pagination .page-numbers.dots {
    border: none;
    background: none;
    color: #666;
}
.geo-pagination .page-numbers.dots:hover {
    background: none;
    color: #666;
}