﻿/* =========================================
   PAGE
========================================= */

.city-category-page {
    width: 100%;
    direction: rtl;
    margin-top: 8px;
    margin-bottom: 30px;
}


/* =========================================
   BREADCRUMB
========================================= */

.city-category-breadcrumb {
    margin-bottom: 10px;
    padding: 7px 10px;
    border-top: 1px solid #edf0f3;
    border-bottom: 1px solid #edf0f3;
}

    .city-category-breadcrumb .breadcrumb {
        margin: 0;
        padding: 0;
        font-size: 12px;
    }

    .city-category-breadcrumb a {
        color: #64748b;
        text-decoration: none;
    }

    .city-category-breadcrumb .breadcrumb-item.active {
        color: #334155;
    }


/* =========================================
   HEADER
========================================= */

.city-category-header {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border: 1px solid #e8edf2;
    border-radius: 10px;
    padding: 11px 14px;
    margin-bottom: 12px;
    box-shadow: 0 2px 8px rgba(15, 23, 42, .03);
}


.city-category-header-icon {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: #eff6ff;
    color: #2563eb;
    font-size: 20px;
}


.city-category-header-content {
    min-width: 0;
}


    .city-category-header-content h1 {
        margin: 0 0 2px 0 !important;
        padding: 0 !important;
        font-size: 16px !important;
        line-height: 1.5 !important;
        font-weight: 800 !important;
        color: #1e293b;
    }


    .city-category-header-content span {
        display: block;
        font-size: 10px;
        line-height: 1.5;
        color: #94a3b8;
    }


/* =========================================
   GRID
========================================= */

.city-category-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}


/* =========================================
   CARD
========================================= */

.city-category-card {
    min-width: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}


    .city-category-card:hover {
        transform: translateY(-2px);
        border-color: #cbd5e1;
        box-shadow: 0 5px 14px rgba(15, 23, 42, .08);
    }


/* =========================================
   LINK
========================================= */

.city-category-card-link {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 82px;
    padding: 8px;
    gap: 9px;
    text-decoration: none !important;
}


/* =========================================
   IMAGE
========================================= */

.city-category-image-wrapper {
    width: 62px;
    height: 62px;
    min-width: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 9px;
/*    background: #f8fafc;*/
    border: none;
}


.city-category-image {
    display: block;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover;
    transition: transform .2s ease;
}


.city-category-card:hover .city-category-image {
    transform: scale(1.05);
}


/* =========================================
   CONTENT
========================================= */

.city-category-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}


.city-category-title {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 12px !important;
    line-height: 1.55 !important;
    font-weight: 800 !important;
    color: #334155;
    overflow-wrap: anywhere;
    word-break: break-word;
}


.city-category-city {
    display: block;
    font-size: 9px;
    line-height: 1.4;
    color: #94a3b8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}


.city-category-card:hover .city-category-title {
    color: #2563eb;
}


/* =========================================
   ARROW
========================================= */

.city-category-arrow {
    width: 20px;
    height: 20px;
    min-width: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f8fafc;
    color: #94a3b8;
    font-size: 13px;
    transition: all .18s ease;
}


.city-category-card:hover .city-category-arrow {
    background: #eff6ff;
    color: #2563eb;
}


/* =========================================
   LARGE DESKTOP
========================================= */

@media (max-width: 1199px) {

    .city-category-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}


/* =========================================
   TABLET
========================================= */

@media (max-width: 991px) {

    .city-category-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .city-category-card-link {
        min-height: 78px;
    }

    .city-category-image-wrapper {
        width: 56px;
        height: 56px;
        min-width: 56px;
    }
}


/* =========================================
   SMALL TABLET
========================================= */

@media (max-width: 767px) {

    .city-category-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .city-category-card-link {
        padding: 7px;
        gap: 7px;
    }

    .city-category-image-wrapper {
        width: 52px;
        height: 52px;
        min-width: 52px;
    }

    .city-category-title {
        font-size: 11px !important;
    }

    .city-category-city {
        font-size: 8px;
    }

    .city-category-arrow {
        width: 18px;
        height: 18px;
        min-width: 18px;
        font-size: 11px;
    }
}


/* =========================================
   MOBILE
========================================= */

@media (max-width: 575px) {

    .city-category-page {
        margin-top: 5px;
    }


    .city-category-breadcrumb {
        margin-bottom: 8px;
        padding: 6px 7px;
    }

        .city-category-breadcrumb .breadcrumb {
            font-size: 10px;
        }


    .city-category-header {
        padding: 9px 10px;
        gap: 9px;
        margin-bottom: 9px;
        border-radius: 8px;
    }


    .city-category-header-icon {
        width: 32px;
        height: 32px;
        min-width: 32px;
        border-radius: 7px;
        font-size: 17px;
    }


    .city-category-header-content h1 {
        font-size: 13px !important;
    }


    .city-category-header-content span {
        font-size: 8px;
    }


    .city-category-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }


    .city-category-card {
        border-radius: 8px;
    }


    .city-category-card-link {
        min-height: 68px;
        padding: 6px;
        gap: 6px;
    }

/*
    .city-category-image-wrapper {
        width: 48px;
        height: 48px;
        min-width: 48px;
        border-radius: 7px;
    }
*/

    .city-category-title {
        font-size: 12px !important;
        line-height: 1.5 !important;
    }


    .city-category-city {
        font-size: 8px;
    }


    .city-category-arrow {
        display: none;
    }
}


/* =========================================
   VERY SMALL MOBILE
========================================= */

@media (max-width: 380px) {

    .city-category-grid {
        gap: 6px;
    }


    .city-category-card-link {
        padding: 5px;
        gap: 5px;
    }


    .city-category-image-wrapper {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }


    .city-category-title {
        font-size: 9px !important;
    }
}
