:root {
    --senda-purple: #6f42c1;
    --senda-purple-dark: #5a32a3;
    --senda-yellow: #ffc107;
    --senda-body: #1a1a1a;
    --senda-muted: #6c757d;
}

body.senda-property-body {
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    color: var(--senda-body);
    background-color: #f8f9fb;
}

.senda-brand-mark {
    color: var(--senda-purple);
}

.btn-senda {
    --bs-btn-color: #fff;
    --bs-btn-bg: var(--senda-purple);
    --bs-btn-border-color: var(--senda-purple);
    --bs-btn-hover-bg: var(--senda-purple-dark);
    --bs-btn-hover-border-color: var(--senda-purple-dark);
    --bs-btn-active-bg: var(--senda-purple-dark);
    --bs-btn-active-border-color: var(--senda-purple-dark);
}

.btn-outline-senda {
    --bs-btn-color: var(--senda-purple);
    --bs-btn-border-color: var(--senda-purple);
    --bs-btn-hover-bg: var(--senda-purple);
    --bs-btn-hover-border-color: var(--senda-purple);
    --bs-btn-hover-color: #fff;
}

.link-senda {
    color: var(--senda-purple);
}

.link-senda:hover {
    color: var(--senda-purple-dark);
}

.text-senda {
    color: var(--senda-purple) !important;
}

.badge-status {
    background-color: var(--senda-yellow);
    color: #212529;
    font-weight: 600;
}

.listing-price {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.listing-card {
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.listing-card:hover {
    box-shadow: 0 0.5rem 1.25rem rgba(0, 0, 0, 0.08) !important;
}

.listing-media {
    min-height: 220px;
    background: #e9ecef;
}

.listing-media-img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
}

@media (min-width: 768px) {
    .listing-media,
    .listing-media-img {
        min-height: 100%;
    }
}

.listing-media-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    color: #333;
    font-size: 0.85rem;
    pointer-events: none;
}

.listing-media-nav-prev {
    left: 0.75rem;
}

.listing-media-nav-next {
    right: 0.75rem;
}

.listing-media-badges {
    position: absolute;
    left: 0.75rem;
    bottom: 0.75rem;
    display: flex;
    gap: 0.35rem;
}

.listing-agent-bar {
    font-size: 0.875rem;
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.search-filter-form .form-label {
    letter-spacing: 0.02em;
}

.property-gallery {
    position: relative;
    background: #000;
}

.property-gallery-img {
    max-height: 480px;
    object-fit: cover;
}

.property-gallery-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: flex;
    gap: 0.5rem;
}

.similar-card-img {
    height: 160px;
    object-fit: cover;
}

.site-header .nav-link {
    font-weight: 500;
    color: #333;
}

.site-header .nav-link:hover {
    color: var(--senda-purple);
}

/* ——— Home (Housing-style) ——— */
.page-home {
    background-color: #fff;
}

.page-home main {
    padding-bottom: 0;
}

.btn-post-free {
    background: #22c55e;
    border-color: #22c55e;
    color: #fff;
}

.btn-post-free:hover {
    background: #16a34a;
    border-color: #16a34a;
    color: #fff;
}

.home-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(115deg, #4c1d95 0%, #6d28d9 45%, #7c3aed 100%);
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    opacity: 0.15;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.4'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.home-hero-title {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    letter-spacing: -0.02em;
}

.home-hero-visual {
    max-height: 320px;
    border: 4px solid rgba(255, 255, 255, 0.2);
}

.home-search-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
}

.home-search-tabs {
    border-bottom: 1px solid #e5e7eb;
}

.home-search-tab {
    appearance: none;
    border: none;
    background: transparent;
    color: #6b7280;
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.35rem 0.75rem 0.65rem;
    border-bottom: 3px solid transparent;
    margin-bottom: -1px;
}

.home-search-tab.active {
    color: var(--senda-purple);
    border-bottom-color: var(--senda-purple);
}

.home-search-tab:hover {
    color: var(--senda-purple-dark);
}

.home-search-input .form-control:focus {
    box-shadow: none;
}

.home-quick-icon {
    width: 3.5rem;
    height: 3.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f3f4f6;
    color: var(--senda-purple);
    font-size: 1.25rem;
    transition: background 0.2s, transform 0.2s;
}

.home-quick-link:hover .home-quick-icon {
    background: #ede9fe;
    transform: translateY(-2px);
}

.spotlight-card {
    min-height: 280px;
    background: #111827;
}

.spotlight-img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
}

.spotlight-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75), transparent 55%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.developer-logo {
    font-weight: 700;
    color: var(--senda-purple);
    font-size: 0.95rem;
}

.scroll-row {
    display: flex;
    gap: 1rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
}

.scroll-row::-webkit-scrollbar {
    height: 6px;
}

.scroll-row::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.scroll-card {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.scroll-row-cards .project-card {
    width: min(280px, 75vw);
    border-radius: 0.75rem;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: box-shadow 0.2s, transform 0.2s;
}

.project-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.project-card-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.project-card-body {
    padding: 0.875rem;
}

.trusted-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: min(320px, 85vw);
    padding: 1rem 1.25rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #fff;
}

.trusted-card:hover {
    border-color: var(--senda-purple);
}

.invest-card-img {
    height: 120px;
    object-fit: cover;
}

.invest-card:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08) !important;
}

.seller-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: min(260px, 80vw);
    padding: 1rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    background: #fff;
}

.seller-avatar {
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--senda-purple);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.cta-seller-banner {
    background: linear-gradient(90deg, #5b21b6, #7c3aed);
}

.article-card-img {
    height: 140px;
    object-fit: cover;
}

.footer-housing-top {
    background: #111827;
}

.footer-housing-banner {
    background: linear-gradient(90deg, #4c1d95, #6d28d9);
}

.footer-housing-bottom {
    background: #f3f4f6;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.65);
    text-decoration: none;
}

.footer-links a:hover {
    color: #fff;
}

.footer-social {
    width: 2rem;
    height: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    text-decoration: none;
}

.senda-brand-mark-light {
    color: #c4b5fd;
}

.section-heading {
    letter-spacing: -0.01em;
}
