/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

/* Pre-loader Styles */
.pre-loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease, visibility 0.5s ease;
}

.pre-loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.pre-loader video {
    max-width: 300px;
    max-height: 300px;
    width: 100%;
    height: auto;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-logo h2 {
    color: #2c3e50;
    font-weight: 600;
}

.nav-logo i {
    color: #3498db;
    margin-right: 10px;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: #3498db;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: #3498db;
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

.admin-link {
    background: #3498db;
    color: white !important;
    padding: 8px 16px;
    border-radius: 5px;
    transition: background 0.3s ease;
}

.admin-link:hover {
    background: #2980b9;
}

.admin-link::after {
    display: none;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.bar {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,138.7C960,139,1056,117,1152,112C1248,107,1344,117,1392,122.7L1440,128L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom center/cover no-repeat;
}
.over {
 background-image: url('../img/log.png');
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    background-clip: border-box;
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
    padding: 0 20px;
}


.hero h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
    animation: fadeInUp 1s ease 0.2s both;
}

.search-container {
    display: flex;
    max-width: 500px;
    margin: 0 auto;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: fadeInUp 1s ease 0.4s both;
}

.search-container input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    outline: none;
    font-size: 16px;
    color: #333;
}

.search-container button {
    background: #3498db;
    border: none;
    padding: 15px 25px;
    color: white;
    cursor: pointer;
    transition: background 0.3s ease;
}

.search-container button:hover {
    background: #2980b9;
}

/* Filters */
.filters {
    background: white;
    padding: 30px 0;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

/* Apartment Type Toggle Section */
.apartment-type-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 40px 0;
    color: white;
}

.type-toggle-container {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.type-toggle-container h2 {
    font-size: 2.2rem;
    margin-bottom: 30px;
    font-weight: 600;
}

.apartment-type-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    max-width: 600px;
    margin: 0 auto;
}

.type-toggle-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 25px;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    backdrop-filter: blur(10px);
}

.type-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-5px);
}

.type-toggle-btn.active {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    border-color: white;
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.type-toggle-btn i {
    font-size: 2.5rem;
    margin-bottom: 5px;
}

.type-toggle-btn span {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 5px;
}

.type-toggle-btn small {
    font-size: 0.9rem;
    opacity: 0.8;
}

.type-toggle-btn.active small {
    opacity: 0.6;
}

.filter-group {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group select,
.filter-group button {
    padding: 10px 15px;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.filter-group select:focus {
    border-color: #3498db;
}

#clearFilters {
    background: #e74c3c;
    color: white;
    border: none;
    cursor: pointer;
}

#clearFilters:hover {
    background: #c0392b;
}

/* Apartments Section */
.apartments {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 600;
    margin-bottom: 50px;
    color: #2c3e50;
}

.apartment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 50px;
}

.apartment-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.apartment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

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

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

.apartment-card:hover .apartment-image img {
    transform: scale(1.1);
}

.price-tag {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #3498db;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
}

.booked-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #e74c3c;
    color: white;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.booked-notification {
    background: #fff8e1;
    border-left: 4px solid #ffc107;
    padding: 20px;
    margin: 20px 0;
    border-radius: 8px;
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.booked-icon {
    color: #ffc107;
    font-size: 1.5rem;
    margin-top: 3px;
}

.booked-content h3 {
    margin-top: 0;
    color: #2c3e50;
    margin-bottom: 10px;
}

.booked-content p {
    margin: 0 0 15px 0;
    color: #555;
    line-height: 1.5;
}

.whatsapp-reservation-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #25d366;
    color: white;
    padding: 12px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.whatsapp-reservation-btn:hover {
    background: #128c7e;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(37, 211, 102, 0.4);
}

.whatsapp-reservation-btn i {
    font-size: 1.2rem;
}

.apartment-info {
    padding: 25px;
}

.apartment-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #2c3e50;
}

.apartment-location {
    color: #7f8c8d;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.apartment-features {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #7f8c8d;
    font-size: 14px;
}

.apartment-amenities {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.amenity-icon {
    width: 30px;
    height: 30px;
    background: #ecf0f1;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3498db;
    font-size: 12px;
}

.view-details {
    background: #3498db;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.3s ease;
    width: 100%;
}

.view-details:hover {
    background: #2980b9;
}

/* No Apartments Message */
.no-apartments-message {
    text-align: center;
    padding: 50px 20px;
    max-width: 500px;
    margin: 0 auto;
}

.no-apartments-message i {
    font-size: 4rem;
    color: #bdc3c7;
    margin-bottom: 20px;
}

.no-apartments-message h3 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 15px;
    font-weight: 600;
}

.no-apartments-message p {
    color: #7f8c8d;
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

/* Loading and No Results */
.loading {
    text-align: center;
    padding: 50px;
    color: #7f8c8d;
    font-size: 18px;
}

.no-results {
    text-align: center;
    padding: 50px;
    color: #7f8c8d;
}

.no-results i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}

/* About Section */
.about {
    background: white;
    padding: 80px 0;
}

.about-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.about-card {
    text-align: center;
    padding: 40px 20px;
    border-radius: 15px;
    background: #f8f9fa;
    transition: transform 0.3s ease;
}

.about-card:hover {
    transform: translateY(-5px);
}

.about-card i {
    font-size: 3rem;
    color: #3498db;
    margin-bottom: 20px;
}

.about-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #2c3e50;
}

.about-card p {
    color: #7f8c8d;
    line-height: 1.6;
}

/* Contact Section */
.contact {
    padding: 80px 0;
    background: #2c3e50;
    color: white;
}

.contact .section-title {
    color: white;
}

.contact-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
}

.contact-item i {
    font-size: 1.5rem;
    color: #3498db;
    width: 50px;
    height: 50px;
    background: rgba(52, 152, 219, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-item h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.contact-item p {
    color: #bdc3c7;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form textarea {
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    outline: none;
    background: rgba(255,255,255,0.1);
    color: white;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #bdc3c7;
}

.contact-form input:focus,
.contact-form textarea:focus {
    border-color: #3498db;
    background: rgba(255,255,255,0.15);
}

.contact-form button {
    background: #3498db;
    color: white;
    border: none;
    padding: 15px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.contact-form button:hover {
    background: #2980b9;
}

/* Footer */
.footer {
    background: #1a252f;
    color: white;
    padding: 50px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 30px;
}

.footer-section h3 {
    color: #3498db;
    margin-bottom: 20px;
}

.footer-section h4 {
    margin-bottom: 20px;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 20px;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: background 0.3s ease;
}

.social-links a:hover {
    background: #2980b9;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section ul li a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section ul li a:hover {
    color: #3498db;
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    border-top: 1px solid #34495e;
    color: #bdc3c7;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background-color: white;
    margin: 2% auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideInUp 0.3s ease;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    padding: 20px;
    cursor: pointer;
}

.close:hover {
    color: #333;
}

/* Modal Content Styles */
.modal-apartment-gallery {
    position: relative;
    height: 400px;
    overflow: hidden;
}

.modal-gallery-container {
    display: flex;
    transition: transform 0.3s ease;
    height: 100%;
}

.modal-gallery-slide {
    min-width: 100%;
    height: 100%;
}

.modal-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 15px 20px;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s ease;
}

.gallery-nav:hover {
    background: rgba(0,0,0,0.8);
}

.gallery-prev {
    left: 20px;
}

.gallery-next {
    right: 20px;
}

.gallery-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
}

.gallery-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: background 0.3s ease;
}

.gallery-dot.active {
    background: white;
}

.modal-apartment-details {
    padding: 40px;
}

.modal-apartment-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 30px;
}

.modal-apartment-title {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 10px;
}

.modal-apartment-location {
    color: #7f8c8d;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.modal-price {
    font-size: 2rem;
    font-weight: 700;
    color: #3498db;
}

.modal-apartment-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.modal-description {
    line-height: 1.8;
    color: #555;
}

.modal-features {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.modal-feature {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.1rem;
}

.modal-feature i {
    color: #3498db;
    width: 20px;
}

.modal-amenities {
    margin: 40px 0;
}

.modal-amenities h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.modal-amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.modal-amenity {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    background: #f8f9fa;
    border-radius: 8px;
}

.modal-amenity i {
    color: #3498db;
    font-size: 1.2rem;
    width: 25px;
}

.modal-map {
    margin: 40px 0;
}

.modal-map h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.modal-map-container {
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.modal-agent {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
}

.modal-agent h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #2c3e50;
}

.agent-info {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.agent-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #3498db;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.agent-details h4 {
    font-size: 1.2rem;
    margin-bottom: 5px;
    color: #2c3e50;
}

.agent-details p {
    color: #7f8c8d;
}

.agent-contacts {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.agent-contact {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 15px;
    background: white;
    border-radius: 25px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.agent-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.agent-contact.whatsapp {
    background: #25d366;
    color: white;
}

.agent-contact.instagram {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
    color: white;
}

.agent-contact.facebook {
    background: #1877f2;
    color: white;
}

/* Coming Soon Styles */
.coming-soon-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
    backdrop-filter: blur(5px);
}

.coming-soon-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    margin: 5% auto;
    padding: 40px;
    border-radius: 20px;
    width: 90%;
    max-width: 500px;
    text-align: center;
    animation: slideInUp 0.5s ease;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.coming-soon-icon {
    font-size: 5rem;
    color: white;
    margin-bottom: 30px;
    animation: bounce 2s infinite;
}

.coming-soon-title {
    color: white;
    font-size: 2.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.coming-soon-message {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
}

.coming-soon-close {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 2px solid white;
    padding: 12px 30px;
    border-radius: 30px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.coming-soon-close:hover {
    background: white;
    color: #667eea;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Animations */
@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-30px);
    }
    60% {
        transform: translateY(-15px);
    }
}

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

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

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: white;
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0,0,0,0.05);
        padding: 20px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .hamburger {
        display: flex;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .search-container {
        flex-direction: column;
        border-radius: 15px;
    }

    .search-container input {
        border-radius: 15px 15px 0 0;
    }

    .search-container button {
        border-radius: 0 0 15px 15px;
    }

    .filter-group {
        flex-direction: column;
        align-items: stretch;
    }

    .filter-group select,
    .filter-group button {
        width: 100%;
    }

    .apartment-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    .modal-apartment-header {
        flex-direction: column;
        gap: 20px;
    }

    .modal-apartment-info {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .modal-amenities-grid {
        grid-template-columns: 1fr;
    }

    .agent-info {
        flex-direction: column;
        text-align: center;
    }

    .agent-contacts {
        justify-content: center;
    }

    .gallery-nav {
        padding: 10px 15px;
        font-size: 16px;
    }

    .gallery-prev {
        left: 10px;
    }

    .gallery-next {
        right: 10px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .apartment-card {
        margin: 0 10px;
    }

    .modal-apartment-details {
        padding: 20px;
    }

    .modal-apartment-title {
        font-size: 1.5rem;
    }

    .modal-price {
        font-size: 1.5rem;
    }
    
    /* Enhanced mobile responsiveness */
    .container {
        padding: 0 15px;
    }
    
    .search-container {
        margin: 0 15px;
    }
    
    .filter-group select,
    .filter-group button {
        font-size: 14px;
        padding: 8px 12px;
    }
    
    .apartment-grid {
        gap: 15px;
        padding: 0 5px;
    }
    
    .apartment-card {
        margin: 0;
    }
    
    .apartment-info {
        padding: 20px;
    }
    
    .apartment-features {
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .feature {
        font-size: 12px;
    }
    
    .amenity-icon {
        width: 25px;
        height: 25px;
        font-size: 10px;
    }
    
    .modal-content {
        margin: 2% auto;
        width: 98%;
        max-height: 95vh;
    }
    
    .modal-apartment-gallery {
        height: 250px;
    }
    
    .gallery-nav {
        padding: 8px 12px;
        font-size: 14px;
    }
    
    .gallery-prev {
        left: 5px;
    }
    
    .gallery-next {
        right: 5px;
    }
    
    .agent-contacts {
        flex-direction: column;
        gap: 10px;
    }
    
    .agent-contact {
        width: 100%;
        justify-content: center;
    }
}


/* Responsive Design for Apartment Type Toggle */
@media (max-width: 768px) {
    .apartment-type-toggle {
        grid-template-columns: 1fr;
        gap: 15px;
        max-width: 400px;
    }
    
    .type-toggle-btn {
        padding: 20px;
        min-height: 80px;
        touch-action: manipulation;
    }
    
    .type-toggle-btn i {
        font-size: 2rem;
    }
    
    .type-toggle-btn span {
        font-size: 1.1rem;
    }
    
    .type-toggle-container h2 {
        font-size: 1.8rem;
        margin-bottom: 25px;
    }
}

@media (max-width: 480px) {
    .apartment-type-section {
        padding: 30px 0;
    }
    
    .type-toggle-btn {
        padding: 15px;
        min-height: 70px;
    }
    
    .type-toggle-btn i {
        font-size: 1.8rem;
    }
    
    .type-toggle-btn span {
        font-size: 1rem;
    }
    
    .type-toggle-btn small {
        font-size: 0.8rem;
    }
    
    .type-toggle-container h2 {
        font-size: 1.5rem;
        margin-bottom: 20px;
    }
}

/* Touch-friendly enhancements */
@media (hover: none) and (pointer: coarse) {
    .apartment-card,
    .view-details,
    .nav-link,
    .type-toggle-btn,
    .agent-contact {
        touch-action: manipulation;
    }
    
    .apartment-card:active {
        transform: scale(0.98);
    }
    
    .view-details:active,
    .agent-contact:active {
        transform: scale(0.95);
    }
    
    /* Larger touch targets */
    .nav-link {
        padding: 15px;
        margin: 5px 0;
    }
    
    .gallery-nav {
        min-width: 50px;
        min-height: 50px;
    }
    
    .close {
        min-width: 50px;
        min-height: 50px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .apartment-card {
        border: 2px solid #333;
    }
    
    .nav-link:hover {
        background: #000;
        color: #fff;
    }
    
    .type-toggle-btn {
        border-width: 3px;
    }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .apartment-card:hover {
        transform: none;
    }
    
    .modal {
        animation: none;
    }
    
    .modal-content {
        animation: none;
    }
}
