/* geo — Directorio geográfico de empresas (shared by geo_index, geo_comunidad, geo_provincia, geo_localidad) */

.section-geo {
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
    overflow-x: clip;
}

/* ---- Breadcrumb ---- */
.geo-breadcrumb-section {
    background: #F9FAFB;
    padding: 8px 0 0;
}

.geo-breadcrumb-inner {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 80px;
}

.geo-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    font-family: var(--skin-font-primary);
    font-size: 14px;
    font-weight: 400;
    line-height: 17px;
    color: var(--skin-text-muted);
}

.geo-breadcrumb__item {
    color: var(--skin-text-muted);
    text-decoration: none;
}

.geo-breadcrumb__item:hover { text-decoration: underline; }

.geo-breadcrumb__item--current {
    font-weight: 600;
    color: var(--skin-dark-900);
}

.geo-breadcrumb__sep {
    margin: 0 8px;
    color: var(--skin-text-muted);
}

/* ---- Main section ---- */
.geo-main-section {
    background: #F9FAFB;
    padding: 40px 80px 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 48px;
}

.geo-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
    max-width: 1280px;
}

.geo-header__title {
    font-family: var(--skin-font-display);
    font-size: 36px;
    font-weight: 700;
    line-height: 44px;
    color: var(--skin-dark-900);
    text-align: center;
    margin: 0;
}

.geo-header__subtitle {
    font-family: var(--skin-font-primary);
    font-size: 16px;
    font-weight: 400;
    color: var(--skin-text-muted);
    text-align: center;
    margin: 0;
}

/* ---- Content layout (list + widgets) ---- */
.geo-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 32px;
    width: 100%;
    max-width: 1280px;
    align-items: start;
}

.geo-content--full {
    grid-template-columns: 1fr;
}

/* ---- Card ---- */
.geo-card {
    background: var(--skin-bg-surface);
    border-radius: 16px;
    box-shadow: 0px 1px 4px 1px rgba(10, 13, 18, 0.08);
    overflow: hidden;
}

.geo-card__title {
    font-family: var(--skin-font-display);
    font-size: 20px;
    font-weight: 700;
    color: var(--skin-dark-900);
    padding: 24px 24px 16px;
    margin: 0;
    border-bottom: 1px solid rgba(9, 30, 66, 0.07);
}

/* ---- Communities grid ---- */
.geo-communities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 0;
}

.geo-community-link {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    font-family: var(--skin-font-primary);
    font-size: 15px;
    font-weight: 500;
    color: var(--skin-brand-navy);
    text-decoration: none;
    border-bottom: 1px solid rgba(9, 30, 66, 0.06);
    transition: background 0.1s;
}

.geo-community-link:hover { background: var(--skin-bg-page); }

/* ---- Localities list (comunidad + provincia level) ---- */
.geo-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.geo-list__item {
    display: flex;
    align-items: center;
    padding: 10px 24px;
    font-family: var(--skin-font-primary);
    font-size: 14px;
    font-weight: 500;
    color: var(--skin-brand-navy);
    text-decoration: none;
    border-bottom: 1px solid rgba(9, 30, 66, 0.06);
    border-right: 1px solid rgba(9, 30, 66, 0.06);
    transition: background 0.1s;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.geo-list__item:nth-child(3n) { border-right: none; }
.geo-list__item:hover { background: var(--skin-bg-page); }

/* Single-column variant (for province lists in comunidad page) */
.geo-list--single {
    grid-template-columns: 1fr;
}

.geo-list--single .geo-list__item {
    border-right: none;
}

.geo-list--single .geo-list__item:last-child { border-bottom: none; }

/* ---- Companies table (localidad level) ---- */
.geo-table {
    width: 100%;
    border-collapse: collapse;
}

.geo-table__th {
    font-family: var(--skin-font-primary);
    font-size: 13px;
    font-weight: 600;
    color: var(--skin-brand-navy);
    text-align: left;
    padding: 12px 24px;
    border-bottom: 2px solid rgba(9, 30, 66, 0.10);
    white-space: nowrap;
}

.geo-table__row {
    border-bottom: 1px solid rgba(9, 30, 66, 0.06);
    transition: background 0.1s;
}

.geo-table__row:last-child { border-bottom: none; }
.geo-table__row:hover { background: var(--skin-bg-page); }

.geo-table__td {
    font-family: var(--skin-font-primary);
    font-size: 14px;
    font-weight: 400;
    color: var(--skin-dark-900);
    padding: 10px 24px;
    vertical-align: middle;
}

.geo-table__link {
    color: var(--skin-brand-navy);
    text-decoration: none;
    font-weight: 500;
}

.geo-table__link:hover { text-decoration: underline; }

/* ---- Pagination ---- */
.geo-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid rgba(9, 30, 66, 0.07);
}

.geo-pagination__btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    background: var(--skin-bg-surface);
    border: 1px solid rgba(9, 30, 66, 0.14);
    border-radius: 8px;
    color: var(--skin-dark-900);
    text-decoration: none;
    font-family: var(--skin-font-primary);
    font-size: 14px;
    font-weight: 500;
    transition: background 0.15s;
}

.geo-pagination__btn:hover { background: var(--skin-bg-page); }

.geo-pagination__btn--disabled {
    opacity: 0.4;
    pointer-events: none;
}

.geo-pagination__info {
    font-family: var(--skin-font-primary);
    font-size: 14px;
    color: var(--skin-text-muted);
}

/* ---- Widgets sidebar ---- */
.geo-widgets {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.geo-widget__title {
    font-family: var(--skin-font-display);
    font-size: 16px;
    font-weight: 700;
    color: var(--skin-dark-900);
    padding: 20px 20px 12px;
    margin: 0;
    border-bottom: 1px solid rgba(9, 30, 66, 0.07);
}

.geo-widget__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.geo-widget__item {
    padding: 10px 20px;
    border-bottom: 1px solid rgba(9, 30, 66, 0.05);
    font-size: 13px;
}

.geo-widget__item:last-child { border-bottom: none; }

.geo-widget__link {
    display: block;
    color: var(--skin-brand-navy);
    text-decoration: none;
    font-family: var(--skin-font-primary);
    font-weight: 500;
    font-size: 13px;
    line-height: 18px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.geo-widget__link:hover { text-decoration: underline; }

.geo-widget__meta {
    display: flex;
    gap: 8px;
    margin-top: 2px;
    font-family: var(--skin-font-primary);
    font-size: 12px;
    color: var(--skin-text-muted);
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
    .geo-main-section { padding: 32px 40px 60px; }
    .geo-breadcrumb-inner { padding: 0 40px; }
    .geo-content { grid-template-columns: 1fr; }
    .geo-widgets { display: none; }
}

@media (max-width: 768px) {
    .geo-main-section { padding: 24px 16px 48px; gap: 32px; }
    .geo-breadcrumb-inner { padding: 0 16px; }
    .geo-header__title { font-size: 26px; line-height: 32px; }
    .geo-communities-grid { grid-template-columns: 1fr 1fr; }
    .geo-list { grid-template-columns: repeat(2, 1fr); }
    .geo-list__item:nth-child(3n) { border-right: 1px solid rgba(9, 30, 66, 0.06); }
    .geo-list__item:nth-child(2n) { border-right: none; }
    .geo-table__th, .geo-table__td { padding: 8px 12px; }
}
