/* ============================================================
   CIS.CSS - LISTAGEM OLX MAX
   CSS exclusivo da página de busca/listagem.
   Não use home.css nesta página para evitar conflito com blocos antigos.
   ============================================================ */

:root {
    --olx-purple:   #4a1a7a;
    --olx-purple2:  #6a0dad;
    --olx-purple3:  #7b00e6;
    --olx-orange:   #f28c00;
    --olx-yellow:   #f5c518;
    --olx-green:    #27ae60;
    --olx-gray-bg:  #f5f5f5;
    --olx-gray-brd: #e0e0e0;
    --olx-gray-txt: #666;
    --olx-dark:     #222;
    --olx-white:    #fff;
    --olx-red:      #c0392b;
    --radius:       12px;
    --shadow:       0 2px 8px rgba(0,0,0,0.10);
}

.olx-cis-body,
body.olx-cis-body {
    background: var(--olx-gray-bg) !important;
    color: var(--olx-dark);
    font-family: 'Nunito', Arial, sans-serif;
    min-height: 100vh;
}

.olx-cis-body *,
.olx-cis-body *::before,
.olx-cis-body *::after {
    box-sizing: border-box;
}

.olx-cis-body a { text-decoration: none; }
.olx-cis-body button,
.olx-cis-body input,
.olx-cis-body select { font-family: inherit; }
.olx-cis-body button { cursor: pointer; }

/* SVGs do header e dos cards */
.olx-icon-svg {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}
.search-btn .olx-icon-svg { width: 21px; height: 21px; stroke-width: 2.4; }
.pin .olx-icon-svg,
.loc-arrow .olx-icon-svg { width: 16px; height: 16px; }
.btn-anunciar .olx-icon-svg { width: 17px; height: 17px; }
.drawer-close .olx-icon-svg { width: 16px; height: 16px; }
.cat-arrow .olx-icon-svg { width: 18px; height: 18px; }
.cis-fav .olx-icon-svg { width: 17px; height: 17px; }

/* ============================================================
   HEADER COMPARTILHADO DA HOME
   ============================================================ */
.topbar {
    background: var(--olx-purple);
    color: var(--olx-white);
    text-align: center;
    font-size: 13px;
    font-weight: 700;
    padding: 7px 16px;
    letter-spacing: .01em;
}
.topbar a {
    color: var(--olx-yellow);
    text-decoration: underline;
    font-weight: 800;
}
.header {
    background: var(--olx-white);
    border-bottom: 1px solid var(--olx-gray-brd);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}
.header-inner {
    max-width: 1576px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 24px;
}
.olx-logo-img {
    display: flex;
    align-items: center;
    min-width: 120px;
    text-decoration: none;
    flex-shrink: 0;
}
.olx-logo-img img {
    max-height: 44px;
    max-width: 150px;
    object-fit: contain;
    display: block;
}
.search-bar-wrap {
    flex: 1;
    position: relative;
}
.olx-search-form { display: block; width: 100%; }
.search-bar {
    display: flex;
    align-items: center;
    border: 2px solid var(--olx-gray-brd);
    border-radius: 8px;
    background: var(--olx-white);
    transition: border-color .2s;
    width: 100%;
}
.search-bar:focus-within { border-color: var(--olx-purple2); }
.search-location {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0 12px;
    border-right: 1px solid var(--olx-gray-brd);
    font-size: 13px;
    font-weight: 700;
    color: var(--olx-purple2);
    white-space: nowrap;
    cursor: pointer;
    min-height: 42px;
}
.search-location.aberto .loc-arrow { transform: rotate(180deg); }
.search-bar input {
    flex: 1;
    padding: 10px 14px;
    font-size: 14px;
    border: none;
    outline: none;
    background: transparent;
    color: var(--olx-dark);
    width: 100%;
}
.search-bar input::placeholder { color: #999; }
.search-btn {
    padding: 0 18px;
    height: 42px;
    background: var(--olx-purple2);
    color: var(--olx-white);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 6px 6px 0;
    flex-shrink: 0;
    border: none;
}
.search-btn:hover { background: var(--olx-purple); }
.header-nav {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.nav-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    font-weight: 700;
    color: var(--olx-dark);
    padding: 6px 9px;
    border-radius: 6px;
    cursor: pointer;
    transition: background .15s;
    white-space: nowrap;
    background: transparent;
    border: none;
}
.nav-item:hover {
    background: var(--olx-gray-bg);
    color: var(--olx-purple2);
}
.nav-item .icon { display: inline-flex; color: var(--olx-dark); }
.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--olx-purple2), var(--olx-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 14px;
    flex-shrink: 0;
}
.btn-anunciar {
    background: var(--olx-orange);
    color: var(--olx-white) !important;
    font-weight: 800;
    font-size: 14px;
    padding: 10px 18px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background .2s, transform .1s;
    white-space: nowrap;
}
.btn-anunciar:hover {
    background: #d97a00;
    transform: scale(1.03);
    color: #fff;
}

/* Dropdown de estados */
.estados-dropdown {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    width: 240px;
    background: var(--olx-white);
    border: 1px solid var(--olx-gray-brd);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0,0,0,.14);
    z-index: 9999;
    max-height: 360px;
    overflow-y: auto;
    scrollbar-width: thin;
}
.estados-dropdown.visivel { display: block; }
.estado-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
    padding: 9px 16px;
    font-size: 13px;
    font-weight: 700;
    color: var(--olx-dark);
    cursor: pointer;
    transition: background .15s;
}
.estado-item:hover { background: var(--olx-gray-bg); }
.estado-item.ativo {
    background: var(--olx-purple2);
    color: var(--olx-white);
}
.estado-item small {
    font-size: 11px;
    font-weight: 400;
    opacity: .75;
}
.overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.45);
    z-index: 250;
    cursor: pointer;
}
.overlay.visivel { display: block; }
.user-drawer {
    position: fixed;
    top: 0;
    right: -360px;
    width: 320px;
    height: 100vh;
    background: var(--olx-white);
    z-index: 300;
    box-shadow: -4px 0 24px rgba(0,0,0,.15);
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    transition: right .28s cubic-bezier(.4,0,.2,1);
}
.user-drawer.aberto { right: 0; }
.drawer-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px 14px;
    border-bottom: 1px solid var(--olx-gray-brd);
    position: sticky;
    top: 0;
    background: var(--olx-white);
    z-index: 2;
}
.drawer-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--olx-dark);
    margin: 0;
}
.drawer-close {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--olx-gray-txt);
    cursor: pointer;
    background: none;
    border: none;
}
.drawer-close:hover { background: var(--olx-gray-bg); }
.drawer-perfil {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--olx-gray-brd);
    color: inherit;
}
.drawer-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--olx-purple2), var(--olx-orange));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 800;
    font-size: 20px;
    flex-shrink: 0;
}
.drawer-username { font-size: 15px; font-weight: 700; color: var(--olx-dark); }
.drawer-link-sub { font-size: 13px; color: var(--olx-purple2); font-weight: 600; margin-top: 2px; }
.drawer-login-warning {
    display: block;
    margin: 12px 18px 0;
    padding: 12px;
    border-radius: 12px;
    background: #f7f0ff;
    color: var(--olx-purple);
    font-size: 13px;
    font-weight: 600;
}
.drawer-group-title {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--olx-gray-txt);
    padding: 14px 20px 4px;
    text-transform: uppercase;
}
.drawer-nav { display: flex; flex-direction: column; }
.drawer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--olx-dark);
    transition: background .15s, color .15s;
    border-left: 3px solid transparent;
}
.drawer-item:hover {
    background: var(--olx-gray-bg);
    border-left-color: var(--olx-purple2);
    color: var(--olx-purple2);
}
.drawer-sair { color: var(--olx-red); }
.drawer-sair:hover { border-left-color: var(--olx-red); color: var(--olx-red); }

/* Menu de categorias compartilhado */
.cat-nav {
    background: var(--olx-white);
    border-bottom: 1px solid var(--olx-gray-brd);
}
.cat-nav-inner {
    max-width: 1576px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    overflow-x: auto;
    scrollbar-width: none;
    padding: 0 24px;
    gap: 0;
}
.cat-nav-inner::-webkit-scrollbar { display: none; }
.cat-item {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 9px 13px;
    font-size: 13px;
    font-weight: 400;
    color: #333;
    white-space: nowrap;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: color .18s, border-color .18s;
    letter-spacing: .01em;
    line-height: 1;
}
.cat-item:hover {
    color: var(--olx-purple2);
    border-bottom-color: var(--olx-purple2);
}
.cat-icon-wrap {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cat-icon-wrap img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    display: block;
}
.cat-item:nth-child(1)  .cat-icon-wrap { background: #f0e6ff; }
.cat-item:nth-child(2)  .cat-icon-wrap { background: #ffe6e6; }
.cat-item:nth-child(3)  .cat-icon-wrap { background: #fff0d6; }
.cat-item:nth-child(4)  .cat-icon-wrap { background: #e8f4ff; }
.cat-item:nth-child(5)  .cat-icon-wrap { background: #e6f7e6; }
.cat-item:nth-child(6)  .cat-icon-wrap { background: #f5f5f5; }
.cat-item:nth-child(7)  .cat-icon-wrap { background: #e6f0ff; }
.cat-item:nth-child(8)  .cat-icon-wrap { background: #fff3e0; }
.cat-item:nth-child(9)  .cat-icon-wrap { background: #fffde6; }
.cat-item:nth-child(10) .cat-icon-wrap { background: #e8f5e9; }
.cat-item:nth-child(11) .cat-icon-wrap { background: #e3f2fd; }
.cat-item:nth-child(12) .cat-icon-wrap { background: #fce4ec; }
.cat-item:nth-child(13) .cat-icon-wrap { background: #f1f8e9; }
.cat-item:nth-child(14) .cat-icon-wrap { background: #fbe9e7; }
.cat-arrow {
    margin-left: auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1.5px solid var(--olx-gray-brd);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    cursor: pointer;
    flex-shrink: 0;
    background: var(--olx-white);
}
.cat-arrow:hover { box-shadow: 0 2px 8px rgba(0,0,0,.13); }

/* ============================================================
   LAYOUT DA LISTAGEM CIS
   ============================================================ */
.cis-main {
    width: 100%;
    background: var(--olx-gray-bg);
    padding: 24px 16px 48px;
}
.cis-page-wrap {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.cis-sidebar {
    position: sticky;
    top: 134px;
    align-self: start;
}
.cis-side-banner {
    min-height: 76px;
    border-radius: 10px;
    background: linear-gradient(135deg, #7214db, #9d29ff 62%, #ffb000);
    color: #fff;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    margin-bottom: 16px;
    overflow: hidden;
}
.cis-side-banner span {
    font-size: 13px;
    font-weight: 900;
    opacity: .9;
}
.cis-side-banner strong {
    font-size: 14px;
    line-height: 1.18;
    max-width: 160px;
}
.cis-back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--olx-purple2);
    font-size: 13px;
    font-weight: 700;
    margin: 0 0 16px;
}
.cis-back-icon { transform: rotate(180deg); width: 14px; height: 14px; }
.cis-filter-card {
    background: transparent;
    border: none;
    margin-bottom: 18px;
}
.cis-filter-card h3 {
    margin: 0 0 10px;
    font-size: 14px;
    font-weight: 900;
    color: var(--olx-dark);
}
.cis-filter-card-search {
    display: none;
}
.cis-mini-search,
.cis-filters-form {
    display: block;
}
.cis-mini-search label,
.cis-filters-form label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 6px;
    color: var(--olx-dark);
}
.cis-mini-search select,
.cis-mini-search input,
.cis-price-row input {
    width: 100%;
    height: 43px;
    border: 1px solid #cfd5df;
    border-radius: 8px;
    padding: 0 12px;
    font-size: 14px;
    background: #fff;
    outline: none;
    margin-bottom: 10px;
}
.cis-mini-search select:focus,
.cis-mini-search input:focus,
.cis-price-row input:focus {
    border-color: var(--olx-purple2);
    box-shadow: 0 0 0 3px rgba(106, 13, 173, .12);
}
.cis-btn-primary,
.cis-btn-filter {
    width: 100%;
    height: 42px;
    border-radius: 10px;
    border: none;
    background: var(--olx-purple2);
    color: #fff;
    font-weight: 900;
    font-size: 14px;
}
.cis-btn-primary:hover,
.cis-btn-filter:hover { background: var(--olx-purple); }
.cis-all-cats {
    display: inline-block;
    margin: 0 0 10px;
    color: var(--olx-purple2);
    font-weight: 700;
    font-size: 13px;
}
.cis-category-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.cis-category-list a {
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 9px;
    min-height: 34px;
    color: #222;
    border-radius: 8px;
    padding: 3px 5px 3px 0;
    transition: background .15s, color .15s;
}
.cis-category-list a:hover,
.cis-category-list a.ativo {
    background: #f1e6ff;
    color: var(--olx-purple2);
}
.cis-category-list img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    display: block;
}
.cis-category-list span {
    font-size: 14px;
    font-weight: 700;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.cis-category-list em {
    font-style: normal;
    font-size: 12px;
    font-weight: 800;
    color: var(--olx-gray-txt);
}
.cis-price-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 16px;
}
.cis-chip-grid {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.cis-chip {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    justify-content: center;
    padding: 7px 10px;
    border-radius: 8px;
    border: 1px solid #cfd5df;
    color: #2b2b2b;
    background: #fff;
    font-size: 12px;
    font-weight: 700;
}
.cis-chip:hover,
.cis-chip.ativo {
    border-color: var(--olx-purple2);
    color: var(--olx-purple2);
    background: #f7f0ff;
}

.cis-results {
    min-width: 0;
}
.cis-breadcrumb {
    display: flex;
    align-items: center;
    gap: 7px;
    color: #333;
    font-size: 13px;
    margin: 0 0 16px;
}
.cis-breadcrumb a { color: #333; font-weight: 700; }
.cis-breadcrumb a:hover { color: var(--olx-purple2); }
.cis-breadcrumb span { color: var(--olx-gray-txt); }
.cis-breadcrumb strong { color: var(--olx-purple2); font-weight: 800; }
.cis-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}
.cis-title-row h1 {
    font-size: 25px;
    line-height: 1.2;
    color: #121212;
    margin: 0 0 8px;
    font-weight: 900;
}
.cis-title-row p {
    margin: 0;
    color: #687083;
    font-size: 14px;
}
.cis-view-toggle {
    display: inline-flex;
    border: 1px solid #c7ceda;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}
.cis-view-toggle button {
    width: 44px;
    height: 36px;
    border: 0;
    background: #fff;
    color: #526070;
    font-size: 18px;
}
.cis-view-toggle button + button { border-left: 1px solid #c7ceda; }
.cis-view-toggle .ativo {
    background: #f1e6ff;
    color: var(--olx-purple2);
}
.cis-toolbar {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}
.cis-select-like {
    min-width: 150px;
}
.cis-select-like span {
    display: block;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 6px;
    color: #222;
}
.cis-select-like strong {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1px solid #cfd5df;
    background: #fff;
    color: #333;
    font-size: 13px;
    font-weight: 700;
}
.cis-ad-large {
    min-height: 160px;
    background: linear-gradient(135deg, #040404, #20242d 55%, #0b0b0d);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 34px;
    color: #fff;
    margin: 0 0 12px;
    position: relative;
    padding: 20px;
}
.cis-ad-large::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 78% 35%, rgba(106,13,173,.35), transparent 34%);
    pointer-events: none;
}
.cis-ad-mark {
    position: relative;
    z-index: 1;
    font-size: 34px;
    font-weight: 1000;
    letter-spacing: .01em;
}
.cis-ad-large div:not(.cis-ad-mark) {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
    max-width: 340px;
}
.cis-ad-large strong { font-size: 18px; }
.cis-ad-large span { color: rgba(255,255,255,.72); font-size: 13px; }
.cis-ad-large a {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 130px;
    height: 44px;
    border-radius: 8px;
    background: #fff;
    color: #111;
    font-size: 13px;
    font-weight: 900;
}
.cis-search-info {
    background: #fff;
    border: 1px solid var(--olx-gray-brd);
    border-radius: 10px;
    padding: 12px 14px;
    margin: 0 0 14px;
    color: #303030;
    font-size: 14px;
}
.cis-search-info a {
    margin-left: 10px;
    color: var(--olx-purple2);
    font-weight: 800;
}
.cis-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}
.cis-card {
    background: #fff;
    border: 1px solid #d8dce3;
    border-radius: 10px;
    overflow: hidden;
    min-width: 0;
    transition: box-shadow .18s, transform .18s;
}
.cis-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.12);
    transform: translateY(-2px);
}
.cis-card-link {
    display: block;
    color: inherit;
    min-height: 100%;
}
.cis-card-img-wrap {
    height: 180px;
    background: #f2f3f5;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.cis-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.cis-fav {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(0,0,0,.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2b2b2b;
    box-shadow: 0 2px 7px rgba(0,0,0,.12);
    z-index: 2;
}
.cis-fav:hover { color: var(--olx-purple2); }
.cis-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 9px;
    display: flex;
    gap: 4px;
}
.cis-dots span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    box-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.cis-card-body {
    padding: 12px 12px 14px;
}
.cis-card-body h2 {
    margin: 0 0 8px;
    color: #1c1c1c;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 42px;
}
.cis-card-link:hover h2 { color: var(--olx-purple2); }
.cis-price {
    color: #111;
    font-size: 19px;
    font-weight: 1000;
    margin-bottom: 8px;
}
.cis-pay-badge {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f1e1ff;
    color: var(--olx-purple2);
    font-size: 11px;
    font-weight: 900;
    margin-bottom: 10px;
}
.cis-meta {
    color: #687083;
    font-size: 12px;
    line-height: 1.35;
}
.cis-pagination {
    margin: 24px 0 0;
    background: #fff;
    border: 1px solid var(--olx-gray-brd);
    border-radius: 10px;
    padding: 12px 14px;
    color: #222;
}
.cis-pagination a,
.cis-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 30px;
    margin: 2px;
    border-radius: 8px;
    color: var(--olx-purple2);
    font-weight: 800;
}
.cis-pagination .current,
.cis-pagination strong {
    background: var(--olx-purple2);
    color: #fff;
}
.cis-empty {
    background: #fff;
    border: 1px solid var(--olx-gray-brd);
    border-radius: 14px;
    padding: 28px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    color: #333;
}
.cis-empty strong { font-size: 20px; }
.cis-empty span { color: var(--olx-gray-txt); }

/* Footer compartilhado, caso use rodape_home.php */
.footer {
    background: var(--olx-white);
    border-top: 1px solid var(--olx-gray-brd);
    margin-top: 0;
}
.footer-inner {
    max-width: 1576px;
    margin: 0 auto;
    padding: 32px 24px 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 24px;
}
.footer-col h4 {
    font-size: 13px;
    font-weight: 800;
    color: var(--olx-dark);
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.footer-col ul {
    padding: 0;
    margin: 0;
    list-style: none;
}
.footer-col ul li { margin-bottom: 7px; }
.footer-col ul li a {
    font-size: 13px;
    color: var(--olx-gray-txt);
}
.footer-col ul li a:hover { color: var(--olx-purple2); }
.footer-bottom {
    border-top: 1px solid var(--olx-gray-brd);
    padding: 16px 20px;
    text-align: center;
    font-size: 12px;
    color: var(--olx-gray-txt);
}
.olx-footer-social { display:flex; gap:10px; flex-wrap:wrap; }
.olx-footer-social a {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:34px;
    height:34px;
    border-radius:999px;
    background:#fff;
    border:1px solid var(--olx-gray-brd);
}
.olx-footer-social img { width:20px; height:20px; object-fit:contain; }

@media (max-width: 1180px) {
    .cis-page-wrap { grid-template-columns: 220px minmax(0, 1fr); gap: 20px; }
    .cis-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .header-nav .nav-item span:not(.icon):not(.loc-arrow) { display: none; }
}
@media (max-width: 900px) {
    .header-inner { padding: 8px 12px; }
    .olx-logo-img { min-width: auto; }
    .olx-logo-img img { max-width: 112px; }
    .cat-nav-inner { padding: 0 12px; }
    .cis-page-wrap { display: block; }
    .cis-sidebar { position: static; margin-bottom: 20px; }
    .cis-filter-card-search { display: block; background: #fff; border: 1px solid var(--olx-gray-brd); border-radius: 12px; padding: 14px; }
    .cis-category-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .cis-category-list a { background: #fff; border: 1px solid var(--olx-gray-brd); padding: 6px; }
    .cis-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cis-ad-large { min-height: 120px; gap: 18px; }
}
@media (max-width: 620px) {
    .header-nav .nav-item { display: none; }
    .header-nav .user-btn,
    .header-nav .btn-anunciar { display: flex; }
    .btn-anunciar span { display: none; }
    .search-location #estadoLabel { max-width: 34px; overflow: hidden; }
    .cis-main { padding: 14px 10px 36px; }
    .cis-title-row { flex-direction: column; }
    .cis-toolbar { flex-wrap: wrap; }
    .cis-grid { grid-template-columns: 1fr; }
    .cis-card-img-wrap { height: 220px; }
    .cis-ad-large { flex-direction: column; text-align: center; }
}

/* ============================================================
   AJUSTES V2 - Ordenação no topo, grade/lista e paginação
   ============================================================ */
.cis-toolbar {
    display: flex;
    align-items: flex-end;
    gap: 18px;
    margin-bottom: 18px;
}
.cis-order-form {
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
    min-width: 160px;
}
.cis-order-form label {
    font-size: 13px;
    font-weight: 900;
    color: #222;
}
.cis-order-form select {
    min-width: 158px;
    height: 38px;
    border: 1px solid #cfd5df;
    border-radius: 8px;
    background: #fff;
    color: #222;
    font-size: 13px;
    font-weight: 700;
    padding: 0 36px 0 12px;
    outline: none;
}
.cis-order-form select:focus {
    border-color: var(--olx-purple2);
    box-shadow: 0 0 0 3px rgba(106, 13, 173, .12);
}
.cis-view-toggle button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.cis-view-toggle button.ativo {
    background: #f1e6ff;
    color: var(--olx-purple2);
}

/* Modo lista acionado pelo botão superior */
.cis-grid.is-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cis-grid.is-list .cis-card {
    width: 100%;
}
.cis-grid.is-list .cis-card-link {
    display: grid;
    grid-template-columns: 235px minmax(0, 1fr);
    align-items: stretch;
    min-height: 172px;
}
.cis-grid.is-list .cis-card-img-wrap {
    height: 172px;
    min-height: 172px;
    border-right: 1px solid #e5e7ec;
}
.cis-grid.is-list .cis-card-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.cis-grid.is-list .cis-card-body h2 {
    font-size: 18px;
    line-height: 1.25;
    min-height: auto;
    margin-bottom: 8px;
}
.cis-grid.is-list .cis-price {
    font-size: 20px;
}
.cis-grid.is-list .cis-meta {
    margin-top: 2px;
}

/* Paginação dentro do enquadro, sem bullet perdido */
.cis-pagination {
    display: block;
    overflow: hidden;
}
.cis-pagination ul,
.cis-pagination ol {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.cis-pagination li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    display: inline-flex;
    align-items: center;
}
.cis-pagination a,
.cis-pagination span,
.cis-pagination strong,
.cis-pagination b {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 30px;
    min-height: 30px;
    margin: 2px;
    border-radius: 8px;
    color: var(--olx-purple2);
    font-weight: 800;
}
.cis-pagination .current,
.cis-pagination strong,
.cis-pagination b {
    background: var(--olx-purple2);
    color: #fff;
    padding: 0 9px;
}

@media (max-width: 620px) {
    .cis-grid.is-list .cis-card-link {
        display: block;
        min-height: 0;
    }
    .cis-grid.is-list .cis-card-img-wrap {
        height: 220px;
        border-right: 0;
    }
    .cis-order-form,
    .cis-order-form select {
        width: 100%;
    }
}

/* ============================================================
   DRAWER DE LOCALIZAÇÃO - HEADER OLX MAX
   ============================================================ */
.search-location {
    background: transparent;
    border: 0;
    border-right: 1px solid var(--olx-gray-brd);
    font-family: inherit;
    text-align: left;
}
.search-location .pin,
.search-location .loc-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.location-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
    max-width: 150px;
}
.location-text small {
    color: var(--olx-gray-txt);
    font-size: 10px;
    font-weight: 700;
}
.location-text strong {
    color: var(--olx-purple2);
    font-size: 12px;
    font-weight: 800;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.location-drawer {
    position: fixed;
    top: 0;
    right: -430px;
    width: 400px;
    max-width: calc(100vw - 28px);
    height: 100vh;
    background: var(--olx-white);
    z-index: 310;
    box-shadow: -5px 0 28px rgba(0,0,0,.18);
    display: flex;
    flex-direction: column;
    transition: right .28s cubic-bezier(.4,0,.2,1);
}
.location-drawer.aberto { right: 0; }
.location-drawer-header {
    min-height: 72px;
    padding: 0 22px;
    border-bottom: 1px solid var(--olx-gray-brd);
    display: flex;
    align-items: center;
    gap: 16px;
    background: var(--olx-white);
}
.location-drawer-header h2 {
    font-size: 18px;
    font-weight: 800;
    color: var(--olx-dark);
    margin: 0;
}
.location-back {
    width: 34px;
    height: 34px;
    border: 0;
    background: transparent;
    color: var(--olx-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    cursor: pointer;
}
.location-back:hover { background: var(--olx-gray-bg); }
.location-back .olx-icon-svg { transform: rotate(180deg); }
.location-drawer-body {
    padding: 22px;
    overflow-y: auto;
}
.location-current-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: var(--olx-dark);
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 10px;
}
.location-clear {
    color: var(--olx-dark);
    text-decoration: underline;
    font-size: 13px;
    font-weight: 700;
}
.location-current-chip {
    display: inline-flex;
    align-items: center;
    padding: 7px 12px;
    border-radius: 999px;
    border: 1.5px solid var(--olx-purple2);
    color: var(--olx-purple2);
    font-size: 13px;
    font-weight: 800;
    background: #fbf7ff;
    margin-bottom: 18px;
}
.location-separator {
    height: 1px;
    background: var(--olx-gray-brd);
    margin: 0 0 20px;
}
.location-label {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: var(--olx-dark);
    margin-bottom: 10px;
}
.location-search-box {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1.5px solid var(--olx-gray-brd);
    border-radius: 10px;
    padding: 0 12px;
    height: 46px;
    background: var(--olx-white);
    margin-bottom: 14px;
}
.location-search-box:focus-within { border-color: var(--olx-purple2); }
.location-search-box span {
    display: inline-flex;
    color: var(--olx-gray-txt);
}
.location-search-box input {
    border: 0;
    outline: 0;
    width: 100%;
    height: 100%;
    font-size: 14px;
    color: var(--olx-dark);
    background: transparent;
}
.location-results {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 4px;
}
.location-option {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 10px;
    border-radius: 10px;
    color: var(--olx-dark);
    text-decoration: none;
    transition: background .15s, color .15s;
}
.location-option:hover {
    background: var(--olx-gray-bg);
    color: var(--olx-purple2);
}
.location-option.ativo {
    background: #f4eaff;
    color: var(--olx-purple2);
}
.location-option-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f2f2f2;
    flex-shrink: 0;
}
.location-option span:last-child {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
}
.location-option strong {
    font-size: 14px;
    font-weight: 800;
}
.location-option small {
    font-size: 12px;
    color: var(--olx-gray-txt);
    margin-top: 2px;
}
@media (max-width: 768px) {
    .location-text small { display: none; }
    .location-text strong { max-width: 64px; }
    .location-drawer { width: 360px; }
}

/* ============================================================
   Drawer localização: busca de cidades com sugestões
   ============================================================ */
.location-city-results {
    margin-top: 10px;
}
.location-results-title {
    display: block;
    font-size: 12px;
    font-weight: 800;
    color: #555;
    text-transform: uppercase;
    letter-spacing: .04em;
    margin: 14px 0 7px;
}
.location-city-option {
    width: 100%;
    border: 1px solid #e5e5e5;
    background: #fff;
    border-radius: 12px;
    padding: 11px 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    text-align: left;
    cursor: pointer;
    color: #222;
    margin-bottom: 8px;
    transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.location-city-option:hover {
    background: #faf7ff;
    border-color: #8a00e6;
    box-shadow: 0 4px 12px rgba(106, 13, 173, .08);
}
.location-city-option strong {
    display: block;
    font-size: 14px;
    font-weight: 800;
    color: #222;
    line-height: 1.25;
}
.location-city-option small {
    display: block;
    font-size: 12px;
    color: #666;
    margin-top: 2px;
}
.location-loading,
.location-empty {
    font-size: 13px;
    color: #666;
    padding: 10px 12px;
    border-radius: 12px;
    background: #f7f7f7;
    margin-top: 10px;
}
