@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #ffffff;
    --primary-light: #f8f9fa;
    --accent: #e60000; /* Vibrant Logo Red */
    --accent-hover: #b30000;
    --dark-main: #0f172a; /* Deep Black */
    --text-main: #0f172a;
    --text-muted: #64748b;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --border: #e2e8f0;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.6;
}

a {
    color: var(--accent);
    text-decoration: none !important;
    transition: color 0.3s ease;
}

a:hover {
    color: var(--accent-hover);
}

/* Utilities */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Topbar */
.topbar {
    background-color: #e60000;
    color: white;
    padding: 7px 0;
    font-size: 0.8rem;
    font-weight: 500;
    border-bottom: 2px solid rgba(255,255,255,0.15);
}

.topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.topbar-left a, .topbar-right a {
    color: white;
    margin-right: 15px;
    text-decoration: none;
    opacity: 0.9;
    transition: opacity 0.2s;
}

.topbar-left a:hover, .topbar-right a:hover {
    opacity: 1;
}

/* Navbar */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    padding: 6px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.navbar .container {
    /* Rely on Bootstrap default navbar container styles */
}

.nav-brand {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: 1px;
}

.nav-links {
    list-style: none;
    margin-bottom: 0;
}

.nav-links a {
    color: #1e293b;
    font-weight: 600;
    position: relative;
    font-size: 0.92rem;
    white-space: nowrap;
    text-decoration: none !important;
    padding: 4px 0;
    letter-spacing: 0.2px;
    transition: color 0.3s ease;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2.5px;
    bottom: -3px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-links a:hover {
    color: var(--accent);
}

.nav-links a:hover::after {
    width: 100%;
}

@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
        animation: fadeIn 0.2s ease-in-out;
    }
}

.dropdown-item:hover {
    background-color: #f1f5f9 !important;
    color: var(--accent) !important;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: translateY(0); }
}

.btn-contact {
    background: linear-gradient(135deg, #e60000 0%, #b30000 100%);
    color: white !important;
    padding: 7px 18px;
    border-radius: 0 !important;
    font-weight: 700;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    border: none;
    white-space: nowrap;
    box-shadow: 0 4px 14px rgba(230, 0, 0, 0.3);
}

.btn-contact:hover {
    background: linear-gradient(135deg, #cc0000 0%, #990000 100%);
    color: white !important;
    box-shadow: 0 6px 18px rgba(230, 0, 0, 0.45);
    transform: translateY(-1px);
}

/* Hero Search Box */
.hero-search-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    max-width: 800px;
    margin: 0 auto;
}

.search-tabs {
    display: flex;
    margin-bottom: -1px;
}

.search-tab {
    padding: 10px 30px;
    background: transparent;
    border: none;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 1.1rem;
}

.search-tab.active {
    background: var(--accent);
    color: white;
}

.search-bar-inner {
    display: flex;
    background: white;
    border: 1px solid var(--border);
}

.search-input {
    flex: 1;
    border: none;
    padding: 15px 20px;
    outline: none;
    font-family: 'Outfit', sans-serif;
    font-size: 1rem;
}

.search-divider {
    width: 1px;
    background: var(--border);
    margin: 10px 0;
}

.search-btn {
    background: var(--accent);
    color: white;
    border: none;
    padding: 15px 40px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.search-btn:hover {
    background: var(--accent-hover);
}

/* Featured Properties */
.featured-section {
    padding: 80px 0;
    background: #ffffff;
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-main);
}

.section-subtitle {
    color: var(--text-muted);
    margin-bottom: 40px;
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
}

.property-card {
    background: var(--bg-card);
    border: none;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
}

.property-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(211, 16, 69, 0.15);
}

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

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

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

.tag {
    position: absolute;
    top: 20px;
    left: 20px;
    background: var(--accent);
    padding: 6px 18px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 700;
    color: white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    z-index: 10;
}

.card-content {
    padding: 25px;
}

.price {
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--accent);
    margin-bottom: 5px;
}

.property-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--text-main);
}

.property-location {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.amenities {
    display: flex;
    justify-content: space-between;
    border-top: 1px solid var(--border);
    padding-top: 15px;
    color: var(--text-muted);
    font-size: 0.85rem;
}

/* Footer */
footer {
    background: #111;
    padding: 40px 0;
    text-align: center;
    color: #999;
}

/* ZERO BORDER RADIUS & COMPACT SPACING OVERRIDES */
*, 
.btn, 
.btn-contact, 
.form-control, 
.form-select, 
.modal-content, 
.card, 
.property-card, 
.dropdown-menu, 
.dropdown-item,
.badge, 
.tag,
div, 
span, 
img, 
button, 
input, 
select, 
textarea {
    border-radius: 0 !important;
}

.btn-contact {
    border-radius: 0 !important;
    padding: 7px 18px;
}

section:not(.hero-banner-wrap):not(#hero-section) {
    padding-top: 45px !important;
    padding-bottom: 45px !important;
}

.hero-banner-wrap {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
}