/* Main Styles for RMPecayo Realty - Modern Real Estate Design */

/* CSS Variables for Modern Color Palette */
:root {
    --primary-blue: #1e40af;
    --primary-green: #059669;
    --accent-orange: #f59e0b;
    --dark-blue: #1e3a8a;
    --light-green: #10b981;
    --gradient-primary: linear-gradient(135deg, #1e40af 0%, #059669 100%);
    --gradient-secondary: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --background-light: #f8fafc;
    --white: #ffffff;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* General Styles */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    margin: 0;
    padding: 0;
    font-size: 14px;
    font-weight: 400;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background Elements */
body::before {
    content: '';
    position: fixed;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(30, 64, 175, 0.03) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    bottom: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(5, 150, 105, 0.03) 0%, transparent 70%);
    animation: float 25s ease-in-out infinite reverse;
    z-index: -1;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Modern Card Styling with Vibrant Effects */
.card {
    box-shadow: var(--shadow-sm);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 12px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%);
    position: relative;
    overflow: hidden;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(30, 64, 175, 0.1), transparent);
    transition: left 0.6s ease;
}

.card:hover::before {
    left: 100%;
}

.card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-8px) scale(1.02);
    border-color: var(--primary-blue);
}

a {
    color: var(--primary-blue);
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-primary);
    transition: width 0.3s ease;
}

a:hover::before {
    width: 100%;
}

a:hover {
    color: var(--primary-green);
    transform: translateY(-1px);
}

/* Header & Navigation - Vibrant Real Estate Style */
.navbar {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(248,250,252,0.95) 100%) !important;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
    padding: 16px 0;
    border-bottom: 1px solid rgba(30, 64, 175, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    background: var(--white) !important;
    box-shadow: var(--shadow-lg);
}

.navbar-brand {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
    position: relative;
}

.navbar-brand:hover {
    transform: scale(1.05);
    filter: brightness(1.1);
}

.site-logo {
    height: 32px;
    width: auto;
    margin-right: 12px;
}

.logo-icon {
    display: inline-block;
    margin-right: 12px;
    font-size: 1.5rem;
}

.logo-icon i {
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    padding: 10px 20px !important;
    margin: 0 6px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.navbar-nav .nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-primary);
    transition: left 0.3s ease;
    z-index: -1;
}

.navbar-nav .nav-link:hover::before {
    left: 0;
}

.navbar-nav .nav-link:hover {
    color: var(--white) !important;
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.navbar-toggler {
    border: none;
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* Hero Section - Dynamic Real Estate Style */
.hero {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 120px 0;
    margin-bottom: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/></g></svg>') repeat;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: slideInUp 1s ease-out;
}

.hero p {
    font-size: 1.3rem;
    font-weight: 400;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 2rem;
    animation: slideInUp 1s ease-out 0.2s both;
}

.hero .btn {
    animation: slideInUp 1s ease-out 0.4s both;
    padding: 15px 35px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 50px;
    background: var(--white);
    color: var(--primary-blue);
    border: none;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

.hero .btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-xl);
    background: var(--accent-orange);
    color: var(--white);
}

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

/* Clean Content Sections */
.container .card, 
.container .bg-light,
.profile-header,
.contact-info,
.bg-white,
.search-form {
    background-color: #ffffff !important;
    border-radius: 8px;
}

/* Hero-Style Page Headers for Properties, Agents, Contact */
.page-hero {
    background: var(--gradient-primary);
    color: var(--white);
    padding: 80px 0;
    margin-bottom: 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Stationary Animated House for Properties Hero */
.properties-hero {
    position: relative;
}

.properties-hero .hero-house {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 280px;
    height: 220px;
    opacity: 0;
    animation: houseAppear 3s ease-out 1s forwards;
    z-index: 1;
    pointer-events: none;
}

.hero-house {
    background: url('11049413.png') center/contain no-repeat;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
}

.agents-hero {
    position: relative;
    overflow: hidden;
}

.hero-agent {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 280px;
    height: 220px;
    background: url('agent_6830135.png') center/contain no-repeat;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transform: translateY(-50%) scale(0.5);
    animation: agentAppear 3s ease-out 1s forwards, agentBreathe 4s ease-in-out 4s infinite;
}

.dashboard-hero {
    position: relative;
    overflow: hidden;
}

.hero-dashboard {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 280px;
    height: 220px;
    background: url('data:image/svg+xml,<svg viewBox="0 0 300 240" xmlns="http://www.w3.org/2000/svg"><defs><linearGradient id="dashboardGrad" x1="0%" y1="0%" x2="100%" y2="100%"><stop offset="0%" style="stop-color:%23007bff" stop-opacity="0.4"/><stop offset="50%" style="stop-color:%2328a745" stop-opacity="0.5"/><stop offset="100%" style="stop-color:%2317a2b8" stop-opacity="0.3"/></linearGradient><filter id="dashShadow"><feDropShadow dx="2" dy="4" stdDeviation="3" flood-color="%23000" flood-opacity="0.1"/></filter></defs><rect x="50" y="60" width="200" height="120" fill="url(%23dashboardGrad)" stroke="%23ffffff" stroke-width="1" stroke-opacity="0.4" rx="8" filter="url(%23dashShadow)"/><rect x="70" y="80" width="50" height="30" fill="%23007bff" fill-opacity="0.3" stroke="%23ffffff" stroke-width="1" stroke-opacity="0.5" rx="4"/><rect x="130" y="80" width="50" height="30" fill="%2328a745" fill-opacity="0.3" stroke="%23ffffff" stroke-width="1" stroke-opacity="0.5" rx="4"/><rect x="190" y="80" width="40" height="30" fill="%2317a2b8" fill-opacity="0.3" stroke="%23ffffff" stroke-width="1" stroke-opacity="0.5" rx="4"/><rect x="70" y="120" width="160" height="40" fill="%23ffffff" fill-opacity="0.15" stroke="%23ffffff" stroke-width="1" stroke-opacity="0.3" rx="4"/><circle cx="90" cy="140" r="6" fill="%23007bff" fill-opacity="0.4"/><circle cx="120" cy="140" r="6" fill="%2328a745" fill-opacity="0.4"/><circle cx="150" cy="140" r="6" fill="%2317a2b8" fill-opacity="0.4"/><circle cx="180" cy="140" r="6" fill="%23ffc107" fill-opacity="0.4"/><circle cx="210" cy="140" r="6" fill="%23dc3545" fill-opacity="0.4"/><rect x="80" y="190" width="140" height="15" fill="%2328a745" fill-opacity="0.2" rx="8"/><circle cx="100" cy="205" r="4" fill="%23007bff" fill-opacity="0.5"/><circle cx="130" cy="210" r="3" fill="%2328a745" fill-opacity="0.4"/><circle cx="160" cy="205" r="3" fill="%2317a2b8" fill-opacity="0.4"/><circle cx="190" cy="208" r="2" fill="%23ffc107" fill-opacity="0.5"/></svg>') center/contain no-repeat;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.1));
    pointer-events: none;
    z-index: 1;
    opacity: 0;
    transform: translateY(-50%) scale(0.5);
    animation: dashboardAppear 3s ease-out 1s forwards, dashboardBreathe 4s ease-in-out 4s infinite;
}

@keyframes houseAppear {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(0.5);
    }
    100% {
        opacity: 0.85;
        transform: translateY(-50%) scale(1);
    }
}

/* Subtle breathing animation after initial appearance */
.hero-house::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: inherit;
    opacity: 0;
    animation: houseBreathing 4s ease-in-out 4s infinite;
}

@keyframes houseBreathing {
    0%, 100% {
        transform: scale(1);
        opacity: 0;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.1;
    }
}

@keyframes agentAppear {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(0.5);
    }
    100% {
        opacity: 0.85;
        transform: translateY(-50%) scale(1);
    }
}

@keyframes agentBreathe {
    0%, 100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.02);
    }
}

@keyframes dashboardAppear {
    0% {
        opacity: 0;
        transform: translateY(-50%) scale(0.5);
    }
    100% {
        opacity: 0.85;
        transform: translateY(-50%) scale(1);
    }
}

@keyframes dashboardBreathe {
    0%, 100% {
        transform: translateY(-50%) scale(1);
    }
    50% {
        transform: translateY(-50%) scale(1.02);
    }
}

.page-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="%23ffffff" fill-opacity="0.05"><circle cx="30" cy="30" r="2"/></g></svg>') repeat;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% { transform: translate(0, 0); }
    100% { transform: translate(60px, 60px); }
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    animation: slideInUp 1s ease-out;
    position: relative;
    z-index: 2;
}

.page-hero p {
    font-size: 1.2rem;
    font-weight: 300;
    opacity: 0.95;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    animation: slideInUp 1s ease-out 0.2s both;
    position: relative;
    z-index: 2;
}

.page-hero .breadcrumb {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
    padding: 12px 24px;
    display: inline-flex;
    animation: slideInUp 1s ease-out 0.4s both;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.page-hero .breadcrumb-item {
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
}

.page-hero .breadcrumb-item.active {
    color: var(--white);
    font-weight: 600;
}

.page-hero .breadcrumb-item + .breadcrumb-item::before {
    content: ">";
    color: rgba(255, 255, 255, 0.6);
}

/* Page Section Headers */
.py-5 {
    padding: 3rem 0 !important;
}

.py-5 .container > h1,
.py-5 .container > h2,
.bg-light .container > h1,
.bg-light .container > h2 {
    color: var(--text-dark);
    font-weight: 700;
    margin-bottom: 2rem;
    text-align: center;
}

.bg-light {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%) !important;
}

.page-header,
.section-header {
    background-color: #ffffff !important;
    padding: 2rem 0;
    border-bottom: 1px solid #e9ecef;
}

/* Vibrant Property Cards with Animations */
.property-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 2rem;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    border: 2px solid transparent;
    background: linear-gradient(var(--white), var(--white)) padding-box,
                var(--gradient-primary) border-box;
    position: relative;
}

.property-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-primary);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.property-card:hover {
    transform: translateY(-12px) scale(1.03);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-blue);
}

.property-card:hover::after {
    opacity: 0.03;
}

.property-card .card-img-top {
    height: 220px;
    object-fit: cover;
    transition: all 0.4s ease;
    position: relative;
}

.property-card:hover .card-img-top {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.property-card .card-body {
    padding: 1.5rem;
    position: relative;
    z-index: 1;
}

.property-price {
    font-size: 1.6rem;
    font-weight: 800;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    animation: shimmer 2s ease-in-out infinite;
}

@keyframes shimmer {
    0% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
    100% { filter: brightness(1); }
}

.property-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.75rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.property-card:hover .property-title {
    color: var(--primary-blue);
}

.property-location {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    transition: all 0.3s ease;
}

.property-card:hover .property-location {
    color: var(--primary-green);
    transform: translateX(5px);
}

.property-location i {
    margin-right: 8px;
    color: var(--accent-orange);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}

.property-features {
    display: flex;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 2px solid var(--primary-blue);
    color: var(--text-light);
    font-size: 0.9rem;
    margin-top: 1rem;
}

.property-feature {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: center;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.property-feature:hover {
    background: rgba(30, 64, 175, 0.1);
    transform: scale(1.1);
    color: var(--primary-blue);
}

.property-feature i {
    margin-right: 6px;
    color: var(--primary-blue);
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.property-feature:hover i {
    transform: rotate(360deg);
}

/* Modern Agent Cards */
.agent-card {
    transition: all 0.2s ease;
    margin-bottom: 24px;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.agent-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.agent-card .card-img-top {
    height: 250px;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.agent-card:hover .card-img-top {
    transform: scale(1.02);
}

.agent-card .card-body {
    padding: 1.25rem;
    text-align: center;
}

.agent-card .card-title {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.agent-card .card-text {
    color: #6c757d;
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

/* Modern Forms */
.form-container {
    background-color: #ffffff;
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    border: 1px solid #e9ecef;
}

.form-control {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background-color: #ffffff;
}

.form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
    background-color: #ffffff;
}

.form-label {
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.btn {
    border-radius: 6px;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
}

.btn-primary {
    background-color: #007bff;
    color: #ffffff;
}

.btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 123, 255, 0.3);
}

.btn-secondary {
    background-color: #6c757d;
    color: #ffffff;
}

.btn-secondary:hover {
    background-color: #545b62;
    transform: translateY(-1px);
}

.btn-success {
    background-color: #28a745;
    color: #ffffff;
}

.btn-success:hover {
    background-color: #1e7e34;
    transform: translateY(-1px);
}

.btn-outline-primary {
    border: 2px solid #007bff;
    color: #007bff;
    background-color: transparent;
}

.btn-outline-primary:hover {
    background-color: #007bff;
    color: #ffffff;
    transform: translateY(-1px);
}

/* Modern Dashboard */
.dashboard-stats .card {
    border-left: 4px solid #007bff;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.dashboard-stats .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.dashboard-stats .card-body {
    padding: 1.5rem;
}

.dashboard-stats .card-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    color: #6c757d;
    font-weight: 600;
    letter-spacing: 0.5px;
    margin-bottom: 0.5rem;
}

.dashboard-stats .card-text {
    font-size: 2rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 0;
}

/* Property Detail Page */
.property-detail-img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 20px;
}

.property-thumbnails img {
    width: 100px;
    height: 70px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    margin-bottom: 10px;
}

.property-thumbnails img:hover {
    opacity: 0.8;
}

/* Dynamic Search Form */
.search-form {
    background: linear-gradient(145deg, var(--white) 0%, var(--background-light) 100%);
    padding: 2.5rem;
    border-radius: 16px;
    box-shadow: var(--shadow-lg);
    margin-bottom: 3rem;
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
}

.search-form::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(from 0deg, var(--primary-blue), var(--primary-green), var(--accent-orange), var(--primary-blue));
    animation: rotate 10s linear infinite;
    z-index: -1;
}

.search-form::after {
    content: '';
    position: absolute;
    inset: 2px;
    background: linear-gradient(145deg, var(--white) 0%, var(--background-light) 100%);
    border-radius: 14px;
    z-index: -1;
}

@keyframes rotate {
    100% { transform: rotate(360deg); }
}

.search-form .form-control {
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.search-form .form-control:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.15);
}

.search-form .btn-primary {
    background-color: #007bff;
    border-color: #007bff;
    padding: 0.75rem 2rem;
    font-weight: 600;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.search-form .btn-primary:hover {
    background-color: #0056b3;
    border-color: #0056b3;
    transform: translateY(-1px);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .property-detail-img {
        height: 300px;
    }
}

/* Footer */
footer {
    margin-top: auto;
}

footer a {
    color: #fff;
}

footer a:hover {
    color: #f8f9fa;
}

/* Admin Dashboard */
.sidebar {
    min-height: calc(100vh - 56px);
    background-color: #212529;
    color: white;
}

.sidebar .nav-link {
    color: rgba(255, 255, 255, 0.8);
    padding: 0.5rem 1rem;
    margin: 0.2rem 0;
}

.sidebar .nav-link:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.1);
}

.sidebar .nav-link.active {
    color: white;
    background-color: #0d6efd;
}

.sidebar .nav-link i {
    margin-right: 10px;
}

/* Modern Login & Register Pages */
.auth-container {
    max-width: 480px;
    margin: 3rem auto;
    padding: 0 1rem;
}

.auth-container .card {
    border: none;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
}

.auth-container .card-header {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: #ffffff;
    text-align: center;
    padding: 2rem;
    border: none;
}

.auth-container .card-header h4 {
    margin: 0;
    font-weight: 700;
}

.auth-container .card-body {
    padding: 2.5rem;
}

/* Profile Page */
.profile-header {
    background-color: rgba(255, 255, 255, 0.8);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.profile-image {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #f8f9fa;
}

/* Modern Contact Page */
.contact-info {
    background-color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    margin-bottom: 2rem;
    border: 1px solid #e9ecef;
    text-align: center;
    transition: all 0.2s ease;
}

.contact-info:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.contact-info i {
    font-size: 2.5rem;
    color: #007bff;
    margin-bottom: 1rem;
    display: block;
}

.contact-info h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.contact-info p {
    color: #6c757d;
    margin-bottom: 0;
}

/* Modern Pagination */
.pagination {
    justify-content: center;
    margin-top: 2rem;
}

.pagination .page-item.active .page-link {
    background-color: #007bff;
    border-color: #007bff;
    color: #ffffff;
    font-weight: 600;
}

.pagination .page-link {
    color: #007bff;
    border-color: #e9ecef;
    padding: 0.75rem 1rem;
    margin: 0 2px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.pagination .page-link:hover {
    color: #0056b3;
    background-color: #f8f9fa;
    border-color: #007bff;
    transform: translateY(-1px);
}

.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
    border-radius: 6px;
}

/* Presence Indicator for Chat */
.chat-user-avatar-container {
    position: relative;
    width: 40px;
    height: 40px;
    flex-shrink: 0; /* Prevents the avatar from shrinking if the container is flex */
}

.presence-indicator {
    display: inline-block;
    border-radius: 50%;
}

.chat-user-avatar-container .presence-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 12px;
    height: 12px;
    border: 2px solid white;
}

.presence-indicator.online {
    background-color: #28a745; /* green */
}

.presence-indicator.busy {
    background-color: #dc3545; /* red */
}

.presence-indicator.offline {
    background-color: #6c757d; /* grey */
}
