/*
Theme Name: Enoh Realtor
Description: A professional real estate WordPress theme made for Enoh. Features include property listings,contact,booking,appointment and modern design.
Author: Princess Besiwah
Author URI: https://princessbesiwahforson.vercel.app/
Version: 1.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: enoh-realtor
Tags: real-estate, business, professional, responsive, modern
*/

/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-gold: #D4A574;
    --warm-gold: #E6B887;
    --light-gold: #F2D7B3;
    --teal-green: #4A9B8E;
    --dark-teal: #3A7A6F;
    --light-teal: #6BB5A8;
    --accent-teal: #5CBDB0;
    --dark-text: #2C3E50;
    --light-text: #7F8C8D;
    --white: #FFFFFF;
    --light-bg: #F8F9FA;
    --shadow: rgba(74, 155, 142, 0.1);
}


body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    background-color: var(--white);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}


/* This is the new rule to fix the text color on hover */
.btn-primary:hover {
    color: var(--white); /* Ensures the text remains white */
    /* Add any other hover effects here, like a change in the gradient */
    background: linear-gradient(135deg, #e6b893, var(--primary-gold));
}

.btn-secondary {
    background: var(--teal-green);
    color: white;
}

.btn-secondary:hover {
    background: var(--dark-teal);
    transform: translateY(-2px);
}


/* Footer Styles */
.site-footer {
    background: #1a1a2e;
    color: white;
    padding: 3rem 0 1rem;
}

.footer-search-section {
    background: linear-gradient(135deg, #4A9B8E, #5CBDB0);
    padding: 2.5rem 1.5rem;
    margin-bottom: 2.5rem;
    border-radius: 12px;
    color: white;
}

.search-container h3 {
    font-size: 1.8rem;
    font-weight: bold;
    text-align: center;
    margin-bottom: 0.8rem;
    color: white;
}

.search-container p {
    text-align: center;
    margin-bottom: 2rem;
    opacity: 0.95;
    font-size: 1.1rem;
    line-height: 1.6;
}

.global-search-form {
    max-width: 800px;
    margin: 0 auto;
}

.search-row {
    display: grid;
    grid-template-columns: 2fr 1fr auto;
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.5rem;
}

.search-input-group {
    position: relative;
}

.search-input-group i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #4A9B8E;
    z-index: 2;
}

.global-search-input {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    background: white;
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.global-search-input:focus {
    outline: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    max-height: 300px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid rgba(74, 155, 142, 0.1);
}

.suggestion-item:hover {
    background: rgba(74, 155, 142, 0.05);
}

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

.suggestion-item i {
    color: #4A9B8E;
    width: 16px;
}

.suggestion-item span {
    flex: 1;
    color: #333;
    font-weight: 500;
}

.suggestion-item small {
    color: #666;
    font-size: 0.8rem;
    text-transform: capitalize;
}

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

.quick-filter {
    padding: 0.75rem;
    border: none;
    border-radius: 8px;
    background: white;
    color: #333;
    font-size: 0.9rem;
    cursor: pointer;
}

.quick-filter:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.global-search-btn {
    padding: 1rem 1.5rem;
    background: #D4A574;
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    height: fit-content;
}

.global-search-btn:hover {
    background: #E6B887;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(212, 175, 116, 0.3);
}

.popular-searches {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.popular-label {
    font-weight: 600;
    opacity: 0.9;
}

.popular-searches a {
    color: white;
    text-decoration: none;
    padding: 0.4rem 0.8rem;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.popular-searches a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.footer-section h3 {
    color: #D4A574;
    margin-bottom: 1.2rem;
    font-size: 1.3rem;
    font-weight: 600;
}

.footer-section p {
    line-height: 1.7;
    opacity: 0.9;
    margin-bottom: 1.2rem;
    font-size: 0.95rem;
}

.footer-section ul {
    list-style: none;
    padding: 0;
}

.footer-section ul li {
    margin-bottom: 0.7rem;
}

.footer-section ul li a {
    color: #ccc;
    text-decoration: none;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 0.95rem;
}

.footer-section ul li a:hover {
    color: #D4A574;
    transform: translateX(5px);
}

.footer-section ul li a i {
    width: 16px;
    color: #4A9B8E;
}

.social-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.2rem;
}

.social-link {
    width: 42px;
    height: 42px;
    background: #4A9B8E;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 1.1rem;
}

.social-link:hover {
    background: #D4A574;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(212, 175, 116, 0.3);
}

.contact-info p {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
    font-size: 0.95rem;
}

.contact-info i {
    color: #4A9B8E;
    margin-top: 0.2rem;
    width: 16px;
}

.service-areas {
    margin-top: 1.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    color: #ccc;
    font-size: 0.9rem;
}

/* Mobile Responsive Styles */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .footer-search-section {
        padding: 2rem 1rem;
        margin-bottom: 2rem;
    }
    
    .search-container h3 {
        font-size: 1.5rem;
    }
    
    .search-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-filters-quick {
        flex-direction: row;
        gap: 0.5rem;
    }
    
    .quick-filter {
        flex: 1;
    }
    
    .global-search-btn {
        justify-content: center;
        width: 100%;
    }
    
    .popular-searches {
        justify-content: center;
        gap: 0.8rem;
    }
    
    .popular-label {
        display: block;
        width: 100%;
        text-align: center;
        margin-bottom: 0.5rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-section ul li a {
        justify-content: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .contact-info p {
        justify-content: center;
        text-align: center;
    }
    
    .service-areas {
        text-align: center;
    }
    
    .service-areas p {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .site-footer {
        padding: 2rem 0 1rem;
    }
    
    .footer-search-section {
        padding: 1.5rem 1rem;
        border-radius: 8px;
    }
    
    .search-container h3 {
        font-size: 1.3rem;
    }
    
    .search-container p {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .global-search-input {
        padding: 0.8rem 0.8rem 0.8rem 2.5rem;
        font-size: 0.9rem;
    }
    
    .search-input-group i {
        left: 0.8rem;
    }
    
    .quick-filter {
        padding: 0.6rem;
        font-size: 0.85rem;
    }
    
    .global-search-btn {
        padding: 0.8rem 1rem;
        font-size: 0.9rem;
    }
    
    .popular-searches a {
        font-size: 0.8rem;
        padding: 0.3rem 0.6rem;
    }
    
    .footer-content {
        gap: 1.8rem;
    }
    
    .footer-section h3 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }
    
    .footer-section p {
        font-size: 0.9rem;
    }
    
    .footer-section ul li a {
        font-size: 0.9rem;
    }
    
    .social-link {
        width: 38px;
        height: 38px;
        font-size: 1rem;
    }
    
    .contact-info p {
        font-size: 0.9rem;
    }
    
    .footer-bottom {
        font-size: 0.85rem;
        padding-top: 1.5rem;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .main-navigation {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .about-stats {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .container {
        padding: 0 15px;
    }
}


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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

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

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

/* Scroll animations */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Hover effects */
.hover-lift {
    transition: all 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
}

.hover-glow {
    transition: all 0.3s ease;
}

.hover-glow:hover {
    box-shadow: 0 0 20px rgba(74, 155, 142, 0.3);
}


/* Responsive Design */
/* Mobile First Approach */

/* Mobile Styles (default) */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn {
        width: 100%;
        max-width: 280px;
        text-align: center;
    }
    
    .main-navigation {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: var(--dark-text);
        cursor: pointer;
    }
    
    .main-navigation.mobile-open {
        display: block;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(10px);
        box-shadow: 0 4px 20px var(--shadow);
        padding: 1rem 0;
    }
    
    .main-navigation.mobile-open ul {
        flex-direction: column;
        gap: 0;
    }
    
    .main-navigation.mobile-open a {
        display: block;
        padding: 1rem 2rem;
        border-bottom: 1px solid rgba(74, 155, 142, 0.1);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stat-item {
        padding: 1.5rem;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .awards-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 1rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
}

/* Tablet Styles */
@media (min-width: 769px) and (max-width: 1024px) {
    .hero-content h1 {
        font-size: 3rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .awards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .mobile-menu-toggle {
        display: none;
    }
    
    .main-navigation {
        display: block;
    }
}

/* Desktop Styles */
@media (min-width: 1025px) {
    .mobile-menu-toggle {
        display: none;
    }
    
    .main-navigation {
        display: block;
    }
    
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .awards-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Large Desktop Styles */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero-content h1 {
        font-size: 4rem;
    }
    
    .properties-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover::before {
        left: 0;
    }
    
    .stat-item:hover {
        transform: none;
    }
    
    .property-card:hover {
        transform: none;
    }
    
    .main-navigation a:hover::after {
        width: 0;
    }
}

/* High DPI Display Optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-section {
        background-image: url('assets/images/hero_background.webp');
    }
}

/* Reduced Motion Preferences */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .hero-content {
        animation: none;
    }
    
    .animate-on-scroll {
        opacity: 1;
        transform: none;
    }
}






/* Search Form Styles */
.propertypro-search-form {
    position: relative;
    margin-bottom: 2rem;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.propertypro-search-form .search-form {
    display: flex;
    position: relative;
}

.propertypro-search-form .search-field {
    flex: 1;
    padding: 14px 18px;
    border: 2px solid var(--primary-teal);
    border-radius: 12px 0 0 12px;
    font-size: 1rem;
    height: 54px;
    color: var(--text-dark);
    background: var(--white);
    font-family: inherit;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.propertypro-search-form .search-submit {
    background: var(--primary-teal);
    color: var(--white);
    border: none;
    padding: 0 24px;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 600;
    font-size: 1rem;
    font-family: inherit;
    letter-spacing: 0.5px;
}

.propertypro-search-form .search-submit:hover {
    background: var(--primary-dark);
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    box-shadow: var(--shadow);
    z-index: 1000;
    display: none;
    margin-top: 6px;
    font-family: inherit;
}

.search-suggestions-list {
    max-height: 300px;
    overflow-y: auto;
}

.search-suggestion-item {
    display: block;
    padding: 14px 18px;
    border-bottom: 1px solid var(--light-bg);
    text-decoration: none;
    color: var(--text-dark);
    transition: var(--transition);
    font-size: 0.95rem;
}

.search-suggestion-item:hover {
    background: var(--light-bg);
}

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

.suggestion-title {
    display: block;
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 1rem;
}

.suggestion-price {
    display: inline-block;
    background: var(--primary-gold);
    color: var(--text-dark);
    padding: 3px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 8px;
}

.suggestion-type {
    display: inline-block;
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: capitalize;
}

.search-loading, .no-suggestions {
    padding: 18px;
    text-align: center;
    color: var(--text-light);
    font-size: 0.95rem;
    font-style: italic;
}

/* Search Results Page */
.search-results-page {
    padding: 2.5rem 0;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.search-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.search-filters {
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-filters select {
    padding: 10px 14px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    background: var(--white);
    color: var(--text-dark);
    font-size: 0.95rem;
    font-family: inherit;
}

/* Search Results Grid */
.search-results-grid {
    display: grid;
    gap: 1.75rem;
}

.search-result-item {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 1.2rem;
    padding: 1.75rem;
    border: 1px solid var(--border-light);
    border-radius: 12px;
    transition: var(--transition);
    background: var(--white);
    font-family: inherit;
}

.search-result-item:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.search-result-image {
    overflow: hidden;
    border-radius: 8px;
}

.search-result-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
}

.search-result-content {
    display: flex;
    flex-direction: column;
}

.search-result-title {
    margin: 0 0 0.6rem 0;
    font-size: 1.25rem;
    font-weight: 600;
}

.search-result-title a {
    color: var(--text-dark);
    text-decoration: none;
    font-family: inherit;
}

.search-result-title a:hover {
    color: var(--primary-teal);
}

.search-result-meta {
    display: flex;
    gap: 1rem;
    margin-bottom: 0.6rem;
    font-size: 0.9rem;
    color: var(--text-light);
}

.search-result-excerpt {
    margin-bottom: 0.6rem;
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.5;
}

.property-details {
    display: flex;
    gap: 1.2rem;
    margin-top: auto;
}

.property-price {
    font-weight: 700;
    color: var(--primary-teal);
    font-size: 1.1rem;
}

.property-location {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* No Results */
.no-results {
    text-align: center;
    padding: 3.5rem 1.2rem;
    font-family: inherit;
}

.no-results h2 {
    color: var(--text-light);
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    font-weight: 600;
}

/* Pagination */
.search-pagination {
    margin-top: 2.5rem;
    text-align: center;
    font-family: inherit;
}

/* Responsive Design */
@media (max-width: 768px) {
    .search-result-item {
        grid-template-columns: 1fr;
    }
    
    .search-result-image {
        height: 220px;
    }
    
    .search-result-image img {
        height: 220px;
    }
    
    .search-results-header {
        flex-direction: column;
        align-items: flex-start;
    }
}
