/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    background-color: #f5f5f7;
    color: #333;
}

/* Smooth Scroll */
html {
    scroll-behavior: smooth;
}

/* Navbar */
header {
    background-color: #111;
    color: #fff;
    padding: 20px 50px;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 30px;
}

.nav-links li a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s ease;
}

.nav-links li a:hover {
    color: #ff9900;
}

.contact-info {
    text-align: right;
    color: #fff;
}

.contact-info p, .contact-info a {
    margin: 0;
    font-size: 16px;
}

/* Hero Section */
.hero-section {
    position: relative;
    background-image: url('luxury-home.jpg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: #fff;
    z-index: 1;
    background-attachment: fixed;
}

.hero-section .overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 0;
}

.hero-section .hero-text {
    position: relative;
    z-index: 2;
}

.hero-section h1 {
    font-family: 'Playfair Display', serif;
    font-size: 72px;
    letter-spacing: 2px;
    text-transform: uppercase;
}

.hero-section p {
    font-size: 24px;
    margin: 20px 0;
}

.cta-button {
    background-image: linear-gradient(to right, #ff6a00, #ee0979);
    color: white;
    padding: 15px 30px;
    border: none;
    font-size: 18px;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.2s;
}

.cta-button:hover {
    background-image: linear-gradient(to right, #ee0979, #ff6a00);
    transform: scale(1.08) rotate(-3deg);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* About Section */
.about-section {
    padding: 100px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: #fff;
}

.about-content {
    display: flex;
    gap: 50px;
    align-items: center;
}

.about-content img {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #ff6a00;
}

.about-content .bio {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bio p {
    font-size: 20px;
    line-height: 1.8;
    color: #555;
}

.bio .cta-button {
    margin-top: 20px;
}

/* Listings Section */
.listings-section {
    padding: 100px 10%;
    background-color: #f4f4f9;
}

.listings-section h2 {
    font-size: 42px;
    text-align: center;
    margin-bottom: 60px;
    color: #333;
}

/* Property Cards */
.property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.property-card {
    background: #fff;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.property-details {
    padding: 15px;
}

.property-details h3 {
    margin-bottom: 10px;
}

.view-details {
    display: inline-block;
    margin-top: 10px;
    background-color: #ff6a00;
    color: white;
    padding: 10px 15px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.view-details:hover {
    background-color: #ee0979;
}

/* Slider Styles */
.slider-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
    padding: 20px;
    text-align: center;
}

.prev-btn, .next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    border: none;
    color: white;
    font-size: 24px;
    padding: 10px;
    cursor: pointer;
}

.prev-btn {
    left: 0;
}

.next-btn {
    right: 0;
}

/* Property Details Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: 5% auto;
    width: 80%;
    max-width: 700px;
    background-color: #fefefe;
    padding: 20px;
    border-radius: 5px;
    position: relative;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-img {
    width: 100%;
    height: auto;
    max-height: 60vh;
    object-fit: cover;
}

.photo-nav button {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0,0,0,0.5);
}

.next-photo {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev-photo {
    left: 0;
}

/* Contact Section */
.contact-section {
    padding: 100px 50px;
    background-color: #141414;
    color: white;
    text-align: center;
}

form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

form input, form textarea {
    padding: 15px;
    font-size: 16px;
    border: 1px solid #ccc;
    border-radius: 5px;
    width: 100%;
}

form button {
    background-image: linear-gradient(to right, #ff6a00, #ee0979);
    color: white;
    padding: 15px;
    border: none;
    font-size: 18px;
    cursor: pointer;
    transition: background 0.3s ease;
}

form button:hover {
    background-image: linear-gradient(to right, #ee0979, #ff6a00);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #111;
    color: white;
}

.social-links {
    margin-top: 10px;
}

.social-links a {
    color: white;
    margin: 0 10px;
    text-decoration: none;
}

/* Back to Top Button */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99;
    background-color: #ff6a00;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
    display: none;
    transition: background 0.3s ease;
}

#back-to-top:hover {
    background-color: #ee0979;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        font-size: 14px;
    }

    .navbar {
        flex-direction: column;
    }

    .nav-links {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .hero-section h1 {
        font-size: 48px;
    }

    .hero-section p {
        font-size: 18px;
    }

    .about-content {
        flex-direction: column;
    }

    .about-content img {
        width: 200px;
        height: 200px;
    }

    .listings-section h2 {
        font-size: 32px;
    }

    .modal-content {
        width: 95%;
    }

    .modal-img {
        max-height: 50vh;
    }
}

/* Touch Device Adjustments */
body.touch-device .cta-button:hover {
    transform: none;
    box-shadow: none;
}

body.mobile-view .property-grid {
    grid-template-columns: 1fr;
}

/* Filter Dropdown */
#filter {
    margin-bottom: 20px;
    padding: 10px;
    font-size: 16px;
    border-radius: 5px;
    border: 1px solid #ccc;
    background-color: #fff;
    width: 200px;
}

/* Property Card Features */
.features {
    list-style: none;
    padding: 0;
    margin-top: 10px;
}

.features li {
    background: url('check-icon.png') no-repeat left center; /* Assuming you have a check icon */
    padding: 5px 0 5px 25px;
    margin: 5px 0;
}

/* Modal Features */
#modalFeatures ul {
    list-style: none;
    padding: 0;
}

#modalFeatures ul li {
    background: url('check-icon.png') no-repeat left top; /* Same check icon for consistency */
    padding-left: 25px;
    margin: 10px 0;
}

/* Responsive Image Handling */
img {
    max-width: 100%;
    height: auto;
}

/* Adjustments for Smaller Screens */
@media (max-width: 480px) {
    .hero-section h1 {
        font-size: 36px;
    }

    .cta-button {
        font-size: 16px;
        padding: 12px 24px;
    }

    .listings-section h2 {
        font-size: 28px;
    }

    .modal-content {
        margin: 15% auto;
        padding: 15px;
    }

    .modal-img {
        max-height: 40vh;
    }

    .contact-info {
        text-align: center;
        margin-top: 10px;
    }

    form input, form textarea {
        padding: 12px;
    }
}

/* Enhancements for hover effects on non-touch devices */
@media (hover: hover) {
    .property-card:hover {
        transform: scale(1.05);
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    }

    .view-details:hover {
        transform: scale(1.05);
    }
}

/* Hide scrollbar for Chrome, Safari and Opera */
body::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
body {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}

/* Additional Utility Classes */
.text-center {
    text-align: center;
}

.hidden {
    display: none;
}