﻿:root {
    --brand: #c7933f;
    --brand-dark: #6a4819;
    --ink: #111827;
    --ink-soft: #4b5563;
    --bg: #f5f7fa;
    --white: #ffffff;
    --line: #e5e7eb;
    --admin-bg: #edf4fb;
    --radius: 14px;
    --shadow: 0 12px 32px rgba(12, 24, 46, 0.08);
    --vertice-gradient: linear-gradient(90deg, #13263d 0%, #0b1624 46%, #000000 100%);
}

* { box-sizing: border-box; }
html, body { margin: 0 !important; padding: 0 !important; }
body { font-family: 'Manrope', sans-serif; color: var(--ink); }
a { color: inherit; text-decoration: none; }

.btn-brand {
    background: var(--vertice-gradient);
    border: 1px solid #13263d;
    color: #ffffff;
    font-weight: 700;
    border-radius: 10px;
}
.btn-brand:hover,
.btn-brand:focus,
.btn-brand:active {
    background: linear-gradient(90deg, #1a334f 0%, #13263d 46%, #0b1624 100%);
    border-color: #1a334f;
    color: #fff;
}

.btn-dark {
    background: var(--vertice-gradient) !important;
    border-color: #13263d !important;
    color: #ffffff !important;
}
.btn-dark:hover,
.btn-dark:focus,
.btn-dark:active {
    background: linear-gradient(90deg, #1a334f 0%, #13263d 46%, #0b1624 100%) !important;
    border-color: #1a334f !important;
    color: #ffffff !important;
}

.publico-body {
    background: #ffffff;
    margin: 0 !important;
    padding: 0 !important;
}
.site-header {
    backdrop-filter: blur(10px);
    background: rgba(255,255,255,.96);
    border-bottom: 0;
    margin: 0 !important;
    padding: 0 !important;
    top: 0 !important;
}
.brand-logo { height: 74px; width: auto; display: block; border-radius: 0px; }
.home-banner-wrap {
    background: #ffffff;
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.home-banner-carousel {
    border-radius: 0;
    overflow: hidden;
    border: 0;
    box-shadow: none;
}
.home-banner-carousel .carousel-item img {
    width: 100%;
    height: auto;
    object-fit: initial;
    display: block;
}
.home-banner-carousel .carousel-indicators [data-bs-target] {
    width: 8px;
    height: 8px;
    border-radius: 999px;
}
.home-banner-carousel .carousel-caption {
    background: rgba(0,0,0,.42);
    border-radius: 10px;
    padding: .6rem .8rem;
    max-width: 70%;
}
.single-header { background: var(--vertice-gradient); border-bottom: 0; margin-top: 0 !important; }
.single-header .navbar { background: transparent; min-height: 68px; margin-top: 0 !important; }
.single-header .nav-link {
    color: rgba(255,255,255,.92) !important;
    font-weight: 200;
    font-size: 14px;
    line-height: 20px;
    padding-top: .35rem;
    padding-bottom: .35rem;
}
.single-header .nav-link:hover { color: #fff !important; }
.single-header .dropdown-menu { border: 1px solid #e5e7eb; }
.single-header .divider-item { color: rgba(255,255,255,.6); padding: .5rem .25rem; }
.single-header .btn-outline-light { border-color: rgba(255,255,255,.6); color: #fff; }
.single-header .btn-outline-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.single-header .btn { font-weight: 600; }
.site-header + .home-banner-wrap {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.hero-home { background: #ffffff; color: #0f172a; }
.search-card {
    background: rgba(255,255,255,.98);
    border-radius: var(--radius);
    padding: 1.2rem;
    box-shadow: var(--shadow);
    color: var(--ink);
    border: 1px solid rgba(15,23,42,.08);
}
.search-card .form-control, .search-card .form-select {
    border-radius: 10px;
    border-color: #d8dee8;
    height: 44px;
}

.clean-search-box {
    background: #fff;
    border: 1px solid #e6e2df;
    box-shadow: 0 18px 35px rgba(15, 23, 42, .08);
    border-radius: 18px;
    padding: 1.2rem;
}

.search-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .4rem;
    background: #f4f7fb;
    border-radius: 10px;
    padding: .25rem;
}
.search-tab {
    border: 0;
    background: transparent;
    border-radius: 8px;
    padding: .45rem .4rem;
    font-weight: 700;
    color: #334155;
}
.search-tab.active {
    background: #fff;
    box-shadow: 0 6px 12px rgba(15,23,42,.08);
}
.clean-tabs { background: #f8f4f1; }
.clean-tabs .search-tab {
    padding: .7rem .6rem;
    font-size: .95rem;
}
.clean-tabs .search-tab.active {
    background: var(--vertice-gradient);
    color: #fff;
}
.btn-more-filters {
    height: 38px;
    font-size: .92rem;
    font-weight: 600;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .35rem;
    padding: .35rem .75rem;
}
.btn-more-filters span {
    display: inline-flex;
    width: 18px;
    height: 18px;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    line-height: 1;
    background: rgba(15, 23, 42, .08);
}

.range-label { font-size: .85rem; color: var(--ink-soft); }
.quick-tags, .chips-line { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
    border: 1px solid #d7dfea;
    background: #fff;
    color: #1f2937;
    border-radius: 999px;
    font-size: .78rem;
    padding: .35rem .7rem;
    font-weight: 600;
}
.chip.active {
    border-color: #b2862f;
    background: #fff1cf;
    color: #7b5414;
}

.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; gap: .75rem; }
.section-head h2 { margin: 0; font-size: 1.5rem; }

.property-card {
    border: 1px solid var(--line);
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(15,23,42,.06);
    transition: transform .2s ease, box-shadow .2s ease;
}
.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 30px rgba(15,23,42,.1);
}
.property-card.horizontal { display: grid; grid-template-columns: 210px 1fr; }
.property-image-link {
    display: block;
    color: inherit;
}
.property-card.horizontal .property-image-link { height: 100%; }
.property-image {
    position: relative;
    height: 220px;
    background: linear-gradient(140deg, #d8e2ef, #b7c8dc);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}
.property-card.horizontal .property-image { height: auto; min-height: 100%; }
.property-image-empty {
    background-image: none !important;
    background: #f1f5f9 !important;
}
.tag {
    display: inline-flex;
    border-radius: 999px;
    font-size: .75rem;
    font-weight: 700;
    padding: .35rem .7rem;
    border: 1px solid transparent;
}
.property-image .tag-main,
.property-image .tag-soft { position: absolute; top: 10px; }
.tag-main {
    left: 10px;
    background: linear-gradient(90deg, rgba(19, 38, 61, .68) 0%, rgba(11, 22, 36, .68) 46%, rgba(0, 0, 0, .68) 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, .28);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .24);
}
.tag-soft {
    right: 10px;
    background: linear-gradient(90deg, rgba(19, 38, 61, .62) 0%, rgba(11, 22, 36, .62) 46%, rgba(0, 0, 0, .62) 100%);
    color: #fff;
    border-color: rgba(255, 255, 255, .24);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    box-shadow: 0 6px 14px rgba(0, 0, 0, .22);
}
.tag-inline {
    display: inline-flex;
    border-radius: 999px;
    font-size: .72rem;
    padding: .25rem .6rem;
    background: #edf2f8;
    color: #31435f;
    font-weight: 700;
}
.property-title-link {
    color: #0f172a;
}
.property-title-link:hover {
    color: #0c4d91;
    text-decoration: underline;
}
.home-card-location {
    line-height: 1.25;
}
.home-card-codigo {
    font-size: .78rem;
    color: #6b7280;
}
.home-card-specs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .35rem;
}
.home-card-spec {
    text-align: center;
}
.home-card-spec-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    color: #6b7280;
    margin-bottom: .15rem;
}
.home-card-spec-icon svg {
    width: 18px;
    height: 18px;
}
.home-card-spec strong {
    display: block;
    font-size: .92rem;
    line-height: 1.05;
    color: #0f172a;
}
.home-card-spec small {
    display: block;
    font-size: .74rem;
    color: #111827;
}
.home-card-price {
    color: #b7791f;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.gallery-link {
    display: block;
    border-radius: var(--radius);
}

.bg-soft { background: #ffffff; }
.info-box, .testimonial-box, .cta-large, .filter-card, .sticky-box, .contact-form, .contact-info, .post-card, .article-body, .search-strip {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--line);
    padding: 1.25rem;
    box-shadow: 0 10px 24px rgba(15,23,42,.05);
}
.cta-large { background: var(--vertice-gradient); color: #fff; }
.cta-large p { color: rgba(255,255,255,.8); }

.page-top { background: #ffffff; border-bottom: 1px solid var(--line); margin-bottom: 1.25rem; }
.page-top-lista-imoveis {
    padding: .65rem 0 .5rem;
    margin-bottom: .4rem;
}
.page-top-lista-imoveis h1 {
    margin: 0 0 .15rem;
    font-size: clamp(1.8rem, 2.7vw, 2.2rem);
    line-height: 1.1;
}
.page-top-lista-imoveis p {
    margin-bottom: 0;
    font-size: .98rem;
}
.page-top-imovel {
    padding-top: 1rem;
    padding-bottom: .85rem;
    margin-bottom: .45rem;
}
.page-top-imovel nav {
    margin-bottom: .35rem !important;
}
.page-top-imovel .tag {
    padding: .26rem .58rem;
    font-size: .7rem;
}
.page-top-imovel h1 {
    margin-top: .45rem !important;
    margin-bottom: .3rem;
    font-size: clamp(1.7rem, 2.4vw, 2.35rem);
    line-height: 1.12;
}
.page-top-imovel p {
    margin-bottom: 0;
}
.gallery-main { height: 360px; border-radius: var(--radius); background: linear-gradient(140deg, #c9d7e7, #93adc9); background-size: cover; background-position: center; }
.gallery-thumb { height: 90px; border-radius: 10px; background: #d3deeb; background-size: cover; background-position: center; }
.gallery-slider-wrap {
    position: relative;
}
.gallery-slider-track {
    display: flex;
    gap: .9rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: .35rem;
    scrollbar-width: thin;
}
.gallery-slider-track::-webkit-scrollbar { height: 8px; }
.gallery-slider-track::-webkit-scrollbar-thumb { background: #d0d7e2; border-radius: 999px; }
.gallery-slide-link {
    flex: 0 0 min(32%, 560px);
    display: block;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}
.gallery-slide-link.is-empty {
    pointer-events: none;
}
.gallery-slide-image {
    height: 400px;
    background: linear-gradient(140deg, #d8e2ef, #b7c8dc);
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.gallery-slide-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    background: #d8e2ef;
}
.fullscreen-gallery .gallery-slide-link {
    flex-basis: min(33%, 620px);
}
.fullscreen-gallery .gallery-slide-image {
    height: 430px;
}
.gallery-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 42px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(15, 23, 42, .16);
    background: rgba(255, 255, 255, .96);
    color: #111827;
    font-size: 1.5rem;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}
.gallery-nav-prev { left: .5rem; }
.gallery-nav-next { right: .5rem; }
.gallery-nav-btn:hover { background: #fff; box-shadow: 0 6px 16px rgba(15,23,42,.14); }
.gallery-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.9);
    z-index: 1200;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem 3.2rem;
}
.gallery-lightbox.is-open { display: flex; }
.gallery-lightbox-media {
    position: relative;
    display: inline-block;
    max-width: 100%;
    max-height: 88vh;
}
.gallery-lightbox-image {
    max-width: 100%;
    max-height: 88vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
}
.gallery-lightbox-close,
.gallery-lightbox-nav {
    position: absolute;
    border: 0;
    border-radius: 999px;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-size: 1.6rem;
    line-height: 1;
}
.gallery-lightbox-close { top: 16px; right: 16px; font-size: 2rem; }
.gallery-lightbox-nav.is-prev { left: 16px; }
.gallery-lightbox-nav.is-next { right: 16px; }
.gallery-lightbox-close:hover,
.gallery-lightbox-nav:hover { background: rgba(255,255,255,.28); }
.feature-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .6rem; margin-top: 1rem; }
.feature-grid span { background: #f4f7fb; border: 1px solid var(--line); border-radius: 10px; padding: .6rem; }
.map-box { min-height: 190px; border: 2px dashed #c9d1dd; border-radius: var(--radius); display:flex; align-items:center; justify-content:center; color:#64748b; background-size: cover; background-position: center; }
.sticky-box { position: sticky; top: 95px; }
.sticky-filter { position: sticky; top: 90px; }

/* Harmonia visual da lista de imoveis */
#js-imoveis-page .filter-card {
    box-shadow: 0 14px 34px rgba(15, 23, 42, .10), 0 2px 6px rgba(15, 23, 42, .05);
    border-color: #e3e9f2;
}
#js-imoveis-page .property-card.horizontal {
    box-shadow: 0 14px 34px rgba(15, 23, 42, .12), 0 2px 8px rgba(15, 23, 42, .05);
    border-color: #e2e8f0;
}
#js-imoveis-page .property-card.horizontal:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 44px rgba(15, 23, 42, .16), 0 4px 12px rgba(15, 23, 42, .06);
}

/* Mesmo acabamento de sombra na home */
.hero-home .clean-search-box {
    box-shadow: 0 14px 34px rgba(15, 23, 42, .10), 0 2px 6px rgba(15, 23, 42, .05);
    border-color: #e3e9f2;
}
.hero-home + section .property-card {
    box-shadow: 0 14px 34px rgba(15, 23, 42, .12), 0 2px 8px rgba(15, 23, 42, .05);
    border-color: #e2e8f0;
}
.hero-home + section .property-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 20px 44px rgba(15, 23, 42, .16), 0 4px 12px rgba(15, 23, 42, .06);
}

.detail-sheet { background: #fff; }
.detail-pricing-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}
.detail-pricing-row.single {
    grid-template-columns: 1fr;
}
.detail-label {
    color: #6b7280;
    font-size: 1.05rem;
    line-height: 1;
}
.detail-price {
    color: #273447;
    font-size: 2.85rem;
    font-weight: 800;
    line-height: 1.05;
}
.detail-price small {
    font-size: .48em;
    font-weight: 600;
    color: #4b5563;
    margin-left: .15rem;
}
.detail-subprice {
    margin-top: .45rem;
    color: #6b7280;
    font-size: 1rem;
}
.detail-metrics-grid {
    margin-top: 1.6rem;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem .9rem;
}
.detail-metric {
    display: flex;
    align-items: center;
    gap: .65rem;
}
.detail-metric-icon {
    width: 24px;
    height: 24px;
    color: var(--brand-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.detail-metric-icon svg {
    width: 22px;
    height: 22px;
    display: block;
}
.detail-metric small {
    display: block;
    color: #6b7280;
    font-size: .95rem;
    line-height: 1.1;
}
.detail-metric strong {
    display: block;
    font-size: 1.15rem;
    line-height: 1.1;
    color: #111827;
}
.detail-feature-title {
    font-size: 2.1rem;
    margin-bottom: .9rem;
    color: #1f2937;
}
.detail-feature-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem 1rem;
}
.detail-feature-item {
    display: flex;
    align-items: center;
    gap: .5rem;
    color: #1f2937;
    font-size: 1.05rem;
}
.detail-feature-item::before {
    content: "✓";
    color: #0f9d58;
    font-weight: 700;
}

.post-image { height: 160px; background: linear-gradient(130deg, #d9e6f5, #aac0da); background-size: cover; background-position: center; }
.article-body { line-height: 1.75; }

.site-footer { background: var(--vertice-gradient); color: #ffffff; }
.site-footer h1, .site-footer h2, .site-footer h3, .site-footer h4, .site-footer h5, .site-footer h6,
.site-footer p, .site-footer small, .site-footer span, .site-footer li, .site-footer a { color: #ffffff !important; }
.site-footer p, .site-footer small, .site-footer span, .site-footer li, .site-footer a {
    font-size: 14px !important;
    line-height: 200% !important;
    font-weight: 200 !important;
}
.site-footer hr { border-color: rgba(255,255,255,.2); }
.footer-socials { display: flex; align-items: center; gap: .65rem; }
.footer-socials a {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.38);
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.footer-socials a:hover {
    background: rgba(255,255,255,.12);
    border-color: rgba(255,255,255,.65);
    transform: translateY(-1px);
}
.footer-socials svg { width: 18px; height: 18px; fill: #fff; display: block; }
.footer-map {
    width: 100%;
    height: 180px;
    border: 0;
    border-radius: 10px;
    filter: grayscale(.06) contrast(1.05);
}

.whatsapp-fixo {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1080;
    background: linear-gradient(135deg, #33d45f, #1dbf4e);
    color: #fff;
    padding: .72rem 1.15rem;
    border-radius: 999px;
    font-weight: 800;
    font-size: 1.02rem;
    box-shadow: 0 8px 22px rgba(29, 191, 78, .35);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
}
.whatsapp-fixo:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 26px rgba(29, 191, 78, .42);
    color: #fff;
    filter: saturate(1.05);
}
.whatsapp-icon {
    width: 18px;
    height: 18px;
    display: block;
}
.btn-whatsapp-detail {
    background: linear-gradient(135deg, #33d45f, #1dbf4e);
    color: #fff;
    border: 0;
    border-radius: 10px;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .62rem .9rem;
    box-shadow: 0 8px 20px rgba(29, 191, 78, .28);
}
.btn-whatsapp-detail:hover {
    color: #fff;
    filter: brightness(.96);
}
.btn-whatsapp-detail-icon {
    width: 18px;
    height: 18px;
    display: block;
}
.btn-share-highlight {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
}
.btn-favorito-detalhe {
    border: 1px solid #d1d5db;
    background: #ffffff;
    color: #1f2937;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
}
.btn-favorito-detalhe:hover {
    background: #f9fafb;
    color: #111827;
}
.btn-favorito-detalhe.is-active {
    border-color: #ef4444;
    background: #fff1f2;
    color: #dc2626;
}
.favorite-heart-icon {
    width: 18px;
    height: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.favorite-heart-icon svg {
    width: 18px;
    height: 18px;
    display: block;
}
.share-btn-icon {
    width: 17px;
    height: 17px;
    display: inline-flex;
    color: #f97316;
}
.share-btn-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.lead-popup-card {
    position: fixed;
    right: 20px;
    bottom: 90px;
    width: min(360px, calc(100vw - 28px));
    background: #f4f5f5;
    border: 1px solid #d9dee5;
    border-radius: 14px;
    box-shadow: 0 14px 34px rgba(0,0,0,.24);
    z-index: 1075;
    padding: 0;
    opacity: 0;
    transform: translateY(10px);
    pointer-events: none;
    transition: opacity .22s ease, transform .22s ease;
}
.lead-popup-card.is-open {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}
.lead-popup-head {
    background: #0f6c62;
    color: #fff;
    border-radius: 14px 14px 0 0;
    padding: .8rem .8rem;
    display: flex;
    align-items: center;
    gap: .6rem;
}
.lead-popup-logo {
    width: 56px;
    height: 56px;
    object-fit: contain;
    border-radius: 999px;
    background: #000;
    padding: 6px;
}
.lead-popup-head-text strong {
    display: block;
    line-height: 1.05;
    font-size: 1.05rem;
}
.lead-popup-head-text small {
    display: block;
    color: rgba(255,255,255,.9);
    font-weight: 600;
    font-size: .88rem;
}
.lead-popup-close {
    margin-left: auto;
    border: 0;
    background: transparent;
    color: rgba(255,255,255,.9);
    font-size: 2rem;
    line-height: 1;
}
.lead-popup-body {
    padding: .75rem;
}
.lead-popup-body p {
    margin: 0;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: .9rem .8rem;
    color: #1f2937;
    font-size: 1.04rem;
}
.lead-popup-cta {
    margin: .2rem .75rem .75rem;
    display: block;
    text-align: center;
    background: #ef3c34;
    color: #fff;
    font-weight: 800;
    padding: .82rem 1rem;
    border-radius: 999px;
}
.lead-popup-cta:hover {
    color: #fff;
    filter: brightness(.95);
}

.admin-body { background: #ffffff; }
.admin-layout {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 270px 1fr;
    transition: grid-template-columns .25s ease;
}
.admin-sidebar {
    background: #0c4d91;
    padding: 1.2rem;
    position: sticky;
    top: 0;
    height: 100vh;
    transition: transform .25s ease, opacity .2s ease;
}
.admin-logo { display: inline-block; color: #fff; font-size: 1.2rem; font-weight: 800; margin-bottom: 1rem; }
.admin-menu { display: grid; gap: .3rem; }
.admin-menu a { color: #cbd5e1; padding: .55rem .65rem; border-radius: 8px; }
.admin-menu a:hover { background: rgba(255,255,255,.08); color: #fff; }
.backoffice-body .admin-sidebar {
    background: #000000;
    padding: 1rem .9rem;
    position: sticky;
    top: 0;
    height: 100vh;
    border-right: 1px solid rgba(255,255,255,.12);
    box-shadow: 8px 0 24px rgba(0,0,0,.28);
    transition: transform .25s ease, opacity .2s ease;
    overflow-y: auto;
}
.backoffice-body .admin-logo {
    display: flex;
    align-items: center;
    gap: .65rem;
    color: #ffffff;
    margin-bottom: 1rem;
    padding: .5rem .55rem .75rem;
    border-bottom: 1px solid rgba(255,255,255,.14);
}
.admin-logo-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #fff;
    font-size: 1rem;
}
.backoffice-body .admin-logo strong {
    display: block;
    font-size: 1.02rem;
    line-height: 1.1;
}
.backoffice-body .admin-logo small {
    display: block;
    color: rgba(255,255,255,.72);
    font-size: .72rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.backoffice-body .admin-menu { display: grid; gap: .5rem; }
.admin-menu-group { background: #0b0b0b; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; }
.admin-menu-toggle {
    width: 100%;
    border: 0;
    background: transparent;
    padding: .65rem .75rem;
    color: #ffffff;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 12px;
}
.admin-menu-toggle:hover { background: rgba(255,255,255,.08); }
.admin-menu-toggle .bi-chevron-down { transition: transform .2s ease; color: rgba(255,255,255,.72); }
.admin-menu-toggle.collapsed .bi-chevron-down { transform: rotate(-90deg); }
.admin-menu-group .collapse { padding: 0 .45rem .45rem; }
.backoffice-body .admin-menu .admin-menu-link {
    display: flex;
    align-items: center;
    gap: .55rem;
    color: rgba(255,255,255,.92);
    padding: .5rem .55rem;
    border-radius: 9px;
    font-weight: 200;
    font-size: 14px;
    line-height: 20px;
}
.backoffice-body .admin-menu .admin-menu-link i { width: 16px; text-align: center; color: rgba(255,255,255,.72); }
.backoffice-body .admin-menu .admin-menu-link:hover { background: rgba(255,255,255,.1); color: #ffffff; }
.backoffice-body .admin-menu .admin-menu-link.active {
    background: #111827;
    color: #ffffff;
}
.backoffice-body .admin-menu .admin-menu-link.active i { color: #ffffff; }
.admin-main { padding: 1.4rem; background: #ffffff; }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.admin-topbar h1 { margin: 0; font-size: 1.6rem; }

/* Global visual upgrade for entire backoffice */
.backoffice-body .admin-main {
    background:
        radial-gradient(circle at top right, rgba(197, 147, 63, .12), transparent 38%),
        radial-gradient(circle at left top, rgba(19, 38, 61, .09), transparent 42%),
        #ffffff !important;
}
.backoffice-body .admin-topbar {
    padding: .95rem 1rem;
    border: 1px solid #e6eaf1;
    border-radius: 14px;
    background: linear-gradient(90deg, #ffffff 0%, #fbf8f2 100%);
    box-shadow: 0 8px 18px rgba(15, 23, 42, .05);
}
.backoffice-body .admin-topbar h1 {
    font-size: 1.45rem;
    font-weight: 800;
    color: #13263d;
}
.backoffice-body .panel-card,
.backoffice-body .kpi-card,
.backoffice-body .chart-card {
    border: 1px solid #e6eaf1;
    border-radius: 14px;
    box-shadow: 0 12px 28px rgba(15, 23, 42, .05);
}
.backoffice-body .panel-card {
    position: relative;
    overflow: hidden;
}
.backoffice-body .panel-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #13263d 0%, #c7933f 100%);
    pointer-events: none;
}
.backoffice-body .kpi-card {
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
}
.backoffice-body .kpi-card small {
    color: #5d6b80;
    font-weight: 700;
    letter-spacing: .01em;
}
.backoffice-body .kpi-card strong {
    color: #13263d;
}
.backoffice-body .table {
    --bs-table-bg: transparent;
    --bs-table-striped-bg: #f8fafd;
    --bs-table-hover-bg: #f4f8fc;
    border-color: #e8edf3;
}
.backoffice-body .table > thead {
    background: linear-gradient(90deg, #13263d 0%, #1f3a5c 100%);
}
.backoffice-body .table > thead th {
    color: #ffffff;
    font-weight: 700;
    border-bottom: 0;
    font-size: .87rem;
    text-transform: uppercase;
    letter-spacing: .03em;
}
.backoffice-body .table > :not(caption) > * > * {
    padding-top: .62rem;
    padding-bottom: .62rem;
}
.backoffice-body .form-label {
    color: #4b5563;
    font-weight: 400;
    font-size: .82rem;
    line-height: 1.2;
    margin-bottom: .28rem;
    letter-spacing: .01em;
}
.backoffice-body .form-control,
.backoffice-body .form-select,
.backoffice-body .input-group-text {
    border-color: #d7e0ea;
    border-radius: 10px;
    font-size: .98rem;
    font-weight: 400;
    color: #111827;
}
.backoffice-body .form-control:focus,
.backoffice-body .form-select:focus {
    border-color: #c7933f;
    box-shadow: 0 0 0 .2rem rgba(199, 147, 63, .18);
}
.backoffice-body .btn-outline-dark {
    border-color: #1f3a5c;
    color: #1f3a5c;
}
.backoffice-body .btn-outline-dark:hover {
    background: #1f3a5c;
    color: #fff;
}
.backoffice-body .btn-outline-primary {
    border-color: #c7933f;
    color: #8a6123;
}
.backoffice-body .btn-outline-primary:hover {
    background: #c7933f;
    border-color: #c7933f;
    color: #fff;
}
.backoffice-body .pagination .page-link {
    color: #1f3a5c;
    border-color: #dde5ef;
}
.backoffice-body .pagination .page-item.active .page-link {
    background: linear-gradient(120deg, #d5a24b, #c7933f);
    border-color: #c7933f;
    color: #fff;
}
.backoffice-body .badge.bg-success-subtle {
    background: #def7e7 !important;
    color: #146c43 !important;
}
.backoffice-body .badge.bg-danger-subtle {
    background: #fde2e4 !important;
    color: #b4232b !important;
}
.backoffice-body .admin-doc-accordion .accordion-item {
    border: 1px solid #e5eaf2;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: .55rem;
}
.backoffice-body .admin-doc-accordion .accordion-button {
    font-weight: 700;
    color: #13263d;
    background: #ffffff;
    box-shadow: none;
}
.backoffice-body .admin-doc-accordion .accordion-button:not(.collapsed) {
    background: linear-gradient(90deg, #f9fbff 0%, #fdf9f2 100%);
    color: #13263d;
}
.backoffice-body .admin-doc-accordion .accordion-body {
    background: #ffffff;
    color: #273447;
}
.cron-code {
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 10px;
    border: 1px solid #1e293b;
    padding: .7rem .8rem;
    font-size: .84rem;
    line-height: 1.45;
    white-space: pre-wrap;
    word-break: break-word;
}

/* Admin content area must stay fully white; only sidebar keeps dark theme */
.backoffice-body,
.backoffice-body .admin-layout,
.backoffice-body .admin-main {
    background: #ffffff !important;
}
.backoffice-body .kpi-card,
.backoffice-body .chart-card,
.backoffice-body .panel-card,
.backoffice-body .table-responsive,
.backoffice-body .table {
    background: #ffffff;
}

.admin-layout.sidebar-collapsed {
    grid-template-columns: 0 1fr;
}
.admin-layout.sidebar-collapsed .admin-sidebar {
    transform: translateX(-100%);
    opacity: 0;
    pointer-events: none;
}

.kpi-card, .chart-card, .panel-card {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e8edf4;
    padding: 1rem;
    box-shadow: 0 10px 24px rgba(15,23,42,.06);
}
.kpi-card small { color: #64748b; display: block; }
.kpi-card strong { font-size: 1.8rem; }
.chart-placeholder { min-height: 220px; border-radius: 10px; border: 2px dashed #c5d0df; display:flex; align-items:center; justify-content:center; color:#64748b; }

.cfg-page {
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.1rem;
}
.cfg-section {
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: .95rem;
    background: #ffffff;
}
.cfg-section + .cfg-section {
    margin-top: .25rem;
}
.cfg-section-head {
    display: flex;
    align-items: flex-start;
    gap: .8rem;
    margin-bottom: .9rem;
}
.cfg-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex: 0 0 auto;
}
.cfg-head-text p {
    margin: .18rem 0 0;
    color: #64748b;
    font-size: .9rem;
}
.cfg-title {
    margin: 0;
    font-size: 1.06rem;
    font-weight: 800;
    color: #111827;
}
.cfg-section-identity {
    border-left: 4px solid #0ea5e9;
}
.cfg-section-identity .cfg-icon-wrap {
    background: #e0f2fe;
    color: #0369a1;
}
.cfg-section-footer {
    border-left: 4px solid #16a34a;
}
.cfg-section-footer .cfg-icon-wrap {
    background: #dcfce7;
    color: #166534;
}
.cfg-section-seo {
    border-left: 4px solid #f59e0b;
}
.cfg-section-seo .cfg-icon-wrap {
    background: #fef3c7;
    color: #92400e;
}
.cfg-section-facebook {
    border-left: 4px solid #2563eb;
}
.cfg-section-facebook .cfg-icon-wrap {
    background: #dbeafe;
    color: #1d4ed8;
}
.cfg-section-run {
    border-left: 4px solid #7c3aed;
}
.cfg-section-run .cfg-icon-wrap {
    background: #ede9fe;
    color: #5b21b6;
}

.crm-board {
    display: grid;
    grid-template-columns: repeat(6, minmax(260px, 1fr));
    gap: .85rem;
    overflow-x: auto;
    padding-bottom: .2rem;
}
.crm-col {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
}
.crm-col-head {
    padding: .65rem .7rem;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.crm-col-body {
    padding: .6rem;
    display: grid;
    gap: .55rem;
    max-height: 74vh;
    overflow-y: auto;
}
.crm-col-body.drop-active {
    background: #eef6ff;
    outline: 2px dashed #3b82f6;
    outline-offset: -4px;
}
.crm-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: .6rem;
}
.crm-card.is-dragging {
    opacity: .55;
    border-color: #3b82f6;
}
.crm-card-msg {
    margin: .5rem 0 .45rem;
    font-size: .84rem;
    color: #374151;
    line-height: 1.3;
    max-height: 4.2em;
    overflow: hidden;
}
.crm-mobile-move {
    display: none;
    gap: .35rem;
    margin: .3rem 0 .1rem;
}
.crm-mobile-move .btn {
    flex: 1 1 0;
}
.crm-toast {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    z-index: 1080;
    min-width: 220px;
    max-width: 360px;
    padding: .65rem .8rem;
    border-radius: 10px;
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(15,23,42,.28);
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity .2s ease, transform .2s ease;
}
.crm-toast.show {
    opacity: 1;
    transform: translateY(0);
}
.crm-toast.toast-ok { background: #15803d; }
.crm-toast.toast-error { background: #b91c1c; }

@media (max-width: 992px) {
    .crm-mobile-move {
        display: flex;
    }
}

.admin-auth-body {
    min-height: 100vh;
    margin: 0;
    background: #ffffff;
    display: grid;
    place-items: center;
}
.admin-auth-wrap { width: min(100%, 460px); padding: 1rem; }
.admin-auth-card { background: #fff; border-radius: 16px; padding: 1.5rem; box-shadow: var(--shadow); }

@media (max-width: 992px) {
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; }
    .admin-layout.sidebar-collapsed { grid-template-columns: 1fr; }
    .admin-layout.sidebar-collapsed .admin-sidebar { display: none; }
    .property-card.horizontal { grid-template-columns: 1fr; }
    .property-card.horizontal .property-image { min-height: 180px; }
    .home-card-specs { gap: .25rem; }
    .home-card-spec strong { font-size: .88rem; }
    .home-card-spec small { font-size: .7rem; }
    .sticky-filter { position: static; }
}

@media (max-width: 768px) {
    .home-banner-wrap,
    .site-header + .home-banner-wrap {
        margin: 0 !important;
        padding: 0 !important;
        line-height: 0;
        background: transparent !important;
    }
    .home-banner-wrap,
    .home-banner-carousel,
    .home-banner-carousel .carousel-inner,
    .home-banner-carousel .carousel-item,
    .home-banner-carousel .carousel-item img,
    .home-banner-carousel .carousel-control-prev,
    .home-banner-carousel .carousel-control-next,
    .home-banner-carousel .carousel-control-prev-icon,
    .home-banner-carousel .carousel-control-next-icon {
        border: 0 !important;
        border-radius: 0 !important;
    }
    .home-banner-carousel .carousel-item img {
        height: 170px !important;
        max-height: none !important;
        object-fit: cover !important;
        object-position: center center !important;
        background: transparent !important;
    }
    .hero-home { padding-top: 2rem !important; }
    .feature-grid { grid-template-columns: 1fr; }
    .gallery-main { height: 250px; }
    .search-tabs { grid-template-columns: 1fr; }
    .single-header .navbar-nav { padding-top: .3rem; }
    .detail-pricing-row { grid-template-columns: 1fr; }
    .detail-price { font-size: 2.3rem; }
    .detail-metrics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .detail-feature-list { grid-template-columns: 1fr; }
    .gallery-slide-link { flex-basis: 82%; }
    .gallery-slide-image { height: 260px; }
    .fullscreen-gallery .gallery-slide-image { height: 260px; }
    .gallery-nav-btn { width: 36px; height: 36px; font-size: 1.2rem; }
    .gallery-lightbox { padding: 1rem 2.2rem; }
    .gallery-lightbox-nav { width: 38px; height: 38px; font-size: 1.3rem; }
    .lead-popup-card {
        right: 10px;
        bottom: 82px;
        width: calc(100vw - 20px);
    }
}
