/* RSlompo — visual inspirado em marketplaces limpos (tipo Airbnb) */
:root {
    --color-bg: #fafafa;
    --color-surface: #ffffff;
    --color-text: #222222;
    --color-text-muted: #717171;
    --color-border: #ebebeb;
    --color-accent: #c41e3a;
    --color-accent-hover: #a01830;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 4px 12px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 2px 4px rgba(0, 0, 0, 0.08), 0 8px 24px rgba(0, 0, 0, 0.08);
    --font: "Inter", system-ui, -apple-system, sans-serif;
    --header-h: 72px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
    color: var(--color-text);
    background: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    color: var(--color-accent);
    text-decoration: none;
}

a:hover {
    color: var(--color-accent-hover);
    text-decoration: underline;
}

.site-main {
    flex: 1;
}

.container {
    width: 100%;
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: var(--header-h);
    gap: 16px;
}

.site-logo {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    text-decoration: none;
    line-height: 0;
}

.site-logo:hover {
    text-decoration: none;
    opacity: 0.92;
}

.site-logo__img {
    height: 44px;
    width: auto;
    max-width: min(240px, 70vw);
    object-fit: contain;
    object-position: left center;
    display: block;
}

@media (max-width: 400px) {
    .site-logo__img {
        height: 36px;
        max-width: min(200px, 75vw);
    }
}

.site-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 20px;
    align-items: center;
}

.site-nav__list a {
    color: var(--color-text);
    font-weight: 500;
    font-size: 0.95rem;
    text-decoration: none;
}

.site-nav__list a:hover {
    color: var(--color-accent);
}

.nav-toggle {
    display: none;
    padding: 8px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    font-family: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

@media (max-width: 768px) {
    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        width: 100%;
        padding: 12px 0 8px;
    }

    .site-nav--open {
        display: block;
    }

    .site-header__inner {
        flex-wrap: wrap;
    }

    .site-nav__list {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Hero */
.hero {
    padding: 48px 0 32px;
    text-align: center;
}

.hero__title {
    margin: 0 0 12px;
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

.hero__lead {
    margin: 0 auto 28px;
    max-width: 520px;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

/* Filters (pills) */
.filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-bottom: 8px;
}

.filter-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    background: var(--color-surface);
    color: var(--color-text);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    box-shadow: var(--shadow);
}

.filter-pill:hover {
    border-color: var(--color-text);
    text-decoration: none;
    color: var(--color-text);
}

.filter-pill.is-active {
    background: var(--color-text);
    color: var(--color-surface);
    border-color: var(--color-text);
}

/* Grid listings */
.section-listings {
    padding: 24px 0 64px;
}

.section-listings__head {
    margin-bottom: 24px;
}

.section-listings__count {
    margin: 0;
    font-size: 0.95rem;
    color: var(--color-text-muted);
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 32px 24px;
}

@media (min-width: 600px) {
    .listing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 950px) {
    .listing-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.listing-card {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--color-surface);
    box-shadow: var(--shadow);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
    text-decoration: none;
    color: inherit;
}

.listing-card:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-2px);
    text-decoration: none;
    color: inherit;
}

.listing-card__media {
    position: relative;
    aspect-ratio: 4 / 3;
    background: linear-gradient(135deg, #e8e8e8 0%, #f5f5f5 100%);
    overflow: hidden;
}

.listing-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.listing-card__badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: capitalize;
    background: rgba(255, 255, 255, 0.95);
    color: var(--color-text);
}

.listing-card__body {
    padding: 16px 4px 8px;
}

.listing-card__price {
    margin: 0 0 4px;
    font-weight: 600;
    font-size: 1rem;
}

.listing-card__title {
    margin: 0 0 6px;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.listing-card__meta {
    margin: 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

/* Empty state */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    background: var(--color-surface);
    border-radius: var(--radius);
    border: 1px dashed var(--color-border);
}

.empty-state code {
    font-size: 0.9rem;
}

/* Detail page */
.detail-hero {
    padding: 24px 0 16px;
}

.detail-hero h1 {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 600;
    letter-spacing: -0.02em;
}

.detail-sub {
    margin: 0;
    color: var(--color-text-muted);
    font-size: 1rem;
}

.detail-price {
    margin: 16px 0 0;
    font-size: 1.35rem;
    font-weight: 600;
}

/* Galeria do imóvel — vista principal + miniaturas + lightbox */
.property-gallery {
    margin: 24px 0 36px;
}

.property-gallery__stage {
    display: flex;
    align-items: stretch;
    gap: 8px;
    margin-bottom: 14px;
}

.property-gallery__arrow {
    flex-shrink: 0;
    width: 44px;
    min-height: 200px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-sm);
    background: var(--color-surface);
    font-size: 1.75rem;
    line-height: 1;
    color: var(--color-text);
    cursor: pointer;
    transition: background 0.15s ease;
}

.property-gallery__arrow:hover {
    background: #f3f3f3;
}

.property-gallery__arrow:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.property-gallery__main {
    position: relative;
    flex: 1;
    min-width: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: #eee;
    aspect-ratio: 16 / 10;
}

.property-gallery__main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
}

.property-gallery__expand {
    position: absolute;
    bottom: 12px;
    right: 12px;
    padding: 8px 14px;
    border: none;
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, 0.95);
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.property-gallery__expand:hover {
    background: #fff;
}

.property-gallery__thumbs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.property-gallery__thumb {
    flex: 0 0 auto;
    width: 88px;
    height: 66px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: var(--radius-sm);
    overflow: hidden;
    cursor: pointer;
    scroll-snap-align: start;
    background: #eee;
    opacity: 0.75;
    transition: opacity 0.15s, border-color 0.15s;
}

.property-gallery__thumb:hover,
.property-gallery__thumb.is-active {
    opacity: 1;
    border-color: var(--color-accent);
}

.property-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

@media (max-width: 600px) {
    .property-gallery__stage {
        flex-direction: column;
    }

    .property-gallery__arrow {
        width: 100%;
        min-height: 44px;
    }
}

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 300;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(0, 0, 0, 0.92);
}

.gallery-lightbox[hidden] {
    display: none;
}

.gallery-lightbox__inner {
    position: relative;
    max-width: min(96vw, 1200px);
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox__inner img {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: var(--radius-sm);
}

.gallery-lightbox__close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 310;
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
}

.gallery-lightbox__close:hover {
    background: rgba(255, 255, 255, 0.28);
}

.gallery-lightbox__nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 310;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 1.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-lightbox__nav:hover {
    background: rgba(255, 255, 255, 0.28);
}

.gallery-lightbox__nav--prev {
    left: 12px;
}

.gallery-lightbox__nav--next {
    right: 12px;
}

@media (max-width: 600px) {
    .gallery-lightbox__nav--prev {
        left: 4px;
    }

    .gallery-lightbox__nav--next {
        right: 4px;
    }
}

.prose {
    max-width: 720px;
}

.prose p {
    margin: 0 0 1em;
    color: var(--color-text);
    line-height: 1.65;
}

.share-block {
    margin: 32px 0 24px;
    padding: 20px 22px;
    border-radius: var(--radius);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
}

.share-block__title {
    margin: 0 0 14px;
    font-size: 1.05rem;
    font-weight: 600;
}

.share-links {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.share-links li {
    margin: 0;
}

.share-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: var(--radius-sm);
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    text-decoration: none;
    border: 1px solid var(--color-border);
    background: var(--color-bg);
    color: var(--color-text);
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.share-link:hover {
    text-decoration: none;
    background: #f0f0f0;
}

.share-link--whatsapp {
    border-color: #25d366;
    color: #075e54;
}

.share-link--whatsapp:hover {
    background: #e8f8ef;
}

.share-link--facebook {
    border-color: #1877f2;
    color: #1877f2;
}

.share-link--facebook:hover {
    background: #eef5fe;
}

.share-link--linkedin {
    border-color: #0a66c2;
    color: #0a66c2;
}

.share-link--linkedin:hover {
    background: #eef5fc;
}

.share-link--x {
    border-color: #000;
    color: #000;
}

.share-link--x:hover {
    background: #f2f2f2;
}

.share-link--email {
    border-color: var(--color-text-muted);
    color: var(--color-text);
}

.share-link--copy {
    border-color: var(--color-accent);
    color: var(--color-accent);
    background: var(--color-surface);
}

.share-link--copy:hover {
    background: #fff5f6;
}

.share-copy-feedback {
    margin: 12px 0 0;
    font-size: 0.85rem;
    color: var(--color-accent);
}

.cta-box {
    margin: 40px 0;
    padding: 24px;
    border-radius: var(--radius);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
}

.cta-box h2 {
    margin: 0 0 12px;
    font-size: 1.15rem;
}

.cta-box .btn {
    margin-top: 8px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 24px;
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    text-decoration: none;
    background: var(--color-accent);
    color: #fff;
}

.btn:hover {
    background: var(--color-accent-hover);
    color: #fff;
    text-decoration: none;
}

.btn--outline {
    background: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-border);
}

.btn--outline:hover {
    border-color: var(--color-text);
    color: var(--color-text);
}

/* Static pages */
.page-header {
    padding: 40px 0 24px;
}

.page-header h1 {
    margin: 0 0 12px;
    font-size: clamp(1.6rem, 3vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.02em;
}

.page-lead {
    margin: 0;
    max-width: 640px;
    color: var(--color-text-muted);
    font-size: 1.05rem;
}

.content-block {
    padding: 0 0 48px;
    max-width: 720px;
}

.content-block p {
    margin: 0 0 1em;
    line-height: 1.7;
}

.contact-cards {
    display: grid;
    gap: 16px;
    margin: 32px 0;
}

.contact-card {
    padding: 20px 22px;
    border-radius: var(--radius);
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow);
}

.contact-card strong {
    display: block;
    margin-bottom: 6px;
    font-size: 0.85rem;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.contact-card a {
    font-weight: 600;
    font-size: 1.05rem;
}

.bank-list {
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}

.bank-list li {
    margin-bottom: 12px;
}

.bank-list a {
    font-weight: 500;
}

.not-found {
    text-align: center;
    padding: 80px 24px;
}

.not-found h1 {
    margin: 0 0 12px;
}

/* Footer */
.site-footer {
    margin-top: auto;
    padding: 40px 0 24px;
    border-top: 1px solid var(--color-border);
    background: var(--color-surface);
}

.site-footer__grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) {
    .site-footer__grid {
        grid-template-columns: 1fr 1.2fr 1fr;
        align-items: start;
    }
}

.site-footer__brand {
    font-size: 1.05rem;
}

.site-footer__meta {
    margin: 0;
    font-size: 0.9rem;
    color: var(--color-text-muted);
    line-height: 1.6;
}

.site-footer__meta a {
    color: var(--color-text);
}

.site-footer__hours {
    margin: 8px 0 0;
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.site-footer__bottom {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid var(--color-border);
    font-size: 0.8rem;
    color: var(--color-text-muted);
}
