/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: var(--font-primary);
}

:root {
    --primary-color: #1e3a8a;
    --primary-dark: #1e40af;
    --secondary-color: #f59e0b;
    --accent-color: #10b981;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --bg-light: #f8fafc;
    --bg-white: #ffffff;
    --border-color: #e5e7eb;
    --shadow-light: rgba(0, 0, 0, 0.1);
    --shadow-medium: rgba(0, 0, 0, 0.15);
    --font-primary: 'Montserrat', sans-serif;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: var(--bg-white);
    box-shadow: 0 2px 10px var(--shadow-light);
    z-index: 1000;
    padding: 15px 0;
    transition: all 0.3s ease;
}

.header.scrolled {
    background: var(--bg-white);
    box-shadow: 0 4px 20px var(--shadow-medium);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
}

.logo-image {
    height: 80px;
    display: flex;
    align-items: center;
}

.logo-image img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.navigation ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.navigation a {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: color 0.3s ease;
}

.navigation a:hover {
    color: var(--primary-color);
}

.navigation i {
    font-size: 12px;
}

.add-listing-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s ease;
    text-decoration: none;
}

.add-listing-btn:hover {
    background: var(--primary-dark);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    overflow: hidden;
    padding-top: 110px; /* Account for fixed header height */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('images/homebg.jpeg');
    background-size: cover;
    background-position: center;
    /* filter: blur(2px); */
}

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    font-family: var(--font-primary);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    color: var(--bg-white);
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 400;
    font-family: var(--font-primary);
    margin-bottom: 40px;
    color: white;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* Search Form */
.search-form {
    background: rgba(30, 58, 138, 0.9);
    backdrop-filter: blur(10px);
    padding: 30px;
	max-width: 680px;
    margin: 0 auto;
    box-shadow: 0 20px 40px rgba(30, 58, 138, 0.3);
	border-radius: 12px;
}

.form-tabs {
    display: flex;
    margin-bottom: 25px;
    gap: 0;
}

.tab-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 12px 30px;
    cursor: pointer;
    font-weight: 600;
    font-family: var(--font-primary);
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--secondary-color);
    color: white;
}

.tab-btn:not(.active):hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-fields {
    display: grid;
	grid-template-columns: 1fr auto;
	gap: 12px;
	align-items: center;
}

.search-field {
    position: relative;
}

.search-field select {
    width: 100%;
    padding: 15px 40px 15px 15px;
    border: none;
    background: white;
    font-size: 14px;
    font-weight: 500;
    font-family: var(--font-primary);
    color: #333;
    cursor: pointer;
    appearance: none;
}

.search-field i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    pointer-events: none;
}

.search-btn {
    background: var(--secondary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.3s ease;
    white-space: nowrap;
}

.search-btn:hover {
    background: #d97706;
}

/* Popular Cities Section */
.popular-cities-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.popular-cities-section h3 {
    text-align: left;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-primary);
    margin-bottom: 15px;
    color: var(--primary-color);
}

.section-subtitle {
    text-align: left;
    font-size: 1.1rem;
    font-weight: 400;
    font-family: var(--font-primary);
    color: #666;
    margin-bottom: 50px;
}

.cities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.city-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.city-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.city-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.city-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.city-card:hover .city-image img {
    transform: scale(1.1);
}

.city-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px 20px 20px;
}

.city-overlay h4 {
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--font-primary);
    margin-bottom: 5px;
}

.city-overlay p {
    font-size: 0.9rem;
    font-weight: 400;
    font-family: var(--font-primary);
    color: #ccc;
}

/* Featured Properties Section */
.featured-properties-section {
    padding: 80px 0;
    background: var(--bg-light);
}
/* Gallery Section */
.gallery-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    display: block;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.4s ease, filter 0.4s ease;
    display: block;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.35));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
    filter: brightness(1.05);
}

.gallery-item:hover::after {
    opacity: 1;
}

@media (max-width: 768px) {
    .gallery-item img { height: 200px; }
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
}

.header-text h3 {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-primary);
    margin-bottom: 15px;
    color: var(--primary-color);
    text-align: left;
}

.carousel-controls {
    display: flex;
    gap: 15px;
}

.carousel-btn {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    transition: background-color 0.3s ease;
}

.carousel-btn:hover {
    background: var(--primary-dark);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.property-card {
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border-radius: 12px;
    border: 2px solid transparent;
}

.property-card[href] {
    text-decoration: none;
    color: inherit;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border-color: var(--secondary-color);
}

.property-card::after {
    content: 'Click for details';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

.property-card:hover::after {
    opacity: 1;
}

.property-image {
    height: 250px;
    overflow: hidden;
    position: relative;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.featured-ribbon {
    position: absolute;
    top: 15px;
    left: -5px;
    background: var(--secondary-color);
    color: white;
    padding: 8px 20px;
    font-size: 0.8rem;
    font-weight: 600;
    transform: rotate(-45deg);
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.3);
}

.property-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #1a1a1a;
    color: white;
    padding: 6px 15px;
    font-size: 0.8rem;
    font-weight: 600;
}

.property-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    color: white;
    padding: 30px 20px 20px;
}

.property-overlay h4 {
    font-size: 1.3rem;
    font-weight: 600;
    font-family: var(--font-primary);
    margin-bottom: 5px;
}

.property-overlay .price {
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-primary);
    color: var(--secondary-color);
}

/* About Section */
.about-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-text h3 {
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-primary);
    margin-bottom: 25px;
    color: var(--primary-color);
    text-align: left;
}

.about-text p {
    font-size: 1.1rem;
    font-weight: 400;
    font-family: var(--font-primary);
    color: #666;
    margin-bottom: 30px;
    line-height: 1.8;
}

.features {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature i {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.feature span {
    font-weight: 600;
    font-family: var(--font-primary);
    color: #333;
}

.about-image {
    display: flex;
    justify-content: center;
}

.image-placeholder {
    width: 300px;
    height: 300px;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 20px;
}

/* Listings Section */
.listings-section {
    padding: 80px 0;
    background: var(--bg-white);
}

.listings-section h3 {
    text-align: left;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-primary);
    margin-bottom: 50px;
    color: var(--primary-color);
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.listing-card {
    background: white;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.listing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.listing-image {
    height: 200px;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #007bff;
    font-size: 60px;
}

.listing-content {
    padding: 25px;
}

.listing-content h4 {
    font-size: 1.3rem;
    font-weight: 600;
    font-family: var(--font-primary);
    margin-bottom: 10px;
    color: #333;
}

.location {
    color: #666;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.details {
    color: #888;
    margin-bottom: 15px;
    font-size: 0.9rem;
}

.price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 20px;
}

.view-details-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 12px 24px;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    transition: background-color 0.3s ease;
    width: 100%;
}

.view-details-btn:hover {
    background: #0056b3;
}

/* Contact Section */
.contact-section {
    padding: 80px 0;
    background: var(--bg-light);
}

.contact-section h3 {
    text-align: left;
    font-size: 2.5rem;
    font-weight: 800;
    font-family: var(--font-primary);
    margin-bottom: 50px;
    color: var(--primary-color);
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
}

.contact-item i {
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.contact-item h4 {
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-primary);
    margin-bottom: 5px;
    color: #333;
}

.contact-item p {
    color: #666;
}

.contact-form {
    background: white;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 2px solid #e9ecef;
    font-size: 14px;
    font-family: var(--font-primary);
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

.submit-btn {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 15px 30px;
    font-weight: 600;
    font-family: var(--font-primary);
    cursor: pointer;
    width: 100%;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background: var(--primary-dark);
}

.form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 5px;
    font-weight: 500;
    font-family: var(--font-primary);
    text-align: center;
}

.form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Loading spinner styles */
#submitLoading {
    display: none;
}

#submitBtn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.submit-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Footer */
.footer {
    background: linear-gradient(rgba(30, 58, 138, 0.9), rgba(30, 58, 138, 0.9)), url('images/footer.png');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: white;
    padding: 50px 0 20px;
    position: relative;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-logo-image {
    height: 40px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.footer-logo-image img {
    height: 100%;
    width: auto;
    object-fit: contain;
}

.footer-logo p {
    color: rgba(255, 255, 255, 0.9);
}

.footer-links h4,
.footer-social h4 {
    font-size: 1.2rem;
    font-weight: 600;
    font-family: var(--font-primary);
    margin-bottom: 20px;
    color: white;
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    width: 40px;
    height: 40px;
    background: #007bff;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.social-icons a:hover {
    background: #0056b3;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
}

.footer-bottom a {
    transition: color 0.3s ease;
}

.footer-bottom a:hover {
    color: #d97706 !important;
    text-decoration: underline !important;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 80px;
    right: 30px;
    z-index: 1000;
}

.whatsapp-float a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background: #25d366;
    color: white;
    border-radius: 50%;
    text-decoration: none;
    font-size: 30px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    transition: all 0.3s ease;
    animation: pulse 2s infinite, shake 3s infinite;
}

.whatsapp-float a:hover {
    background: #128c7e;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(37, 211, 102, 0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.6);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.3);
    }
}

@keyframes shake {
    0%, 100% {
        transform: translateX(0);
    }
    10%, 30%, 50%, 70%, 90% {
        transform: translateX(-2px);
    }
    20%, 40%, 60%, 80% {
        transform: translateX(2px);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero {
        padding-top: 120px; /* Increase padding for mobile header */
        min-height: calc(100vh - 120px); /* Adjust height for mobile */
    }
    
    .hero-title {
        font-size: 2.5rem;
        margin-top: 20px; /* Add extra margin for mobile */
    }
    
    .search-fields {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .about-content,
    .contact-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .navigation {
        display: none;
    }
    
    .listings-grid {
        grid-template-columns: 1fr;
    }
    
    .cities-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    @media (max-width: 480px) {
        .cities-grid {
            grid-template-columns: 1fr;
        }
        
        .hero {
            padding-top: 130px; /* Further increase padding for very small screens */
        }
        
        .hero-title {
            font-size: 2rem;
            margin-top: 30px; /* More margin for small screens */
        }
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .search-form {
        padding: 20px;
        margin: 0 20px;
    }
    
    .form-tabs {
        flex-direction: column;
        gap: 10px;
    }
    
    .tab-btn {
        border-radius: 8px;
    }
}
