/* =========================================================
   KINETIC MARKET — GEODIRECTORY PAGINATION
   ========================================================= */

.geodir-loop-paging-container {
    width: 100%;
    margin-top: 28px;
    margin-bottom: 24px;
}

/* Pagination alignment */
.geodir-loop-paging-container .aui-nav-links {
    display: flex;
    justify-content: center;
    width: 100%;
}

.geodir-loop-paging-container ul.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
}

/* Remove default item spacing */
.geodir-loop-paging-container .page-item {
    margin: 0 !important;
}

/* Pagination buttons */
.geodir-loop-paging-container .page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    background: #fff;
    color: #171717;
    border: 1px solid #dedede;
    border-radius: 8px !important;
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    box-shadow: none;
    transition:
        background-color .2s ease,
        border-color .2s ease,
        color .2s ease;
}

/* Hover */
.geodir-loop-paging-container a.page-link:hover {
    background: #171717;
    border-color: #171717;
    color: #fff;
}

/* Active page */
.geodir-loop-paging-container .page-link.current,
.geodir-loop-paging-container .page-link.active,
.geodir-loop-paging-container .page-item.active .page-link {
    background: #c51e28;
    border-color: #c51e28;
    color: #fff;
    cursor: default;
}

/* Ellipsis */
.geodir-loop-paging-container .page-link.dots {
    background: transparent;
    border-color: transparent;
    color: #777;
    min-width: 24px;
    padding: 0 4px;
    box-shadow: none;
}

/* Previous / Next */
.geodir-loop-paging-container .page-link.next,
.geodir-loop-paging-container .page-link.prev {
    font-size: 13px;
}

.geodir-loop-paging-container .page-link i {
    font-size: 12px;
}

/* Keyboard focus */
.geodir-loop-paging-container a.page-link:focus-visible {
    outline: 2px solid #c51e28;
    outline-offset: 3px;
}

/* Mobile */
@media (max-width: 600px) {
    .geodir-loop-paging-container {
        margin-top: 22px;
    }

    .geodir-loop-paging-container ul.pagination {
        gap: 5px;
    }

    .geodir-loop-paging-container .page-link {
        min-width: 36px;
        height: 36px;
        padding: 0 9px;
        font-size: 13px;
        border-radius: 7px !important;
    }
}




/* =========================================================
   KINETIC MARKET — SIDEBAR REDESIGN
   Calendar + Promotional Cards

   REPLACE ENTIRE PREVIOUS SIDEBAR CSS
   ========================================================= */


/* =========================================================
   SIDEBAR LAYOUT
   ========================================================= */

#sidebar .ct-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#sidebar .ct-widget {
    margin: 0 !important;
    min-width: 0;
}


/* =========================================================
   CONSISTENT HEADINGS
   ========================================================= */

#sidebar .widget-title {
    font-size: 19px !important;
    font-weight: 700 !important;
    line-height: 1.3;
    letter-spacing: -0.35px;
    margin: 0 0 18px !important;
    text-transform: none;
}


/* =========================================================
   EVENT CALENDAR CARD
   ========================================================= */

#sidebar #block-4 {
    background: #fff;
    border: 1px solid #e8e5e0;
    border-radius: 14px;
    padding: 20px;
}

#sidebar #block-4 .widget-title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #171717;
}

#sidebar #block-4 .widget-title::before {
    content: "\f073";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    color: #b51f2b;
    font-size: 18px;
}


/* =========================================================
   CALENDAR WRAPPER
   ========================================================= */

#sidebar .geodir_event_cal_widget {
    width: 100%;
    overflow: hidden;
    border-radius: 9px;
}


/* =========================================================
   MONTH NAVIGATION
   ========================================================= */

#sidebar .gd_cal_nav {
    width: 100%;
    background: #f2f1ef !important;
    border: 0 !important;
    margin: 0 !important;
}

#sidebar .gd_cal_nav td {
    background: #f2f1ef !important;
    border: 0 !important;
    padding-top: 12px !important;
    padding-bottom: 12px !important;
    vertical-align: middle;
}

#sidebar .gd-event-cal-title,
#sidebar .gd-event-cal-title strong {
    color: #171717 !important;
    font-size: 15px;
    font-weight: 700;
}

#sidebar .geodir_cal_prev,
#sidebar .geodir_cal_next {
    color: #333 !important;
    transition: color .2s ease;
}

#sidebar .geodir_cal_prev:hover,
#sidebar .geodir_cal_next:hover {
    color: #b51f2b !important;
}


/* =========================================================
   CALENDAR GRID
   ========================================================= */

#sidebar .calendar_widget {
    width: 100% !important;
    table-layout: fixed;
    border-collapse: separate !important;
    border-spacing: 4px 5px !important;
    border: 0 !important;
    margin: 0 !important;
    background: #fff !important;
}


/* =========================================================
   WEEKDAY HEADINGS
   No background shading
   ========================================================= */

#sidebar .calendar_widget thead,
#sidebar .calendar_widget thead tr,
#sidebar .calendar_widget th,
#sidebar .calendar_widget th.days {
    background: #fff !important;
    color: #555 !important;
    border: 0 !important;
    box-shadow: none !important;
}

#sidebar .calendar_widget th {
    height: 34px;
    padding: 4px 0 !important;
    font-size: 12px;
    font-weight: 600;
}


/* =========================================================
   DATE ROWS
   Remove continuous horizontal grid lines
   ========================================================= */

#sidebar .calendar_widget tbody,
#sidebar .calendar_widget tbody tr,
#sidebar .calendar_widget tbody td,
#sidebar .calendar_widget td.gd_cal_sat,
#sidebar .calendar_widget td.gd_cal_nsat {
    background: #fff !important;
    border: 0 !important;
    box-shadow: none !important;
}


/* Individual date cells */

#sidebar .calendar_widget tbody td {
    position: relative;
    height: 43px;
    padding: 2px 2px 8px !important;
    text-align: center;
    vertical-align: middle;
}


/* =========================================================
   SHORT HORIZONTAL BAR UNDER EACH DATE
   ========================================================= */

#sidebar .calendar_widget tbody td:has(.badge)::after {
    content: "";
    position: absolute;
    bottom: 2px;
    left: 50%;
    transform: translateX(-50%);
    width: 22px;
    height: 1px;
    background: #d9d9d9;
    border-radius: 2px;
    pointer-events: none;
}


/* =========================================================
   DATE NUMERALS
   ========================================================= */

#sidebar .calendar_widget .badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 500;
    line-height: 1;
    box-shadow: none !important;
}


/* Ordinary dates */

#sidebar .calendar_widget .no_event {
    background: transparent !important;
    color: #666 !important;
}


/* =========================================================
   TODAY
   ========================================================= */

#sidebar .calendar_widget .date_today .badge {
    background: #f5e7d1 !important;
    color: #171717 !important;
    font-weight: 700;
}


/* =========================================================
   EVENT DATES
   Preserve solid red background
   ========================================================= */

#sidebar .calendar_widget a.event_highlight {
    position: relative;
    background: #b51f2b !important;
    color: #fff !important;
    border-radius: 7px !important;
    font-weight: 700;
    text-decoration: none !important;
    transition: background .2s ease;
}


/* Prevent underline on event badge itself */

#sidebar .calendar_widget a.event_highlight::after {
    content: none !important;
}


/* Event date hover */

#sidebar .calendar_widget a.event_highlight:hover {
    background: #891521 !important;
    color: #fff !important;
}


/* Today with events */

#sidebar .calendar_widget .date_today a.event_highlight {
    background: #b51f2b !important;
    color: #fff !important;
}


/* =========================================================
   PROMOTIONAL CARDS — SHARED STYLES
   ========================================================= */

#sidebar #block-15,
#sidebar #block-14 {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 22px;
    border-radius: 14px;
    overflow: hidden;
}


/* Card headings */

#sidebar #block-15 .widget-title,
#sidebar #block-14 .widget-title {
    font-size: 19px !important;
    margin-bottom: 10px !important;
}


/* =========================================================
   PROMOTIONAL ICONS
   ========================================================= */

#sidebar #block-15::before,
#sidebar #block-14::before {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 17px;
    border-radius: 10px;
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 20px;
}


/* =========================================================
   SUPPORTING TEXT
   Larger and more readable
   ========================================================= */

#sidebar #block-15 .wp-widget-group__inner-blocks::before,
#sidebar #block-14 .wp-widget-group__inner-blocks::before {
    display: block;
    margin-bottom: 20px;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.6;
}


/* =========================================================
   PROMOTIONAL BUTTONS
   ========================================================= */

#sidebar #block-15 .wp-block-buttons,
#sidebar #block-14 .wp-block-buttons {
    width: 100%;
    margin: 0 !important;
}

#sidebar #block-15 .wp-block-button,
#sidebar #block-14 .wp-block-button {
    width: 100%;
}

#sidebar #block-15 .wp-block-button__link,
#sidebar #block-14 .wp-block-button__link {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 43px;
    padding: 11px 12px;
    border: 0;
    border-radius: 8px;
    font-size: 13px !important;
    font-weight: 700;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    transition:
        background .2s ease,
        transform .2s ease;
}


/* External link icon */

#sidebar #block-15 .wp-block-button__link::after,
#sidebar #block-14 .wp-block-button__link::after {
    content: "\f35d";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 11px;
}


/* Button hover */

#sidebar #block-15 .wp-block-button__link:hover,
#sidebar #block-14 .wp-block-button__link:hover {
    transform: translateY(-2px);
}


/* =========================================================
   BLACK BUSINESS PLEDGE — DARK CARD
   ========================================================= */

#sidebar #block-15 {
    background: #171717;
    color: #fff;
}


/* Gold handshake icon */

#sidebar #block-15::before {
    content: "\f2b5";
    background: #333;
    color: #e5c16b;
}


/* Heading */

#sidebar #block-15 .widget-title {
    color: #fff !important;
}


/* Supporting text */

#sidebar #block-15 .wp-widget-group__inner-blocks::before {
    content: "Make a commitment to support Black-owned businesses in 2027.";
    color: #e2e2e2;
}


/* White CTA */

#sidebar #block-15 .wp-block-button__link {
    background: #fff !important;
    color: #171717 !important;
}

#sidebar #block-15 .wp-block-button__link:hover {
    background: #e9e9e9 !important;
}


/* =========================================================
   RECOMMEND A BUSINESS — GREEN CARD
   ========================================================= */

#sidebar #block-14 {
    background: #eaefe8;
    color: #17241d;
}


/* Green storefront icon */

#sidebar #block-14::before {
    content: "\f54e";
    background: #d5e2d6;
    color: #006341;
}


/* Heading */

#sidebar #block-14 .widget-title {
    color: #17241d !important;
}


/* Dark green supporting text */

#sidebar #block-14 .wp-widget-group__inner-blocks::before {
    content: "Know a great Black-owned business in Chicago? Help us get them discovered.";
    color: #244b38;
}


/* Green CTA */

#sidebar #block-14 .wp-block-button__link {
    background: #006341 !important;
    color: #fff !important;
}

#sidebar #block-14 .wp-block-button__link:hover {
    background: #004c32 !important;
}


/* =========================================================
   RESPONSIVE — TABLET / NARROW SIDEBARS
   ========================================================= */

@media (max-width: 1200px) {

    #sidebar #block-4 {
        padding: 15px;
    }

    #sidebar #block-15,
    #sidebar #block-14 {
        padding: 18px;
    }

    #sidebar .calendar_widget {
        border-spacing: 2px 4px !important;
    }

    #sidebar .calendar_widget tbody td {
        height: 40px;
        padding: 2px 1px 7px !important;
    }

    #sidebar .calendar_widget .badge {
        width: 29px;
        height: 29px;
    }

}


/* =========================================================
   ACCESSIBILITY — REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    #sidebar .wp-block-button__link,
    #sidebar .calendar_widget a.event_highlight,
    #sidebar .geodir_cal_prev,
    #sidebar .geodir_cal_next {
        transition: none;
    }

}


/* =========================================================
   KINETIC MARKET — FAVORITE TOOLTIP FLICKER FIX
   Business and Online Listing Cards
   ========================================================= */

.km-gd-card .km-gd-card__favorite {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-width: 32px;
    min-height: 32px;
    overflow: visible;
}

.km-gd-card .km-gd-card__favorite .gd-fav-info-wrap,
.km-gd-card .km-gd-card__favorite .gd-list-favorite,
.km-gd-card .km-gd-card__favorite .geodir-addtofav,
.km-gd-card .km-gd-card__favorite .geodir-addtofav-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0 !important;
    padding: 0;
    line-height: 1;
    overflow: visible;
    transform: none !important;
    transition: none !important;
}

.km-gd-card .km-gd-card__favorite .geodir-addtofav-icon {
    width: 32px;
    height: 32px;
    cursor: pointer;
}

.km-gd-card .km-gd-card__favorite .geodir-addtofav-icon i {
    pointer-events: none;
    transform: none !important;
    transition: color 0.15s ease;
}
