/* ==========================================================================
   Honest Realty - Modern Design System & Styles
   ========================================================================== */

:root {
    --brand-navy: #0b132b;
    --brand-navy-light: #1c2541;
    --brand-blue: #3a86ff;
    --brand-blue-hover: #2563eb;
    --brand-gold: #f59e0b;
    --brand-gold-light: #fef3c7;
    --brand-emerald: #10b981;
    --brand-emerald-light: #d1fae5;
    --text-primary: #1e293b;
    --text-secondary: #64748b;
    --text-muted: #94a3b8;
    --bg-light: #f8fafc;
    --bg-card: #ffffff;
    --border-subtle: #e2e8f0;
    --shadow-sm: 0 1px 3px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 20px -2px rgba(11, 19, 43, 0.08);
    --shadow-lg: 0 12px 32px -4px rgba(11, 19, 43, 0.12);
    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 20px;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-light);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Outfit', sans-serif;
    color: var(--brand-navy);
    font-weight: 700;
}

/* ---------------- Top Bar ---------------- */
.top-bar {
    background-color: var(--brand-navy);
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.text-accent {
    color: var(--brand-gold) !important;
}

.bg-emerald-light {
    background-color: rgba(16, 185, 129, 0.15) !important;
}

.text-emerald {
    color: #10b981 !important;
}

.social-links a {
    transition: color 0.2s ease;
}

.social-links a:hover {
    color: #ffffff !important;
}

/* ---------------- Navigation ---------------- */
.brand-logo {
    height: 48px;
    width: auto;
    object-fit: contain;
    max-width: 200px;
    transition: transform 0.2s ease;
}

.brand-logo:hover {
    transform: scale(1.02);
}

.navbar {
    background-color: #ffffff;
    transition: all 0.3s ease;
}

.navbar .nav-link {
    color: var(--brand-navy);
    font-size: 0.95rem;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.navbar .nav-link:hover, .navbar .nav-link.active {
    color: var(--brand-blue) !important;
    background-color: rgba(58, 134, 255, 0.06);
}

.text-primary-light {
    color: var(--brand-blue);
}

/* ---------------- Buttons ---------------- */
.btn-brand-primary {
    background: linear-gradient(135deg, var(--brand-blue) 0%, #2563eb 100%);
    color: #ffffff;
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.65rem 1.4rem;
    border: none;
    box-shadow: 0 4px 14px rgba(58, 134, 255, 0.35);
    transition: all 0.25s ease;
}

.btn-brand-primary:hover {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(58, 134, 255, 0.45);
}

.btn-brand-secondary {
    background: #ffffff;
    color: var(--brand-navy);
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 0.65rem 1.4rem;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: all 0.2s ease;
}

.btn-brand-secondary:hover {
    background: #f1f5f9;
    color: var(--brand-navy);
    transform: translateY(-2px);
}

/* ---------------- Hero Section ---------------- */
.hero-section {
    background: linear-gradient(135deg, #0b132b 0%, #1c2541 60%, #1e3a8a 100%);
    position: relative;
    padding: 70px 0 110px 0;
    color: #ffffff;
    overflow: hidden;
}

.hero-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
}

.hero-tagline {
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    background: rgba(255, 255, 255, 0.12);
    padding: 6px 14px;
    border-radius: 30px;
    display: inline-block;
    backdrop-filter: blur(8px);
    color: #93c5fd;
}

.hero-title {
    font-size: 2.85rem;
    color: #ffffff;
    line-height: 1.2;
    margin-bottom: 1.2rem;
}

.hero-description {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 650px;
    margin: 0 auto;
}

/* ---------------- Filter Box ---------------- */
.filter-wrapper {
    margin-top: -65px;
    position: relative;
    z-index: 20;
}

.filter-card {
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-subtle);
    padding: 24px;
}

.filter-group-header {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--brand-blue);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.form-select-custom {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--brand-navy);
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.85rem;
    background-color: #f8fafc;
    transition: all 0.2s ease;
}

.form-select-custom:focus {
    background-color: #ffffff;
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.15);
}

.form-select-custom:disabled {
    background-color: #f1f5f9;
    color: var(--text-muted);
    cursor: not-allowed;
}

/* ---------------- Property Cards ---------------- */
.property-card {
    background: var(--bg-card);
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-md);
    border-color: #cbd5e1;
}

.property-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: #0f172a;
}

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

.property-card:hover .property-image {
    transform: scale(1.06);
}

.badge-overlay-top {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.badge-category {
    background: rgba(11, 19, 43, 0.85);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.badge-verified {
    background: rgba(16, 185, 129, 0.9);
    color: #ffffff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
}

.badge-price {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--brand-navy);
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    padding: 4px 12px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.badge-price-type {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.property-body {
    padding: 18px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.property-location {
    font-size: 0.82rem;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 500;
}

.property-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--brand-navy);
    margin-bottom: 8px;
    line-height: 1.35;
    transition: color 0.2s ease;
}

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

.property-description {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 0;
    border-top: 1px dashed var(--border-subtle);
    border-bottom: 1px dashed var(--border-subtle);
    margin-bottom: 12px;
    font-size: 0.82rem;
    color: var(--text-secondary);
}

.property-spec-item {
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-spec-item i {
    color: var(--brand-blue);
}

/* ---------------- Published Date Time Badge ---------------- */
.property-publish-info {
    font-size: 0.78rem;
    color: #475569;
    background-color: #f1f5f9;
    padding: 6px 10px;
    border-radius: 6px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #e2e8f0;
}

.property-publish-info i {
    color: var(--brand-gold);
}

.property-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: auto;
    padding-top: 8px;
}

.agent-mini {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.agent-mini strong {
    color: var(--brand-navy);
}

/* ---------------- Why Choose Us ---------------- */
.feature-box {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 28px 24px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-blue);
}

.feature-icon-wrapper {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 18px;
}

.feature-icon-blue {
    background-color: rgba(58, 134, 255, 0.12);
    color: var(--brand-blue);
}

.feature-icon-gold {
    background-color: rgba(245, 158, 11, 0.12);
    color: var(--brand-gold);
}

.feature-icon-emerald {
    background-color: rgba(16, 185, 129, 0.12);
    color: var(--brand-emerald);
}

/* ---------------- Contact Us Page ---------------- */
.contact-hero {
    background: linear-gradient(135deg, #0b132b 0%, #1c2541 100%);
    color: #ffffff;
    padding: 50px 0;
}

.contact-card {
    background: #ffffff;
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    height: 100%;
    transition: all 0.2s ease;
}

.contact-card:hover {
    box-shadow: var(--shadow-md);
}

.contact-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    background: rgba(58, 134, 255, 0.1);
    color: var(--brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 14px;
}

.form-floating-custom .form-control,
.form-floating-custom .form-select {
    border: 1.5px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
}

.form-floating-custom .form-control:focus,
.form-floating-custom .form-select:focus {
    border-color: var(--brand-blue);
    box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.15);
}

/* ---------------- Footer ---------------- */
.footer-custom {
    background-color: var(--brand-navy);
    color: rgba(255, 255, 255, 0.85);
}

.footer-logo {
    height: 44px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.footer-nav-links a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.footer-nav-links a:hover {
    color: var(--brand-gold);
    padding-left: 4px;
}

.form-control-dark {
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
}

.form-control-dark::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.form-control-dark:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: var(--brand-blue);
    color: #ffffff;
}

.social-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-icon:hover {
    background-color: var(--brand-blue);
    color: #ffffff;
    transform: translateY(-2px);
}

/* ---------------- Responsive ---------------- */
@@media (max-width: 768px) {
    .hero-title {
        font-size: 2.1rem;
    }
    .filter-wrapper {
        margin-top: -30px;
    }
    .property-image-wrapper {
        height: 190px;
    }
}