/* =========================================
   HOME DESIGN (Features, Listings, CTA)
   ========================================= */

/* GLOBAL UTILITIES for Home */
.section-padding {
    padding: 5rem 0;
}

.text-center {
    text-align: center;
}

.mb-5 {
    margin-bottom: 3rem;
}

/* ============================================
   HERO SECTION (Exact Design)
   ============================================ */
:root {
    --color-brand-blue: #0a2d5c;
    --color-brand-yellow: #FFC107;
    --color-bg-light: #F0F2F5;
}

/* CONTAINER UTILITY */
.container {
    width: 100%;
    max-width: 1200px;
    /* Standard Max Width */
    margin-right: auto;
    margin-left: auto;
    padding-right: 1.5rem;
    /* px-6 */
    padding-left: 1.5rem;
}

/* OVERRIDE HEADER LOGO (Critical) */
.site-logo-text {
    color: var(--color-brand-blue) !important;
}

.hero-section-new {
    position: relative;
    padding: 4rem 0 6rem !important;
    background-color: var(--color-bg-light) !important;
    /* overflow: hidden; Removed to allow scrolling on mobile if content overflows */
    overflow-x: hidden;
    /* Prevent horizontal scroll only */
    font-family: 'Poppins', sans-serif !important;
}

/* Background Pattern */
.hero-bg-pattern {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    pointer-events: none;
    background-image: radial-gradient(#0a2d5c 1px, transparent 1px);
    background-size: 32px 32px;
}

.container.relative {
    position: relative;
}

.z-10 {
    z-index: 10;
}

.hero-flex-wrapper {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .hero-flex-wrapper {
        flex-direction: row;
        gap: 5rem;
    }
}

/* Text Column */
.hero-text-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    text-align: center;
    max-width: 650px;
}

@media (min-width: 1024px) {
    .hero-text-col {
        text-align: left;
    }
}

.location-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    background-color: rgba(10, 45, 92, 0.1);
    border-radius: 999px;
    width: fit-content;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .location-badge {
        margin: 0;
    }
}

.location-badge i {
    color: var(--color-brand-blue);
    font-size: 0.875rem;
}

.location-badge span {
    color: var(--color-brand-blue);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.hero-main-title {
    font-family: 'Poppins', sans-serif;
    color: var(--color-brand-blue);
    font-weight: 700;
    font-size: 2.25rem;
    line-height: 1.1;
    letter-spacing: -0.025em;
    margin: 0;
}

@media (min-width: 640px) {
    .hero-main-title {
        font-size: 3rem;
    }
}

@media (min-width: 1024px) {
    .hero-main-title {
        font-size: 3.75rem;
    }
}

.hero-sub-text {
    font-family: 'Lato', sans-serif;
    color: rgba(10, 45, 92, 0.8);
    font-size: 1.125rem;
    line-height: 1.625;
    max-width: 32rem;
    margin: 0 auto;
}

@media (min-width: 1024px) {
    .hero-sub-text {
        margin: 0;
        font-size: 1.25rem;
    }
}

/* Trust Indicators */
.trust-indicators {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

@media (min-width: 1024px) {
    .trust-indicators {
        justify-content: flex-start;
    }
}

.trust-pill {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: white;
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    font-size: 0.875rem;
    font-weight: 600;
    color: rgba(10, 45, 92, 0.7);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.icon-green {
    color: #16a34a;
    font-size: 1.1rem;
}

.icon-blue {
    color: #2563eb;
    font-size: 1.1rem;
}

/* CTA Group */
.hero-cta-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
    justify-content: center;
}

@media (min-width: 640px) {
    .hero-cta-group {
        flex-direction: row;
    }
}

@media (min-width: 1024px) {
    .hero-cta-group {
        justify-content: flex-start;
    }
}

.btn-yellow-shadow {
    background-color: var(--color-brand-yellow);
    color: #333;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
    height: 3.5rem;
    padding: 0 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(255, 193, 7, 0.2);
    transition: transform 0.2s, background-color 0.2s;
    text-decoration: none;
    min-width: 240px;
}

.btn-yellow-shadow:hover {
    background-color: #ffcd38;
    transform: translateY(-2px);
}

.btn-white-outline {
    background-color: white;
    color: var(--color-brand-blue);
    border: 1px solid #e5e7eb;
    font-family: 'Poppins', sans-serif;
    font-weight: 500;
    height: 3.5rem;
    padding: 0 2rem;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background-color 0.2s;
    text-decoration: none;
}

.btn-white-outline:hover {
    background-color: #f9fafb;
}

/* Image Column */
.hero-image-col {
    flex: 1;
    width: 100%;
    max-width: 600px;
}

.hero-image-group {
    position: relative;
}

/* Blobs */
.blob {
    position: absolute;
    width: 16rem;
    height: 16rem;
    border-radius: 999px;
    filter: blur(64px);
    z-index: -1;
}

.blob-yellow {
    background-color: rgba(255, 193, 7, 0.2);
    top: -3rem;
    right: -3rem;
}

.blob-blue {
    background-color: rgba(10, 45, 92, 0.2);
    bottom: -2rem;
    left: -2rem;
}

/* Main Card */
.hero-image-card {
    background: white;
    padding: 0.5rem;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: rotate(1deg);
    transition: transform 0.5s;
    overflow: hidden;
}

.hero-image-card:hover {
    transform: rotate(0deg);
}

.hero-image-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    width: 100%;
    overflow: hidden;
    border-radius: 0.75rem;
    background-color: #e5e7eb;
}

.hero-img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Image Overlay Label */
.image-overlay-label {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.verified-icon-circle {
    width: 2.5rem;
    height: 2.5rem;
    background-color: #dcfce7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.verified-icon-circle i {
    color: #15803d;
}

.overlay-verified-text {
    font-size: 0.75rem;
    color: #6b7280;
    font-weight: 600;
    text-transform: uppercase;
    margin: 0;
}

.overlay-title-text {
    font-size: 0.875rem;
    font-weight: 700;
    color: #111827;
    margin: 0;
}

/* Floating Badge Top Right */
.floating-badge-new {
    position: absolute;
    top: -1.5rem;
    right: -1.5rem;
    background-color: var(--color-brand-blue);
    color: white;
    padding: 1rem;
    border-radius: 0.75rem;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: bounce 3s infinite;
}

@media (min-width: 1024px) {
    .floating-badge-new {
        top: 2rem;
        right: -2rem;
    }
}

@keyframes bounce {

    0%,
    100% {
        transform: translateY(-5%);
    }

    50% {
        transform: translateY(0);
    }
}

.fb-label {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.8;
}

.fb-count {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
}

.fb-sub {
    font-size: 0.75rem;
    font-weight: 500;
    opacity: 0.8;
}

/* =========================================
   FEATURES SECTION (Why Choose EmeFa?)
   ========================================= */
.features-section {
    background-color: white !important;
    /* Force WHITE to contrast with Hero (Gray) */
    padding: 5rem 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.section-header {
    text-align: center;
    max-width: 960px;
    /* MATCH CODE.HTML */
    margin: 0 auto 3rem;
}

@media (min-width: 768px) {
    .section-header {
        text-align: left;
        margin-left: auto;
        margin-right: auto;
    }
}

.section-title {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--color-brand-blue) !important;
    margin-bottom: 1rem;
    line-height: 1.2;
    background: transparent !important;
    -webkit-text-fill-color: initial !important;
}

@media (min-width: 768px) {
    .section-title {
        font-size: 2.25rem;
    }
}

.section-subtitle {
    font-size: 1.125rem;
    color: #64748B;
    max-width: 42rem;
    line-height: 1.6;
}

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    /* MATCH CODE.HTML gap-6 */
    max-width: 960px;
    /* MATCH CODE.HTML */
    margin: 0 auto;
}

@media (min-width: 768px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card-new {
    background-color: white;
    border: 1px solid rgba(10, 45, 92, 0.1);
    padding: 2rem;
    /* MATCH CODE.HTML p-8 */
    border-radius: 2rem;
    /* Increased to 2rem for rounded look */
    /* MATCH CODE.HTML rounded-2xl (16px) -> User requested more rounded */
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    /* shadow-sm match */
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.feature-card-new:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: rgba(10, 45, 92, 0.2);
}

.feature-icon-wrapper-new {
    width: 3.5rem;
    /* MATCH CODE.HTML w-14 (56px) */
    height: 3.5rem;
    /* MATCH CODE.HTML h-14 */
    border-radius: 0.75rem;
    /* MATCH CODE.HTML rounded-xl (12px) */
    background-color: rgba(10, 45, 92, 0.05);
    color: var(--color-brand-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    /* MATCH CODE.HTML mb-6 (24px) */
    transition: transform 0.3s ease;
}

.feature-card-new:hover .feature-icon-wrapper-new {
    transform: scale(1.1);
}

.feature-icon-new {
    font-size: 2rem;
}

.feature-title-new {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-brand-blue);
    margin-bottom: 0.75rem;
    font-family: 'Poppins', sans-serif;
}

.feature-text-new {
    color: #64748B;
    line-height: 1.625;
}

/* =========================================
   LISTINGS SECTION ("Fresh on the Market")
   ========================================= */
.listings-section {
    background-color: var(--color-bg-light) !important;
    /* Force GRAY */
    padding: 6rem 1rem;
}

.listings-header-flex {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2.5rem;
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
}

@media (min-width: 640px) {
    .listings-header-flex {
        flex-direction: row;
        justify-content: space-between;
        align-items: flex-end;
    }
}

.btn-view-all {
    color: var(--color-brand-blue);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    transition: color 0.2s;
}

.btn-view-all:hover {
    color: #072346;
    text-decoration: underline;
}

.listings-grid-new {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1080px;
    margin: 0 auto;
}

@media (min-width: 640px) {
    .listings-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .listings-grid-new {
        grid-template-columns: repeat(3, 1fr);
    }
}

.listing-card-new {
    background-color: white;
    border-radius: 2rem;
    /* Increased for rounder cards */
    overflow: hidden;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.listing-card-new:hover {
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    border-color: rgba(10, 45, 92, 0.2);
    transform: translateY(-2px);
}

.listing-img-wrapper-new {
    position: relative;
    height: 16rem;
    overflow: hidden;
}

.listing-img-new {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.listing-card-new:hover .listing-img-new {
    transform: scale(1.05);
}

.badge-verified-new {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-brand-blue);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    z-index: 10;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.badge-verified-new i {
    color: var(--color-brand-blue);
}

.badge-price-new {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    background-color: var(--color-brand-yellow);
    color: var(--color-brand-blue);
    padding: 0.375rem 0.75rem;
    border-radius: 999px;
    /* Pill shape */
    font-size: 0.875rem;
    font-weight: 700;
    z-index: 10;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.listing-content-new {
    padding: 1.25rem;
}

.listing-title-new {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-brand-blue);
    font-family: 'Poppins', sans-serif;
    margin-bottom: 0.5rem;
    line-height: 1.25;
}

.listing-title-new a {
    color: inherit;
    text-decoration: none;
}

.listing-loc-new {
    font-size: 0.875rem;
    color: #64748B;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.listing-meta-new {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.875rem;
    font-weight: 500;
    color: #334155;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.meta-item i {
    font-size: 1.125rem;
    color: var(--color-brand-blue);
}

/* =========================================
   CTA SECTION (Dual Cards)
   ========================================= */
.cta-section-new {
    padding: 5rem 1rem;
    background-color: white !important;
    /* Force WHITE to alternate from Listings (Gray) */
}

.cta-grid-new {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    max-width: 1080px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .cta-grid-new {
        grid-template-columns: repeat(2, 1fr);
    }
}

.cta-card-new {
    position: relative;
    border-radius: 1.5rem;
    overflow: hidden;
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 300px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.cta-bg-rent {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    /* Gradient handled inline or via utility */
    transition: transform 0.7s ease;
    z-index: 0;
}

.cta-card-new:hover .cta-bg-rent {
    transform: scale(1.1);
}

.cta-content-wrapper {
    position: relative;
    z-index: 10;
}

.cta-heading-new {
    font-size: 1.875rem;
    /* 3xl */
    font-weight: 700;
    color: white;
    margin-bottom: 0.5rem;
    font-family: 'Poppins', sans-serif;
}

.cta-desc-new {
    color: #e2e8f0;
    margin-bottom: 2rem;
    max-width: 20rem;
    line-height: 1.5;
}

.btn-cta-yellow {
    background-color: var(--color-brand-yellow);
    color: var(--color-brand-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s;
}

.btn-cta-yellow:hover {
    background-color: #e0a800;
}

.btn-cta-white {
    background-color: white;
    color: var(--color-brand-blue);
    padding: 0.75rem 1.5rem;
    border-radius: 0.75rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    transition: background-color 0.2s;
}

.btn-cta-white:hover {
    background-color: #f1f5f9;
}

/* =========================================
   FOOTER (Multi-Column Design)
   ========================================= */
.site-footer-new {
    background: linear-gradient(135deg, #0a2d5c 0%, #0f3a6f 100%);
    color: rgba(255, 255, 255, 0.85);
    padding: 4rem 1rem 2rem;
    position: relative;
}

.footer-container-new {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-columns {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 640px) {
    .footer-columns {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .footer-columns {
        grid-template-columns: 2fr 1fr 1fr 1fr;
        gap: 3rem;
    }
}

/* Brand Column */
.footer-col-brand {
    max-width: 350px;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.footer-logo-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.5rem;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.footer-brand-name {
    color: white;
    font-weight: 700;
    font-size: 2rem;
    font-family: 'Poppins', sans-serif;
    margin-bottom: 1rem;
    letter-spacing: -0.5px;
}

.footer-brand-desc {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Social Icons */
.footer-social {
    display: flex;
    gap: 0.75rem;
}

.footer-social a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(10px);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-social a:hover {
    background: var(--color-brand-yellow);
    color: var(--color-brand-blue);
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 16px rgba(255, 193, 7, 0.3);
    border-color: var(--color-brand-yellow);
}

/* Footer Columns */
.footer-col-title {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    font-family: 'Poppins', sans-serif;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links li,
.footer-contact li {
    margin-bottom: 0.75rem;
}

.footer-links a,
.footer-contact a,
.footer-contact span {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s;
    display: inline-block;
}

.footer-links a:hover,
.footer-contact a:hover {
    color: var(--color-brand-yellow);
    padding-left: 0.25rem;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.footer-contact i {
    color: var(--color-brand-yellow);
    margin-top: 0.2rem;
    font-size: 0.875rem;
    min-width: 1rem;
}

/* Footer Bottom */
.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    margin: 0;
}

.footer-copyright strong {
    color: white;
    font-weight: 600;
}

.footer-legal-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

.footer-legal-links a {
    color: rgba(255, 255, 255, 0.6);
    text-decoration: none;
    font-size: 0.8rem;
    transition: color 0.2s;
}

.footer-legal-links a:hover {
    color: var(--color-brand-yellow);
}

.footer-legal-links span {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
}

/* Scroll to Top Button */
.scroll-to-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3.25rem;
    height: 3.25rem;
    background: linear-gradient(135deg, var(--color-brand-yellow) 0%, #ffd54f 100%);
    color: var(--color-brand-blue);
    border: none;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 20px rgba(255, 193, 7, 0.3);
    z-index: 1000;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.scroll-to-top:hover {
    background: linear-gradient(135deg, #0a2d5c 0%, #0f3a6f 100%);
    color: white;
    transform: translateY(-5px) scale(1.08);
    box-shadow: 0 8px 30px rgba(10, 45, 92, 0.4);
}

.scroll-to-top i {
    font-size: 1.125rem;
}