/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
    /* Brand Colors - User Provided */
    --brand-red: #bd1e2d;
    --brand-orange: #fd5332;
    --brand-black: #1a1a1a;
    --brand-white: #ffffff;

    /* Theme Mapping */
    --primary-color: var(--brand-black);
    /* Text and Headings for Minimalist look */
    --secondary-color: #64748B;
    /* Slate Gray for secondary text */
    --accent-color: var(--brand-red);
    /* Primary Accent */
    --accent-gradient: linear-gradient(135deg, var(--brand-red) 0%, var(--brand-orange) 100%);

    --bg-light: #FAFAFA;
    --white: #FFFFFF;

    /* Spacing */
    --section-padding: 100px;

    /* Typography */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;
}

body {
    font-family: var(--font-body);
    color: var(--primary-color);
    background-color: var(--bg-light);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--primary-color);
    font-weight: 700;
}

a {
    text-decoration: none;
    transition: all 0.3s ease;
}

/* Navbar */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.navbar-brand {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    color: var(--primary-color) !important;
}

.nav-link {
    font-family: var(--font-body);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--primary-color) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0 1.5rem !important;
    position: relative;
    opacity: 0.8;
}

.nav-link:hover,
.nav-link.active {
    opacity: 1;
    color: var(--brand-red) !important;
}

/* Hero Section */
.hero-section {
    height: 90vh;
    min-height: 700px;
    /* Dark overlay but neutral to let the red pop */
    background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('../images/hero_bg.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-title {
    font-size: 4.5rem;
    color: white;
    margin-bottom: 30px;
    line-height: 1.1;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    font-weight: 300;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
}

/* Search Box */
.search-container {
    background: white;
    padding: 10px;
    border-radius: 4px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    max-width: 900px;
    margin: 0 auto;
}

.form-select,
.form-control {
    border: none;
    border-right: 1px solid #eee;
    padding: 15px 20px;
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 500;
    border-radius: 0;
}

.form-select:focus,
.form-control:focus {
    box-shadow: none;
    border-color: var(--brand-orange);
}

.btn-search {
    background: var(--accent-gradient);
    color: white;
    padding: 15px 40px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 0;
    transition: all 0.3s;
    border: none;
}

.btn-search:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(189, 30, 45, 0.3);
    /* Red shadow */
    color: white;
}

/* Sections */
section {
    padding: var(--section-padding) 0;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 2rem;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    /* Slightly thicker */
    background: var(--accent-gradient);
    margin: 20px auto 0;
}

.category-card {
    position: relative;
    overflow: hidden;
    height: 300px;
    transition: all 0.4s ease;
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.category-card:hover .category-overlay {
    background: rgba(189, 30, 45, 0.7);
    /* Red tint on hover */
}

.category-title {
    color: white;
    font-size: 1.5rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(255, 255, 255, 0.5);
    padding: 15px 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
}

/* Property Cards */
.property-card {
    border: none;
    background: white;
    transition: transform 0.3s ease;
    height: 100%;
}

.property-img-wrapper {
    position: relative;
    overflow: hidden;
    height: 280px;
}

.property-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.price-tag {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: white;
    padding: 8px 15px;
    font-weight: 600;
    color: var(--brand-red);
    /* Price in red */
    font-family: var(--font-heading);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.card-body {
    padding: 30px;
}

.property-title {
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.property-location {
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.property-features {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid #eee;
    padding-top: 20px;
    color: var(--secondary-color);
    font-size: 0.9rem;
}

.property-features i {
    color: var(--brand-red);
    margin-right: 5px;
}

/* CTA Section */
.cta-card {
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.shadow-hover-red:hover {
    box-shadow: 0 15px 30px rgba(189, 30, 45, 0.15) !important;
    transform: translateY(-5px);
    border-color: rgba(189, 30, 45, 0.1);
}

.shadow-hover-orange:hover {
    box-shadow: 0 15px 30px rgba(253, 83, 50, 0.15) !important;
    transform: translateY(-5px);
    border-color: rgba(253, 83, 50, 0.1);
}

.bg-brand-gradient {
    background: var(--accent-gradient);
    border: none;
}

.text-brand-red {
    color: var(--brand-red);
}

.text-brand-orange {
    color: var(--brand-orange);
}

.border-brand-orange {
    border-color: var(--brand-orange) !important;
}

.transform-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 20px 40px rgba(189, 30, 45, 0.4) !important;
}

.btn-outline-danger {
    color: var(--brand-red);
    border-color: var(--brand-red);
}

.btn-outline-danger:hover {
    background-color: var(--brand-red);
    color: white;
}

.btn-light {
    background: white;
    color: var(--brand-red);
    transition: all 0.3s;
}

.btn-light:hover {
    background: #fff;
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Live Here Section */
.letter-spacing-1 {
    letter-spacing: 1px;
}

.letter-spacing-2 {
    letter-spacing: 2px;
}

.extra-small {
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.object-fit-cover {
    object-fit: cover;
}

.live-here-card {
    transition: transform 0.3s ease;
}

.live-here-card:hover {
    transform: translateY(-5px);
}

.live-here-card img {
    transition: all 0.3s ease;
}

.live-here-card:hover img {
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

/* Lifestyle Section */
.lifestyle-card {
    height: 350px !important;
    /* Fixed height for consistency */
}

.lifestyle-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0) 60%);
    transition: background 0.3s;
}

.lifestyle-card:hover .lifestyle-overlay {
    background: linear-gradient(to top, rgba(189, 30, 45, 0.9), rgba(0, 0, 0, 0) 70%);
    /* Brand Red tint on hover */
}

.transition-transform {
    transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.lifestyle-card:hover .transition-transform {
    transform: scale(1.05);
}

/* Footer */
footer {
    background: var(--brand-black);
    color: white;
    padding: 80px 0 40px;
}

.footer-brand {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: white;
    margin-bottom: 20px;
}

.footer-link {
    color: rgba(255, 255, 255, 0.6);
    display: block;
    margin-bottom: 12px;
}

.footer-link:hover {
    color: var(--brand-orange);
    /* Orange hover for links */
}

/* Buttons */
.btn-primary-custom {
    background: var(--brand-red);
    color: white;
    padding: 12px 30px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.3s;
}

.btn-primary-custom:hover {
    background: var(--brand-orange);
    color: white;
}
