/* =========================
   Kontaktum Business Categories
   ========================= */

/* =========================
   UI primitives
   ========================= */

.kbc-input {
    width: 100%;
    min-height: 46px;
    padding: 10px 16px;
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    background: #ffffff !important;
    color: #0f172a;
    font-size: 15px;
    line-height: 1.4;
    outline: none;
    box-shadow: none !important;
}

.kbc-input:focus {
    border-color: #6d5dfc !important;
    box-shadow: 0 0 0 3px rgba(109, 93, 252, 0.12) !important;
}

.kbc-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 22px;
    border: 0 !important;
    border-radius: 12px !important;
    background: #6d5dfc !important;
    color: #ffffff !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none !important;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: none;
}

.kbc-button:hover,
.kbc-button:focus {
    background: #5546e8 !important;
    color: #ffffff !important;
}

.kbc-button--accent {
    background: #ff7a00 !important;
}

.kbc-button--accent:hover,
.kbc-button--accent:focus {
    background: #e66d00 !important;
}

/* =========================
   Shared breadcrumbs
   ========================= */

.kbc-breadcrumbs {
    width: 100%;
    margin: 0 0 24px;
    padding: 0;
    font-size: 14px;
    color: #64748b;
    box-sizing: border-box;
}

.kbc-breadcrumbs a {
    color: #6d5dfc;
    text-decoration: none;
    font-weight: 500;
}

.kbc-breadcrumbs a:hover {
    color: #0f5fd7;
}

.kbc-separator {
    margin: 0 8px;
    color: #94a3b8;
}

.kbc-current {
    color: #0f2a4c;
    font-weight: 700;
}

/* =========================
   Single listing details
   ========================= */

.kbc-business-hours-list {
    display: grid;
    gap: 6px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.kbc-business-hours-list li {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 10px;
    align-items: baseline;
}

.kbc-business-hours-list__day {
    color: #0f2a4c;
    font-weight: 700;
}

.kbc-business-hours-list__range {
    min-width: 0;
    overflow-wrap: break-word;
}

/* =========================
   Business categories grid
   ========================= */

.kbc-categories-page-inner {
    width: 100%;
    margin: 0;
    padding: 0 24px;
    box-sizing: border-box;
}

.kbc-categories-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    margin: 0 0 32px;
}

.kbc-category-card {
    display: grid;
    grid-template-columns: 74px 1fr;
    gap: 18px;
    align-items: flex-start;
    padding: 22px;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 42, 76, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.kbc-category-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 16px 34px rgba(15, 42, 76, 0.14);
}

.kbc-category-card__image {
    display: block;
    width: 84px;
    height: 84px;
    border-radius: 18px;
    background: #eef5ff;
    overflow: hidden;
}

.kbc-category-card__image img {
    display: block;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: cover;
}

.kbc-category-card__content {
    min-width: 0;
}

.kbc-category-card__title {
    display: block;
    margin-bottom: 14px;
    color: #0f2a4c;
    font-size: 24px;
    font-weight: 800;
    line-height: 1.2;
    text-decoration: none;
}

.kbc-category-card__title:hover {
    color: #0f5fd7;
}

.kbc-category-card__children {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.kbc-category-card__child {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    background: #f8fafc;
    color: #4b5563;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.3;
}

.kbc-category-card__child:hover {
    background: #eef5ff;
    color: #0f5fd7;
}

.kbc-category-card--no-image {
    grid-template-columns: 1fr;
}

.kbc-category-card--no-image .kbc-category-card__content {
    width: 100%;
}

/* =========================
   Category taxonomy page
   ========================= */

.kbc-category-page {
    max-width: 1120px;
    margin: 0 auto;
    padding: 34px 18px 72px;
}

.kbc-category-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-bottom: 18px;
    color: #64748b;
    font-size: 14px;
    line-height: 1.4;
}

.kbc-category-breadcrumbs a {
    color: #6d5dfc;
    text-decoration: none;
}

.kbc-category-breadcrumbs a:hover {
    color: #0f5fd7;
}

.kbc-category-breadcrumbs__separator {
    color: #94a3b8;
}

.kbc-category-header {
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 22px;
}

.kbc-category-header__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    height: 88px;
    flex: 0 0 88px;
    border-radius: 20px;
    background: #eef5ff;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(15, 42, 76, 0.08);
}

.kbc-category-header__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.kbc-category-header__content {
    min-width: 0;
}

.kbc-category-title {
    margin: 0;
    padding: 0;
    border: 0;
    color: #0f2a4c;
    font-size: 38px;
    font-weight: 800;
    line-height: 1.1;
}

.kbc-category-description {
    max-width: 720px;
    margin-top: 8px;
    color: #64748b;
    font-size: 16px;
    line-height: 1.5;
}

.kbc-category-description p {
    margin: 0;
}

/* Layout */

.kbc-category-layout {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    gap: 18px;
    align-items: flex-start;
}

.kbc-category-sidebar {
    position: sticky;
    top: 24px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 8px 22px rgba(15, 42, 76, 0.06);
}

.kbc-category-sidebar-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.kbc-category-sidebar-item {
    display: block;
    padding: 9px 10px;
    border-radius: 10px;
    color: #475569;
    text-decoration: none;
    font-size: 15px;
    line-height: 1.35;
}

.kbc-category-sidebar-item:hover {
    background: #f1f5ff;
    color: #0f5fd7;
}

.kbc-category-sidebar-item--active {
    background: #f1f5ff;
    color: #0f2a4c;
    font-weight: 800;
}

.kbc-category-sidebar__empty {
    margin: 0;
    color: #64748b;
    font-size: 14px;
}

/* =========================
   Pagination
   ========================= */

.kbc-pagination {
    margin-top: 32px;
}

.kbc-pagination ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.kbc-pagination a,
.kbc-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    font-size: 14px;
    background: #ffffff;
}

.kbc-pagination .current {
    background: #111827;
    border-color: #111827;
    color: #ffffff;
}

/* =========================
   Responsive
   ========================= */

@media (max-width: 980px) {
    .kbc-category-layout {
        grid-template-columns: 220px minmax(0, 1fr);
    }
}

@media (max-width: 768px) {
    .kbc-categories-page-inner {
        padding: 0 16px;
    }

    .kbc-breadcrumbs {
        margin-bottom: 18px;
        font-size: 13px;
    }

    .kbc-categories-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .kbc-category-card {
        grid-template-columns: 56px 1fr;
        gap: 14px;
        padding: 18px;
    }

    .kbc-category-card__image {
        width: 56px;
        height: 56px;
        border-radius: 12px;
    }

    .kbc-category-card__image img {
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        object-fit: cover;
    }

    .kbc-category-card__title {
        font-size: 21px;
    }

    .kbc-category-page {
        padding: 24px 14px 48px;
    }

    .kbc-category-header {
        align-items: flex-start;
        gap: 14px;
    }

    .kbc-category-header__icon {
        width: 68px;
        height: 68px;
        flex-basis: 68px;
        border-radius: 16px;
    }

    .kbc-category-title {
        font-size: 30px;
    }

    .kbc-category-layout {
        grid-template-columns: 1fr;
    }

    .kbc-category-sidebar {
        position: static;
    }
}

/* =========================
   Kontaktum footer widgets
   ========================= */

.kontaktum-footer-brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 26px;
    max-width: 460px;
    color: #e5edf7;
}

.kontaktum-footer-logo {
    display: inline-flex;
    align-items: center;
    max-width: 340px;
    width: 100%;
}

.kontaktum-footer-logo img,
.kontaktum-footer-logo svg {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
}

.kontaktum-footer-tagline {
    width: 100%;
    max-width: 340px;
    margin: 0;
    color: #d7e2ef;
    font-family: "Inter", sans-serif;
    font-size: 22px;
    font-weight: 500;
    line-height: 1.65;
    text-align: center;
}

.kontaktum-footer-socials {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    width: 100%;
    max-width: 340px;
    gap: 28px;
}

.kontaktum-footer-socials a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    color: #ffffff;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.kontaktum-footer-socials a:hover,
.kontaktum-footer-socials a:focus {
    transform: scale(1.1);
}

.kontaktum-footer-socials svg {
    display: block;
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.kontaktum-footer-socials img {
    display: block;
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.kontaktum-footer-card {
    display: grid;
    grid-template-rows: 66px minmax(58px, auto) minmax(86px, auto);
    justify-items: center;
    align-items: start;
    align-content: start;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    min-height: 185px;
    padding: 12px 28px 0;
    color: #c8d4e3;
    text-align: center;
    box-sizing: border-box;
    overflow-wrap: break-word;
}

.kontaktum-footer-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    color: #f97316;
}

.kontaktum-footer-card-icon img,
.kontaktum-footer-card-icon svg {
    display: block;
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.kontaktum-footer-card-icon svg {
    fill: currentColor;
}

.kontaktum-footer-card-title {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    min-height: 58px;
    margin: 0;
    padding: 0 8px;
    color: #ffffff;
    font-family: "Inter", sans-serif;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.25;
    box-sizing: border-box;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: none;
}

.kontaktum-footer-card-text {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    width: 100%;
    min-height: 86px;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 8px;
    color: #d2dceb;
    font-family: "Inter", sans-serif;
    font-size: 19px;
    font-weight: 400;
    line-height: 1.75;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: auto;
}

#footer [data-row="middle"] .ct-container {
    display: grid;
    grid-template-columns: minmax(320px, 1.35fr) repeat(5, minmax(135px, 1fr));
    align-items: flex-start;
    gap: 0;
    padding-top: 42px;
    padding-bottom: 38px;
}

#footer [data-row="bottom"] .ct-container {
    justify-content: center;
    padding-top: 18px;
    padding-bottom: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.20);
    color: #f4f7fb;
    text-align: center;
}

#footer [data-row="bottom"] .ct-container p {
    margin: 0;
    color: #f4f7fb;
    font-family: "Inter", sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
}

#footer [data-row="middle"] [data-column="widget-area-4"],
#footer [data-row="middle"] [data-column="widget-area-1"],
#footer [data-row="middle"] [data-column="widget-area-2"],
#footer [data-row="middle"] [data-column="widget-area-3"],
#footer [data-row="middle"] [data-column="widget-area-5"],
#footer [data-row="middle"] [data-column="widget-area-6"] {
    display: flex;
    align-items: stretch;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

#footer [data-row="middle"] [data-column="widget-area-4"] {
    justify-content: flex-start;
}

#footer [data-row="middle"] [data-column="widget-area-1"],
#footer [data-row="middle"] [data-column="widget-area-2"],
#footer [data-row="middle"] [data-column="widget-area-3"],
#footer [data-row="middle"] [data-column="widget-area-5"],
#footer [data-row="middle"] [data-column="widget-area-6"] {
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    justify-content: center;
}

#footer [data-row="middle"] .kontaktum-footer-brand,
#footer [data-row="middle"] .kontaktum-footer-card {
    align-self: flex-start;
    margin-top: 0;
}

@media (max-width: 1199px) {
    #footer [data-row="middle"] .ct-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 24px 20px;
        padding-top: 26px;
        padding-bottom: 24px;
    }

    #footer [data-row="middle"] [data-column="widget-area-4"] {
        grid-column: 1 / -1;
        justify-content: center;
    }

    .kontaktum-footer-brand {
        align-items: center;
        width: 100%;
        max-width: none;
        margin: 0 auto;
        text-align: center;
    }

    .kontaktum-footer-logo {
        max-width: 240px;
    }

    .kontaktum-footer-tagline {
        font-size: 19px;
    }

    .kontaktum-footer-socials {
        justify-content: center;
        gap: 14px;
    }

    .kontaktum-footer-socials a {
        width: 40px;
        height: 40px;
    }

    .kontaktum-footer-socials img {
        width: 40px;
        height: 40px;
    }

    .kontaktum-footer-card {
        grid-template-rows: 56px minmax(50px, auto) minmax(72px, auto);
        min-height: 132px;
        padding: 16px 14px 0;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .kontaktum-footer-card-title {
        min-height: 50px;
    }

    .kontaktum-footer-card-text {
        min-height: 72px;
    }

    #footer [data-row="middle"] [data-column="widget-area-1"],
    #footer [data-row="middle"] [data-column="widget-area-2"],
    #footer [data-row="middle"] [data-column="widget-area-3"],
    #footer [data-row="middle"] [data-column="widget-area-5"],
    #footer [data-row="middle"] [data-column="widget-area-6"] {
        border-left: 0;
        justify-content: center;
    }
}

@media (max-width: 899px) {
    #footer [data-row="middle"] .ct-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 22px 20px;
        padding-top: 24px;
        padding-bottom: 22px;
    }

    .kontaktum-footer-card-icon {
        width: 56px;
        height: 56px;
    }

    .kontaktum-footer-card-icon img,
    .kontaktum-footer-card-icon svg {
        width: 46px;
        height: 46px;
    }

    .kontaktum-footer-card {
        grid-template-rows: 56px minmax(46px, auto) minmax(64px, auto);
        min-height: 126px;
        padding: 15px 12px 0;
    }

    .kontaktum-footer-card-title {
        min-height: 46px;
    }

    .kontaktum-footer-card-text {
        min-height: 64px;
    }
}

@media (max-width: 649px) {
    #footer [data-row="middle"] .ct-container {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-top: 22px;
        padding-bottom: 20px;
    }

    #footer [data-row="middle"] [data-column="widget-area-4"],
    #footer [data-row="middle"] [data-column="widget-area-1"],
    #footer [data-row="middle"] [data-column="widget-area-2"],
    #footer [data-row="middle"] [data-column="widget-area-3"],
    #footer [data-row="middle"] [data-column="widget-area-5"],
    #footer [data-row="middle"] [data-column="widget-area-6"] {
        justify-content: center;
    }

    .kontaktum-footer-brand {
        align-items: center;
        margin: 0 auto;
        text-align: center;
    }

    .kontaktum-footer-card {
        grid-template-rows: 48px minmax(40px, auto) minmax(52px, auto);
        min-height: auto;
        padding: 16px 0 0;
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.08);
    }

    .kontaktum-footer-card-text {
        min-height: 52px;
        max-width: 260px;
    }
    .kontaktum-footer-logo {
        max-width: 220px;
    }

    .kontaktum-footer-tagline {
        font-size: 18px;
        line-height: 1.55;
    }

    .kontaktum-footer-socials {
        gap: 12px;
    }

    .kontaktum-footer-socials a {
        width: 38px;
        height: 38px;
    }

    .kontaktum-footer-socials img {
        width: 38px;
        height: 38px;
    }

    .kontaktum-footer-card-title {
        min-height: 40px;
        font-size: 20px;
    }

    .kontaktum-footer-card-text {
        font-size: 17px;
    }

    .kontaktum-footer-card-icon {
        width: 48px;
        height: 48px;
    }

    .kontaktum-footer-card-icon img,
    .kontaktum-footer-card-icon svg {
        width: 38px;
        height: 38px;
    }
}
