/* Craftsman search (/Craftsman) — compact layout */

.app-shell .craftsman-page {
    padding-bottom: 1rem;
    font-size: 0.875rem;
}

.app-shell .craftsman-page__layout {
    align-items: flex-start;
}

.app-shell .craftsman-page__hero {
    background: linear-gradient(125deg, #ffe9b8 0%, #ffd078 45%, #ffb228 100%);
    border-radius: 10px;
    margin-bottom: 0.85rem;
    box-shadow: 0 2px 10px rgba(255, 160, 40, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.45);
    overflow: hidden;
}

.app-shell .craftsman-page__hero-inner {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    padding: 0.75rem 0.85rem;
}

@media (min-width: 992px) {
    .app-shell .craftsman-page__hero-inner {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 0.85rem;
        padding: 0.85rem 1rem;
    }
}

.app-shell .craftsman-page__hero-title {
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.2rem;
    color: #1a1a1a;
}

.app-shell .craftsman-page__hero-subtitle {
    margin: 0;
    font-size: 0.76rem;
    color: rgba(26, 26, 26, 0.7);
}

.app-shell .craftsman-page__hero-copy {
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .app-shell .craftsman-page__hero-copy {
        max-width: 220px;
    }
}

.app-shell .craftsman-page__search-card {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.45rem;
    background: #fff;
    border-radius: 10px;
    padding: 0.45rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    min-width: 0;
    width: 100%;
    max-width: 100%;
}

@media (min-width: 576px) {
    .app-shell .craftsman-page__search-card {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
        max-width: 360px;
        margin-left: auto;
    }
}

@media (min-width: 992px) {
    .app-shell .craftsman-page__search-card {
        flex: 0 0 auto;
        max-width: 400px;
        margin-left: auto;
    }
}

.app-shell .craftsman-page__search-field {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0;
    padding: 0.25rem 0.45rem 0.25rem 0.55rem;
    border-radius: 8px;
    background: #f6f7f9;
    border: 1px solid transparent;
}

.app-shell .craftsman-page__search-field:focus-within {
    background: #fff;
    border-color: #5FA9F0;
    box-shadow: 0 0 0 2px rgba(95, 169, 240, 0.15);
}

.app-shell .craftsman-page__search-field-icon {
    color: #5FA9F0;
    font-size: 0.8rem;
    width: 1rem;
    text-align: center;
}

.app-shell .craftsman-page__search-input {
    border: none !important;
    background: transparent !important;
    box-shadow: none !important;
    padding: 0.32rem 0.15rem !important;
    font-size: 0.78rem !important;
    min-width: 0;
    width: 100%;
}

.app-shell .craftsman-page__suggestions {
    margin-top: 0.25rem;
    max-height: 180px;
    overflow-y: auto;
}

@media (min-width: 992px) {
    .app-shell .craftsman-page__sidebar-col {
        flex: 0 0 255px;
        max-width: 255px;
    }
}

.app-shell .craftsman-page__mobile-filter {
    text-align: end;
    margin-bottom: 0.35rem;
}

.app-shell .craftsman-filters-panel {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 12px;
    padding: 1rem 1.05rem;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
    width: 100%;
    overflow-x: clip;
    box-sizing: border-box;
}

@media (min-width: 992px) {
    .app-shell .craftsman-filters-panel {
        position: sticky;
        top: 5rem;
        max-height: calc(100vh - 6rem);
        overflow-y: auto;
        overflow-x: clip;
    }
}

.app-shell .craftsman-page #filterSection {
    padding: 0.75rem 1rem;
    overflow: hidden;
    max-width: 100%;
}

.app-shell .craftsman-filters-panel__actions {
    display: flex;
    justify-content: center;
    margin-top: 0.35rem;
    margin-bottom: 0.85rem;
}

.app-shell .craftsman-filters-panel__actions--footer {
    margin-top: 0.65rem;
    margin-bottom: 0.35rem;
}

.app-shell .craftsman-filters-panel__btn {
    width: 80%;
    max-width: 100%;
    display: block;
    background: #5FA9F0;
    border: none;
    border-radius: 999px;
    padding: 0.45rem 0.9rem;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    text-align: center;
}

.app-shell .craftsman-filters-panel__btn:hover {
    background: #4a98e0;
    color: #fff;
}

.app-shell .craftsman-filters-panel__block {
    padding: 10px;
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid #eee;
}

.app-shell .craftsman-filters-panel__block--last {
    margin-bottom: 0.75rem;
    padding-bottom: 0;
    border-bottom: none;
}

.app-shell .craftsman-filters-panel__title {
    display: block;
    font-size: 0.68rem !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #e8941a !important;
    margin: 0 0 0.55rem !important;
    line-height: 1.2 !important;
}

/* Bootstrap form-check uses negative margin — reset inside filter panel */
.app-shell .craftsman-filters-panel .form-check {
    display: flex !important;
    align-items: flex-start;
    gap: 0.5rem;
    padding-left: 0 !important;
    margin: 0 !important;
    min-height: 0 !important;
}

.app-shell .craftsman-filters-panel .form-check-input {
    float: none !important;
    margin: 0.15rem 0 0 0 !important;
    flex-shrink: 0;
    width: 1rem !important;
    height: 1rem !important;
    position: relative !important;
    border-color: #c5cdd8;
}

.app-shell .craftsman-filters-panel .form-check-input:checked {
    background-color: #5FA9F0;
    border-color: #5FA9F0;
}

.app-shell .craftsman-filters-panel .form-check-label {
    padding-left: 0 !important;
    margin: 0 !important;
    font-size: 0.84rem;
    line-height: 1.35;
    cursor: pointer;
    flex: 1;
    min-width: 0;
}

.app-shell .craftsman-filters-panel__check {
    padding: 0.2rem 0;
}

.app-shell .craftsman-filters-panel__select {
    font-size: 0.84rem;
    padding: 0.5rem 0.65rem;
    border-radius: 10px;
    border-color: #d0d6de;
    min-height: 2.25rem;
}

.app-shell .craftsman-filters-panel #profession-list {
    list-style: none;
    padding: 0;
    margin: 0;
    max-height: 140px;
    overflow-y: auto;
    overflow-x: hidden;
}

.app-shell .craftsman-filter-item {
    border-bottom: 1px solid #f2f3f5;
}

.app-shell .craftsman-filter-item:last-child {
    border-bottom: none;
}

.app-shell .craftsman-filter-item .form-check {
    padding: 0.45rem 0 !important;
}

.app-shell .craftsman-filter-item .form-check-label {
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.app-shell .craftsman-filter-item .form-check-label img {
    width: 22px !important;
    height: 22px !important;
    border-radius: 5px;
    object-fit: cover;
    flex-shrink: 0;
}

.app-shell .craftsman-filter-item .form-check-label span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-shell .craftsman-filter-item--solo {
    border-bottom: none;
}

.app-shell .craftsman-filter-item--solo .form-check {
    padding: 0.15rem 0 !important;
}

.app-shell .craftsman-filters-panel #profession-list::-webkit-scrollbar {
    width: 6px;
}

.app-shell .craftsman-filters-panel #profession-list::-webkit-scrollbar-thumb {
    background: #d5dbe3;
    border-radius: 999px;
}

.app-shell .craftsman-results-panel {
    background: #fff;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    padding: 0.75rem;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.04);
}

.app-shell .craftsman-results-panel__toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.65rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid #eee;
}

.app-shell .craftsman-results-panel__count {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.app-shell .craftsman-view-toggle {
    display: inline-flex;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
}

.app-shell .craftsman-view-toggle .btn {
    border: none !important;
    border-radius: 0 !important;
    font-size: 0.75rem !important;
    padding: 0.35rem 0.65rem !important;
    color: #555 !important;
    background: transparent !important;
    box-shadow: none !important;
}

.app-shell .craftsman-view-toggle .btn.active {
    background: #5FA9F0 !important;
    color: #fff !important;
}

.app-shell .craftsman-view-toggle .btn i {
    margin-right: 0.2rem;
}

.app-shell .craftsman-results-grid {
    min-height: 160px;
}

/* Table view */
.app-shell .craftsman-table-wrap {
    border-radius: 8px;
    overflow-x: auto;
    border: 1px solid #eee;
}

.app-shell .craftsman-table {
    font-size: 0.8125rem;
    margin: 0;
}

.app-shell .craftsman-table thead th {
    background: #f8f9fa;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #555;
    padding: 0.5rem 0.6rem;
    white-space: nowrap;
    border-bottom: 1px solid #e5e7eb;
}

.app-shell .craftsman-table tbody td {
    padding: 0.5rem 0.6rem;
    vertical-align: middle;
    border-bottom: 1px solid #f0f0f0;
}

.app-shell .craftsman-table tbody tr:hover {
    background: #f8fbff;
}

.app-shell .craftsman-table__artisan {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 160px;
}

.app-shell .craftsman-table__thumb {
    width: 36px !important;
    height: 36px !important;
    max-width: 36px !important;
    max-height: 36px !important;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}

.app-shell .craftsman-table__name {
    font-weight: 600;
    font-size: 0.8125rem;
    margin: 0;
    line-height: 1.25;
    color: #1a1a1a;
}

.app-shell .craftsman-table__sub {
    font-size: 0.72rem;
    color: #888;
    margin: 0.1rem 0 0;
}

.app-shell .craftsman-table__badge--yes {
    font-size: 0.68rem;
    font-weight: 600;
    color: #3DB39E;
    background: #e8f8f3;
    padding: 0.12rem 0.4rem;
    border-radius: 10px;
}

.app-shell .craftsman-table__cta {
    font-size: 0.72rem;
    padding: 0.25rem 0.6rem;
    border-radius: 14px;
    background: #5FA9F0;
    color: #fff !important;
    text-decoration: none;
    white-space: nowrap;
}

.app-shell .craftsman-table__cta:hover {
    background: #4a98e0;
    color: #fff;
}

/* Card view — 3 per row */
.app-shell .craftsman-result-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.85rem;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.app-shell .craftsman-result-card:hover {
    border-color: #5FA9F0;
    box-shadow: 0 4px 14px rgba(95, 169, 240, 0.12);
}

.app-shell .craftsman-result-card__top {
    display: flex;
    gap: 0.65rem;
    margin-bottom: 0.5rem;
}

.app-shell .craftsman-result-card__avatar {
    width: 48px;
    height: 48px;
    min-width: 48px;
    border-radius: 50%;
    overflow: hidden;
    background: #eef6ff;
}

.app-shell .craftsman-result-card__avatar img {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    object-fit: cover;
    display: block;
}

.app-shell .craftsman-result-card__name {
    font-size: 0.875rem;
    font-weight: 700;
    margin: 0 0 0.15rem;
    line-height: 1.25;
}

.app-shell .craftsman-result-card__location {
    font-size: 0.75rem;
    color: #666;
    margin: 0 0 0.25rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.app-shell .craftsman-result-card__rating {
    font-size: 0.72rem;
    color: #FFB228;
    margin: 0 0 0.2rem;
    font-weight: 600;
}

.app-shell .craftsman-status {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    padding: 0.12rem 0.4rem;
    border-radius: 12px;
}

.app-shell .craftsman-status--available {
    background: #e8f8f3;
    color: #3DB39E;
}

.app-shell .craftsman-status--unavailable {
    background: #fdecea;
    color: #E44D49;
}

.app-shell .craftsman-result-card__skills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0.55rem;
    min-height: 22px;
}

.app-shell .craftsman-result-card__skills .skilltab {
    font-size: 0.68rem;
    padding: 0.15rem 0.4rem;
}

.app-shell .craftsman-result-card__footer {
    margin-top: auto;
    padding-top: 0.5rem;
    border-top: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.app-shell .craftsman-result-card__rate-label {
    font-size: 0.68rem;
    color: #888;
}

.app-shell .craftsman-result-card__rate-value {
    font-size: 0.78rem;
    font-weight: 600;
    margin: 0;
}

.app-shell .craftsman-result-card__cta {
    font-size: 0.72rem;
    padding: 0.3rem 0.7rem;
    border-radius: 14px;
    background: #5FA9F0;
    color: #fff !important;
    text-decoration: none;
}

.app-shell .craftsman-result-card__cta:hover {
    background: #4a98e0;
    color: #fff;
}

.app-shell .craftsman-pagination-bar {
    margin-top: 0.65rem;
    padding-top: 0.55rem;
    border-top: 1px solid #eee;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.app-shell #craftsmanPagination .btn {
    min-width: 30px;
    font-size: 0.75rem;
    padding: 0.25rem 0.45rem;
    border-radius: 6px;
}

.app-shell .craftsman-empty-state {
    text-align: center;
    padding: 2rem 1rem;
    color: #888;
}

.app-shell .craftsman-empty-state i {
    font-size: 1.75rem;
    color: #ccc;
    display: block;
    margin-bottom: 0.5rem;
}

.app-shell .craftsman-empty-state p {
    font-size: 0.85rem;
    margin: 0 0 0.25rem;
    font-weight: 600;
    color: #666;
}

.app-shell .craftsman-result-card .badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.35rem;
}
