:root {
    --brand: #B5502A;
    --brand-dark: #8F3E1F;
    --ink: #23211D;
    --ink-soft: #55504A;
    --cream: #FBF7F1;
    --cream-muted: #F2EBDE;
    --gold: #C79A4B;
    --border-soft: #E7DFD2;
    --font-serif: "Fraunces", Georgia, serif;
    --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    color: var(--ink);
    background-color: var(--cream);
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    max-width: 100%;
    display: block;
}

.text-secondary-light {
    color: var(--ink-soft);
}

/* Buttons */
.btn-brand {
    background-color: var(--brand);
    border-color: var(--brand);
    color: #fff;
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
}
.btn-brand:hover, .btn-brand:focus {
    background-color: var(--brand-dark);
    border-color: var(--brand-dark);
    color: #fff;
}

.btn-outline-brand {
    background-color: transparent;
    border: 1.5px solid var(--brand);
    color: var(--brand);
    font-weight: 600;
    padding: 0.65rem 1.5rem;
    border-radius: 999px;
}
.btn-outline-brand:hover {
    background-color: var(--brand);
    color: #fff;
}

/* Header / nav */
.site-header {
    background-color: rgba(251, 247, 241, 0.92);
    backdrop-filter: blur(6px);
    position: sticky;
    top: 0;
    z-index: 1030;
    border-bottom: 1px solid var(--border-soft);
}

.navbar-brand {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.35rem;
    color: var(--ink) !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.navbar-brand i {
    color: var(--brand);
}

.nav-link {
    color: var(--ink) !important;
    font-weight: 500;
}
.nav-link:hover {
    color: var(--brand) !important;
}

.lang-switcher .dropdown-item.active {
    background-color: var(--brand);
}

/* Hero */
.hero {
    padding: 5rem 0 4rem;
}

.eyebrow {
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--brand);
    margin-bottom: 0.75rem;
}

.hero-title {
    font-family: var(--font-serif);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    line-height: 1.1;
    font-weight: 600;
    margin-bottom: 1.25rem;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--ink-soft);
    max-width: 34rem;
    margin-bottom: 2rem;
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.hero-image {
    border-radius: 1.25rem;
    overflow: hidden;
    box-shadow: 0 30px 60px -25px rgba(35, 33, 29, 0.35);
    aspect-ratio: 1 / 1;
}
.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stats */
.stats-bar {
    background-color: var(--ink);
    color: #fff;
    padding: 2.5rem 0;
}
.stat-number {
    font-family: var(--font-serif);
    font-size: 2.1rem;
    font-weight: 600;
    color: var(--gold);
}
.stat-label {
    font-size: 0.85rem;
    color: #D8D3C8;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Sections */
.section {
    padding: 5.5rem 0;
}
.section-muted {
    background-color: var(--cream-muted);
}
.section-header {
    max-width: 42rem;
    margin: 0 auto 3rem;
}
.section-title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(1.8rem, 3vw, 2.5rem);
    margin-bottom: 0.75rem;
}
.section-subtitle {
    color: var(--ink-soft);
    font-size: 1.05rem;
}

/* Property cards */
.property-card {
    position: relative;
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    height: 100%;
    box-shadow: 0 10px 30px -20px rgba(35, 33, 29, 0.25);
    border: 1px solid var(--border-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.property-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -20px rgba(35, 33, 29, 0.35);
}
.property-image {
    background: var(--cream);
    position: relative;
    aspect-ratio: 4 / 3;
    overflow: hidden;
}
.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.property-badge {
    position: absolute;
    top: 0.85rem;
    left: 0.85rem;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #fff;
    z-index: 3;
}

/* Property photo carousels (cards + detail page) */
.property-image .carousel,
.property-image .carousel-inner,
.property-image .carousel-item,
.detail-image .carousel,
.detail-image .carousel-inner,
.detail-image .carousel-item {
    height: 100%;
}
.property-image .carousel-item img,
.detail-image .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.property-carousel .carousel-control-prev,
.property-carousel .carousel-control-next,
.detail-carousel .carousel-control-prev,
.detail-carousel .carousel-control-next {
    width: 18%;
    opacity: 0.55;
    transition: opacity 0.2s ease;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    width: 2.1rem;
    height: 2.1rem;
    background-color: rgba(35, 33, 29, 0.45);
    background-size: 55%;
    border-radius: 999px;
    padding: 0.5rem;
    background-position: center;
}
.detail-carousel .carousel-control-prev-icon,
.detail-carousel .carousel-control-next-icon {
    width: 2.6rem;
    height: 2.6rem;
}
/* On mouse/trackpad devices the controls only reveal themselves on hover —
   i.e. change based on pointer position — while touch devices (which have no
   hover) keep them semi-transparent and always visible, per the rule above. */
@media (hover: hover) {
    .property-carousel .carousel-control-prev,
    .property-carousel .carousel-control-next,
    .detail-carousel .carousel-control-prev,
    .detail-carousel .carousel-control-next {
        opacity: 0;
    }
    .property-carousel:hover .carousel-control-prev,
    .property-carousel:hover .carousel-control-next,
    .detail-carousel:hover .carousel-control-prev,
    .detail-carousel:hover .carousel-control-next {
        opacity: 1;
    }
}
.property-carousel .carousel-indicators,
.detail-carousel .carousel-indicators {
    margin-bottom: 0.6rem;
}
.property-carousel .carousel-indicators [data-bs-target],
.detail-carousel .carousel-indicators [data-bs-target] {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background-color: rgba(255, 255, 255, 0.6);
    border: none;
    opacity: 1;
    margin: 0 3px;
}
.property-carousel .carousel-indicators .active,
.detail-carousel .carousel-indicators .active {
    background-color: #fff;
}
.badge-sale {
    background-color: var(--brand);
}
.badge-rent {
    background-color: #3E5C4B;
}
.property-body {
    padding: 1.25rem 1.35rem 1.5rem;
}
.property-price {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--ink);
}
.property-price-suffix {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--ink-soft);
}
.property-title {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0.35rem 0 0.25rem;
}
.property-disclaimer {
    display: flex;
    gap: 0.6rem;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    max-width: 52rem;
    margin: 1.5rem auto;
    padding: 0.85rem 1.1rem;
    background: var(--cream-muted);
    border-left: 4px solid var(--gold);
    border-radius: 0.5rem;
    color: var(--ink-soft);
    font-size: 0.9rem;
    line-height: 1.5;
}
.property-disclaimer i {
    color: var(--gold);
    margin-top: 0.15rem;
}
.property-card-title {
    margin: 0;
    padding: 1rem 1.35rem 0.9rem;
}
.property-location {
    color: var(--ink-soft);
    font-size: 0.9rem;
    margin-bottom: 0.85rem;
}
.property-location-link {
    color: inherit;
    text-decoration: none;
}
.property-location-link:hover {
    color: var(--brand);
    text-decoration: underline;
}
.property-meta {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    padding: 0;
    margin: 0 0 1rem;
    font-size: 0.85rem;
    color: var(--ink-soft);
}
.property-card-link {
    color: inherit;
    text-decoration: none;
}
.property-card:hover .property-card-link {
    color: var(--brand);
}
/* The title link stretches over the whole card; keep inner controls clickable above it. */
.property-card .carousel-control-prev,
.property-card .carousel-control-next,
.property-card .carousel-indicators,
.property-card .property-location-link {
    position: relative;
    z-index: 2;
}
.property-card .carousel-control-prev,
.property-card .carousel-control-next,
.property-card .carousel-indicators {
    position: absolute;
}

.property-perks {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0 0 1.1rem;
}
.perk-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background-color: var(--cream-muted);
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 500;
}
.perk-badge i {
    color: var(--brand);
}

.property-financing {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0 0 1.1rem;
}
.credit-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.7rem;
    border-radius: 999px;
    background-color: rgba(199, 154, 75, 0.14);
    border: 1px solid rgba(199, 154, 75, 0.3);
    color: var(--ink-soft);
    font-size: 0.78rem;
    font-weight: 500;
}
.credit-badge i {
    color: var(--gold);
}

/* About */
.about-photo {
    border-radius: 1.25rem;
    overflow: hidden;
    aspect-ratio: 7 / 8;
    box-shadow: 0 30px 60px -25px rgba(35, 33, 29, 0.3);
}
.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.about-bio {
    font-size: 1.05rem;
    color: var(--ink-soft);
    margin-bottom: 1.5rem;
}
.credential-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}
.credential-list li {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 500;
}
.credential-list i {
    color: var(--brand);
}

/* Services */
.service-card {
    background: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    height: 100%;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.service-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px -25px rgba(35, 33, 29, 0.3);
}
.service-icon {
    width: 3.25rem;
    height: 3.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    border-radius: 999px;
    background-color: var(--cream-muted);
    color: var(--brand);
    font-size: 1.4rem;
}
.service-card h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.6rem;
}
.service-card p {
    color: var(--ink-soft);
    font-size: 0.92rem;
    margin: 0;
}

/* Testimonials */
.testimonial-card {
    background: #fff;
    border-radius: 1rem;
    padding: 1.75rem;
    height: 100%;
    border: 1px solid var(--border-soft);
}
.stars {
    color: var(--gold);
    margin-bottom: 0.75rem;
}
.testimonial-quote {
    font-style: italic;
    color: var(--ink);
    margin-bottom: 1.25rem;
}
.testimonial-author {
    display: flex;
    flex-direction: column;
}
.testimonial-author span {
    color: var(--ink-soft);
    font-size: 0.85rem;
}

/* Contact */
.contact-form label {
    font-weight: 600;
    font-size: 0.9rem;
}
.contact-form .form-control {
    border-radius: 0.6rem;
    border-color: var(--border-soft);
    padding: 0.65rem 0.9rem;
}
.contact-form .form-control:focus,
.contact-form .form-select:focus {
    border-color: var(--brand);
    box-shadow: 0 0 0 0.2rem rgba(181, 80, 42, 0.15);
}
.contact-form .phone-country {
    flex: 0 0 auto;
    width: 9.5rem;
    max-width: 50%;
}
.contact-form .form-select {
    border-radius: 0.6rem;
    border-color: var(--border-soft);
    padding: 0.65rem 0.9rem;
}

/* Property picker: a dropdown of checkboxes with a mini preview per property */
.property-picker {
    position: relative;
}
.property-picker-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    width: 100%;
    background-color: #fff;
    text-align: left;
    cursor: pointer;
}
.property-picker-menu {
    width: 100%;
    max-height: 320px;
    overflow-y: auto;
    padding: 0.4rem;
    border-radius: 0.75rem;
    border-color: var(--border-soft);
}
.property-picker-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem;
    margin: 0;
    border-radius: 0.5rem;
    cursor: pointer;
}
.property-picker-item:hover {
    background-color: var(--cream-muted);
}
.property-picker-item input[type="checkbox"] {
    flex-shrink: 0;
}
.property-picker-item img {
    width: 46px;
    height: 46px;
    border-radius: 0.4rem;
    object-fit: cover;
    flex-shrink: 0;
}
.property-picker-info {
    display: flex;
    flex-direction: column;
    font-size: 0.85rem;
    line-height: 1.35;
}
.property-picker-info span {
    color: var(--ink-soft);
    font-size: 0.78rem;
}

.contact-success {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    background-color: #EAF3EC;
    border: 1px solid #B9DCC1;
    color: #2A5A38;
    border-radius: 0.75rem;
}
.contact-success i {
    font-size: 1.3rem;
    margin-top: 0.15rem;
}

.contact-info-card {
    background-color: var(--ink);
    color: #fff;
    border-radius: 1.25rem;
    padding: 2.25rem;
    height: 100%;
}
.contact-info-card h3 {
    font-family: var(--font-serif);
    margin-bottom: 1.5rem;
}
.contact-info-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}
.contact-info-list li {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
}
.contact-info-list i {
    color: var(--gold);
    margin-top: 0.2rem;
}
.contact-info-list .label {
    display: block;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #B9B2A5;
}
.contact-info-list a {
    display: block;
    color: #fff;
}
.contact-info-list a:hover {
    color: var(--gold);
}

/* Footer */
.site-footer {
    background-color: #1A1815;
    color: #C9C3B7;
    padding-top: 3.5rem;
}
.footer-brand {
    font-family: var(--font-serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.footer-brand i {
    color: var(--gold);
}
.footer-heading {
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.footer-links {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
    font-size: 0.92rem;
}
.footer-links a:hover {
    color: var(--gold);
}
.site-footer hr {
    border-color: rgba(255,255,255,0.1);
    margin-top: 2.5rem;
}
.social-links {
    display: flex;
    gap: 0.75rem;
}
.social-links a {
    width: 2.4rem;
    height: 2.4rem;
    border-radius: 999px;
    background-color: rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: center;
}
.social-links a:hover {
    background-color: var(--brand);
    color: #fff;
}

/* WhatsApp floating button */
.whatsapp-fab {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 999px;
    background-color: #25D366;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    box-shadow: 0 12px 24px -8px rgba(37, 211, 102, 0.6);
    z-index: 1040;
    transition: transform 0.2s ease;
}
.whatsapp-fab:hover {
    transform: scale(1.08);
    color: #fff;
}

/* Legal page */
.back-link {
    font-weight: 600;
    color: var(--brand);
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.legal-heading {
    font-family: var(--font-serif);
    font-size: 1.4rem;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
}
.legal-body {
    color: var(--ink-soft);
    line-height: 1.7;
}

/* Property detail page */
.detail-image {
    background: var(--cream);
    position: relative;
    border-radius: 1.25rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    box-shadow: 0 30px 60px -25px rgba(35, 33, 29, 0.3);
}
.detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.detail-image .property-badge {
    top: 1rem;
    left: 1rem;
}
.detail-title {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    margin: 0.35rem 0 0.75rem;
}
.detail-price {
    font-family: var(--font-serif);
    font-size: 1.9rem;
    font-weight: 600;
    color: var(--brand);
    margin-bottom: 1.25rem;
}
.detail-meta {
    font-size: 0.95rem;
    margin-bottom: 1.5rem !important;
}
.detail-subheading {
    font-family: var(--font-serif);
    font-weight: 600;
    font-size: 1.2rem;
    margin: 1.75rem 0 0.9rem;
}
.detail-description {
    color: var(--ink-soft);
    line-height: 1.8;
    white-space: pre-line;
}

/* Floating prompt that points at the Chatwoot bubble (bottom-right). The
   bubble is ~64px wide at 20px from the edge, so the box sits just left of it
   and its tail points back at the bubble's center. */
.floating-text-box {
    position: fixed;
    bottom: 1.5rem;
    right: 6rem;
    z-index: 1039;
    display: flex;
    align-items: center;
    gap: 0.7rem;
    max-width: 290px;
    padding: 0.8rem 2.4rem 0.8rem 0.85rem;
    background-color: #fff;
    border: 1px solid var(--border-soft);
    border-radius: 1rem;
    box-shadow: 0 20px 40px -20px rgba(35, 33, 29, 0.35);
    animation: floatingBoxIn 0.45s ease-out 1.2s both;
}
.floating-text-box::after {
    content: "";
    position: absolute;
    right: -7px;
    bottom: 1.15rem;
    width: 13px;
    height: 13px;
    background-color: #fff;
    border-top: 1px solid var(--border-soft);
    border-right: 1px solid var(--border-soft);
    transform: rotate(45deg);
}
.floating-text-icon {
    flex-shrink: 0;
    width: 2.1rem;
    height: 2.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background-color: var(--cream-muted);
    color: var(--brand);
    font-size: 1rem;
}
.floating-text-box p {
    margin: 0;
    color: var(--ink);
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
}
.close-floating-box {
    position: absolute;
    top: 0.35rem;
    right: 0.4rem;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 999px;
    background: none;
    color: var(--ink-soft);
    font-size: 1.15rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.close-floating-box:hover,
.close-floating-box:focus-visible {
    background-color: var(--cream-muted);
    color: var(--ink);
}
@keyframes floatingBoxIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@media (max-width: 575.98px) {
    .floating-text-box {
        max-width: calc(100vw - 7.5rem);
    }
}
@media (prefers-reduced-motion: reduce) {
    .floating-text-box {
        animation: none;
    }
}

@media (max-width: 991.98px) {
    .navbar-collapse {
        padding-top: 1rem;
    }
    .hero {
        padding: 3rem 0 2.5rem;
        text-align: center;
    }
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .hero-cta {
        justify-content: center;
    }
}

/* Property detail image viewer (modal) */
.detail-image .viewer-trigger {
    cursor: zoom-in;
}
.image-viewer .modal-content {
    background: rgba(20, 18, 16, 0.96);
    border: none;
    border-radius: 1rem;
    overflow: hidden;
}
.image-viewer .carousel-item img {
    width: 100%;
    max-height: 85vh;
    object-fit: contain;
}
.image-viewer-close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    z-index: 5;
    opacity: 0.85;
}
.image-viewer-counter {
    position: absolute;
    bottom: 0.9rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.2rem 0.75rem;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 0.85rem;
}
.image-viewer .carousel-control-prev,
.image-viewer .carousel-control-next {
    width: 12%;
}
