/* =========================================
   BUSCA DE PRESTADORES - SERVGO
========================================= */

.search-page {
    --search-orange: #FF6B35;
    --search-orange-dark: #e85a28;
    --search-blue: #13395d;
    --search-text: #243b53;
    --search-muted: #718096;
    --search-border: #e7edf3;
    --search-bg: #f7f9fc;
    min-height: 100vh;
    background: #fff;
    color: var(--search-text);
}

.search-container {
    width: min(1120px, calc(100% - 40px));
    margin-inline: auto;
}

.search-topbar {
    background: #FFFFFF;
    border-bottom: 1px solid var(--search-border);
}

.search-topbar-content {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.search-logo,
.search-footer-logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
    font-size: 25px;
    color: var(--search-blue);
    font-weight: 800;
}

.search-logo img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}

.search-logo b,
.search-footer-logo b {
    color: var(--search-blue);
}

.search-logo strong,
.search-footer-logo strong {
    color: var(--search-orange);
}

.search-logo,
.search-logo b,
.search-logo strong {
    font-family: Arial, Helvetica, sans-serif;
    font-weight: 800;
    letter-spacing: normal;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 14px;
  background: #13395d;
  border: 1px solid #13395d;
  border-radius: 10px;
  transition: background .2s, border-color .2s;
}

.back-home:hover {
  background: #1c1c35;
  border-color: #1c1c35;
  color: #fff;
}

/* Área de apresentação */

.search-hero {
    padding: 58px 0 48px;
    background:
        radial-gradient(ellipse at 85% 10%,
            rgba(255, 107, 53, .11), transparent 36%),
        linear-gradient(135deg, #f7faff 0%, #fff 72%);
    border-bottom: 1px solid #f0f3f7;
}

.search-hero .search-container {
    max-width: 800px;
}

.search-eyebrow,
.search-overline {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1.1px;
    color: var(--search-orange-dark);
}

.search-eyebrow {
    padding: 8px 12px;
    background: #fff0e9;
    border: 1px solid #ffdfd1;
    border-radius: 30px;
    letter-spacing: .2px;
    font-size: 12px;
}

.search-hero h1 {
    max-width: 720px;
    margin: 20px 0 12px;
    color: var(--search-blue);
    font-size: clamp(32px, 4.4vw, 48px);
    line-height: 1.12;
    letter-spacing: -1.6px;
    font-weight: 800;
}

.search-hero h1 span {
    color: var(--search-orange);
}

.search-description {
    max-width: 590px;
    margin: 0;
    color: var(--search-muted);
    font-size: 16px;
    line-height: 1.75;
}

/* Pesquisa de categoria */

.service-search {
    display: flex;
    align-items: center;
    gap: 13px;
    max-width: 680px;
    min-height: 62px;
    padding: 0 18px;
    margin-top: 28px;
    background: #fff;
    border: 1px solid #dce4ed;
    border-radius: 14px;
    box-shadow: 0 8px 26px rgba(19, 57, 93, .06);
    transition: border-color .2s, box-shadow .2s;
}

.service-search:focus-within {
    border-color: var(--search-orange);
    box-shadow: 0 0 0 4px rgba(255, 107, 53, .10);
}

.service-search>i {
    color: var(--search-orange);
    font-size: 18px;
}

.service-search input {
    width: 100%;
    min-width: 0;
    height: 58px;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--search-text);
    font: inherit;
    font-size: 15px;
}

.service-search input::placeholder {
    color: #96a2b2;
}

.service-search button {
    border: 0;
    background: transparent;
    color: var(--search-muted);
    cursor: pointer;
    padding: 8px;
}

/* Conteúdo */

.search-content {
    padding-top: 42px;
    padding-bottom: 64px;
}

.search-section-heading,
.providers-heading {
    font-family: Arial, Helvetica, sans-serif;
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 16px;
}

.search-section-heading h2,
.providers-heading h2 {
    margin: 7px 0 0;
    color: var(--search-blue);
    font-size: clamp(21px, 2.5vw, 27px);
    line-height: 1.3;
    letter-spacing: -.5px;
    font-weight: 800;
}

.swipe-hint {
    flex-shrink: 0;
    color: var(--search-muted);
    font-size: 12px;
    padding-bottom: 4px;
}

.swipe-hint i {
    color: var(--search-orange);
    margin-left: 4px;
}

/* Categorias deslizantes */

.category-strip {
    display: flex;
    align-items: stretch;
    gap: 13px;
    margin-top: 22px;
    padding: 5px 2px 16px;
    overflow-x: auto;
    overflow-y: hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x proximity;
    scrollbar-width: thin;
    scrollbar-color: #d6dfe9 transparent;
    -webkit-overflow-scrolling: touch;
}

.category-strip::-webkit-scrollbar {
    height: 5px;
}

.category-strip::-webkit-scrollbar-thumb {
    background: #d6dfe9;
    border-radius: 10px;
}

.search-category {
    flex: 0 0 108px;
    min-height: 132px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 13px 8px;
    border: 1px solid var(--search-border);
    border-radius: 15px;
    background: #fff;
    color: var(--search-text);
    cursor: pointer;
    scroll-snap-align: start;
    transition: border-color .2s, background .2s,
        transform .2s, box-shadow .2s;
}

.search-category:hover {
    border-color: #ffc3a9;
    transform: translateY(-2px);
}

.search-category.is-active {
    background: #fff4ee;
    border-color: var(--search-orange);
    box-shadow: 0 0 0 1px var(--search-orange);
}

.search-category[hidden] {
    display: none !important;
}

.category-icon {
    width: 62px;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    background: #f6f8fb;
    border-radius: 13px;
}

.category-icon img {
    width: 100%;
    height: 100%;
    padding: 5px;
    object-fit: contain;
}

.category-icon-all {
    color: var(--search-orange);
    background: #fff0e8;
    font-size: 24px;
}

.search-category.is-active .category-icon {
    background: #ffe5d8;
}

.search-category-name {
    max-width: 100%;
    overflow: hidden;
    color: var(--search-text);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-category.is-active .search-category-name {
    color: var(--search-orange-dark);
}

.no-categories {
    padding: 12px 0;
    color: var(--search-muted);
    font-size: 14px;
}

/* Lista de prestadores */

.providers-section {
    margin-top: 42px;
    padding-top: 32px;
    border-top: 1px solid var(--search-border);
}

.providers-heading {
    align-items: center;
    margin-bottom: 24px;
}

.providers-heading p {
    margin: 8px 0 0;
    color: var(--search-muted);
    font-size: 14px;
    line-height: 1.6;
}

/* Skeletons de carregamento */

.provider-skeletons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.provider-skeleton {
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 130px;
    padding: 18px;
    border: 1px solid var(--search-border);
    border-radius: 16px;
    background: #fff;
}

.skeleton-avatar,
.skeleton-lines span {
    background: linear-gradient(100deg, #edf1f6 25%, #f7f9fc 45%, #edf1f6 65%);
    background-size: 200% 100%;
    animation: search-skeleton 1.4s ease infinite;
}

.skeleton-avatar {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
    border-radius: 14px;
}

.skeleton-lines {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.skeleton-lines span {
    display: block;
    height: 10px;
    border-radius: 8px;
}

.skeleton-lines span:first-child {
    width: 68%;
    height: 14px;
}

.skeleton-lines span:nth-child(2) {
    width: 92%;
}

.skeleton-lines span:last-child {
    width: 48%;
}

@keyframes search-skeleton {
    to {
        background-position: -200% 0;
    }
}

/* Rodapé */

.search-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 32px 20px;
    border-top: 1px solid var(--search-border);
    background: #f9fbfd;
    text-align: center;
}

.search-footer-logo {
    font-size: 22px;
}

.search-footer p {
    margin: 0;
    color: var(--search-muted);
    font-size: 13px;
}

.search-footer>a:last-child {
    margin-top: 5px;
    color: var(--search-blue);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.search-footer>a:last-child i {
    margin-left: 4px;
    color: var(--search-orange);
}

/* Responsividade */

@media (max-width: 640px) {
    .search-container {
        width: calc(100% - 32px);
    }

    .search-topbar-content {
        min-height: 64px;
    }

    .search-logo {
        font-size: 22px;
    }

    .search-logo img {
        width: 36px;
        height: 36px;
    }

    .search-hero {
        padding: 36px 0 32px;
    }

    .search-hero h1 {
        margin-top: 17px;
        font-size: 34px;
        letter-spacing: -1px;
    }

    .search-description {
        font-size: 14px;
        line-height: 1.65;
    }

    .service-search {
        min-height: 56px;
        margin-top: 22px;
        padding-inline: 14px;
        border-radius: 12px;
    }

    .service-search input {
        height: 54px;
        font-size: 14px;
    }

    .search-content {
        padding-top: 30px;
        padding-bottom: 42px;
    }

    .search-section-heading h2,
    .providers-heading h2 {
        font-size: 17px;
    }

    .swipe-hint {
        font-size: 11px;
    }

    .category-strip {
        gap: 10px;
        margin-top: 16px;
        margin-right: -16px;
        padding-right: 16px;
        padding-bottom: 12px;
    }

    .search-category {
        flex-basis: 92px;
        min-height: 115px;
        gap: 8px;
        padding: 10px 6px;
        border-radius: 13px;
    }

    .category-icon {
        width: 54px;
        height: 54px;
        border-radius: 11px;
    }

    .search-category-name {
        font-size: 11px;
    }

    .providers-section {
        margin-top: 28px;
        padding-top: 25px;
    }

    .providers-heading {
        margin-bottom: 18px;
    }

    .providers-heading p {
        font-size: 13px;
    }

    .provider-skeletons {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .provider-skeleton {
        min-height: 108px;
        padding: 14px;
        border-radius: 13px;
    }

    .skeleton-avatar {
        width: 60px;
        height: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .search-page *,
    .search-page *::before,
    .search-page *::after {
        animation-duration: .01ms !important;
        transition-duration: .01ms !important;
        scroll-behavior: auto !important;
    }
}



/* Localização compacta */
.search-hero {
    padding: 18px 0;
    background: #FFFFFF;
    border-bottom: 1px solid var(--search-border);
}

.search-location {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 14px;
    background: #FFF0E8;
    border: 1px solid transparent;
    border-radius: 20px;
    color: #FF6B35;
    font: inherit;
    cursor: pointer;
    transition: background 0.2s;
    min-width: 0;
}

.search-location:hover {
    background: #FFE3D6;
}

.search-location>i:first-child {
    color: #FF6B35;
    flex-shrink: 0;
}

.search-location strong {
    color: #FF6B35;
    font-size: 14px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-location>i:last-child {
    display: none;
}

.search-location-icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    border-radius: 12px;
    color: #ff6b35;
    background: #fff0e8;
    font-size: 17px;
}

.search-location-info {
    display: flex;
    flex: 1;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
}

.search-location-info span {
    color: #718096;
    font-size: 12px;
}

.search-location-info strong {
    overflow: hidden;
    color: #13395d;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.change-location {
    flex-shrink: 0;
    padding: 9px 12px;
    border: 1px solid #ff6b35;
    border-radius: 9px;
    background: #fff;
    color: #e85a28;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* Duas fileiras, cada uma com rolagem horizontal */
.category-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    overflow: hidden;
}

.category-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 3px 2px 8px;
    scroll-snap-type: x proximity;
    overscroll-behavior-x: contain;
    scrollbar-width: thin;
    scrollbar-color: #d6dfe9 transparent;
    -webkit-overflow-scrolling: touch;
}

.category-row::-webkit-scrollbar {
    height: 4px;
}

.category-row::-webkit-scrollbar-thumb {
    background: #d6dfe9;
    border-radius: 8px;
}

.search-category {
    flex: 0 0 94px;
    min-width: 0;
    min-height: 104px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 9px 5px;
    border: 1px solid #e7edf3;
    border-radius: 13px;
    background: #fff;
    scroll-snap-align: start;
    transition: border-color .2s, background .2s;
}

.search-category.is-active {
    border-color: #ff6b35;
    background: #fff4ee;
    box-shadow: 0 0 0 1px #ff6b35;
}

.category-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    overflow: hidden;
    border-radius: 11px;
    background: #f6f8fb;
}

.category-icon img {
    width: 100%;
    height: 100%;
    padding: 4px;
    object-fit: contain;
}

.category-icon-all {
    color: #ff6b35;
    background: #fff0e8;
    font-size: 20px;
}

.search-category-name {
    width: 100%;
    overflow: hidden;
    color: #243b53;
    font-size: 11px;
    line-height: 1.3;
    font-weight: 700;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.search-category.is-active .search-category-name {
    color: #e85a28;
}

@media (min-width: 768px) {
    .category-row {
        scrollbar-width: none;
    }

    .category-row::-webkit-scrollbar {
        display: none;
    }

    .search-category {
        flex-basis: 108px;
        min-height: 112px;
    }
}

@media (max-width: 480px) {
    .search-container {
        width: calc(100% - 28px);
    }

    .search-hero {
        padding: 14px 0;
    }

    .search-location-icon {
        width: 38px;
        height: 38px;
    }

    .category-rows {
        margin-top: 15px;
        gap: 7px;
    }

    .category-row {
        gap: 8px;
        margin-right: -14px;
        padding-right: 14px;
    }

    .search-category {
        flex-basis: 82px;
        min-height: 94px;
        gap: 6px;
        padding: 7px 4px;
        border-radius: 11px;
    }

    .category-icon {
        width: 42px;
        height: 42px;
    }

    .search-category-name {
        font-size: 10px;
    }
}


/* Duas fileiras com rolagem horizontal independente */
.category-rows {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    overflow: hidden;
}

.category-row {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 2px 10px;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;

    scroll-snap-type: none;
    scroll-behavior: auto;
    scroll-padding-inline: 0;
    box-sizing: border-box;

    /* Firefox */
    scrollbar-width: auto;
    scrollbar-color: #b8c5d3 #f1f4f8;
}

/* Chrome, Edge e Safari no computador */
.category-row::-webkit-scrollbar {
    display: block;
    height: 8px;
}

.category-row::-webkit-scrollbar-track {
    background: #f1f4f8;
    border-radius: 8px;
}

.category-row::-webkit-scrollbar-thumb {
    background: #b8c5d3;
    border-radius: 8px;
}

.category-row::-webkit-scrollbar-thumb:hover {
    background: #8798aa;
}

.search-category {
    flex: 0 0 94px;
    min-width: 94px;
}

@media (max-width: 767px) {
    .category-row {
        scrollbar-width: none;
        padding-bottom: 6px;
    }

    .category-row::-webkit-scrollbar {
        display: none;
    }

    .search-category {
        flex-basis: 82px;
        min-width: 82px;
    }
}

/* Computador: uma única fileira */
@media (min-width: 768px) {
    .category-rows {
        display: block;
    }

    .category-row {
        display: none;
    }

    /* Exibe a primeira fileira, incluindo "Todos" */
    .category-row:first-child {
        display: flex;
        width: 100%;
        flex-wrap: nowrap;
        overflow-x: auto;
        overflow-y: hidden;
        gap: 10px;
        padding: 4px 2px 10px;
        scrollbar-width: thin;
        scrollbar-color: #b8c5d3 #f1f4f8;
    }

    .category-row:first-child::-webkit-scrollbar {
        height: 8px;
    }

    .category-row:first-child::-webkit-scrollbar-track {
        background: #f1f4f8;
        border-radius: 8px;
    }

    .category-row:first-child::-webkit-scrollbar-thumb {
        background: #b8c5d3;
        border-radius: 8px;
    }

    .category-row .search-category {
        flex: 0 0 108px;

        scroll-snap-align: none;
        flex-shrink: 0;
    }
}

.search-page {
    min-height: 100vh;
    background: #F7F9FC;
    color: var(--search-text);
}

.search-topbar-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

@media (max-width: 600px) {
    .search-topbar-content {
        flex-wrap: wrap;
        gap: 10px;
    }

    .search-location {
        order: 3;
        flex-basis: 100%;
        max-width: none;
        margin: 0;
        margin-bottom: 10px;
    }

    .search-logo,
    .back-home {
        flex-shrink: 0;
    }
}

.support-widget {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 9999;
}

.whatsapp-support {
    width: 52px;
    height: 52px;
    border: none;
    border-radius: 50%;
    background: #25D366;
    color: #fff;
    font-size: 29px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s ease;
}

.whatsapp-support:hover {
    transform: scale(1.05);
}

.support-menu {
    display: none;
    position: absolute;
    right: 0;
    bottom: 64px;
    width: 245px;
    padding: 16px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 12px;
    box-shadow: 0 5px 24px rgba(0, 0, 0, 0.12);
}

.support-menu.is-open {
    display: block;
}

.support-menu strong {
    display: block;
    color: #222;
    font-size: 15px;
}

.support-menu p {
    margin: 6px 0 12px;
    color: #666;
    font-size: 13px;
}

.support-menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px;
    background: #25D366;
    color: #fff;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
}

.support-menu a:hover {
    background: #1EBE5D;
}

@media (max-width: 500px) {
    .support-widget {
        right: 16px;
        bottom: 16px;
    }
}


/* localização */

.location-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px;
    background: rgba(16, 42, 67, 0.62);
    backdrop-filter: blur(4px);
}

.location-modal-overlay[aria-hidden="true"] {
    display: none;
}

.location-modal {
    width: 100%;
    max-width: 460px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 28px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.2);
}

.location-modal-header {
    margin-bottom: 24px;
    text-align: center;
}

.location-modal-icon {
    display: grid;
    width: 62px;
    height: 62px;
    margin: 0 auto 16px;
    place-items: center;
    border-radius: 20px;
    color: #FF6B35;
    background: #FFF0E8;
    font-size: 26px;
}

.location-modal-header h2 {
    margin: 0;
    color: #102A43;
    font-size: 25px;
    font-weight: 800;
}

.location-modal-header p {
    margin: 10px 0 0;
    color: #627D98;
    font-size: 14px;
    line-height: 1.6;
}

.location-option {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 13px;
    margin-top: 12px;
    padding: 15px;
    border: 1px solid #E6EAF0;
    border-radius: 16px;
    background: #fff;
    color: #243B53;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.location-option:hover {
    border-color: #FF6B35;
    background: #FFF8F4;
}

.location-option-icon {
    display: grid;
    width: 46px;
    height: 46px;
    flex-shrink: 0;
    place-items: center;
    border-radius: 14px;
    background: #FFF0E8;
    color: #FF6B35;
    font-size: 20px;
}

.location-option-info {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 5px;
}

.location-option-info strong {
    font-size: 14px;
}

.location-option-info small {
    color: #718096;
    font-size: 12px;
    line-height: 1.4;
}

.location-option-arrow {
    color: #FF6B35;
    font-size: 13px;
}

.location-privacy {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin-top: 22px;
    color: #718096;
    font-size: 12px;
    line-height: 1.6;
}

.location-privacy i {
    margin-top: 2px;
    color: #FF6B35;
}

.location-map-area {
    margin-top: 18px;
}

.location-map-instruction {
    margin: 0 0 10px;
    color: #627D98;
    font-size: 13px;
}

#mapa-localizacao {
    width: 100%;
    height: 280px;
    border-radius: 14px;
    overflow: hidden;
    background: #F2F5F8;
}

.location-confirm-button {
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    border: 0;
    border-radius: 12px;
    background: #FF6B35;
    color: #fff;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.location-confirm-button:hover {
    background: #E85A28;
}

.location-confirm-button:disabled,
.location-option:disabled {
    cursor: wait;
    opacity: 0.65;
}

.location-error {
    margin: 16px 0 0;
    color: #B42318;
    font-size: 13px;
    line-height: 1.5;
}

@media (max-width: 480px) {
    .location-modal {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .location-modal-header h2 {
        font-size: 23px;
    }

    #mapa-localizacao {
        height: 250px;
    }
}



/* Cards de prestadores — visual inspirado no aplicativo ServGo */

#lista-prestadores {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.provider-card {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    min-width: 0;
    padding: 24px;
    background: #FFFFFF;
    border: 1px solid #F0F2F5;
    border-radius: 26px;
    color: #102A43;
    text-decoration: none;
    box-shadow: 0 3px 12px rgba(16, 42, 67, 0.025);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.provider-card:hover {
    box-shadow: 0 6px 20px rgba(16, 42, 67, 0.08);
    transform: translateY(-1px);
}

.provider-avatar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 102px;
    width: 102px;
    height: 102px;
    border-radius: 50%;
    background: #FFF0E8;
    overflow: visible;
}

.provider-photo {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background: #F7F9FC;
}

.provider-initials {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #FFF0E8;
    color: #FF6B35;
    font-size: 28px;
    font-weight: 800;
}

.provider-initials[hidden] {
    display: none;
}

.provider-status-dot {
    position: absolute;
    right: 3px;
    bottom: 3px;
    width: 19px;
    height: 19px;
    border: 3px solid #FFFFFF;
    border-radius: 50%;
}

.provider-info {
    flex: 1;
    min-width: 0;
    font-family: Arial, Helvetica, sans-serif;

}

.provider-name {
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
    margin: 0;
    color: #101828;
    font-size: 20px;
    font-weight: 750;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.provider-verified-seal {
    display: inline-block;
    width: 23px;
    height: 23px;
    flex: 0 0 23px;
    object-fit: contain;
    vertical-align: middle;
}

@media (max-width: 600px) {
    .provider-verified-seal {
        width: 19px;
        height: 19px;
        flex-basis: 19px;
    }
}

.provider-category {
    margin: 9px 0 10px;
    color: #fd6a2f;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.provider-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: #667085;
    font-size: 15px;
}

.provider-rating,
.provider-distance {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}

.provider-rating strong {
    color: #101828;
    font-weight: 650;
}

.rating-star {
    color: #E9A11B;
    font-size: 22px;
    line-height: 1;
}

.rating-count {
    color: #667085;
}

.provider-distance i {
    color: #ff6f42;
    font-size: 15px;
}

.provider-chevron {
    flex: 0 0 auto;
    margin-left: 2px;
    color: #98A2A8;
    font-size: 20px;
}

.provider-verified {
    display: inline-block;
    margin-top: 8px;
    color: #16804A;
    font-size: 12px;
    font-weight: 650;
}

/* Mensagens de resultado vazio ou erro */

.providers-message {
    padding: 28px 20px;
    border-radius: 20px;
    background: #FFFFFF;
    color: #627D98;
    text-align: center;
    line-height: 1.6;
}

.providers-message h3 {
    margin: 0 0 8px;
    color: #102A43;
}

.providers-message button {
    padding: 12px 20px;
    border: 0;
    border-radius: 10px;
    background: #FF6B35;
    color: #FFFFFF;
    font-weight: 700;
    cursor: pointer;
}

/* Celular */

@media (max-width: 600px) {
    #lista-prestadores {
        gap: 14px;
    }

    .provider-card {
        gap: 14px;
        padding: 20px 16px;
        border-radius: 25px;
    }

    .provider-avatar {
        flex-basis: 76px;
        width: 76px;
        height: 76px;
    }

    .provider-status-dot {
        right: 0px;
        bottom: 0px;
        width: 16px;
        height: 16px;
        border: 2px solid #FFFFFF;

    }



    .provider-name {
        font-size: 17px;
    }

    .provider-category {
        margin: 7px 0 9px;
        font-size: 15px;
    }

    .provider-meta {
        gap: 9px;
        font-size: 14px;
    }

    .rating-star {
        font-size: 20px;
    }

    .provider-chevron {
        font-size: 17px;
    }
}

@media (max-width: 360px) {
    .provider-card {
        gap: 10px;
        padding: 16px 12px;
    }

    .provider-avatar {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }

    .provider-name {
        font-size: 15px;
    }

    .provider-category {
        font-size: 13px;
    }

    .provider-meta {
        gap: 7px;
        font-size: 12px;
    }
}

/* Card da área de categorias */
.search-section-heading,
.category-rows {
    position: relative;
}

#categorias-strip {
    padding: 18px;
    background: #FFFFFF;
    border: 1px solid #E7EDF3;
    border-radius: 20px;
    box-shadow: 0 4px 18px rgba(16, 42, 67, 0.035);
}

/* Espaçamento entre o título e o card */
.search-section-heading+#categorias-strip {
    margin-top: 18px;
}

@media (max-width: 600px) {
    #categorias-strip {
        padding: 12px;
        border-radius: 16px;
    }

    .search-section-heading+#categorias-strip {
        margin-top: 14px;
    }
}

/* Corrige os limites do card de categorias */
#categorias-strip {
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 12px;
    overflow: hidden;
}

.category-row {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    margin-right: 0;
    padding: 4px 2px 10px;
    overflow-x: auto;
    overflow-y: hidden;
}

/* Impede que os cards encolham ou ultrapassem a área rolável */
.category-row .search-category {
    flex: 0 0 94px;
    min-width: 94px;
    box-sizing: border-box;
}

@media (max-width: 767px) {
    .category-row {
        margin-right: 0;
        padding-bottom: 6px;
    }

    .category-row .search-category {
        flex-basis: 82px;
        min-width: 82px;
    }
}

/* Corrige a largura dos cards de prestadores */
#lista-prestadores {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

.provider-card {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
}

/* Permite que o conteúdo se adapte ao espaço disponível */
.provider-info {
    flex: 1 1 0;
    min-width: 0;
    overflow: hidden;
}

.provider-name,
.provider-category {
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.provider-meta {
    min-width: 0;
}

.provider-avatar,
.provider-chevron {
    flex-shrink: 0;
}

/* Celulares */
@media (max-width: 600px) {
    #lista-prestadores {
        gap: 12px;
    }

    .provider-card {
        padding: 16px 12px;
        gap: 10px;
        border-radius: 18px;
    }

    .provider-avatar {
        flex-basis: 64px;
        width: 64px;
        height: 64px;
    }

    .provider-name {
        font-size: 15px;
    }

    .provider-category {
        font-size: 13px;
    }

    .provider-meta {
        gap: 7px;
        font-size: 12px;
    }
}