/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #1e306e; /* Houzy Theme Deep Blue */
    --secondary-color: #2fa5fb; /* Houzy Theme Sky Blue Accent */
    --tertiary-color: #d2edf8; /* Houzy Theme Light Tint */
    --dark-color: #0f172a;
    --light-bg: #f8fafc;
    --card-shadow: 0 10px 30px rgba(30, 48, 110, 0.06);
    --hover-shadow: 0 20px 40px rgba(30, 48, 110, 0.12);
    --font-heading: 'Poppins', sans-serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: #ffffff;
    color: #475569;
    overflow-x: hidden;
}

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

/* Header & Navbar */
.navbar {
    background-color: #ffffff;
    padding: 20px 0;
    transition: all 0.3s ease;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.03);
}

.navbar-brand {
    font-size: 26px;
    font-weight: 800;
    font-family: var(--font-heading);
    color: var(--primary-color) !important;
}

.navbar-brand span {
    color: var(--secondary-color);
}

.nav-link {
    font-weight: 500;
    color: var(--primary-color) !important;
    padding: 0 15px !important;
    font-family: var(--font-heading);
    font-size: 15px;
    transition: color 0.3s ease;
}

.nav-link:hover, .nav-link.active {
    color: var(--secondary-color) !important;
}

.btn-submit-property {
    background-color: var(--primary-color);
    color: #ffffff !important;
    border-radius: 50px;
    padding: 10px 24px !important;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(30, 48, 110, 0.25);
    transition: all 0.3s ease;
}

.btn-submit-property:hover {
    background-color: var(--secondary-color);
    box-shadow: 0 4px 15px rgba(47, 165, 251, 0.35);
    transform: translateY(-2px);
}

/* Hero Section */
.hero-section {
    position: relative;
    background: linear-gradient(rgba(30, 48, 110, 0.4), rgba(15, 23, 42, 0.6)), 
                url('https://images.unsplash.com/photo-1564013799919-ab600027ffc6?auto=format&fit=crop&w=1920&q=80') no-repeat center center;
    background-size: cover;
    min-height: 650px;
    display: flex;
    align-items: center;
    color: #ffffff;
    padding: 100px 0;
}

.hero-title {
    font-size: 52px;
    line-height: 1.2;
    color: #ffffff;
    font-weight: 800;
    margin-bottom: 20px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.hero-subtitle {
    font-size: 18px;
    color: #f1f5f9;
    margin-bottom: 40px;
    font-weight: 400;
}

/* Search Box */
.search-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    color: var(--primary-color);
}

.search-tab-btn {
    border: none;
    background: none;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    padding: 8px 24px;
    margin-right: 10px;
    border-radius: 30px;
    color: #64748b;
    transition: all 0.3s ease;
}

.search-tab-btn.active {
    background-color: var(--secondary-color);
    color: #ffffff;
}

.search-form-row {
    margin-top: 20px;
}

.search-form-col {
    position: relative;
    margin-bottom: 15px;
}

.search-form-col i {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    font-size: 16px;
    z-index: 10;
}

.search-input {
    width: 100%;
    padding: 14px 20px 14px 45px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-weight: 500;
    font-size: 14px;
    color: var(--primary-color);
    background-color: #f8fafc;
    transition: all 0.3s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.search-input:focus {
    border-color: var(--secondary-color);
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(47, 165, 251, 0.15);
}

.btn-search-submit {
    background-color: var(--secondary-color);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    border-radius: 12px;
    padding: 14px;
    width: 100%;
    border: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(47, 165, 251, 0.3);
}

.btn-search-submit:hover {
    background-color: var(--primary-color);
    box-shadow: 0 4px 15px rgba(30, 48, 110, 0.3);
    transform: scale(1.02);
}

/* Category Grid */
.category-card {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid #f1f5f9;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-color: var(--secondary-color);
}

.category-icon-wrapper {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(210, 237, 248, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon-wrapper {
    background-color: var(--secondary-color);
}

.category-icon-wrapper img {
    width: 42px;
    height: auto;
    transition: all 0.3s ease;
}

.category-card:hover .category-icon-wrapper img {
    filter: brightness(0) invert(1);
}

.category-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--primary-color);
}

.category-count {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 500;
}

/* Listings Section */
.section-title-wrapper {
    margin-bottom: 50px;
}

.section-tag {
    color: var(--secondary-color);
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    display: inline-block;
}

.section-main-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--primary-color);
    position: relative;
    padding-bottom: 15px;
}

.section-main-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-main-title.left-aligned::after {
    left: 0;
    transform: none;
}

/* Property Card */
.property-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
}

.property-thumb-wrapper {
    position: relative;
    overflow: hidden;
    height: 240px;
}

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

.property-card:hover .property-thumb {
    transform: scale(1.08);
}

.property-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #ffffff;
    z-index: 10;
}

.badge-sale {
    background-color: var(--primary-color);
}

.badge-rent {
    background-color: var(--secondary-color);
}

.property-price {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background-color: rgba(30, 48, 110, 0.9);
    backdrop-filter: blur(5px);
    color: #ffffff;
    padding: 6px 16px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 15px;
}

.property-body {
    padding: 25px;
}

.property-type {
    color: var(--secondary-color);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.property-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    line-height: 1.4;
}

.property-title a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.property-title a:hover {
    color: var(--secondary-color);
}

.property-location {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
}

.property-location i {
    color: var(--secondary-color);
    margin-right: 8px;
}

.property-specs {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid #f1f5f9;
}

.spec-item {
    font-size: 13px;
    font-weight: 500;
    color: #64748b;
    display: flex;
    align-items: center;
}

.spec-item i {
    color: var(--secondary-color);
    margin-right: 6px;
    font-size: 14px;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 25px 25px;
    background-color: #fafbfd;
    border-top: 1px solid #f1f5f9;
}

.agent-info {
    display: flex;
    align-items: center;
}

.agent-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 10px;
}

.agent-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary-color);
}

.btn-view-details {
    font-size: 12px;
    font-weight: 700;
    color: var(--secondary-color);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s ease;
}

.btn-view-details:hover {
    color: var(--primary-color);
}

/* Why Choose Us Section */
.features-section {
    background-color: var(--light-bg);
    position: relative;
}

.feature-box {
    background: #ffffff;
    padding: 40px 30px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid #f1f5f9;
    transition: all 0.3s ease;
    height: 100%;
}

.feature-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: var(--secondary-color);
}

.feature-icon-wrapper {
    width: 70px;
    height: 70px;
    border-radius: 16px;
    background-color: rgba(47, 165, 251, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: var(--secondary-color);
    font-size: 28px;
}

.feature-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 15px;
}

.feature-desc {
    font-size: 14px;
    line-height: 1.6;
    color: #64748b;
    margin: 0;
}

/* Agents Section */
.agent-card {
    background-color: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    border: 1px solid #f1f5f9;
    text-align: center;
    transition: all 0.3s ease;
    margin-bottom: 30px;
}

.agent-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--hover-shadow);
    border-color: var(--secondary-color);
}

.agent-thumb-wrapper {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.agent-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.5s ease;
}

.agent-card:hover .agent-photo {
    transform: scale(1.05);
}

.agent-socials {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    gap: 15px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 10;
}

.agent-card:hover .agent-socials {
    bottom: 20px;
    opacity: 1;
}

.agent-socials a {
    color: var(--primary-color);
    font-size: 16px;
    transition: color 0.3s ease;
}

.agent-socials a:hover {
    color: var(--secondary-color);
}

.agent-card-body {
    padding: 25px;
}

.agent-card-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 5px;
}

.agent-card-title {
    color: var(--secondary-color);
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Call to Action */
.cta-section {
    background: linear-gradient(rgba(30, 48, 110, 0.85), rgba(30, 48, 110, 0.85)), 
                url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1920&q=80') no-repeat center center;
    background-size: cover;
    padding: 100px 0;
    color: #ffffff;
    text-align: center;
}

.cta-title {
    font-size: 40px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 20px;
}

.cta-desc {
    font-size: 18px;
    max-width: 700px;
    margin: 0 auto 40px;
    color: #e2e8f0;
}

.btn-cta-submit {
    background-color: var(--secondary-color);
    color: #ffffff;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 16px;
    padding: 14px 40px;
    border-radius: 50px;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(47, 165, 251, 0.4);
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-cta-submit:hover {
    background-color: #ffffff;
    color: var(--primary-color);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Testimonials */
.testimonial-card {
    background: #ffffff;
    padding: 40px;
    border-radius: 20px;
    box-shadow: var(--card-shadow);
    border: 1px solid #f1f5f9;
    text-align: center;
}

.client-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 20px;
    border: 4px solid var(--tertiary-color);
}

.testimonial-rating {
    color: #fbbf24;
    font-size: 18px;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 15px;
    line-height: 1.8;
    font-style: italic;
    color: #475569;
    margin-bottom: 25px;
}

.client-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 5px;
}

.client-role {
    font-size: 12px;
    text-transform: uppercase;
    color: var(--secondary-color);
    font-weight: 600;
    letter-spacing: 1px;
}

/* Footer */
footer {
    background-color: #0b132b;
    color: #94a3b8;
    padding: 80px 0 0;
    font-size: 14px;
}

.footer-title {
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-desc {
    line-height: 1.8;
    margin-bottom: 25px;
}

.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: #94a3b8;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--secondary-color);
    transform: translateX(5px);
}

.footer-contact-info p {
    margin-bottom: 12px;
    display: flex;
    align-items: center;
}

.footer-contact-info i {
    color: var(--secondary-color);
    margin-right: 12px;
    font-size: 16px;
    width: 20px;
}

.footer-social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.footer-social-links a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: all 0.3s ease;
}

.footer-social-links a:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-input {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    flex-grow: 1;
}

.newsletter-input:focus {
    border-color: var(--secondary-color);
}

.btn-newsletter {
    background-color: var(--secondary-color);
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-newsletter:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    background-color: #050a18;
    padding: 25px 0;
    margin-top: 80px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-bottom p {
    margin: 0;
    font-size: 13px;
    color: #64748b;
}

.footer-bottom-links {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}

.footer-bottom-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 13px;
}

.footer-bottom-links a:hover {
    color: var(--secondary-color);
}

/* Property Detail Page Styles */
.property-detail-header {
    border-bottom: 1px solid #e2e8f0;
}

.property-detail-title {
    font-size: 32px;
    font-weight: 800;
    color: var(--primary-color);
}

.property-detail-price {
    font-size: 32px;
    font-weight: 800;
    color: var(--secondary-color);
}

.gallery-container {
    position: relative;
}

.main-image-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
}

.gallery-thumb-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.gallery-thumb-wrapper:hover, .gallery-thumb-wrapper.active {
    border-color: var(--secondary-color);
    transform: scale(1.05);
}

.gallery-thumb-wrapper img {
    transition: all 0.3s ease;
}

.gallery-thumb-wrapper:hover img {
    opacity: 0.85;
}

.table td {
    padding: 12px 0;
    font-size: 15px;
    color: #475569;
}

.fw-extrabold {
    font-weight: 800;
}

.fs-7 {
    font-size: 0.8rem !important;
}

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