:root {
    --accent: #8b5cf6;
    --text: #1f2937;
    --muted: #6b7280;
    --bg: #f9fafb;
    --card-bg: #ffffff;
    --border: #e5e7eb;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 16px;
}

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

/* Header */
.site-header {
    background: var(--card-bg);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 10;
}
.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
}
.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--text);
    text-decoration: none;
}
.brand-mark { color: var(--accent); font-size: 1.3rem; }
.brand-city { color: var(--accent); }
.main-nav a {
    margin-left: 20px;
    color: var(--text);
    font-weight: 500;
}
.main-nav a:hover { color: var(--accent); }

/* Hero / Intro */
.hero {
    padding: 40px 0 24px;
}
.hero h1 {
    font-size: 2rem;
    margin: 0 0 12px;
}
.hero p {
    color: var(--muted);
    max-width: 720px;
}

/* Listing Grid */
.listing-grid {
    display: grid;
    grid-template-columns: repeat(var(--grid-cols, 4), 1fr);
    gap: 16px;
    margin: 24px 0 48px;
}
@media (max-width: 900px) {
    .listing-grid { grid-template-columns: repeat(var(--grid-cols-mobile, 2), 1fr); }
}

.listing-card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    overflow: hidden;
    color: var(--text);
    text-decoration: none;
    transition: box-shadow .15s, transform .15s;
}
.listing-card:hover {
    box-shadow: 0 8px 24px rgba(0,0,0,.08);
    transform: translateY(-2px);
    text-decoration: none;
}
.listing-card-img {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--accent), #1f2937);
    overflow: hidden;
}
.listing-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.listing-card-body { padding: 14px; }
.listing-card-category {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: var(--accent);
    font-weight: 600;
}
.listing-card-title { font-size: 1rem; margin: 4px 0; }
.listing-card-district { font-size: .85rem; color: var(--muted); }
.listing-card-label {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 8px;
    border-radius: 6px;
    font-size: .75rem;
    background: var(--accent);
    color: #fff;
}
.listing-card-empty {
    align-items: center;
    justify-content: center;
    text-align: center;
    border-style: dashed;
    color: var(--muted);
    min-height: 180px;
}
.listing-card-empty .listing-card-body { display: flex; align-items: center; justify-content: center; height: 100%; }

/* Section headings */
.section-title {
    font-size: 1.4rem;
    margin: 0 0 16px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
}

/* Blog grid */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin: 16px 0 48px;
}
@media (max-width: 900px) {
    .blog-grid { grid-template-columns: 1fr; }
}
.blog-card {
    display: block;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
    color: var(--text);
}
.blog-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); text-decoration: none; }
.blog-card-title { font-size: 1.05rem; margin: 0 0 8px; }
.blog-card-excerpt { font-size: .9rem; color: var(--muted); margin: 0 0 8px; }
.blog-card-date { font-size: .8rem; color: var(--accent); }

/* Listing detail */
.listing-detail { padding: 32px 0; }
.listing-detail h1 { margin: 0 0 8px; font-size: 1.8rem; }
.listing-detail .breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 16px; }
.listing-detail .breadcrumb a { color: var(--muted); }
.listing-hero-img {
    height: 240px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--accent), #1f2937);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 24px;
    overflow: hidden;
}
.listing-hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Listing gallery */
.listing-gallery { margin: 24px 0; }
.gallery-main {
    position: relative;
    height: 320px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--card-bg);
}
.gallery-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .4s ease;
}
.gallery-image.active { opacity: 1; }
.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(0,0,0,.4);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-thumbs {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    overflow-x: auto;
}
.gallery-thumb {
    width: 72px;
    height: 54px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    opacity: .6;
    border: 2px solid transparent;
}
.gallery-thumb.active { opacity: 1; border-color: var(--accent); }
.listing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 16px 0 24px;
}
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
}
.btn-call { background: var(--accent); color: #fff; }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn:hover { opacity: .9; text-decoration: none; }
.listing-address { color: var(--muted); margin-bottom: 8px; }
.listing-phone-text { font-weight: 600; }

/* FAQ */
.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
}
.faq-item:last-child { border-bottom: none; }
.faq-q { font-weight: 600; margin: 0 0 4px; }
.faq-a { color: var(--muted); margin: 0; }

/* Blog detail */
.blog-detail { padding: 32px 0; max-width: 760px; margin: 0 auto; }
.blog-detail h1 { font-size: 1.8rem; margin-bottom: 8px; }
.blog-detail time { color: var(--muted); font-size: .9rem; }
.blog-detail .content { margin-top: 24px; }
.blog-detail .content p { margin-bottom: 16px; }
.related-posts { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--border); }
.related-posts ul { list-style: none; padding: 0; }
.related-posts li { margin-bottom: 8px; }

.blog-cta { margin: 24px 0; text-align: center; }
.btn-cta {
    background: var(--accent);
    color: #fff;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
}
.btn-cta:hover { opacity: .9; text-decoration: none; }

/* Footer */
.site-footer {
    border-top: 1px solid var(--border);
    margin-top: 32px;
    padding: 24px 0;
    color: var(--muted);
    font-size: .85rem;
}
.footer-inner p { margin: 4px 0; }
