:root {
    --color-primary: #2c3e50;
    /* Deep Slate Blue */
    --color-accent: #c5a47e;
    /* Muted Gold */
    --color-accent-dark: #b3926b;
    --color-bg: #f8f9fa;
    /* Off-white */
    --color-text: #34495e;
    /* Darker Slate */
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Lato', sans-serif;
    background-color: var(--color-bg);
    color: var(--color-text);
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: 'Playfair Display', serif;
    color: var(--color-primary);
}

.hero-section {
    position: relative;
    background-color: #1a202c;
    /* Fallback color */
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('../images/home.webp') center center / cover;
    filter: brightness(50%);
    z-index: 1;
}

.hero-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.4);
    /* Dark overlay */
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
}

.hero-content h1 {
    color: #FFF8E7;
    /* Light creamy gold */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.hero-content p {
    color: #f1f1f1;
    /* Lighter gray for better readability */
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
}

.nav-link {
    position: relative;
    transition: color 0.3s;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--color-accent);
    transition: width 0.3s ease-in-out;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.btn-primary {
    background-color: var(--color-accent);
    color: white;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: var(--color-accent-dark);
}

.btn-secondary {
    background-color: var(--color-primary);
    color: white;
    transition: background-color 0.3s;
}

.btn-secondary:hover {
    background-color: #34495e;
}

.property-card {
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}

.modal {
    transition: opacity 0.3s ease;
}

.modal-content {
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.property-card.sold .image-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.5);
    /* White overlay */
    z-index: 1;
}

.sold-banner {
    display: none;
    /* Hidden by default */
    position: absolute;
    top: 1rem;
    left: -1.25rem;
    background-color: #dc2626;
    /* Red */
    color: white;
    padding: 0.5rem 2rem;
    font-weight: bold;
    transform: rotate(-45deg);
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.property-card.sold .sold-banner {
    display: block;
    /* Show banner when .sold class is present */
}

.property-card.sold .btn-primary {
    background-color: #9ca3af;
    /* Gray out button */
    cursor: not-allowed;
    pointer-events: none;
}

.whatsapp-fab {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background-color: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transition: transform 0.3s;
}

.whatsapp-fab:hover {
    transform: scale(1.1);
}

@keyframes highlight-fade {
    from {
        background-color: rgba(252, 237, 165, 0.7);
    }

    to {
        background-color: transparent;
    }
}

.highlight {
    animation: highlight-fade 2s ease-out;
}

/* Lightbox Backdrop */
#image-lightbox {
    backdrop-filter: blur(5px);
}

/* EMI Calculator Range Sliders */
input[type=range] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    height: 24px;
    /* Fix: Increase height to match thumb size for better hit area */
    margin: 10px 0;
    /* Add some margin */
}

input[type=range]::-webkit-slider-thumb {
    -webkit-appearance: none;
    height: 24px;
    width: 24px;
    border-radius: 50%;
    background: var(--color-accent);
    cursor: pointer;
    margin-top: -10px;
    /* You need to specify a margin in Chrome, but in Firefox and IE it is automatic */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s;
}

input[type=range]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

input[type=range]::-webkit-slider-runnable-track {
    width: 100%;
    height: 4px;
    cursor: pointer;
    background: #e2e8f0;
    border-radius: 2px;
}

input[type=range]:focus {
    outline: none;
}