/* 
 * New Vision Real Estate - Main Stylesheet
 * A modern, responsive real estate website for Sharjah properties
 */

/* ====================== Base Styles ====================== */
:root {
    /* Light Mode Colors */
    --primary-color: #2c3e50;
    --secondary-color: #3498db;
    --accent-color: #e74c3c;
    --text-color: #333333;
    --text-light: #666666;
    --bg-color: #ffffff;
    --bg-light: #f5f7fa;
    --border-color: #e1e8ed;
    --shadow-color: rgba(0, 0, 0, 0.05);
    
    /* Font Families */
    --heading-font: 'Playfair Display', serif;
    --body-font: 'Poppins', sans-serif;
    
    /* Dimensions */
    --container-width: 1280px;
    --header-height: 80px;
    --section-spacing: 100px;
    --element-spacing: 30px;
    
    /* Transitions */
    --transition-fast: 0.3s ease;
    --transition-medium: 0.5s ease;
    
    /* Border Radius */
    --border-radius-sm: 4px;
    --border-radius-md: 8px;
    --border-radius-lg: 16px;
    
    /* Box Shadows */
    --shadow-sm: 0 2px 10px var(--shadow-color);
    --shadow-md: 0 5px 15px var(--shadow-color);
    --shadow-lg: 0 10px 30px var(--shadow-color);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 62.5%; /* 1rem = 10px */
    overflow-x: hidden; /* Prevent horizontal overflow on mobile */
}

body {
    font-family: var(--body-font);
    font-size: 1.6rem;
    line-height: 1.7;
    color: var(--text-color);
    background-color: var(--bg-color);
    transition: background-color var(--transition-medium), color var(--transition-medium);
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: var(--secondary-color);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-color);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul {
    list-style: none;
}

.container {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* ====================== Typography ====================== */
h2, h3, h4, h5, h6 {
    font-family: var(--heading-font);
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

h1 {
    font-size: 4.2rem;
    color: burlywood;
}

h2 {
    font-size: 3.6rem;
}

h3 {
    font-size: 2.8rem;
}

h4 {
    font-size: 2.4rem;
}

h5 {
    font-size: 2rem;
}

h6 {
    font-size: 1.8rem;
}

p {
    margin-bottom: 2rem;
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-header h2 {
    position: relative;
    display: inline-block;
    margin-bottom: 1.5rem;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-header p {
    font-size: 1.8rem;
    color: var(--text-light);
    max-width: 700px;
    margin: 0 auto;
}

/* ====================== Buttons ====================== */
.btn {
    display: inline-block;
    padding: 1.2rem 2.4rem;
    font-size: 1.6rem;
    font-weight: 500;
    text-align: center;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    outline: none;
}

.btn-primary {
    background-color: var(--secondary-color);
    color: white;
    box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    color: white;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--secondary-color);
    border: 2px solid var(--secondary-color);
}

.btn-outline:hover {
    background-color: var(--secondary-color);
    color: white;
    transform: translateY(-3px);
}

.btn-sm {
    padding: 0.8rem 1.6rem;
    font-size: 1.4rem;
}

.btn-block {
    display: block;
    width: 100%;
}

/* ====================== Forms ====================== */
.form-group {
    margin-bottom: 2rem;
}

.form-row {
    display: flex;
    gap: 2rem;
    margin-bottom: 0;
}

.form-row .form-group {
    flex: 1;
}

label {
    display: block;
    font-size: 1.4rem;
    font-weight: 500;
    margin-bottom: 0.8rem;
    color: var(--text-light);
}

input, 
select, 
textarea {
    width: 100%;
    padding: 1.2rem;
    font-size: 1.6rem;
    font-family: var(--body-font);
    color: var(--text-color);
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius-sm);
    outline: none;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

input:focus, 
select:focus, 
textarea:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

textarea {
    resize: vertical;
    min-height: 120px;
}

input::placeholder, 
select::placeholder, 
textarea::placeholder {
    color: #ccc;
}

/* ====================== Header ====================== */
/* 
 * Header Styles - GLOBAL
 * These styles ensure consistent header size and appearance across all pages
 */
.header {
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    height: 100px; /* Fixed height for all pages */
    display: flex;
    align-items: center;
    transition: all 0.4s ease;
}

.header.scrolled {
    height: 85px; /* Fixed scrolled height for all pages */
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    width: 100%;
}

/* Logo styles consistent across all pages */
.logo {
    display: flex;
    align-items: center;
}

.logo:hover {
    opacity: 0.9;
}

.logo img {
    height: 326px;
    width: 269px;
    transition: height 0.3s ease;
}

.header.scrolled .logo img {
    height: 326px;
    width: 269px;
}

.logo-dark {
    display: none;
}

/* Navigation styles consistent across all pages */
.main-nav {
    flex: 1 1 auto;
    display: flex;
    justify-content: center;
}

.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-list a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 12px 25px;
    font-size: 1.6rem; /* Consistent font size across all pages */
    transition: color 0.3s ease;
}

.nav-list a:hover, 
.nav-list a.active {
    color: var(--primary-color);
}

.nav-list a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

.nav-list a:hover::after, 
.nav-list a.active::after {
    width: 30px;
}

/* Dropdown Menu Styles */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
}

.dropdown-toggle .fa-chevron-down {
    font-size: 1.2rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .fa-chevron-down,
.dropdown.active .fa-chevron-down {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    background-color: #fff;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu li {
    display: block;
    width: 100%;
}

.dropdown-menu a {
    padding: 10px 20px;
    font-size: 1.4rem;
    color: var(--text-color);
    transition: all 0.3s ease;
    display: block;
    width: 100%;
}

.dropdown-menu a:hover {
    background-color: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

.dropdown-menu a::after {
    display: none;
}

/* Header actions styles consistent across all pages */
.header-actions {
    display: flex;
    align-items: center;
}

.theme-toggle {
    background: none;
    border: none;
    width: 48px; /* Consistent size across all pages */
    height: 48px; /* Consistent size across all pages */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem; /* Consistent font size across all pages */
    color: var(--primary-color);
    cursor: pointer;
    background-color: rgba(0, 0, 0, 0.05);
    transition: background-color 0.3s ease, transform 0.2s ease;
    margin-right: 15px;
    position: relative;
}

.theme-toggle:hover {
    background-color: rgba(0, 0, 0, 0.1);
    transform: scale(1.05);
}

.fa-sun {
    display: none;
}

/* Mobile menu toggle consistent across all pages */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    width: 48px; /* Consistent size across all pages */
    height: 48px; /* Consistent size across all pages */
    position: relative;
    cursor: pointer;
    z-index: 1010;
}

.mobile-menu-toggle span {
    display: block;
    position: absolute;
    height: 3px; /* Consistent size across all pages */
    width: 28px; /* Consistent size across all pages */
    background: var(--text-color);
    border-radius: 3px;
    opacity: 1;
    left: 50%;
    transform: translateX(-50%);
    transition: all 0.3s ease-in-out;
}

.mobile-menu-toggle span:first-child {
    top: 15px;
}

.mobile-menu-toggle span:nth-child(2) {
    top: 50%;
    transform: translate(-50%, -50%);
}

.mobile-menu-toggle span:last-child {
    bottom: 15px;
}

/* ====================== Hero Section ====================== */
.hero-section {
    padding: 180px 0 120px;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/sharjah_city.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #fff;
    position: relative;
    height: 100vh;
    min-height: 650px;
    display: flex;
    align-items: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
    padding: 0 20px;
    animation: fadeInUp 1.2s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-title {
    font-size: 3.5rem;
    margin-bottom: 1.2rem;
    font-weight: 700;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.hero-description {
    font-size: 2.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.3);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.property-search {
    background-color: var(--bg-color);
    padding: 3rem;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
    max-width: 90%;
    margin: 0 auto;
    transform: translateY(50px);
}

.property-search h2 {
    text-align: center;
    color: var(--primary-color);
    margin-bottom: 2.5rem;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    align-items: end;
}

/* ====================== About Section ====================== */
.about-section {
    padding: calc(var(--section-spacing) - 57px) 0 var(--section-spacing);
    background-color: var(--bg-light);
}

.about-content {
    display: flex;
    gap: 5rem;
    align-items: center;
}

.about-image {
    flex: 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.about-text {
    flex: 1;
}

.about-text h3 {
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-stats {
    display: flex;
    gap: 3rem;
    margin-top: 4rem;
}

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

.stat-item h4 {
    font-size: 3.6rem;
    color: var(--secondary-color);
    margin-bottom: 0.5rem;
}

.stat-item p {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 0;
}

/* ====================== Properties Section ====================== */
.properties-section {
    padding: var(--section-spacing) 0;
}

.property-filters {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: none;
    border: none;
    padding: 1rem 2rem;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: color var(--transition-fast);
    position: relative;
}

.filter-btn::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--secondary-color);
    transition: width var(--transition-fast);
}

.filter-btn:hover, 
.filter-btn.active {
    color: var(--secondary-color);
}

.filter-btn:hover::after, 
.filter-btn.active::after {
    width: 100%;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 5rem;
}

.property-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

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

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

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-medium);
}

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

.property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background-color: var(--accent-color);
    color: white;
    padding: 0.5rem 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    border-radius: var(--border-radius-sm);
}

.property-details {
    padding: 2.5rem;
}

.property-details h3 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.property-location {
    color: var(--text-light);
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
}

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

.property-features {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.property-features span {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    color: var(--text-light);
}

.property-features i {
    margin-right: 0.5rem;
    color: var(--secondary-color);
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.properties-cta {
    text-align: center;
}

/* ====================== Locations Section ====================== */
.locations-section {
    padding: var(--section-spacing) -1px;
    background-color: var(--bg-light);
}

.location-content {
    display: flex;
    gap: 5rem;
    align-items: center;
}

.location-map {
    flex: 1;
}

.map-container {
    width: 100%;
    height: 500px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.location-info {
    flex: 1;
}

.location-info h3 {
    margin-bottom: 3rem;
}

.benefits-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.benefits-list li {
    display: flex;
    gap: 2rem;
}

.benefits-list i {
    font-size: 2.8rem;
    color: var(--secondary-color);
    flex-shrink: 0;
    margin-top: 0.5rem;
}

.benefits-list h4 {
    margin-bottom: 0.5rem;
}

.benefits-list p {
    color: var(--text-light);
    margin-bottom: 0;
}

.location-cta {
    margin-top: 4rem;
}

/* ====================== Testimonials Section ====================== */
.testimonials-section {
    padding: var(--section-spacing) 0;
    position: relative;
}

.testimonials-slider {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    overflow: hidden;
    padding: 2rem 0;
}

.testimonial-card {
    background-color: var(--bg-color);
    border-radius: var(--border-radius-lg);
    padding: 3rem;
    box-shadow: var(--shadow-md);
    margin: 0 auto;
    max-width: 700px;
    text-align: center;
}

.testimonial-content {
    font-style: italic;
    font-size: 1.8rem;
    margin-bottom: 2.5rem;
}

.testimonial-content p {
    margin-bottom: 0;
}

.testimonial-author {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.testimonial-author img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: var(--shadow-sm);
}

.author-info h4 {
    font-size: 1.8rem;
    margin-bottom: 0.5rem;
}

.author-info p {
    font-size: 1.4rem;
    color: var(--text-light);
    margin-bottom: 0;
}

.testimonial-controls {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 3rem;
}

.prev-btn, 
.next-btn {
    background: none;
    border: none;
    font-size: 2rem;
    color: var(--text-light);
    cursor: pointer;
    transition: color var(--transition-fast);
}

.prev-btn:hover, 
.next-btn:hover {
    color: var(--secondary-color);
}

/* ====================== Contact Section ====================== */
.contact-section {
    padding: var(--section-spacing) 0;
    background-color: var(--bg-light);
}

.contact-content {
    display: flex;
    gap: 5rem;
}

.contact-info {
    flex: 1;
}

.contact-form-container {
    flex: 1;
}

.info-card {
    display: flex;
    gap: 2rem;
    margin-bottom: 3rem;
}

.info-icon {
    background-color: var(--secondary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    flex-shrink: 0;
}

.info-details h3 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.info-details p {
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.social-links {
    display: flex;
    gap: 1.5rem;
    margin-top: 3rem;
}

.social-links a {
    background-color: var(--bg-color);
    color: var(--text-light);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
}

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

/* ====================== Footer ====================== */
.footer {
    background-color: var(--primary-color);
    color: white;
    padding: 8rem 0 2rem;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 5rem;
    margin-bottom: 5rem;
}

.footer-logo {
    margin-bottom: 2rem;
    max-width: 100%;
    margin-top: -40px;
}

    .footer-logo img {
        height: 180px;
        width: 212px;
        margin-bottom: 15px;
        display: block;
    }

/* Control logo visibility in light mode */
.footer-logo .logo-dark {
    display: none;
}

.footer-logo .logo-light {
    display: block;
}

.footer-links {
    flex: 2;
    display: flex;
    flex-wrap: wrap;
    gap: 3rem;
}

.footer-col {
    flex: 1;
    min-width: 160px;
}

.footer-col h3 {
    color: white;
    font-size: 1.8rem;
    margin-bottom: 2rem;
    position: relative;
}

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

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-col a:hover {
    color: white;
}

.newsletter-form {
    display: flex;
    margin-top: 2rem;
}

.newsletter-form input {
    flex: 1;
    border-radius: var(--border-radius-sm) 0 0 var(--border-radius-sm);
    border: none;
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    padding: 1.2rem;
}

.newsletter-form input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.newsletter-form button {
    background-color: var(--secondary-color);
    color: white;
    border: none;
    padding: 0 1.5rem;
    cursor: pointer;
    border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) 0;
    transition: background-color var(--transition-fast);
}

.newsletter-form button:hover {
    background-color: var(--accent-color);
}

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

.copyright {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.7);
}

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

.legal-links a {
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.7);
}

.legal-links a:hover {
    color: white;
}

/* ====================== Responsive Styles ====================== */
@media (max-width: 1200px) {
    .container {
        padding: 0 30px;
    }
    
    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .about-content,
    .location-content,
    .contact-content {
        flex-direction: column;
        gap: 5rem;
    }
    
    .location-map {
        order: 2;
    }
    
    .location-info {
        order: 1;
    }
}

@media (max-width: 992px) {
    html {
        font-size: 55%;
    }
    
    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background-color: #fff;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
        padding: 80px 20px 30px;
        transition: right 0.4s ease;
        z-index: 1000;
        overflow-y: auto;
    }
    
    .main-nav.active {
        right: 0;
    }
    
    .nav-list {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .nav-list a {
        padding: 15px 0;
        width: 100%;
    }
    
    /* Mobile dropdown styles */
    .dropdown {
        width: 100%;
        position: relative;
    }
    
    .dropdown-toggle {
        justify-content: space-between;
        width: 100%;
        cursor: pointer;
    }
    
    .dropdown-menu {
        position: static;
        width: 100%;
        box-shadow: none;
        border-radius: 0;
        background-color: transparent;
        padding-left: 15px;
        display: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        transition: none;
    }
    
    .dropdown.active .dropdown-menu {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    .dropdown-menu a {
        padding: 10px 0;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .mobile-menu-toggle.active span:first-child {
        top: 50%;
        transform: translateX(-50%) translateY(-50%) rotate(45deg);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:last-child {
        bottom: 50%;
        transform: translateX(-50%) translateY(50%) rotate(-45deg);
    }
    
    body.menu-open {
        overflow: hidden;
    }
    
    .property-search {
        padding: 20px;
    }
    
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .about-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .showcase-content h2 {
        font-size: 24px;
    }
}

@media (max-width: 768px) {
    html {
        font-size: 15px;
    }
    
    :root {
        --section-padding: 60px 0;
    }
    
    .hero-section {
        min-height: 500px;
        padding-top: 150px;
    }
    
    .hero-content {
        width: 100%;
        text-align: center;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .property-search {
        position: relative;
        bottom: auto;
        margin-top: 30px;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    
    .showcase-image {
        height: 350px;
    }
    
    .showcase-content h2 {
        font-size: 28px;
    }
    
    .showcase-content p {
        font-size: 16px;
    }
    
    /* Footer adjustments */
    .footer {
        padding: 5rem 0 2rem;
        text-align: center;
    }
    
    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 4rem;
        margin-bottom: 3rem;
    }
    
    .footer-logo {
        margin-top: 0;
        margin-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    
    .footer-logo img {
        height: 80px; /* Increased logo size on very small screens from 65px to 80px */
        margin-bottom: 1.5rem;
    }
    
    .footer-logo p {
        font-size: 1.6rem;
    }
    
    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        width: 100%;
    }
    
    .footer-col {
        text-align: left;
    }
    
    .footer-col h3 {
        margin-bottom: 2rem;
        display: inline-block;
    }
    
    .footer-col ul {
        padding-left: 0;
    }
    
    .footer-col ul li {
        margin-bottom: 1rem;
    }
    
    .footer-col ul li a {
        font-size: 1.5rem;
    }
    
    .footer-col:last-child {
        grid-column: span 2;
        margin-top: 2rem;
    }
    
    /* Enhanced newsletter form */
    .newsletter-form {
        max-width: 400px;
        margin: 2rem auto 0;
        display: flex;
    }
    
    .newsletter-form input {
        height: 4.5rem;
        border-radius: 4px 0 0 4px;
        font-size: 1.4rem;
        padding: 0 15px;
    }
    
    .newsletter-form button {
        width: 5rem;
        border-radius: 0 4px 4px 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding-top: 2rem;
    }
    
    .copyright {
        margin-bottom: 1rem;
    }
    
    .legal-links {
        justify-content: center;
    }
    
    /* Center the 'Consult Our Experts' button on mobile */
    .location-cta {
        text-align: center;
        display: flex;
        justify-content: center;
        width: 100%;
        margin-top: 30px;
    }
    
    .location-cta .btn {
        display: inline-block;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .btn {
        padding: 12px 24px;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .testimonial-author {
        flex-direction: column;
        text-align: center;
    }
    
    /* Small mobile header styles - consistent across all pages */
    .logo img {
        height: 166px;
    }
    
    .header.scrolled .logo img {
        height: 326px;
        width: 269px;
    }
    
    .main-nav {
        width: 100%;
        max-width: 100%;
        padding-top: 100px;
    }
    
    .footer {
        padding: 4rem 0 2rem;
    }
    
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }
    
    .footer-col {
        width: 100%;
    }
    
    .footer-col:last-child {
        grid-column: auto;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .legal-links a {
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .legal-links a:last-child {
        border-bottom: none;
    }
}

/* Showcase Section */
.showcase-section {
    width: 100%;
    margin: 50px 0;
}

.showcase-image {
    height: 500px;
    width: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-image::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.showcase-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}

.showcase-content h2 {
    font-size: 42px;
    margin-bottom: 15px;
    font-family: 'Playfair Display', serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.showcase-content p {
    font-size: 18px;
    line-height: 1.6;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* Mobile Responsiveness Enhancements */
@media (max-width: 992px) {
    /* Enhanced mobile menu */
    .main-nav {
        z-index: 9999; /* Ensure menu is above all content */
    }
    
    /* Improve touch targets for mobile */
    .nav-list a {
        margin-bottom: 8px;
        display: block;
        width: 100%;
    }
    
    /* Fix for Safari mobile menu issues */
    body.menu-open .main-nav {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
    }
}

@media (max-width: 768px) {
    /* More vertical spacing between mobile sections */
    section {
        padding: 50px 0;
    }
    
    /* Hero section improvements */
    .hero-section {
        background-position: center center !important; /* Override any parallax on mobile */
        padding-top: 120px;
        padding-bottom: 60px;
    }
    
    .hero-title {
        font-size: 2.2rem;
        line-height: 1.3;
    }
    
    /* Better form display on mobile */
    .contact-form .form-row {
        margin-bottom: 0;
    }
    
    .contact-form .form-group {
        margin-bottom: 15px;
    }
    
    /* Fix for contact info on mobile */
    .contact-content {
        padding: 0 10px;
    }
    
    .info-card {
        padding: 15px 10px;
    }
}

@media (max-width: 576px) {
    /* Extra small screen fixes */
    .container {
        padding: 0 15px;
    }
    
    /* Reduce header height on very small screens */
    .header-content {
        height: 70px;
    }
    
    /* Fix image overflow */
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Ensure all touch targets are at least 44px */
    .btn, 
    .nav-list a,
    .mobile-menu-toggle,
    .theme-toggle,
    .social-links a {
        min-height: 44px;
        min-width: 44px;
    }
    
    /* Footer improvements */
    .footer-links {
        grid-template-columns: 1fr;
    }
    
    /* Fix map container on mobile */
    .map-container iframe {
        height: 300px;
    }
}

/* Exact map height fix for mobile */
@media (max-width: 768px) {
    .map-container {
        height: 304px !important;
        overflow: hidden;
    }
    
    .map-container iframe {
        height: 304px !important;
        max-height: 304px !important;
    }
}

/* Fix viewport height issues on mobile (iOS Safari) */
@media screen and (max-height: 800px) {
    .hero-section {
        min-height: auto;
        height: auto;
        padding-top: 100px;
        padding-bottom: 50px;
    }
}

/* Fix for mobile input zooming */
@media screen and (max-width: 768px) {
    input, 
    select, 
    textarea {
        font-size: 16px !important; /* Prevents iOS zoom on input */
    }
}

/* Additional Contact Form Mobile Styling */
@media screen and (max-width: 768px) {
    /* Enhanced contact form styling for mobile */
    .mobile-form-wrapper .form-row,
    .contact-form .form-row,
    #contact-form .form-row {
        display: block !important;
        width: 100% !important;
        flex-direction: column !important;
    }
    
    .mobile-form-wrapper .form-group,
    .contact-form .form-group,
    #contact-form .form-group,
    .contact-form .form-row .form-group,
    #contact-form .form-row .form-group {
        width: 100% !important;
        display: block !important;
        margin-right: 0 !important;
        flex: 0 0 100% !important;
        max-width: 100% !important;
        margin-bottom: 15px !important;
    }
    
    .mobile-form-wrapper input,
    .mobile-form-wrapper select,
    .mobile-form-wrapper textarea,
    .contact-form input,
    .contact-form select,
    .contact-form textarea,
    #contact-form input,
    #contact-form select,
    #contact-form textarea {
        width: 100% !important;
        margin-bottom: 8px !important;
    }
}

/* Direct fix for mobile contact form */
.mobile-form-wrapper .form-row {
    display: block !important;
    width: 100% !important;
}

.mobile-form-wrapper .form-group {
    width: 100% !important;
    margin-right: 0 !important;
    margin-bottom: 15px !important;
}

/* New contact form grid layout - added at end to override previous styles */
#contact-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    width: 100%;
    margin-bottom: 15px;
}

#contact-form .form-group {
    width: 100%;
    margin-right: 0;
    margin-bottom: 0;
}

#contact-form .form-group:last-of-type {
    grid-column: 1 / -1;
    margin-top: 15px;
}

/* Make sure these override previous styles */
@media screen and (max-width: 768px) {
    #contact-form .form-row {
        display: grid !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 15px !important;
        width: 100% !important;
        flex-direction: unset !important;
    }
    
    #contact-form .form-group {
        width: 100% !important;
        margin-right: 0 !important;
        margin-bottom: 0 !important;
        display: block !important;
    }
    
    #contact-form .form-group:last-of-type {
        grid-column: 1 / -1 !important;
        margin-top: 15px !important;
    }
}

/* Final Fix for Mobile Contact Form Layout */
@media (max-width: 768px) {
    /* Reset all contact form styles */
    .contact-form,
    #contact-form {
        width: 100% !important;
    }
    
    /* Clear all the previously added form styles */
    .contact-form .form-row,
    .mobile-form-wrapper .form-row,
    #contact-form .form-row {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        width: 100% !important;
        margin-bottom: 15px !important;
        gap: 15px !important;
        grid-template-columns: unset !important;
    }
    
    .contact-form .form-group,
    .mobile-form-wrapper .form-group,
    #contact-form .form-group,
    .contact-form .form-row .form-group,
    #contact-form .form-row .form-group {
        width: 50% !important;
        flex: 0 0 50% !important;
        min-width: 50% !important;
        max-width: 50% !important;
        margin: 0 !important;
        display: block !important;
    }
    
    #contact-form > .form-group,
    #contact-form > button {
        width: 100% !important;
        flex: 0 0 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        margin-bottom: 15px !important;
    }
    
    /* Make sure inputs take full width of their container */
    #contact-form input,
    #contact-form select,
    #contact-form textarea {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    /* Cancel out any grid column settings */
    #contact-form .form-group:last-of-type {
        grid-column: auto !important;
    }
}

/* New form layout classes - These override all previous styles */
.two-col {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 15px !important;
    width: 100% !important;
    margin-bottom: 15px !important;
}

.half-width {
    width: 50% !important;
    flex: 0 0 50% !important;
    margin: 0 !important;
}

.full-width {
    width: 100% !important;
    margin-bottom: 15px !important;
}

/* Enhanced Mobile Footer Styling - Override previous styles */
@media (max-width: 768px) {
    /* Footer adjustments */
    .footer {
        padding: 5rem 0 2rem;
        text-align: center;
    }
    
    .footer-content {
        display: flex;
        flex-direction: column;
        gap: 4rem;
        margin-bottom: 3rem;
    }
    
    .footer-logo {
        margin-top: 0;
        margin-right: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

        .footer-logo img {
            height: 191px;
            width: 227px;
            margin-bottom: -4.5rem;
        }
    
    .footer-logo p {
        font-size: 1.6rem;
    }
    
    .footer-links {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 3rem;
        width: 100%;
    }
    
    .footer-col {
        text-align: left;
    }
    
    .footer-col h3 {
        margin-bottom: 2rem;
        display: inline-block;
    }
    
    .footer-col ul {
        padding-left: 0;
    }
    
    .footer-col ul li {
        margin-bottom: 1rem;
    }
    
    .footer-col ul li a {
        font-size: 1.5rem;
    }
    
    .footer-col:last-child {
        grid-column: span 2;
        margin-top: 2rem;
    }
    
    /* Enhanced newsletter form */
    .newsletter-form {
        max-width: 400px;
        margin: 2rem auto 0;
        display: flex;
    }
    
    .newsletter-form input {
        height: 4.5rem;
        border-radius: 4px 0 0 4px;
        font-size: 1.4rem;
        padding: 0 15px;
    }
    
    .newsletter-form button {
        width: 5rem;
        border-radius: 0 4px 4px 0;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding-top: 2rem;
    }
    
    .copyright {
        margin-bottom: 1rem;
    }
    
    .legal-links {
        justify-content: center;
    }
}

@media (max-width: 576px) {
    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 3rem;
    }
    
    .footer-col {
        width: 100%;
    }
    
    .footer-col:last-child {
        grid-column: auto;
    }
    
    .legal-links {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .legal-links a {
        padding: 8px 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .legal-links a:last-child {
        border-bottom: none;
    }
}

/* Fix for email text overflow on mobile */
@media (max-width: 768px) {
    .info-details p {
        word-wrap: break-word;
        overflow-wrap: break-word;
        word-break: break-all;
        hyphens: auto;
        max-width: 100%;
        font-size: 0.9em; /* Slightly smaller font size for emails on mobile */
    }
    
    /* More specific fix for email addresses */
    .info-card:nth-child(3) .info-details p {
        font-size: 0.85em; /* Even smaller font for email addresses specifically */
        letter-spacing: -0.5px; /* Tighter letter spacing */
    }
}

/* Service and Area Pages Styling */
.service-details-section,
.area-overview-section {
    padding: 80px 0;
}

.service-overview,
.area-description {
    margin-bottom: 50px;
}

.service-overview h3,
.area-description h3 {
    font-size: 2.4rem;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.service-overview p,
.area-description p {
    margin-bottom: 20px;
    line-height: 1.7;
}

.service-features,
.area-highlights {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.feature-card,
.highlight-card {
    display: flex;
    gap: 20px;
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover,
.highlight-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.feature-icon,
.highlight-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}

.feature-details,
.highlight-details {
    flex: 1;
}

.feature-details h4,
.highlight-details h4 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.feature-details p,
.highlight-details p {
    color: var(--text-light);
    line-height: 1.6;
}

.client-testimonials,
.market-insights,
.property-insights {
    margin-bottom: 60px;
}

.client-testimonials h3,
.market-insights h3,
.property-insights h3,
.valuation-process h3,
.area-map-section h3 {
    font-size: 2.4rem;
    margin-bottom: 30px;
    color: var(--primary-color);
}

.testimonial-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
    margin-bottom: 20px;
}

.testimonial-content p {
    font-style: italic;
    color: var(--text-color);
    line-height: 1.7;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
}

.author-info h4 {
    font-size: 1.8rem;
    margin-bottom: 5px;
}

.author-info p {
    color: var(--text-light);
}

.insights-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.insight-card {
    background-color: var(--bg-light);
    padding: 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.insight-card h4 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.insight-card p {
    line-height: 1.6;
    color: var(--text-color);
}

.valuation-process {
    margin-bottom: 60px;
}

.process-steps {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step {
    display: flex;
    gap: 20px;
    background-color: var(--bg-light);
    padding: 25px 30px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-sm);
}

.step-number {
    width: 40px;
    height: 40px;
    min-width: 40px;
    background-color: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: bold;
}

.step-details h4 {
    font-size: 1.8rem;
    margin-bottom: 10px;
    color: var(--primary-color);
}

.step-details p {
    line-height: 1.6;
    color: var(--text-light);
}

.area-map-section {
    margin-bottom: 60px;
}

.area-map {
    width: 100%;
    height: 400px;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.cta-section {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius-lg);
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.cta-section h3 {
    font-size: 2.4rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

.cta-section p {
    margin-bottom: 25px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Mobile Responsiveness for Service and Area Pages */
@media (max-width: 768px) {
    .service-features,
    .area-highlights,
    .insights-container {
        grid-template-columns: 1fr;
    }
    
    .feature-card,
    .highlight-card,
    .step {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .feature-icon,
    .highlight-icon {
        margin-bottom: 10px;
    }
    
    .cta-section {
        padding: 30px 20px;
    }
    
    .area-map {
        height: 300px;
    }
    
    .service-overview h3,
    .area-description h3,
    .client-testimonials h3,
    .market-insights h3,
    .property-insights h3,
    .valuation-process h3,
    .area-map-section h3,
    .cta-section h3 {
        font-size: 2.2rem;
    }
	
	.hero-description {
    font-size: 1.2rem;
}

}

/* Skyline Banner */
.skyline-banner {
    width: 100%;
    margin: 0;
    padding: 0;
    display: block;
    overflow: hidden;
}

.skyline-banner svg {
    display: block;
    width: 100%;
    height: auto;
    min-height: 220px;
}

/* WhatsApp Button */
.whatsapp-button {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-button a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    color: white;
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite;
    text-decoration: none;
}

.whatsapp-button i {
    font-size: 32px;
}

.whatsapp-button a:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
    animation: none;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Media query for smaller screens */
@media (max-width: 768px) {
    .whatsapp-button {
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-button a {
        width: 50px;
        height: 50px;
    }
    
    .whatsapp-button i {
        font-size: 28px;
    }
}

/* Mobile-specific dropdown styles */
@media (max-width: 992px) {
    .dropdown-menu {
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
        padding: 0 0 0 15px;
        margin: 0;
    }
    
    .dropdown.active .dropdown-menu {
        max-height: 500px; /* Adjust as needed */
        padding-top: 10px;
        padding-bottom: 10px;
    }
} 