/* ==========================================================================
   SE AGRÍCOLA — SINGLE DOS CLASSIFICADOS
   Página pública do anúncio • Galeria • Vendedor • Contato • Relacionados
========================================================================== */

.classified-view-page {
    --cls-primary: var(--primary-color, #16844f);
    --cls-primary-dark: var(--primary-dark, #0f5f39);
    --cls-primary-soft: rgba(22, 132, 79, 0.10);
    --cls-primary-soft-strong: rgba(22, 132, 79, 0.16);
    --cls-gold: var(--agro-gold, #d8b04c);

    --cls-text: #17211b;
    --cls-text-soft: #35443a;
    --cls-muted: #68766d;
    --cls-muted-light: #839087;

    --cls-border: #dfe7e1;
    --cls-border-strong: #cfdbd3;

    --cls-card: #ffffff;
    --cls-bg: #f5f7f5;
    --cls-bg-soft: #f8faf8;

    --cls-danger: #b91c1c;
    --cls-warning: #a16207;
    --cls-info: #2563eb;

    --cls-shadow-sm: 0 7px 20px rgba(20, 55, 35, 0.05);
    --cls-shadow: 0 14px 36px rgba(20, 55, 35, 0.08);
    --cls-shadow-hover: 0 18px 42px rgba(20, 55, 35, 0.12);

    --cls-radius-lg: 22px;
    --cls-radius-md: 15px;
    --cls-radius-sm: 10px;

    min-height: 70vh;
    padding: 1.35rem 0 4rem;
    color: var(--cls-text);
    background:
            radial-gradient(
                    circle at top right,
                    rgba(216, 176, 76, 0.08),
                    transparent 30rem
            ),
            var(--cls-bg);
}

.classified-view-container {
    width: 100%;
    max-width: 1280px;
}

/* ==========================================================================
   CABEÇALHO UNIFICADO
========================================================================== */

.classified-heading-card {
    position: relative;
    margin-bottom: 1.25rem;
    padding: 1.2rem 1.35rem 1.3rem;
    border: 1px solid var(--cls-border);
    border-radius: var(--cls-radius-lg);
    background:
            radial-gradient(
                    circle at top right,
                    rgba(216, 176, 76, 0.09),
                    transparent 19rem
            ),
            linear-gradient(
                    135deg,
                    #ffffff 0%,
                    #fcfdfc 100%
            );
    box-shadow: var(--cls-shadow);
    overflow: hidden;
}

.classified-heading-card::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -110px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: rgba(22, 132, 79, 0.035);
    pointer-events: none;
}

.classified-heading-top {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 0.95rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--cls-border);
}

/* Breadcrumb -------------------------------------------------------------- */

.classified-heading-breadcrumb {
    min-width: 0;
    overflow: hidden;
}

.classified-heading-breadcrumb ol {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.36rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.classified-heading-breadcrumb li {
    display: inline-flex;
    align-items: center;
    gap: 0.36rem;
    min-width: 0;
    color: var(--cls-muted);
    font-size: 0.73rem;
    font-weight: 600;
    line-height: 1.35;
}

.classified-heading-breadcrumb li:not(:last-child)::after {
    content: "/";
    color: #b1bbb4;
    font-weight: 400;
}

.classified-heading-breadcrumb a,
.classified-heading-breadcrumb span {
    display: inline-block;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.classified-heading-breadcrumb a {
    color: #65736a;
    text-decoration: none;
    transition: color 0.18s ease;
}

.classified-heading-breadcrumb a:hover {
    color: var(--cls-primary-dark);
}

.classified-heading-breadcrumb li:last-child a,
.classified-heading-breadcrumb li:last-child span {
    color: var(--cls-primary-dark);
    font-weight: 750;
}

/* Ações do cabeçalho ------------------------------------------------------- */

.classified-heading-actions {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex: 0 0 auto;
}

.classified-heading-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.38rem;
    min-height: 40px;
    padding: 0.55rem 0.72rem;
    border: 1px solid var(--cls-border);
    border-radius: 10px;
    color: var(--cls-primary-dark);
    background: #ffffff;
    box-shadow: var(--cls-shadow-sm);
    font-family: inherit;
    font-size: 0.72rem;
    font-weight: 750;
    cursor: pointer;
    transition:
            color 0.18s ease,
            border-color 0.18s ease,
            background 0.18s ease,
            box-shadow 0.18s ease,
            transform 0.18s ease;
}

.classified-heading-action:hover {
    color: #ffffff;
    border-color: var(--cls-primary);
    background: var(--cls-primary);
    box-shadow: 0 10px 24px rgba(22, 132, 79, 0.18);
    transform: translateY(-1px);
}

.classified-heading-action.is-copy:hover {
    color: var(--cls-primary-dark);
    border-color: rgba(22, 132, 79, 0.34);
    background: var(--cls-primary-soft);
}

.classified-heading-action:focus-visible {
    outline: 3px solid rgba(22, 132, 79, 0.18);
    outline-offset: 2px;
}

.classified-heading-action svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

/* Conteúdo do cabeçalho ---------------------------------------------------- */

.classified-heading-content {
    position: relative;
    z-index: 1;
    max-width: 1020px;
}

.classified-heading-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.34rem;
    margin-bottom: 0.62rem;
    padding: 0.28rem 0.56rem;
    border: 1px solid rgba(22, 132, 79, 0.14);
    border-radius: 999px;
    color: var(--cls-primary-dark);
    background: var(--cls-primary-soft);
    font-size: 0.66rem;
    font-weight: 780;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.classified-heading-kicker svg {
    width: 14px;
    height: 14px;
}

.classified-heading-title {
    max-width: 980px;
    margin: 0;
    color: var(--cls-text);
    font-size: clamp(1.7rem, 3.4vw, 2.7rem);
    font-weight: 880;
    line-height: 1.12;
    letter-spacing: -0.035em;
    overflow-wrap: anywhere;
}

.classified-heading-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.62rem 1.08rem;
    margin-top: 0.86rem;
}

.classified-heading-meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.38rem;
    color: var(--cls-muted);
    font-size: 0.75rem;
    line-height: 1.4;
}

.classified-heading-meta strong {
    color: var(--cls-text-soft);
    font-weight: 730;
}

.classified-heading-meta svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
    color: var(--cls-primary);
}

/* ==========================================================================
   PAINEL DO PROPRIETÁRIO
========================================================================== */

.classified-owner-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.15rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(59, 130, 246, 0.18);
    border-radius: var(--cls-radius-md);
    background: rgba(239, 246, 255, 0.86);
}

.classified-owner-toolbar > div:first-child {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.classified-owner-toolbar > div:first-child > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 38px;
    height: 38px;
    border-radius: 11px;
    color: #1d4ed8;
    background: rgba(59, 130, 246, 0.11);
}

.classified-owner-toolbar svg {
    width: 18px;
    height: 18px;
}

.classified-owner-toolbar strong,
.classified-owner-toolbar small {
    display: block;
}

.classified-owner-toolbar strong {
    color: #1e3a5f;
    font-size: 0.84rem;
}

.classified-owner-toolbar small {
    margin-top: 0.12rem;
    color: #64748b;
    font-size: 0.72rem;
}

.classified-owner-toolbar__actions {
    display: flex;
    gap: 0.45rem;
    flex: 0 0 auto;
}

.classified-owner-toolbar__actions a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 38px;
    padding: 0.5rem 0.7rem;
    border: 1px solid transparent;
    border-radius: 9px;
    color: #ffffff;
    background: #2563eb;
    font-size: 0.74rem;
    font-weight: 760;
    text-decoration: none;
    transition:
            transform 0.18s ease,
            filter 0.18s ease;
}

.classified-owner-toolbar__actions a:hover {
    color: #ffffff;
    filter: brightness(0.96);
    transform: translateY(-1px);
}

.classified-owner-toolbar__actions a.is-secondary {
    color: #475569;
    border-color: #cbd5e1;
    background: #ffffff;
}

.classified-owner-toolbar__actions a.is-secondary:hover {
    color: #334155;
    background: #f8fafc;
}

/* ==========================================================================
   LAYOUT PRINCIPAL
========================================================================== */

.classified-view-layout {
    display: grid;
    grid-template-columns:
        minmax(0, 1.65fr)
        minmax(310px, 0.75fr);
    gap: 1.35rem;
    align-items: start;
}

.classified-view-main {
    display: grid;
    gap: 1.2rem;
    min-width: 0;
}

.classified-view-sidebar {
    min-width: 0;
}

.classified-contact-card {
    position: sticky;
    top: 96px;
}

/* ==========================================================================
   CARDS BASE
========================================================================== */

.classified-gallery,
.classified-content-card,
.classified-contact-card,
.classified-security-card {
    border: 1px solid var(--cls-border);
    border-radius: var(--cls-radius-lg);
    background: var(--cls-card);
    box-shadow: var(--cls-shadow);
}

/* ==========================================================================
   GALERIA
========================================================================== */

.classified-gallery {
    padding: 0.78rem;
}

.classified-gallery__main {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 10;
    border-radius: 16px;
    background:
            linear-gradient(
                    135deg,
                    #edf2ef 0%,
                    #e5ebe7 100%
            );
    overflow: hidden;
}

.classified-gallery__main > img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition:
            opacity 0.18s ease,
            transform 0.18s ease;
}

.classified-gallery__main > img.is-changing {
    opacity: 0.35;
    transform: scale(0.99);
}

.classified-gallery__nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    color: #ffffff;
    background: rgba(17, 24, 19, 0.58);
    backdrop-filter: blur(8px);
    cursor: pointer;
    transform: translateY(-50%);
    transition:
            background 0.18s ease,
            transform 0.18s ease;
}

.classified-gallery__nav:hover {
    background: rgba(15, 95, 57, 0.9);
    transform: translateY(-50%) scale(1.04);
}

.classified-gallery__nav:focus-visible {
    outline: 3px solid rgba(255, 255, 255, 0.42);
    outline-offset: 2px;
}

.classified-gallery__nav.is-prev {
    left: 0.8rem;
}

.classified-gallery__nav.is-next {
    right: 0.8rem;
}

.classified-gallery__nav.is-hidden {
    display: none;
}

.classified-gallery__nav svg {
    width: 21px;
    height: 21px;
}

.classified-gallery__type {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 3;
    padding: 0.38rem 0.62rem;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(15, 95, 57, 0.92);
    backdrop-filter: blur(8px);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.classified-gallery__type.compra,
.classified-gallery__type.compras {
    background: rgba(20, 130, 180, 0.92);
}

.classified-gallery__type.aluguel {
    background: rgba(30, 100, 220, 0.92);
}

.classified-gallery__type.servico,
.classified-gallery__type.servicos {
    background: rgba(190, 125, 18, 0.94);
}

.classified-gallery__counter {
    position: absolute;
    right: 0.75rem;
    bottom: 0.7rem;
    z-index: 3;
    padding: 0.34rem 0.56rem;
    border-radius: 999px;
    color: #ffffff;
    background: rgba(17, 24, 19, 0.62);
    backdrop-filter: blur(8px);
    font-size: 0.69rem;
    font-weight: 750;
}

.classified-gallery__thumbs {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.7rem;
    padding: 0.1rem 0.05rem 0.2rem;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scrollbar-width: thin;
    scrollbar-color:
            rgba(22, 132, 79, 0.35)
            transparent;
}

.classified-gallery__thumbs::-webkit-scrollbar {
    height: 6px;
}

.classified-gallery__thumbs::-webkit-scrollbar-track {
    background: transparent;
}

.classified-gallery__thumbs::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: rgba(22, 132, 79, 0.3);
}

.classified-gallery__thumb {
    flex: 0 0 auto;
    width: 82px;
    height: 70px;
    padding: 3px;
    border: 2px solid transparent;
    border-radius: 11px;
    background: #ffffff;
    overflow: hidden;
    cursor: pointer;
    transition:
            border-color 0.18s ease,
            transform 0.18s ease,
            box-shadow 0.18s ease;
}

.classified-gallery__thumb:hover,
.classified-gallery__thumb.is-active {
    border-color: var(--cls-primary);
    box-shadow: 0 7px 18px rgba(22, 132, 79, 0.14);
    transform: translateY(-1px);
}

.classified-gallery__thumb:focus-visible {
    outline: 3px solid rgba(22, 132, 79, 0.18);
    outline-offset: 2px;
}

.classified-gallery__thumb img {
    width: 100%;
    height: 100%;
    border-radius: 7px;
    object-fit: cover;
}

/* ==========================================================================
   CONTEÚDO DO ANÚNCIO
========================================================================== */

.classified-content-card {
    padding: 1.3rem;
}

.classified-content-heading {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.classified-content-heading > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 39px;
    height: 39px;
    border-radius: 11px;
    color: var(--cls-primary);
    background: var(--cls-primary-soft);
}

.classified-content-heading svg {
    width: 19px;
    height: 19px;
}

.classified-content-heading h2 {
    margin: 0;
    color: var(--cls-text);
    font-size: 1rem;
    font-weight: 820;
}

.classified-content-heading p {
    margin: 0.2rem 0 0;
    color: var(--cls-muted);
    font-size: 0.76rem;
}

.classified-description {
    color: #46544b;
    font-size: 0.91rem;
    line-height: 1.75;
    overflow-wrap: anywhere;
}

.classified-description p:last-child {
    margin-bottom: 0;
}

.classified-location-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
}

.classified-location-grid > div {
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid #e5ebe7;
    border-radius: 12px;
    background: var(--cls-bg-soft);
}

.classified-location-grid small,
.classified-location-grid strong {
    display: block;
}

.classified-location-grid small {
    color: var(--cls-muted);
    font-size: 0.68rem;
}

.classified-location-grid strong {
    margin-top: 0.2rem;
    color: var(--cls-text);
    font-size: 0.84rem;
    overflow-wrap: anywhere;
}

/* Segurança --------------------------------------------------------------- */

.classified-security-card {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    padding: 1rem 1.1rem;
    border-color: rgba(216, 176, 76, 0.3);
    background: #fffdf7;
}

.classified-security-card > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    color: var(--cls-warning);
    background: rgba(234, 179, 8, 0.12);
}

.classified-security-card svg {
    width: 20px;
    height: 20px;
}

.classified-security-card h2 {
    margin: 0;
    color: #5f4507;
    font-size: 0.88rem;
    font-weight: 800;
}

.classified-security-card p {
    margin: 0.25rem 0 0;
    color: #7b6840;
    font-size: 0.76rem;
    line-height: 1.55;
}

/* ==========================================================================
   SIDEBAR / CONTATO
========================================================================== */

.classified-contact-card {
    padding: 1.25rem;
}

.classified-price small {
    display: block;
    color: var(--cls-muted);
    font-size: 0.7rem;
    font-weight: 650;
}

.classified-price > strong {
    display: block;
    margin-top: 0.25rem;
    color: var(--cls-primary-dark);
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 880;
    letter-spacing: -0.025em;
    overflow-wrap: anywhere;
}

.classified-price > strong.is-contact {
    font-size: 1.25rem;
}

.classified-price > span {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-top: 0.55rem;
    padding: 0.3rem 0.52rem;
    border-radius: 999px;
    color: var(--cls-primary-dark);
    background: var(--cls-primary-soft);
    font-size: 0.68rem;
    font-weight: 730;
}

.classified-price > span svg {
    width: 14px;
    height: 14px;
}

.classified-card-divider {
    height: 1px;
    margin: 1rem 0;
    background: var(--cls-border);
}

/* Vendedor ---------------------------------------------------------------- */

.classified-seller {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.classified-seller > img {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    border: 2px solid #ffffff;
    border-radius: 15px;
    background: #edf2ee;
    box-shadow: 0 5px 16px rgba(20, 55, 35, 0.09);
    object-fit: cover;
}

.classified-seller > div {
    min-width: 0;
}

.classified-seller small,
.classified-seller strong {
    display: block;
}

.classified-seller small {
    color: var(--cls-muted);
    font-size: 0.68rem;
}

.classified-seller strong {
    margin-top: 0.08rem;
    color: var(--cls-text);
    font-size: 0.9rem;
    overflow-wrap: anywhere;
}

.classified-seller-verified {
    display: inline-flex !important;
    align-items: center;
    gap: 0.22rem;
    margin-top: 0.2rem;
    color: var(--cls-primary);
    font-size: 0.65rem;
    font-weight: 750;
}

.classified-seller-verified svg {
    width: 13px;
    height: 13px;
}

/* Avaliação --------------------------------------------------------------- */

.classified-seller-rating {
    display: flex;
    align-items: center;
    gap: 0.42rem;
    margin-top: 0.8rem;
    padding: 0.62rem 0.68rem;
    border: 1px solid #eee7d1;
    border-radius: 10px;
    color: #7a5c13;
    background: #fffdf7;
    text-decoration: none;
    transition:
            border-color 0.18s ease,
            background 0.18s ease;
}

.classified-seller-rating:hover {
    color: #6d510f;
    border-color: #e3d6ad;
    background: #fffaf0;
}

.classified-seller-rating > span {
    display: inline-flex;
    gap: 0.08rem;
}

.classified-seller-rating svg {
    width: 14px;
    height: 14px;
    color: #d49a13;
}

.classified-seller-rating svg.is-filled {
    fill: currentColor;
}

.classified-seller-rating strong {
    font-size: 0.74rem;
}

.classified-seller-rating small {
    color: #8c7b51;
    font-size: 0.65rem;
}

/* Contatos visíveis ------------------------------------------------------- */

.classified-visible-contact {
    display: grid;
    gap: 0.65rem;
    margin-top: 1rem;
}

.classified-visible-contact > div {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 0.75rem;
    border: 1px solid #e4ebe6;
    border-radius: 11px;
    background: var(--cls-bg-soft);
}

.classified-visible-contact > div > svg {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    color: var(--cls-primary);
}

.classified-visible-contact span {
    min-width: 0;
}

.classified-visible-contact small,
.classified-visible-contact strong {
    display: block;
}

.classified-visible-contact small {
    color: var(--cls-muted);
    font-size: 0.64rem;
}

.classified-visible-contact strong {
    margin-top: 0.08rem;
    color: var(--cls-text-soft);
    font-size: 0.77rem;
    overflow-wrap: anywhere;
}

/* Contato oculto ---------------------------------------------------------- */

.classified-private-contact {
    display: flex;
    align-items: flex-start;
    gap: 0.48rem;
    margin-top: 1rem;
    padding: 0.75rem;
    border-radius: 11px;
    color: #64748b;
    background: #f1f5f9;
    font-size: 0.73rem;
    line-height: 1.45;
}

.classified-private-contact svg {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
}

/* Ações de contato -------------------------------------------------------- */

.classified-contact-actions {
    display: grid;
    gap: 0.55rem;
    margin-top: 1rem;
}

.classified-contact-actions a,
.classified-contact-actions button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    min-height: 45px;
    padding: 0.68rem 0.8rem;
    border: 1px solid transparent;
    border-radius: 11px;
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 790;
    text-decoration: none;
    cursor: pointer;
    transition:
            transform 0.18s ease,
            filter 0.18s ease,
            background 0.18s ease,
            border-color 0.18s ease;
}

.classified-contact-actions a:hover,
.classified-contact-actions button:hover {
    transform: translateY(-1px);
}

.classified-contact-actions a:focus-visible,
.classified-contact-actions button:focus-visible {
    outline: 3px solid rgba(22, 132, 79, 0.18);
    outline-offset: 2px;
}

.classified-contact-actions svg {
    width: 17px;
    height: 17px;
}

.classified-contact-actions .is-whatsapp {
    color: #ffffff;
    background: #1fa855;
}

.classified-contact-actions .is-whatsapp:hover {
    color: #ffffff;
    filter: brightness(0.95);
}

.classified-contact-actions .is-message {
    color: #ffffff;
    background: var(--cls-primary);
}

.classified-contact-actions .is-message:hover {
    filter: brightness(0.95);
}

.classified-contact-actions .is-share {
    color: var(--cls-primary-dark);
    border-color: rgba(22, 132, 79, 0.28);
    background: #ffffff;
}

.classified-contact-actions .is-share:hover {
    color: var(--cls-primary-dark);
    background: var(--cls-primary-soft);
}

/* Outros anúncios do vendedor -------------------------------------------- */

.classified-more-from-seller {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    margin-top: 0.7rem;
    padding: 0.62rem 0.7rem;
    border-radius: 10px;
    color: #4f6156;
    background: #f3f6f4;
    font-size: 0.72rem;
    font-weight: 730;
    text-decoration: none;
    transition:
            color 0.18s ease,
            background 0.18s ease;
}

.classified-more-from-seller:hover {
    color: var(--cls-primary-dark);
    background: var(--cls-primary-soft);
}

.classified-more-from-seller svg {
    width: 15px;
    height: 15px;
}

/* Código ------------------------------------------------------------------ */

.classified-ad-code {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.6rem;
    margin-top: 1rem;
    padding-top: 0.8rem;
    border-top: 1px solid var(--cls-border);
    color: var(--cls-muted);
    font-size: 0.68rem;
}

.classified-ad-code span {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
}

.classified-ad-code svg {
    width: 13px;
    height: 13px;
}

.classified-ad-code strong {
    color: #425047;
}

/* ==========================================================================
   ANÚNCIOS RELACIONADOS
========================================================================== */

.classified-related-section {
    margin-top: 2.5rem;
}

.classified-related-section > header {
    margin-bottom: 1rem;
}

.classified-related-section > header span {
    color: var(--cls-primary);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.classified-related-section > header h2 {
    margin: 0.2rem 0 0;
    color: var(--cls-text);
    font-size: clamp(1.25rem, 2.5vw, 1.7rem);
    font-weight: 850;
}

.classified-related-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
}

.classified-related-card {
    min-width: 0;
    border: 1px solid var(--cls-border);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 9px 25px rgba(20, 55, 35, 0.06);
    overflow: hidden;
    transition:
            transform 0.2s ease,
            box-shadow 0.2s ease;
}

.classified-related-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 32px rgba(20, 55, 35, 0.1);
}

.classified-related-image {
    display: block;
    aspect-ratio: 16 / 10;
    background: #e9eeeb;
    overflow: hidden;
}

.classified-related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.classified-related-card:hover img {
    transform: scale(1.035);
}

.classified-related-card > div {
    padding: 0.85rem;
}

.classified-related-card h3 {
    margin: 0;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.4;
}

.classified-related-card h3 a {
    display: -webkit-box;
    min-height: 2.8em;
    color: var(--cls-text);
    text-decoration: none;
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.classified-related-card h3 a:hover {
    color: var(--cls-primary-dark);
}

.classified-related-card strong {
    display: block;
    margin-top: 0.55rem;
    color: var(--cls-primary-dark);
    font-size: 0.9rem;
}

.classified-related-link {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: 0.6rem;
    color: var(--cls-primary);
    font-size: 0.72rem;
    font-weight: 750;
    text-decoration: none;
}

.classified-related-link:hover {
    color: var(--cls-primary-dark);
}

.classified-related-link svg {
    width: 14px;
    height: 14px;
}

/* ==========================================================================
   MODAL DE CONTATO
========================================================================== */

.classified-contact-modal {
    border: 0;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(17, 35, 24, 0.22);
}

.classified-contact-modal .modal-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    padding: 1.1rem 1.2rem;
    border-bottom: 1px solid var(--cls-border);
    background: #f7faf8;
}

.classified-contact-modal .modal-header > div {
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.classified-modal-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    color: var(--cls-primary);
    background: var(--cls-primary-soft);
}

.classified-modal-icon svg {
    width: 19px;
    height: 19px;
}

.classified-contact-modal .modal-title {
    margin: 0;
    color: var(--cls-text);
    font-size: 1rem;
    font-weight: 820;
}

.classified-contact-modal .modal-header p {
    margin: 0.15rem 0 0;
    color: var(--cls-muted);
    font-size: 0.7rem;
}

.classified-contact-modal .modal-body {
    padding: 1.2rem;
}

.classified-modal-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.classified-modal-field {
    margin-bottom: 0.9rem;
}

.classified-modal-field label {
    display: block;
    margin-bottom: 0.35rem;
    color: #35483c;
    font-size: 0.73rem;
    font-weight: 750;
}

.classified-modal-field label span {
    color: #dc2626;
}

.classified-modal-field input,
.classified-modal-field textarea {
    width: 100%;
    min-height: 44px;
    padding: 0.65rem 0.72rem;
    border: 1px solid #d7e1da;
    border-radius: 10px;
    color: var(--cls-text);
    background: #ffffff;
    outline: none;
    transition:
            border-color 0.18s ease,
            box-shadow 0.18s ease;
}

.classified-modal-field textarea {
    resize: vertical;
}

.classified-modal-field input:focus,
.classified-modal-field textarea:focus {
    border-color: var(--cls-primary);
    box-shadow: 0 0 0 3px rgba(22, 132, 79, 0.1);
}

.classified-modal-field > small {
    display: block;
    margin-top: 0.3rem;
    color: var(--cls-muted);
    font-size: 0.64rem;
}

.classified-contact-modal .modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 0.55rem;
    padding: 0.9rem 1.2rem;
    border-top: 1px solid var(--cls-border);
    background: #f7faf8;
}

.classified-modal-cancel,
.classified-modal-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    min-height: 42px;
    padding: 0.62rem 0.9rem;
    border-radius: 10px;
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 760;
    cursor: pointer;
}

.classified-modal-cancel {
    border: 1px solid #d5ded8;
    color: #53625a;
    background: #ffffff;
}

.classified-modal-submit {
    border: 1px solid var(--cls-primary);
    color: #ffffff;
    background: var(--cls-primary);
}

.classified-modal-submit:hover {
    filter: brightness(0.96);
}

.classified-modal-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.classified-modal-submit svg {
    width: 16px;
    height: 16px;
}

/* ==========================================================================
   FEEDBACK DE CÓPIA
========================================================================== */

.classified-copy-feedback {
    position: fixed;
    left: 50%;
    bottom: 1.25rem;
    z-index: 1080;
    padding: 0.65rem 0.9rem;
    border-radius: 10px;
    color: #ffffff;
    background: #17211b;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
    font-size: 0.75rem;
    font-weight: 720;
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 12px);
    transition:
            opacity 0.2s ease,
            transform 0.2s ease;
}

.classified-copy-feedback.is-visible {
    opacity: 1;
    transform: translate(-50%, 0);
}

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

.classified-mobile-contact {
    display: none;
}

/* ==========================================================================
   RESPONSIVO
========================================================================== */

@media (max-width: 1100px) {
    .classified-view-layout {
        grid-template-columns:
            minmax(0, 1.45fr)
            minmax(290px, 0.8fr);
    }

    .classified-related-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .classified-view-layout {
        grid-template-columns: 1fr;
    }

    .classified-contact-card {
        position: static;
    }

    .classified-location-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 767px) {
    .classified-view-page {
        padding-top: 0.8rem;
        padding-bottom: 6.5rem;
    }

    .classified-heading-card {
        padding: 1rem;
        border-radius: 17px;
    }

    .classified-heading-top {
        align-items: flex-start;
        flex-direction: column;
    }

    .classified-heading-actions {
        align-self: flex-end;
    }

    .classified-heading-title {
        font-size: clamp(1.55rem, 7vw, 2rem);
    }

    .classified-heading-meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.48rem;
    }

    .classified-owner-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .classified-owner-toolbar__actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .classified-owner-toolbar__actions a {
        width: 100%;
    }

    .classified-gallery__main {
        aspect-ratio: 4 / 3;
    }

    .classified-related-grid {
        grid-template-columns: 1fr;
    }

    .classified-mobile-contact {
        position: fixed;
        right: 0.75rem;
        bottom: 0.75rem;
        left: 0.75rem;
        z-index: 1050;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 0.8rem;
        padding: 0.7rem 0.75rem;
        border: 1px solid rgba(255, 255, 255, 0.35);
        border-radius: 15px;
        color: #ffffff;
        background: rgba(15, 95, 57, 0.96);
        box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
        backdrop-filter: blur(12px);
    }

    .classified-mobile-contact small,
    .classified-mobile-contact strong {
        display: block;
    }

    .classified-mobile-contact small {
        color: rgba(255, 255, 255, 0.75);
        font-size: 0.63rem;
    }

    .classified-mobile-contact strong {
        margin-top: 0.08rem;
        font-size: 0.83rem;
    }

    .classified-mobile-contact a {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 0.35rem;
        min-height: 40px;
        padding: 0.55rem 0.75rem;
        border-radius: 10px;
        color: var(--cls-primary-dark);
        background: #ffffff;
        font-size: 0.74rem;
        font-weight: 800;
        text-decoration: none;
    }

    .classified-mobile-contact svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 520px) {
    .classified-heading-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        width: 100%;
    }

    .classified-heading-action {
        width: 100%;
    }

    .classified-heading-breadcrumb {
        width: 100%;
    }

    .classified-heading-breadcrumb ol {
        flex-wrap: nowrap;
        max-width: 100%;
        padding-bottom: 0.2rem;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .classified-heading-breadcrumb ol::-webkit-scrollbar {
        display: none;
    }

    .classified-heading-breadcrumb li {
        flex: 0 0 auto;
        white-space: nowrap;
    }

    .classified-heading-breadcrumb a,
    .classified-heading-breadcrumb span {
        max-width: 180px;
    }

    .classified-gallery {
        padding: 0.5rem;
        border-radius: 16px;
    }

    .classified-gallery__main {
        border-radius: 12px;
    }

    .classified-content-card,
    .classified-contact-card {
        padding: 1rem;
        border-radius: 17px;
    }

    .classified-location-grid {
        grid-template-columns: 1fr;
    }

    .classified-owner-toolbar__actions {
        grid-template-columns: 1fr;
    }

    .classified-gallery__thumb {
        width: 70px;
        height: 60px;
    }

    .classified-gallery__nav {
        width: 36px;
        height: 36px;
    }

    .classified-gallery__nav.is-prev {
        left: 0.5rem;
    }

    .classified-gallery__nav.is-next {
        right: 0.5rem;
    }

    .classified-modal-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .classified-contact-modal .modal-footer {
        flex-direction: column-reverse;
    }

    .classified-modal-cancel,
    .classified-modal-submit {
        width: 100%;
    }
}

/* ==========================================================================
   ACESSIBILIDADE E MOVIMENTO REDUZIDO
========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .classified-heading-action,
    .classified-owner-toolbar__actions a,
    .classified-gallery__main > img,
    .classified-gallery__nav,
    .classified-gallery__thumb,
    .classified-contact-actions a,
    .classified-contact-actions button,
    .classified-related-card,
    .classified-related-image img,
    .classified-copy-feedback {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }
}

