/* General Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
    overflow-x: hidden;
    line-height: 1.6;
}

/* Base Font Size for REM units */
html {
    font-size: 16px;
}

/* Container Padding for Mobile First */
.container {
    padding-left: 1rem;
    padding-right: 1rem;
}

/* Hero Section - Enhanced Responsiveness */
.hero-section {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/hero-bg.jpg') no-repeat center center;
    background-size: cover;
    min-height: 100vh;
    position: relative;
    display: flex;
    align-items: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 2rem;
}

/* Section Title - Responsive Adjustments */
.section-title h2 {
    position: relative;
    padding-bottom: 1rem;
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    margin-bottom: 1.5rem;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 5rem;
    height: 0.25rem;
    background-color: #198754;
}

.section-title p {
    font-size: clamp(0.9rem, 2vw, 1.1rem);
}

/* Card Styles - Enhanced Responsiveness */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 0.625rem;
    overflow: hidden;
    margin-bottom: 1.5rem;
    height: 100%;
}

.card:hover {
    transform: translateY(-0.625rem);
    box-shadow: 0 0.625rem 1.25rem rgba(0, 0, 0, 0.1);
}

.card-img-top {
    height: 12.5rem;
    object-fit: cover;
    width: 100%;
}

.card-body {
    padding: 1.25rem;
}

/* Price Tag - Responsive */
.price-tag {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background-color: rgba(25, 135, 84, 0.9);
    color: white;
    padding: 0.375rem 0.75rem;
    border-radius: 0.3125rem;
    font-weight: bold;
    font-size: 0.875rem;
}

/* Icon Box - Responsive */
.icon-box {
    width: 3.75rem;
    height: 3.75rem;
    margin: 0 auto;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

/* Map Container - Responsive */
.map-container {
    border-radius: 0.625rem;
    overflow: hidden;
    box-shadow: 0 0.3125rem 0.9375rem rgba(0, 0, 0, 0.1);
    margin-top: 1rem;
    height: 25rem;
}

/* Social Links - Responsive */
.social-links {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.social-links a:hover {
    background-color: #198754;
    transform: scale(1.1);
}

/* Navbar - Enhanced Responsiveness */
.navbar {
    transition: all 0.3s ease;
    padding: 0.75rem 1rem;
}

.navbar-brand {
    font-size: clamp(1rem, 2vw, 1.25rem);
}

.navbar-nav .nav-link {
    padding: 0.5rem 1rem;
    font-size: 0.95rem;
}

.navbar.scrolled {
    background-color: #198754 !important;
    box-shadow: 0 0.125rem 0.625rem rgba(0, 0, 0, 0.1);
    padding: 0.5rem 1rem;
}

/* Modal Image - Responsive */
.modal-image {
    width: 100%;
    height: auto;
    max-height: 18.75rem;
    object-fit: cover;
    border-radius: 0.625rem;
    margin-bottom: 1.25rem;
}

/* Form Elements - Responsive */
.form-control {
    padding: 0.75rem;
    font-size: 1rem;
}

.btn {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

/* Responsive Adjustments with Multiple Breakpoints */
@media (max-width: 575.98px) {
    /* Extra small devices */
    .hero-section {
        min-height: 85vh;
    }
    
    .hero-content h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem;
    }
    
    .card-img-top {
        height: 10rem;
    }
    
    .price-tag {
        font-size: 0.75rem;
        padding: 0.25rem 0.5rem;
    }
}

@media (min-width: 576px) and (max-width: 767.98px) {
    /* Small devices */
    .hero-content h1 {
        font-size: 2.25rem;
    }
    
    .card-img-top {
        height: 11rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    /* Medium devices */
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .card-img-top {
        height: 13rem;
    }
}

@media (min-width: 992px) and (max-width: 1199.98px) {
    /* Large devices */
    .card-img-top {
        height: 15rem;
    }
}

@media (min-width: 1200px) {
    /* Extra large devices */
    .container {
        max-width: 1140px;
    }
    
    .card-img-top {
        height: 16rem;
    }
}

/* Special Adjustments for Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-section {
        min-height: 120vh;
    }
}

/* High Density Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Optional: Add high-res background images */
}

/* Print Styles */
@media print {
    .navbar, .hero-section, footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .container {
        width: auto;
        max-width: 100%;
        padding: 0;
    }
}