/* assets/css/style.css */

:root {
    --royal-blue: #1a3a8f;
    --bright-blue: #1e6fd9;
    --sky-blue: #4da6f5;
    --light-blue: #a8d4ff;
    --wave-blue: #1565c0;
    --dark-navy: #0d1f5c;
    --white: #ffffff;
    --off-white: #f0f6ff;
    --text-dark: #0a1240;
    --text-gray: #4a5568;
    --shadow: rgba(26, 58, 143, 0.18);
    --shadow-sm: 0 2px 8px rgba(26, 58, 143, 0.08);
    --shadow-md: 0 4px 20px rgba(26, 58, 143, 0.12);
    --shadow-lg: 0 8px 40px rgba(26, 58, 143, 0.15);
    --shadow-xl: 0 20px 60px rgba(26, 58, 143, 0.2);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--off-white);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

h3 {
    font-size: 1.5rem;
}

.section-title {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--bright-blue), var(--sky-blue));
    border-radius: 3px;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 1rem 0;
    transition: var(--transition);
    background: transparent;
}

.navbar.scrolled {
    background: linear-gradient(135deg, var(--dark-navy), var(--royal-blue));
    padding: 0.8rem 0;
    box-shadow: var(--shadow-lg);
}

.nav-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--white);
}

.logo-icon {
    background: linear-gradient(135deg, var(--bright-blue), var(--sky-blue));
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.2rem;
}

.logo-text span {
    color: var(--sky-blue);
}

/* Navigation Menu */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu > li {
    position: relative;
}

.nav-menu > li > a {
    text-decoration: none;
    color: var(--white);
    font-weight: 500;
    padding: 0.5rem 0;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--light-blue);
}

/* Mega Dropdown */
.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    width: 800px;
    background: var(--white);
    border-radius: 20px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
    z-index: 100;
}

.dropdown-trigger:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-container {
    padding: 2rem;
}

.dropdown-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.dropdown-col h4 {
    color: var(--dark-navy);
    margin-bottom: 1rem;
    font-size: 1rem;
}

.dropdown-col ul {
    list-style: none;
    padding: 0;
}

.dropdown-col ul li {
    margin-bottom: 0.8rem;
}

.dropdown-col ul li a {
    text-decoration: none;
    color: var(--text-gray);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
}

.dropdown-col ul li a i {
    width: 20px;
    color: var(--bright-blue);
}

.dropdown-col ul li a:hover {
    color: var(--bright-blue);
    transform: translateX(5px);
}

/* Simple Dropdown */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background: var(--white);
    border-radius: 16px;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-xl);
}

.dropdown-trigger:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu ul {
    list-style: none;
    padding: 0.8rem 0;
}

.dropdown-menu ul li a {
    padding: 0.8rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    color: var(--text-gray);
    transition: var(--transition);
}

.dropdown-menu ul li a:hover {
    background: var(--off-white);
    color: var(--bright-blue);
}

/* Nav Icons */
.nav-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-icon {
    position: relative;
    color: var(--white);
    font-size: 1.2rem;
    transition: var(--transition);
    text-decoration: none;
}

.nav-icon:hover {
    color: var(--light-blue);
    transform: translateY(-2px);
}

.nav-icon .badge {
    position: absolute;
    top: -8px;
    right: -10px;
    background: var(--bright-blue);
    color: var(--white);
    font-size: 0.7rem;
    padding: 2px 6px;
    border-radius: 20px;
    display: none;
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 90vh;
    background: linear-gradient(135deg, var(--dark-navy), var(--royal-blue));
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('https://images.unsplash.com/photo-1560518883-ce09059eeffa?ixlib=rb-4.0.3') center/cover;
    opacity: 0.15;
    z-index: 0;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 0 2rem;
}

.hero h1 {
    color: var(--white);
    margin-bottom: 1rem;
    animation: fadeInUp 0.8s ease;
}

.hero p {
    color: var(--light-blue);
    font-size: 1.2rem;
    margin-bottom: 2rem;
    animation: fadeInUp 0.8s ease 0.1s both;
}

/* Search Box */
.search-box {
    background: var(--white);
    border-radius: 60px;
    padding: 0.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    box-shadow: var(--shadow-xl);
    animation: fadeInUp 0.8s ease 0.2s both;
}

.search-field {
    flex: 1;
    position: relative;
    min-width: 180px;
}

.search-field i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--bright-blue);
}

.search-field select,
.search-field input {
    width: 100%;
    padding: 1rem 1rem 1rem 2.5rem;
    border: none;
    background: var(--off-white);
    border-radius: 50px;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: var(--transition);
}

.search-field select:focus,
.search-field input:focus {
    outline: none;
    background: var(--white);
    box-shadow: 0 0 0 2px var(--light-blue);
}

.search-btn {
    background: linear-gradient(135deg, var(--bright-blue), var(--sky-blue));
    color: var(--white);
    border: none;
    padding: 0 2rem;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
}

.search-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(30, 111, 217, 0.4);
}

/* Section Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 4rem 3rem;
}

/* Filter Section */
.filter-section {
    background: var(--white);
    border-radius: 24px;
    padding: 1.5rem;
    margin-bottom: 3rem;
    box-shadow: var(--shadow-md);
}

.filter-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
}

.filter-item {
    flex: 1;
    min-width: 150px;
}

.filter-item label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.filter-item select,
.filter-item input {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
    transition: var(--transition);
}

.filter-item select:focus,
.filter-item input:focus {
    outline: none;
    border-color: var(--bright-blue);
    box-shadow: 0 0 0 3px rgba(30, 111, 217, 0.1);
}

/* Property Cards */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

.property-card {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
    position: relative;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.card-image {
    position: relative;
    overflow: hidden;
    height: 240px;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .card-image img {
    transform: scale(1.05);
}

.card-badges {
    position: absolute;
    top: 1rem;
    left: 1rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    z-index: 2;
}

.badge {
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-verified {
    background: #10b981;
    color: white;
}

.badge-documents {
    background: #f59e0b;
    color: white;
}

.badge-registry {
    background: var(--bright-blue);
    color: white;
}

.card-actions {
    position: absolute;
    top: 1rem;
    right: 1rem;
    display: flex;
    gap: 0.5rem;
    z-index: 2;
}

.action-btn {
    background: var(--white);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.action-btn:hover {
    background: var(--bright-blue);
    color: var(--white);
    transform: scale(1.1);
}

.card-content {
    padding: 1.5rem;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--bright-blue);
    margin-bottom: 0.5rem;
}

.property-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.property-location {
    color: var(--text-gray);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.property-features {
    display: flex;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    margin-bottom: 1rem;
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.85rem;
    color: var(--text-gray);
}

.card-buttons {
    display: flex;
    gap: 1rem;
}

.btn {
    padding: 0.7rem 1rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    text-align: center;
    flex: 1;
    font-size: 0.85rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--bright-blue), var(--sky-blue));
    color: var(--white);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(30, 111, 217, 0.3);
}

.btn-outline {
    border: 1px solid var(--bright-blue);
    color: var(--bright-blue);
    background: transparent;
}

.btn-outline:hover {
    background: var(--bright-blue);
    color: var(--white);
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #25D366;
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    transition: var(--transition);
    z-index: 999;
    text-decoration: none;
}

.whatsapp-float span {
    display: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(37, 211, 102, 0.5);
}

/* Back to Top */
.back-to-top {
    position: fixed;
    bottom: 2rem;
    right: 8rem;
    background: var(--royal-blue);
    color: white;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    transition: var(--transition);
    z-index: 999;
}

.back-to-top.active {
    display: flex;
}

.back-to-top:hover {
    background: var(--bright-blue);
    transform: translateY(-3px);
}

/* Footer */
.footer {
    background: linear-gradient(135deg, var(--dark-navy), var(--royal-blue));
    color: var(--white);
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

.footer-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.footer-logo span:last-child span {
    color: var(--sky-blue);
}

.footer-col h4 {
    margin-bottom: 1.5rem;
    position: relative;
}

.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 40px;
    height: 2px;
    background: var(--sky-blue);
}

.footer-col ul {
    list-style: none;
    padding: 0;
}

.footer-col ul li {
    margin-bottom: 0.8rem;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col ul li a:hover {
    color: var(--sky-blue);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    background: rgba(255, 255, 255, 0.1);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
    color: var(--white);
    text-decoration: none;
}

.social-links a:hover {
    background: var(--sky-blue);
    transform: translateY(-3px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.contact-info li i {
    width: 20px;
    color: var(--sky-blue);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn .bar {
    width: 25px;
    height: 2px;
    background: var(--white);
    transition: var(--transition);
}