
    body {
    font-family: 'Inter', sans-serif;
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%);
    margin: 0;
    -webkit-overflow-scrolling: touch;
}

.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.hero-section {
    background: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
    padding: 6rem 0;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    z-index: 0;
}

.search-bar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    border-radius: 0.75rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    padding: 1rem;
}

.search-input, .form-input {
    padding: 0.75rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    outline: none;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    font-size: 1rem;
    touch-action: manipulation;
}

.search-input:focus, .form-input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.search-button {
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1rem;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.property-card {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 6px 16px rgba(0,0,0,0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
    animation: fadeInUp 0.6s ease-out;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 24px rgba(0,0,0,0.2);
}

.property-image {
    position: relative;
    aspect-ratio: 16/9;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.price-tag {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    background: rgba(255, 255, 255, 0.95);
    padding: 0.5rem 0.75rem;
    border-radius: 0.5rem;
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
}

.heart-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    color: white;
    text-shadow: 0 0 6px rgba(0,0,0,0.5);
    transition: transform 0.3s ease;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.heart-icon:hover {
    transform: scale(1.1);
}

.heart-icon .fa-heart.active {
    color: #dc2626;
}

.section-title {
    position: relative;
    margin-bottom: 2rem;
    color: #1e293b;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 3rem;
    height: 3px;
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    border-radius: 2px;
}

.feature-card {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    animation: fadeIn 0.8s ease-out;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    background: linear-gradient(135deg, #e6f0ff, #dbeafe);
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #2563eb;
    font-size: 1.75rem;
    transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
    transform: rotate(360deg);
}

.btn-primary {
    background: linear-gradient(90deg, #2563eb, #1d4ed8);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-size: 1rem;
    min-height: 44px;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.btn-outline {
    border: 2px solid #2563eb;
    color: #2563eb;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    font-size: 1rem;
    min-height: 44px;
}

.btn-outline:hover {
    background: #2563eb;
    color: white;
    transform: translateY(-2px);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.7);
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.4s ease;
    overflow-y: auto;
}

.modal.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: white;
    padding: 1.5rem;
    border-radius: 0.75rem;
    max-width: 90%;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.4s ease, opacity 0.4s ease;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

.modal.active .modal-content {
    transform: scale(1);
    opacity: 1;
}

.close-modal {
    float: right;
    cursor: pointer;
    font-size: 1.5rem;
    color: #1e293b;
    transition: color 0.3s ease;
    min-height: 44px;
    min-width: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal:hover {
    color: #2563eb;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.pagination button, .pagination select {
    padding: 0.5rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    min-height: 44px;
}

.pagination button.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.pagination button:hover:not(.active) {
    background: #f8fafc;
    transform: translateY(-2px);
}

.footer {
    background: linear-gradient(135deg, #1e293b, #2d3748);
    padding: 3rem 0;
    color: white;
}

.toast {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    background: #1e293b;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    z-index: 1001;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.4s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    max-width: 90%;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

.mobile-menu {
    display: none;
    position: fixed;
    top: 0;
    right: 0;
    height: 100%;
    width: 80%;
    max-width: 300px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    transform: translateX(100%);
    transition: transform 0.4s ease;
    z-index: 1001;
}

.mobile-menu.active {
    display: block;
    transform: translateX(0);
}

#property-map {
    height: 400px;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

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

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Mobile Small (≤480px) */
@media (max-width: 480px) {
      .navbar text-sm {
        color: #1e293b;
        font-size: 0.8rem; /* Smaller font for mobile */
        padding: 0.5rem 0.75rem; /* Reduced padding */
    }
    .hero-section {
        padding: 3rem 0;
        background-image: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?ixlib=rb-4.0.3&auto=format&fit=crop&w=800&q=80');
    }
    .hero-section h2 {
        font-size: 2rem;
    }
    .hero-section p {
        font-size: 1rem;
        max-width: 90%;
    }
    .search-bar {
        padding: 0.75rem;
    }
    .search-bar .grid {
        grid-template-columns: 1fr;
    }
    .search-button {
        width: 100%;
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    .property-card {
        margin-bottom: 1rem;
    }
    .property-card h4 {
        font-size: 1.1rem;
    }
    .property-card p, .property-card span {
        font-size: 0.85rem;
    }
    .modal-content {
        padding: 1rem;
        max-width: 95%;
    }
    .modal-content h3 {
        font-size: 1.5rem;
    }
    .form-input, .btn-primary, .btn-outline {
        font-size: 0.9rem;
        padding: 0.6rem;
    }
    #property-map {
        height: 200px;
    }
    .section-title {
        font-size: 1.75rem;
    }
    .feature-card {
        padding: 1rem;
    }
    .feature-card h4 {
        font-size: 1.25rem;
    }
    .feature-icon {
        width: 3rem;
        height: 3rem;
        font-size: 1.5rem;
    }
    .footer {
        padding: 2rem 0;
    }
    .footer h1 {
        font-size: 1.5rem;
    }
    .footer p, .footer ul li a {
        font-size: 0.9rem;
    }
    .pagination button, .pagination select {
        padding: 0.4rem 0.8rem;
        font-size: 0.85rem;
    }
}

/* Mobile Medium (481px–768px) */
@media (min-width: 481px) and (max-width: 768px) {
     .navbar text-sm {
        color: #1e293b;
        font-size: 0.8rem; /* Smaller font for mobile */
        padding: 0.5rem 0.75rem; /* Reduced padding */
    }
    .hero-section {
        padding: 4rem 0;
        background-image: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?ixlib=rb-4.0.3&auto=format&fit=crop&w=1200&q=80');
    }
    .hero-section h2 {
        font-size: 2.5rem;
    }
    .hero-section p {
        font-size: 1.1rem;
    }
    .search-bar {
        padding: 1rem;
    }
    .search-bar .grid {
        grid-template-columns: 1fr 1fr;
    }
    .search-bar .grid > div:nth-child(3), .search-bar .grid > div:nth-child(4) {
        grid-column: span 2;
    }
    .search-button {
        padding: 0.75rem;
        font-size: 0.95rem;
    }
    .property-card {
        margin-bottom: 1.25rem;
    }
    .property-card h4 {
        font-size: 1.2rem;
    }
    .modal-content {
        padding: 1.25rem;
        max-width: 92%;
    }
    #property-map {
        height: 250px;
    }
    .section-title {
        font-size: 2rem;
    }
    .feature-card {
        padding: 1.25rem;
    }
    .footer {
        padding: 2.5rem 0;
    }
}
/* Ensure Premium badge looks good on mobile */
@media (max-width: 480px) {
  
}

/* Tablet (769px–1024px) */
@media (min-width: 769px) and (max-width: 1024px) {
    .navbar .container {
        padding: 0 1.5rem;
    }
    .hero-section {
        padding: 5rem 0;
        background-image: linear-gradient(rgba(0,0,0,0.65), rgba(0,0,0,0.65)), url('https://images.unsplash.com/photo-1560448204-e02f11c3d0e2?ixlib=rb-4.0.3&auto=format&fit=crop&w=1600&q=80');
    }
    .hero-section h2 {
        font-size: 3rem;
    }
    .hero-section p {
        font-size: 1.25rem;
    }
    .search-bar .grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .search-bar .grid > div:nth-child(5) {
        grid-column: span 3;
    }
    .property-card {
        margin-bottom: 1.5rem;
    }
    .property-card h4 {
        font-size: 1.3rem;
    }
    #properties-list {
        grid-template-columns: repeat(2, 1fr);
    }
    #featured-properties {
        grid-template-columns: repeat(2, 1fr);
    }
    .modal-content {
        max-width: 85%;
        padding: 1.5rem;
    }
    #property-map {
        height: 300px;
    }
    .section-title {
        font-size: 2.25rem;
    }
    .feature-card {
        padding: 1.5rem;
    }
}

/* Desktop (>1024px) */
@media (min-width: 1025px) {
      .navbar text-sm {
        color: #1e293b;
        font-size: 0.8rem; /* Smaller font for mobile */
        padding: 0.5rem 0.75rem; /* Reduced padding */
    }
    .hero-section {
        padding: 8rem 0;
    }
    .hero-section h2 {
        font-size: 4rem;
    }
    .hero-section p {
        font-size: 1.5rem;
    }
    .search-bar {
        padding: 1.5rem;
    }
    .search-bar .grid {
        grid-template-columns: repeat(5, 1fr);
    }
    .property-card {
        margin-bottom: 2rem;
    }
    .property-card h4 {
        font-size: 1.5rem;
    }
    .modal-content {
        max-width: 56rem;
        padding: 2rem;
    }
    #property-map {
        height: 400px;
    }
    .section-title {
        font-size: 2.5rem;
    }
    .feature-card {
        padding: 2rem;
    }
    .footer {
        padding: 4rem 0;
    }
}
 