/* Carsyo - estilos globais do site */
:root {
    --bs-primary: #0f4c5c;
    --bs-primary-rgb: 15, 76, 92;
    --bs-secondary: #5f7480;
    --bs-secondary-rgb: 95, 116, 128;
    --carsyo-accent: #2aa8b8;
    --carsyo-accent-rgb: 42, 168, 184;
    --bs-warning: #f0b429;
    --bs-warning-rgb: 240, 180, 41;
    --bs-success: #2e9e62;
    --bs-success-rgb: 46, 158, 98;
    --bs-info: #3f7c91;
    --bs-info-rgb: 63, 124, 145;
    --bs-body-bg: #f7f4ee;
    --bs-body-color: #1f2933;
    --bs-border-color: rgba(15, 76, 92, 0.12);
    --bs-light: #ffffff;
    --bs-light-rgb: 255, 255, 255;
    --bs-dark: #18303a;
    --bs-dark-rgb: 24, 48, 58;
    --carsyo-superficie: rgba(255, 255, 255, 0.82);
}

body {
    background: linear-gradient(180deg, var(--bs-body-bg) 0%, #ffffff 42%, #f4f6f8 100%);
}

.navbar-carsyo {
    backdrop-filter: blur(18px);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .96), rgba(244, 250, 251, .90)),
        radial-gradient(circle at 12% 0%, rgba(var(--bs-primary-rgb), .10), transparent 28%);
    border-bottom: 1px solid rgba(var(--bs-primary-rgb), .10);
    box-shadow: 0 14px 42px rgba(var(--bs-primary-rgb), .08);
}

.navbar-carsyo .container {
    position: relative;
}

.marca-carsyo {
    display: inline-flex;
    align-items: center;
    gap: 0;
    letter-spacing: -.04em;
    line-height: 1;
}

.marca-carsyo-icone {
    width: 2.95rem;
    height: 2.95rem;
    object-fit: contain;
    border-radius: .75rem;
    filter: drop-shadow(0 8px 16px rgba(var(--bs-primary-rgb), .16));
}

.marca-carsyo-texto {
    font-size: 1.35rem;
    font-weight: 800;
    margin-left: -.45rem;
    color: var(--bs-primary);
}

.navbar-carsyo .navbar-toggler {
    border: 1px solid rgba(var(--bs-primary-rgb), .16);
    border-radius: 999px;
    padding: .5rem .65rem;
    background: rgba(255, 255, 255, .78);
    box-shadow: 0 10px 24px rgba(var(--bs-primary-rgb), .08);
}

.navbar-carsyo .navbar-toggler:focus {
    box-shadow: 0 0 0 .2rem rgba(var(--bs-primary-rgb), .12);
}

.navbar-carsyo .nav-link {
    border-radius: 999px;
    padding: .48rem .68rem;
    font-size: .9rem;
    font-weight: 700;
    color: rgba(var(--bs-primary-rgb), .78);
    transition: background-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.navbar-carsyo .nav-link:hover,
.navbar-carsyo .nav-link:focus {
    background: rgba(var(--bs-primary-rgb), .08);
    color: var(--bs-primary);
    transform: translateY(-1px);
}

.hero-carsyo {
    padding: 6rem 0 4rem;
}

.card-carsyo {
    border-radius: 1.25rem;
    border: 1px solid var(--bs-border-color);
    box-shadow: 0 18px 50px rgba(var(--bs-primary-rgb), 0.08);
    background: rgba(var(--bs-light-rgb), 0.94);
}

.selo-verificado-carsyo {
    align-items: center;
    display: inline-flex;
    flex: 0 0 auto;
    gap: .34rem;
    line-height: 1;
    vertical-align: middle;
}

.selo-verificado-icone-carsyo {
    align-items: center;
    background:
        radial-gradient(circle at 30% 22%, rgba(255, 255, 255, .44), transparent 28%),
        linear-gradient(135deg, #35c5ff 0%, #168dff 45%, #0866d8 100%);
    border-radius: 32%;
    box-shadow: 0 7px 16px rgba(8, 102, 216, .28);
    clip-path: polygon(
        50% 0%,
        61% 14%,
        78% 8%,
        85% 25%,
        100% 32%,
        91% 50%,
        100% 68%,
        82% 75%,
        75% 92%,
        58% 86%,
        50% 100%,
        39% 86%,
        22% 92%,
        15% 75%,
        0% 68%,
        9% 50%,
        0% 32%,
        18% 25%,
        25% 8%,
        42% 14%
    );
    color: #fff;
    display: inline-flex;
    font-weight: 950;
    justify-content: center;
    letter-spacing: -.03em;
}

.selo-verificado-sm .selo-verificado-icone-carsyo {
    font-size: .62rem;
    height: 1.05rem;
    width: 1.05rem;
}

.selo-verificado-md .selo-verificado-icone-carsyo {
    font-size: .74rem;
    height: 1.28rem;
    width: 1.28rem;
}

.selo-verificado-lg .selo-verificado-icone-carsyo {
    font-size: .9rem;
    height: 1.55rem;
    width: 1.55rem;
}

.selo-verificado-texto-carsyo {
    color: #0866d8;
    font-size: .78rem;
    font-weight: 850;
}

.faixa-destaque {
    background: linear-gradient(135deg, var(--bs-primary), #1c6c82);
    border-radius: 1.5rem;
}

.secao-clara {
    background-color: var(--carsyo-superficie);
    border: 1px solid var(--bs-border-color);
    border-radius: 1.25rem;
}

.sombra-suave {
    box-shadow: 0 18px 50px rgba(var(--bs-primary-rgb), 0.08);
}

.auth-card {
    max-width: 760px;
    margin: 0 auto;
}

.select2-container--bootstrap-5 .select2-selection {
    min-height: calc(1.5em + 0.75rem + 2px);
}

.select2-container--bootstrap-5 .select2-selection--single .select2-selection__rendered {
    line-height: 1.5;
}

.is-invalid + .select2-container--bootstrap-5 .select2-selection,
select.is-invalid ~ .select2-container--bootstrap-5 .select2-selection {
    border-color: var(--bs-danger);
}

.btn {
    --carsyo-btn-shadow: 0 12px 28px rgba(var(--bs-primary-rgb), .12);
    --carsyo-btn-focus: 0 0 0 .22rem rgba(var(--bs-primary-rgb), .14);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 2.55rem;
    border-radius: 999px;
    font-weight: 750;
    letter-spacing: -.01em;
    box-shadow: var(--carsyo-btn-shadow);
    transition:
        transform .18s ease,
        box-shadow .18s ease,
        background-color .18s ease,
        border-color .18s ease,
        color .18s ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(-1px);
    box-shadow: 0 16px 34px rgba(var(--bs-primary-rgb), .16);
}

.btn:active {
    transform: translateY(0);
    box-shadow: 0 8px 18px rgba(var(--bs-primary-rgb), .10);
}

.btn:focus-visible {
    box-shadow: var(--carsyo-btn-focus), 0 16px 34px rgba(var(--bs-primary-rgb), .16);
}

.btn-sm {
    min-height: 2.15rem;
    padding: .4rem .72rem;
    font-size: .86rem;
}

.btn-lg {
    min-height: 3.12rem;
    padding-inline: 1.45rem;
    font-size: 1rem;
}

.btn-primary,
.btn-novo-anuncio-carsyo {
    border: 0;
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255,255,255,.16), transparent 36%),
        linear-gradient(135deg, var(--bs-primary), #1c6c82);
    box-shadow: 0 16px 34px rgba(var(--bs-primary-rgb), .24);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-novo-anuncio-carsyo:hover,
.btn-novo-anuncio-carsyo:focus {
    color: #fff;
    background:
        linear-gradient(135deg, rgba(255,255,255,.20), transparent 34%),
        linear-gradient(135deg, #123f4d, #1f7892);
    box-shadow: 0 20px 42px rgba(var(--bs-primary-rgb), .30);
}

.btn-outline-primary,
.btn-outline-secondary {
    background: rgba(255, 255, 255, .78);
    border-color: rgba(var(--bs-primary-rgb), .18);
    color: var(--bs-primary);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.85), 0 10px 24px rgba(var(--bs-primary-rgb), .08);
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
    background: #fff;
    border-color: rgba(var(--bs-primary-rgb), .28);
    color: var(--bs-primary);
    box-shadow: 0 16px 34px rgba(var(--bs-primary-rgb), .14);
}

.btn-light {
    color: var(--bs-primary);
    border-color: rgba(255,255,255,.86);
    background:
        linear-gradient(135deg, rgba(255,255,255,1), rgba(244, 250, 251, .94));
    box-shadow: 0 16px 34px rgba(7, 27, 35, .16);
}

.btn-light:hover,
.btn-light:focus {
    color: var(--bs-primary);
    background: #fff;
    box-shadow: 0 20px 42px rgba(7, 27, 35, .20);
}

.btn-outline-light {
    color: #fff;
    border-color: rgba(255,255,255,.52);
    background: rgba(255,255,255,.08);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 14px 30px rgba(7, 27, 35, .16);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
    color: var(--bs-primary);
    border-color: #fff;
    background: #fff;
}

.btn-success {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #198754, #28a66b);
    box-shadow: 0 16px 34px rgba(25, 135, 84, .22);
}

.btn-secondary,
.btn-dark {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #40555f, #223640);
    box-shadow: 0 16px 34px rgba(34, 54, 64, .18);
}

.btn-secondary:hover,
.btn-secondary:focus,
.btn-dark:hover,
.btn-dark:focus {
    color: #fff;
    background: linear-gradient(135deg, #334852, #182b34);
}

.btn-danger {
    border: 0;
    color: #fff;
    background: linear-gradient(135deg, #b02a37, #dc3545);
    box-shadow: 0 16px 34px rgba(220, 53, 69, .22);
}

.btn-outline-success {
    color: #198754;
    border-color: rgba(25, 135, 84, .32);
    background: rgba(255, 255, 255, .82);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 10px 24px rgba(25, 135, 84, .08);
}

.btn-outline-success:hover,
.btn-outline-success:focus {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #198754, #28a66b);
    box-shadow: 0 16px 34px rgba(25, 135, 84, .22);
}

.btn-outline-danger {
    color: var(--bs-danger);
    border-color: rgba(var(--bs-danger-rgb), .30);
    background: rgba(255, 255, 255, .82);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 10px 24px rgba(var(--bs-danger-rgb), .08);
}

.btn-outline-danger:hover,
.btn-outline-danger:focus {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #b02a37, #dc3545);
    box-shadow: 0 16px 34px rgba(var(--bs-danger-rgb), .22);
}

.btn-warning {
    border: 0;
    color: #4b2d00;
    background: linear-gradient(135deg, #ffd666, #f6b73c);
    box-shadow: 0 16px 34px rgba(246, 183, 60, .22);
}

.btn-outline-warning {
    color: #9a6500;
    border-color: rgba(246, 183, 60, .45);
    background: rgba(255, 255, 255, .82);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.86), 0 10px 24px rgba(246, 183, 60, .10);
}

.btn-outline-warning:hover,
.btn-outline-warning:focus {
    color: #4b2d00;
    border-color: transparent;
    background: linear-gradient(135deg, #ffd666, #f6b73c);
    box-shadow: 0 16px 34px rgba(246, 183, 60, .22);
}

.btn-link {
    min-height: auto;
    border-radius: .5rem;
    box-shadow: none;
    font-weight: 700;
}

.btn-link:hover,
.btn-link:focus {
    transform: none;
    box-shadow: none;
}

.btn.disabled,
.btn:disabled,
fieldset:disabled .btn {
    opacity: .62;
    transform: none;
    box-shadow: none;
}

.nav-atalho-carsyo {
    border-radius: 999px;
    padding: .48rem .68rem;
    font-size: .88rem;
    font-weight: 700;
    color: rgba(var(--bs-primary-rgb), .86);
    border: 1px solid rgba(var(--bs-primary-rgb), .10);
    background: rgba(255, 255, 255, .64);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.78);
}

.nav-atalho-carsyo:hover {
    background: #fff;
    color: var(--bs-primary);
    box-shadow: 0 12px 26px rgba(var(--bs-primary-rgb), .10);
}

.nav-atalho-carsyo.active,
.nav-atalho-carsyo[aria-current="page"] {
    color: #fff !important;
    background: linear-gradient(135deg, var(--bs-primary), #1d6f86);
    border-color: rgba(var(--bs-primary-rgb), .28);
    box-shadow: 0 14px 32px rgba(var(--bs-primary-rgb), .20);
}

.usuario-menu-carsyo {
    border: 1px solid rgba(var(--bs-primary-rgb), .16);
    border-radius: 999px;
    background: linear-gradient(135deg, #fff, rgba(244, 250, 251, .96));
    padding: .28rem .4rem .28rem .28rem;
    box-shadow: 0 14px 30px rgba(var(--bs-primary-rgb), .11);
    transition: transform .18s ease, box-shadow .18s ease;
}

.usuario-menu-carsyo:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 36px rgba(var(--bs-primary-rgb), .16);
}

.usuario-menu-info-carsyo {
    display: inline-flex;
    flex-direction: column;
    min-width: 0;
    max-width: 8.5rem;
}

.usuario-menu-info-carsyo > span:first-child > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.avatar-carsyo {
    width: 2.15rem;
    height: 2.15rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--bs-primary), #1c6c82);
    background-position: center;
    background-size: cover;
    color: #fff;
    font-weight: 800;
}

.foto-perfil-ampliavel {
    cursor: zoom-in;
    position: relative;
}

.foto-perfil-ampliavel::after {
    align-items: center;
    background: rgba(7, 27, 35, .48);
    border-radius: inherit;
    color: #fff;
    content: "+";
    display: flex;
    font-size: .95rem;
    inset: 0;
    justify-content: center;
    opacity: 0;
    position: absolute;
    transition: opacity .16s ease;
}

.foto-perfil-ampliavel:hover::after {
    opacity: 1;
}

.modal-foto-perfil-carsyo .modal-content {
    background: #05080d;
}

.modal-foto-perfil-carsyo img {
    max-height: min(78vh, 760px);
    object-fit: contain;
    width: 100%;
}

.dropdown-menu-carsyo {
    min-width: 268px;
    border: 1px solid rgba(var(--bs-primary-rgb), .12);
    border-radius: 1.1rem;
    box-shadow: 0 22px 60px rgba(15, 23, 42, .14);
    padding: .65rem;
    background: rgba(255, 255, 255, .98);
    backdrop-filter: blur(16px);
}

.dropdown-menu-carsyo .dropdown-item {
    border-radius: .85rem;
    padding: .62rem .75rem;
    font-size: .92rem;
    font-weight: 650;
}

.dropdown-menu-carsyo .dropdown-item.active,
.dropdown-menu-carsyo .dropdown-item:active {
    background: rgba(var(--bs-primary-rgb), .10);
    color: var(--bs-primary);
}

.dropdown-item-carsyo {
    display: flex;
    align-items: center;
    gap: .7rem;
}

.dropdown-item-carsyo .icone-menu-carsyo {
    width: 2rem;
    height: 2rem;
    border-radius: .75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--bs-primary-rgb), .08);
    color: var(--bs-primary);
    flex: 0 0 auto;
}

.dropdown-item-carsyo .texto-menu-carsyo {
    display: flex;
    flex-direction: column;
    line-height: 1.18;
}

.dropdown-item-carsyo .texto-menu-carsyo small {
    color: #6c7a86;
    font-weight: 500;
}

.dropdown-sair-carsyo {
    color: #b42318;
}

.dropdown-sair-carsyo .icone-menu-carsyo {
    background: rgba(180, 35, 24, .08);
    color: #b42318;
}

.dropdown-menu-carsyo .dropdown-item:hover {
    background: rgba(var(--bs-primary-rgb), .08);
    color: var(--bs-primary);
}

@media (max-width: 991.98px) {
    .navbar-carsyo .navbar-collapse {
        margin-top: 1rem;
        padding: 1rem;
        border: 1px solid rgba(var(--bs-primary-rgb), .10);
        border-radius: 1.25rem;
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 22px 52px rgba(var(--bs-primary-rgb), .12);
    }

    .navbar-carsyo .navbar-nav {
        align-items: stretch !important;
    }

    .navbar-carsyo .nav-link {
        padding: .78rem 1rem;
    }

    .usuario-menu-carsyo {
        width: 100%;
        justify-content: flex-start;
    }

    .usuario-menu-info-carsyo {
        flex: 1;
        max-width: none;
    }
}

/* Foto de perfil */
.foto-perfil-preview-carsyo {
    align-items: center;
    background: linear-gradient(135deg, rgba(var(--bs-primary-rgb), .18), rgba(var(--carsyo-accent-rgb), .18));
    background-position: center;
    background-size: cover;
    border: 3px solid rgba(var(--bs-primary-rgb), .12);
    border-radius: 28px;
    color: var(--bs-primary);
    display: inline-flex;
    font-size: 2rem;
    font-weight: 900;
    height: 104px;
    justify-content: center;
    overflow: hidden;
    width: 104px;
}

.perfil-publico-avatar-carsyo {
    align-items: center;
    background: linear-gradient(135deg, var(--bs-primary), #1d6f86);
    background-position: center;
    background-size: cover;
    border: 3px solid rgba(var(--bs-primary-rgb), .12);
    border-radius: 1.35rem;
    color: #fff;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 2rem;
    font-weight: 900;
    height: 84px;
    justify-content: center;
    width: 84px;
}

.perfil-publico-anuncio-carsyo {
    align-items: center;
    border: 1px solid rgba(var(--bs-primary-rgb), .10);
    border-radius: 1rem;
    color: inherit;
    display: flex;
    gap: .9rem;
    padding: .75rem;
    text-decoration: none;
    transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.perfil-publico-anuncio-carsyo + .perfil-publico-anuncio-carsyo {
    margin-top: .75rem;
}

.perfil-publico-anuncio-carsyo:hover {
    background: rgba(var(--bs-primary-rgb), .04);
    border-color: rgba(var(--bs-primary-rgb), .22);
    transform: translateY(-1px);
}

.perfil-publico-anuncio-imagem-carsyo {
    align-items: center;
    background: #eef4f6;
    border-radius: .85rem;
    color: #6c7a86;
    display: flex;
    flex: 0 0 auto;
    height: 68px;
    justify-content: center;
    overflow: hidden;
    width: 86px;
}

.perfil-publico-anuncio-imagem-carsyo img {
    height: 100%;
    object-fit: cover;
    width: 100%;
}

.mapa-publico-loja-carsyo {
    background: #eef4f6;
    border: 1px solid rgba(var(--bs-primary-rgb), .16);
    border-radius: 1.25rem;
    min-height: 220px;
    overflow: hidden;
}

.foto-crop-area-carsyo {
    aspect-ratio: 1;
    background: #111827;
    border-radius: 1.5rem;
    cursor: grab;
    margin-inline: auto;
    max-width: min(360px, 82vw);
    overflow: hidden;
    position: relative;
    touch-action: none;
    width: 100%;
}

.foto-crop-area-carsyo:active {
    cursor: grabbing;
}

.foto-crop-area-carsyo::after {
    border: 2px solid rgba(255, 255, 255, .92);
    border-radius: 1.2rem;
    content: "";
    inset: 14px;
    pointer-events: none;
    position: absolute;
}

.foto-crop-img-carsyo {
    left: 50%;
    max-height: none;
    max-width: none;
    pointer-events: none;
    position: absolute;
    top: 50%;
    user-select: none;
    will-change: transform;
}
