/* ===== Force 3 Columns, 4 Rows Grid for Links ===== */

/* Target the main container (data-id="89d7399") */
.elementor-location-footer .e-con[data-id="89d7399"] {
    display: grid !important;
    /* Explicitly define 3 columns */
    grid-template-columns: repeat(3, 1fr) !important;
    /* Explicitly define 4 rows */
    grid-template-rows: repeat(4, auto) !important;
    /* Flow items top-to-bottom first, then left-to-right */
    grid-auto-flow: column !important;
    gap: 15px !important;
    width: 100% !important;
}

/* Remove flexbox behavior from the 3 inner column wrappers */
.elementor-location-footer .e-con[data-id="89d7399"] > .e-con {
    display: contents !important; /* Flatten the structure so paragraphs become direct grid items */
}

/* Ensure the paragraphs inside behave as block items within the grid */
.elementor-location-footer .e-con[data-id="89d7399"] p {
    margin: 0 !important;
    padding: 0 !important;
}

/* Mobile: fallback to single column */
@media (max-width: 767px) {
    .elementor-location-footer .e-con[data-id="89d7399"] {
        grid-template-columns: 1fr !important;
        grid-auto-flow: row !important;
        grid-template-rows: auto !important;
    }
}
