/* 
 * NestQuestSA Landing Page Styles
 * Modern, distinctive design for South African property portal
 */

/* ===== CSS Variables ===== */
:root {
    --landing-font-display: 'Fraunces', Georgia, serif;
    --landing-font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Primary palette - Deep teal/forest inspired by SA landscapes */
    --landing-primary: #0D4F4F;
    --landing-primary-dark: #083838;
    --landing-primary-light: #1A6B6B;
    
    /* Accent - Warm amber/gold inspired by SA sunsets */
    --landing-accent: #E5A84B;
    --landing-accent-light: #F0C168;
    --landing-accent-dark: #C4872A;
    
    /* Neutrals */
    --landing-dark: #1A1F2B;
    --landing-text: #2D3142;
    --landing-text-muted: #6B7280;
    --landing-light: #F7F8FA;
    --landing-white: #FFFFFF;
    --landing-border: #E5E7EB;
    
    /* Shadows */
    --landing-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --landing-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --landing-shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --landing-shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    /* Spacing */
    --landing-section-padding: clamp(3rem, 8vw, 6rem);
}

/* ===== Base Styles ===== */
.landing-page {
    font-family: var(--landing-font-body);
    color: var(--landing-text);
    line-height: 1.6;
    overflow-x: hidden;
}

.section-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 clamp(1rem, 4vw, 2rem);
}

/* ===== Hero Section ===== */
.hero-section {
    position: relative;
    min-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 6rem 1.5rem 4rem;
    overflow: hidden;
    margin-top: -70px; /* Offset for sticky navbar */
    padding-top: calc(70px + 4rem); /* Navbar height + desired padding */
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.03;
    pointer-events: none;
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}

.hero-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13, 79, 79, 0.85) 0%, rgba(8, 56, 56, 0.7) 50%, rgba(10, 41, 41, 0.9) 100%);
}

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    transform: scale(1.05);
    animation: slowZoom 15s infinite alternate ease-in-out;
}

@keyframes slowZoom {
    from { transform: scale(1); }
    to { transform: scale(1.1); }
}

/* Hero Video Background */
.hero-video-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 0;
}

.hero-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.1); /* Slight zoom for cinematic feel */
    transition: opacity 0.5s ease-in-out;
}

/* Hidden video for preloading next in playlist */
.hero-video-next {
    position: absolute;
    top: 0;
    left: 0;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.hero-image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: saturate(1.2);
}

.hero-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.08;
    background-image: 
        radial-gradient(circle at 25% 25%, var(--landing-accent) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, var(--landing-accent-light) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.15'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 1140px;
    width: 100%;
}

.hero-badge {
    display: inline-block;
    background: rgba(229, 168, 75, 0.2);
    color: var(--landing-accent);
    padding: 0.5rem 1.25rem;
    border-radius: 100px;
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.025em;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(229, 168, 75, 0.3);
    animation: fadeInDown 0.6s ease-out;
}

.hero-title {
    font-family: var(--landing-font-display);
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 600;
    color: var(--landing-white);
    line-height: 1.15;
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 0.6s ease-out 0.1s both;
}

.hero-title .text-accent {
    color: var(--landing-accent);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.85);
    max-width: 600px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.6s ease-out 0.2s both;
}

/* Hero Search Card - Glassmorphism Refinement */
.hero-search-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.4) inset;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) 0.3s both;
    text-align: left;
}

.search-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.search-tab {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: 2px solid var(--landing-border);
    background: var(--landing-white);
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--landing-text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-tab:hover {
    border-color: var(--landing-primary-light);
    color: var(--landing-primary);
}

.search-tab.active {
    background: var(--landing-primary);
    border-color: var(--landing-primary);
    color: var(--landing-white);
}

.search-fields-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 0.8fr auto;
    gap: 1rem;
    align-items: end;
}

.location-wrapper {
    position: relative;
    width: 100%;
}

.autocomplete-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 8px;
    box-shadow: var(--landing-shadow-lg);
    z-index: 1000;
    margin-top: 4px;
    max-height: 300px;
    overflow-y: auto;
    border: 1px solid var(--landing-border);
    display: none;
}

.autocomplete-dropdown.show {
    display: block;
}

.autocomplete-item {
    padding: 0.75rem 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--landing-light);
    transition: background 0.2s ease;
    display: flex;
    flex-direction: column;
}

.autocomplete-item:last-child {
    border-bottom: none;
}

.autocomplete-item:hover {
    background: var(--landing-light);
}

.autocomplete-item .item-name {
    font-weight: 600;
    color: var(--landing-dark);
    margin-bottom: 2px;
}

.autocomplete-item .item-type {
    font-size: 0.7rem;
    color: var(--landing-accent-dark);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
}

/* Location Input Focus Effect */
.location-wrapper input:focus {
    box-shadow: 0 0 0 4px rgba(13, 79, 79, 0.1);
    border-color: var(--landing-primary);
}

/* Custom Scrollbar for Autocomplete */
.autocomplete-dropdown::-webkit-scrollbar {
    width: 6px;
}

.autocomplete-dropdown::-webkit-scrollbar-track {
    background: var(--landing-light);
}

.autocomplete-dropdown::-webkit-scrollbar-thumb {
    background: var(--landing-border);
    border-radius: 10px;
}

.autocomplete-dropdown::-webkit-scrollbar-thumb:hover {
    background: var(--landing-text-muted);
}

.autocomplete-loading {
    padding: 1rem;
    text-align: center;
    color: var(--landing-text-muted);
}

.search-field-submit {
    display: flex;
    align-items: flex-end;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.search-field label {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--landing-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.search-field label i {
    color: var(--landing-primary);
    margin-right: 0.25rem;
}

.search-input {
    padding: 0.875rem 1rem;
    border: 2px solid var(--landing-border);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: var(--landing-font-body);
    background: var(--landing-white);
    color: var(--landing-text);
    transition: border-color 0.2s ease;
    cursor: pointer;
}

.search-input:focus {
    outline: none;
    border-color: var(--landing-primary);
}

.search-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    background: var(--landing-accent);
    color: var(--landing-dark);
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 52px;
}

.search-submit:hover {
    background: var(--landing-accent-dark);
    transform: translateY(-1px);
    box-shadow: var(--landing-shadow-md);
}

/* Hero Stats */
.hero-stats {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
    animation: fadeInUp 0.6s ease-out 0.5s both;
}

.hero-stat {
    text-align: center;
}

.hero-stat-number {
    display: block;
    font-family: var(--landing-font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--landing-accent);
}

.hero-stat-label {
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: rgba(255, 255, 255, 0.2);
}

/* ===== Section Headers ===== */
.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.5rem;
    gap: 1rem;
}

.section-header-center {
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.section-header-center .section-header-text {
    text-align: center;
}

.section-tag {
    display: inline-block;
    background: rgba(13, 79, 79, 0.1);
    color: var(--landing-primary);
    padding: 0.35rem 0.85rem;
    border-radius: 100px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 0.75rem;
}

.section-title {
    font-family: var(--landing-font-display);
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    font-weight: 600;
    color: var(--landing-dark);
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--landing-text-muted);
    max-width: 500px;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--landing-primary);
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: gap 0.2s ease;
}

.section-link:hover {
    gap: 0.75rem;
    color: var(--landing-primary-dark);
}

/* ===== Featured Properties Section ===== */
.featured-section {
    padding: var(--landing-section-padding) 0;
    background: var(--landing-light);
}

.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.property-card {
    background: var(--landing-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--landing-shadow-sm);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.property-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.property-card:hover {
    box-shadow: 
        0 20px 25px -5px rgba(0, 0, 0, 0.1), 
        0 10px 10px -5px rgba(0, 0, 0, 0.04);
    transform: translateY(-8px);
}

.property-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.property-card-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

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

.property-card-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.badge {
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-featured {
    background: var(--landing-accent);
    color: var(--landing-dark);
}

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

.badge-rent {
    background: #6366F1;
    color: var(--landing-white);
}

.badge-new {
    background: linear-gradient(135deg, #10B981 0%, #059669 100%);
    color: var(--landing-white);
    animation: badge-pulse 2s ease-in-out infinite;
}

.badge-reduced {
    background: linear-gradient(135deg, #EF4444 0%, #DC2626 100%);
    color: var(--landing-white);
}

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

.property-card-content {
    padding: 1.25rem;
}

.property-card-price {
    font-family: var(--landing-font-display);
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--landing-primary);
    margin-bottom: 0.35rem;
}

.property-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--landing-dark);
    margin-bottom: 0.5rem;
    line-height: 1.4;
}

.property-card-location {
    font-size: 0.875rem;
    color: var(--landing-text-muted);
    margin-bottom: 0.85rem;
}

.property-card-location i {
    color: var(--landing-primary);
    margin-right: 0.25rem;
}

.property-card-features {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: var(--landing-text-muted);
    padding-top: 0.85rem;
    border-top: 1px solid var(--landing-border);
}

.property-card-features span {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.property-card-features i {
    color: var(--landing-primary-light);
}

/* ===== Popular Areas Section ===== */
.areas-section {
    padding: var(--landing-section-padding) 0;
    background: var(--landing-white);
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.25rem;
}

.area-card {
    position: relative;
    height: 180px;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.area-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.area-card-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    transition: transform 0.4s ease;
    background-size: cover;
    background-position: center;
}

.area-card:hover .area-card-bg {
    transform: scale(1.1);
}

/* Different background images with dark overlays for each area card */
.area-bg-1 { 
    background-image: linear-gradient(135deg, rgba(13, 79, 79, 0.7) 0%, rgba(26, 107, 107, 0.5) 100%), url('../images/cape_town_bg.jpg'); 
    background-size: cover;
    background-position: center;
}
.area-bg-2 { 
    background-image: linear-gradient(135deg, rgba(45, 49, 66, 0.7) 0%, rgba(79, 93, 117, 0.5) 100%), url('../images/johannesburg_bg.jpg'); 
    background-size: cover;
    background-position: center;
}
.area-bg-3 { 
    background-image: linear-gradient(135deg, rgba(91, 75, 138, 0.7) 0%, rgba(124, 110, 176, 0.5) 100%), url('../images/pretoria_bg.jpg'); 
    background-size: cover;
    background-position: center;
}
.area-bg-4 { 
    background-image: linear-gradient(135deg, rgba(139, 69, 19, 0.7) 0%, rgba(160, 82, 45, 0.5) 100%), url('../images/premium_default_property.jpg'); 
    background-size: cover;
    background-position: center;
}
.area-bg-5 { 
    background-image: linear-gradient(135deg, rgba(15, 76, 92, 0.7) 0%, rgba(27, 122, 142, 0.5) 100%), url('../images/cape_town_bg.jpg'); 
    background-size: cover;
    background-position: center;
}
.area-bg-6 { 
    background-image: linear-gradient(135deg, rgba(61, 64, 91, 0.7) 0%, rgba(93, 97, 136, 0.5) 100%), url('../images/johannesburg_bg.jpg'); 
    background-size: cover;
    background-position: center;
}

.area-card-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.25rem;
    background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, transparent 100%);
}

.area-card-title {
    font-family: var(--landing-font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--landing-white);
    margin-bottom: 0.15rem;
}

.area-card-province {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0.5rem;
}

.area-card-count {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    color: var(--landing-white);
    padding: 0.25rem 0.6rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    width: fit-content;
}

/* ===== Latest Listings Section ===== */
.latest-section {
    padding: var(--landing-section-padding) 0;
    background: var(--landing-light);
}

.latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.latest-card {
    background: var(--landing-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--landing-shadow-sm);
    display: flex;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.latest-card.visible {
    opacity: 1;
    transform: translateY(0);
}

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

.latest-card-link {
    display: flex;
    text-decoration: none;
    color: inherit;
    width: 100%;
}

.latest-card-image {
    flex-shrink: 0;
    width: 120px;
    height: 120px;
}

.latest-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.latest-card-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.latest-card-type {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--landing-primary);
    margin-bottom: 0.25rem;
}

.latest-card-price {
    font-family: var(--landing-font-display);
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--landing-dark);
    margin-bottom: 0.25rem;
}

.latest-card-title {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--landing-text);
    margin-bottom: 0.35rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.latest-card-location {
    font-size: 0.8rem;
    color: var(--landing-text-muted);
}

.latest-card-location i {
    color: var(--landing-primary-light);
    margin-right: 0.25rem;
}

/* ===== Features Section ===== */
.features-section {
    padding: var(--landing-section-padding) 0;
    background: var(--landing-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: 12px;
    background: var(--landing-light);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.feature-card.visible {
    opacity: 1;
    transform: translateY(0);
}

.feature-card:hover {
    background: var(--landing-white);
    box-shadow: var(--landing-shadow-md);
}

.feature-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1.25rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--landing-primary) 0%, var(--landing-primary-light) 100%);
    border-radius: 16px;
    font-size: 1.5rem;
    color: var(--landing-white);
}

.feature-title {
    font-family: var(--landing-font-display);
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--landing-dark);
    margin-bottom: 0.75rem;
}

.feature-desc {
    font-size: 0.9rem;
    color: var(--landing-text-muted);
    line-height: 1.6;
}

/* ===== Testimonials Section ===== */
.testimonials-section {
    padding: var(--landing-section-padding) 0;
    background: var(--landing-light);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 1rem;
}

.testimonial-card {
    background: var(--landing-white);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--landing-shadow-sm);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-family: var(--landing-font-display);
    font-size: 4rem;
    color: var(--landing-primary);
    opacity: 0.1;
    line-height: 1;
}

.testimonial-card:hover {
    box-shadow: var(--landing-shadow-lg);
    transform: translateY(-4px);
}

.testimonial-featured {
    background: linear-gradient(135deg, var(--landing-primary) 0%, var(--landing-primary-light) 100%);
    color: var(--landing-white);
}

.testimonial-featured::before {
    color: var(--landing-white);
    opacity: 0.2;
}

.testimonial-featured .testimonial-quote {
    color: rgba(255, 255, 255, 0.95);
}

.testimonial-featured .testimonial-name {
    color: var(--landing-white);
}

.testimonial-featured .testimonial-location {
    color: rgba(255, 255, 255, 0.8);
}

.testimonial-rating {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 1rem;
    color: var(--landing-accent);
}

.testimonial-featured .testimonial-rating {
    color: var(--landing-accent-light);
}

.testimonial-rating i {
    font-size: 0.9rem;
}

.testimonial-quote {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--landing-text);
    flex-grow: 1;
    margin-bottom: 1.5rem;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--landing-border);
}

.testimonial-featured .testimonial-author {
    border-top-color: rgba(255, 255, 255, 0.2);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--landing-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--landing-primary);
    font-size: 1.25rem;
}

.testimonial-featured .testimonial-avatar {
    background: rgba(255, 255, 255, 0.2);
    color: var(--landing-white);
}

.testimonial-info {
    display: flex;
    flex-direction: column;
}

.testimonial-name {
    font-weight: 600;
    color: var(--landing-dark);
}

.testimonial-location {
    font-size: 0.85rem;
    color: var(--landing-text-muted);
}

/* ===== CTA Section ===== */
.cta-section {
    position: relative;
    padding: var(--landing-section-padding) 0;
    overflow: hidden;
}

.cta-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.cta-gradient {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--landing-dark) 0%, #2D3142 50%, var(--landing-primary-dark) 100%);
}

.cta-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 650px;
    margin: 0 auto;
}

.cta-title {
    font-family: var(--landing-font-display);
    font-size: clamp(1.75rem, 4vw, 2.25rem);
    font-weight: 600;
    color: var(--landing-white);
    margin-bottom: 1rem;
    line-height: 1.25;
}

.cta-subtitle {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 2rem;
    line-height: 1.7;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.9rem 1.75rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.cta-btn-primary {
    background: var(--landing-accent);
    color: var(--landing-dark);
}

.cta-btn-primary:hover {
    background: var(--landing-accent-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 168, 75, 0.4);
}

.cta-btn-secondary {
    background: transparent;
    color: var(--landing-white);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.5);
    color: var(--landing-white);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== Responsive Styles ===== */
@media (max-width: 992px) {
    .search-fields-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .search-field-location {
        grid-column: span 2;
    }
    
    .search-field-submit {
        grid-column: span 2;
    }
}

/* Tablet adjustments */
@media (max-width: 991.98px) {
    .hero-section {
        margin-top: 0; /* Remove negative margin on tablets */
        padding-top: 5rem;
    }
}

@media (max-width: 768px) {
    .hero-section {
        min-height: 100vh;
        padding: 3rem 1rem 3rem;
        margin-top: 0; /* Remove negative margin on mobile */
        padding-top: 7rem; /* Increased padding for mobile navbar + breathing room */
        justify-content: flex-start;
    }
    
    .hero-text {
        margin-bottom: 2rem;
    }
    
    .hero-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .search-fields-grid {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
    
    .search-field-location,
    .search-field-submit {
        grid-column: span 1;
    }
    
    .hero-stats {
        gap: 1.5rem;
        flex-wrap: wrap;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .areas-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .latest-card-link {
        flex-direction: column;
    }
    
    .latest-card-image {
        width: 100%;
        height: 150px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-btn {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .areas-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stat-divider {
        display: none;
    }
    
    .hero-stats {
        gap: 1rem;
    }
}
/* ===== Fat Footer Styles ===== */
.fat-footer {
    background-color: var(--landing-dark);
    color: var(--landing-white);
    padding: 5rem 0 2rem;
    margin-top: 0;
}

.footer-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 4rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    margin-bottom: 1.5rem;
}

.footer-logo-img {
    height: 40px;
    width: auto;
    filter: brightness(0) invert(1);
}

.footer-brand-name {
    font-family: var(--landing-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--landing-white);
}

.footer-tagline {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 2rem;
    line-height: 1.7;
    max-width: 320px;
}

.footer-social {
    display: flex;
    gap: 1rem;
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: var(--landing-white);
    text-decoration: none;
    transition: all 0.2s ease;
}

.footer-social a:hover {
    background: var(--landing-primary);
    transform: translateY(-3px);
}

.footer-title {
    font-family: var(--landing-font-display);
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--landing-white);
}

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

.footer-links li, .footer-contact li {
    margin-bottom: 1rem;
}

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

.footer-links a:hover {
    color: var(--landing-accent);
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
}

.footer-contact i {
    color: var(--landing-accent);
    margin-top: 0.25rem;
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

.footer-legal {
    display: flex;
    gap: 2rem;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: var(--landing-white);
}

@media (max-width: 992px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-legal {
        justify-content: center;
        gap: 1rem;
    }
}

/* =========================================
   Global Premium Navbar Styling (All Pages)
   ========================================= */

/* Override default bootstrap background with Premium Teal */
.navbar-custom {
    background-color: var(--landing-primary-dark, #083838) !important;
    padding: 0.75rem 0;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Nav Links Styling */
.navbar-custom .nav-link {
    font-family: var(--landing-font-body, 'DM Sans', sans-serif);
    font-weight: 500;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.85) !important;
    transition: all 0.2s ease;
    padding: 0.5rem 1rem !important;
    position: relative;
}

.navbar-custom .nav-link:hover,
.navbar-custom .nav-link.show {
    color: var(--landing-accent, #E5A84B) !important;
    transform: translateY(-1px);
}

/* Icons in nav links */
.navbar-custom .nav-link i {
    color: var(--landing-accent, #E5A84B);
    opacity: 0.8;
    margin-right: 6px;
    transition: opacity 0.2s ease;
}

.navbar-custom .nav-link:hover i {
    opacity: 1;
}

/* Dropdown Menus - Premium Look */
.navbar-custom .dropdown-menu {
    border: none;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    padding: 0.75rem;
    margin-top: 10px;
    animation: fadeInUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.navbar-custom .dropdown-item {
    font-family: var(--landing-font-body, 'DM Sans', sans-serif);
    font-size: 0.9rem;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    color: var(--landing-text, #2D3142);
    transition: all 0.2s ease;
    font-weight: 500;
}

.navbar-custom .dropdown-item:hover {
    background-color: rgba(13, 79, 79, 0.05);
    color: var(--landing-primary, #0D4F4F);
    transform: translateX(3px);
}

.navbar-custom .dropdown-item i {
    width: 20px;
    color: var(--landing-text-muted, #6B7280);
    transition: color 0.2s ease;
}

.navbar-custom .dropdown-item:hover i {
    color: var(--landing-primary, #0D4F4F);
}

.navbar-custom .dropdown-divider {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    margin: 0.5rem 0;
}

/* Navbar Toggler */
.navbar-toggler {
    border: none;
    padding: 0.5rem;
}

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

/* Navbar Brand/Logo Font */
.navbar-brand {
    font-family: var(--landing-font-display, 'Fraunces', serif);
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* =========================================
   Glassmorphism Navbar (Home Page Only)
   ========================================= */

body.home-page .navbar-custom {
    position: fixed; /* FIXED for Hero overlay */
    top: 48px; /* Account for banner height */
    left: 0;
    width: 100%;
    z-index: 1050;
    background-color: transparent !important;
    box-shadow: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1.5rem 0;
    transition: top 0.3s ease;
}

/* When banner is closed, move navbar to top */
body.home-page .navbar-custom.no-banner {
    top: 0;
}

/* Scrolled State - Glass Effect */
body.home-page .navbar-custom.scrolled {
    background-color: rgba(13, 79, 79, 0.95) !important; /* Deep Teal */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    padding: 0.75rem 0; /* Compact state */
}

/* Ensure Logo scales */
body.home-page .navbar-custom .navbar-brand img {
    transition: all 0.4s ease;
}

body.home-page .navbar-custom:not(.scrolled) .navbar-brand img {
    transform: scale(1.1);
}
/* Location Fields Wrapper */
.location-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    width: 100%;
}

.location-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0.5rem;
    width: 100%;
}

/* Adjust search fields grid to accommodate the wider location group */
.search-fields {
    grid-template-columns: 2fr 1fr 1fr auto;
}

/* Select2 Customization to match theme */
.select2-container--default .select2-selection--single {
    height: 52px;
    padding: 0 10px;
    border: 2px solid var(--landing-border);
    border-radius: 8px;
    background-color: var(--landing-white);
    display: flex;
    align-items: center;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--landing-text);
    font-size: 0.95rem;
    font-family: var(--landing-font-body);
    padding-left: 0;
    line-height: 52px !important;
    width: 100%;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 50px;
    top: 0;
    right: 10px;
}

.select2-container--default .select2-selection--single:focus,
.select2-container--open .select2-selection--single {
    border-color: var(--landing-primary);
}

.select2-dropdown {
    border: 2px solid var(--landing-primary);
    border-radius: 8px;
    box-shadow: var(--landing-shadow-lg);
    z-index: 1051; /* Bootstrap modal is 1050 */
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: var(--landing-primary);
}

.select2-container--default .select2-results__option[aria-selected=true] {
    background-color: var(--landing-primary-light);
    color: white;
}

/* Quick Tags Styles */
.quick-tags .badge {
    font-size: 0.85rem !important; /* Force larger font size */
    padding: 0.6rem 1rem !important;
    display: inline-flex;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.quick-tags .badge i {
    font-size: 0.95rem;
}

/* Ensure Select2 fills the grid cell */
.select2-container {
    width: 100% !important;
}

/* Quick Tags Hover Effect */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ===== MOBILE RESPONSIVE STYLES ===== */

/* Mobile - Small screens (up to 640px) */
@media (max-width: 640px) {
    .hero-section {
        min-height: auto;
        padding: 4rem 1rem 3rem;
    }
    
    .hero-content {
        max-width: 100%;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 2rem;
    }
    
    .hero-search-card {
        padding: 1.25rem;
        border-radius: 16px;
    }
    
    .search-tabs {
        gap: 0.375rem;
        margin-bottom: 1rem;
        flex-wrap: wrap;
    }
    
    .search-tab {
        flex: 1 1 calc(50% - 0.375rem);
        min-width: calc(50% - 0.375rem);
        padding: 0.625rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .search-fields {
        grid-template-columns: 1fr;
        gap: 0.875rem;
    }
    
    .search-field label {
        font-size: 0.75rem;
    }
    
    .search-input,
    .search-submit {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .location-inputs {
        flex-direction: column;
        gap: 0.75rem !important;
    }
    
    .quick-tags {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .quick-tags .badge {
        font-size: 0.75rem !important;
        padding: 0.5rem 0.875rem !important;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
        margin-top: 2rem;
    }
    
    .hero-stat-number {
        font-size: 1.75rem;
    }
}

/* Tablet - Medium screens (641px to 1024px) */
@media (min-width: 641px) and (max-width: 1024px) {
    .hero-section {
        padding: 5rem 1.5rem 4rem;
    }
    
    .hero-search-card {
        padding: 1.75rem;
    }
    
    .search-fields {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }
    
    .search-field:last-child {
        grid-column: 1 / -1;
    }
    
    .search-submit {
        width: 100%;
    }
    
    .location-inputs {
        flex-direction: column;
        gap: 0.75rem !important;
    }
}

/* Desktop - Large screens (1025px and up) - Default styles already applied */
@media (min-width: 1025px) {
    .search-fields {
        grid-template-columns: 1.5fr 1fr 1fr auto;
    }
}
