/* assets/css/responsive.css */

/* Tablet & Mobile Responsive */

@media (max-width: 1200px) {
    .nav-container {
        padding: 0 2rem;
    }
    
    .container {
        padding: 3rem 2rem;
    }
}

@media (max-width: 992px) {
    /* Hide desktop menu */
    .nav-center {
        display: none;
    }
    
    /* Show mobile menu button */
    .mobile-menu-btn {
        display: flex;
    }
    
    /* Adjust hero */
    h1 {
        font-size: 2.5rem;
    }
    
    h2 {
        font-size: 2rem;
    }
    
    .search-box {
        flex-direction: column;
        border-radius: 24px;
    }
    
    .search-field {
        min-width: auto;
    }
    
    .search-btn {
        padding: 1rem;
    }
    
    .mega-dropdown {
        display: none;
    }
    
    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        padding: 0 1rem;
    }
    
    .container {
        padding: 2rem 1rem;
    }
    
    h1 {
        font-size: 2rem;
    }
    
    h2 {
        font-size: 1.5rem;
    }
    
    .section-title {
        font-size: 1.5rem;
    }
    
    .hero {
        min-height: 70vh;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .filter-grid {
        flex-direction: column;
    }
    
    .filter-item {
        min-width: auto;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .whatsapp-float {
        bottom: 1rem;
        right: 1rem;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
    
    .back-to-top {
        bottom: 1rem;
        right: 4.5rem;
        width: 40px;
        height: 40px;
    }
    
    .property-card {
        border-radius: 20px;
    }
    
    .card-image {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .logo-text {
        font-size: 1.2rem;
    }
    
    .logo-icon {
        width: 32px;
        height: 32px;
        font-size: 1rem;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .card-buttons {
        flex-direction: column;
    }
    
    .property-price {
        font-size: 1.2rem;
    }
    
    .card-actions {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .action-btn {
        width: 30px;
        height: 30px;
        font-size: 0.8rem;
    }
    
    .badge {
        font-size: 0.6rem;
        padding: 0.2rem 0.6rem;
    }
}

/* Mobile Menu Styles */
.mobile-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 85%;
    max-width: 350px;
    height: 100vh;
    background: var(--white);
    z-index: 2000;
    transition: var(--transition);
    padding: 1.5rem;
    overflow-y: auto;
    box-shadow: var(--shadow-xl);
}

.mobile-menu.active {
    right: 0;
}

.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1999;
    display: none;
}

.mobile-menu-overlay.active {
    display: block;
}

.mobile-menu-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--dark-navy);
}

.mobile-logo span span {
    color: var(--bright-blue);
}

.close-menu {
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-gray);
}

.mobile-nav-menu {
    list-style: none;
    padding: 0;
}

.mobile-nav-menu > li {
    margin-bottom: 1rem;
}

.mobile-nav-menu > li > a {
    display: block;
    padding: 0.8rem 0;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 500;
    border-bottom: 1px solid #e2e8f0;
}

.mobile-dropdown > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-submenu {
    list-style: none;
    padding-left: 1rem;
    margin-top: 0.5rem;
    display: none;
}

.mobile-submenu.active {
    display: block;
}

.mobile-submenu li {
    margin-bottom: 0.5rem;
}

.mobile-submenu li a {
    text-decoration: none;
    color: var(--text-gray);
    padding: 0.5rem 0;
    display: block;
}

.mobile-contact {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    gap: 1rem;
}

.mobile-call,
.mobile-whatsapp {
    flex: 1;
    text-align: center;
    padding: 0.8rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 500;
}

.mobile-call {
    background: var(--royal-blue);
    color: var(--white);
}

.mobile-whatsapp {
    background: #25D366;
    color: var(--white);
}

/* Property Detail Page */
.property-gallery {
    margin-bottom: 2rem;
}

.gallery-main {
    position: relative;
    border-radius: 24px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.gallery-main img {
    width: 100%;
    height: 500px;
    object-fit: cover;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
}

.gallery-thumb {
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: var(--transition);
}

.gallery-thumb.active,
.gallery-thumb:hover {
    opacity: 1;
}

.gallery-thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.property-info {
    background: var(--white);
    border-radius: 24px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: var(--shadow-md);
}

.property-specs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin: 1.5rem 0;
    padding: 1.5rem 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.spec-item {
    text-align: center;
}

.spec-icon {
    font-size: 2rem;
    color: var(--bright-blue);
    margin-bottom: 0.5rem;
}

.spec-label {
    font-size: 0.8rem;
    color: var(--text-gray);
}

.spec-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-dark);
}

.amenities-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1rem;
}

.amenity-tag {
    background: var(--off-white);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.similar-properties {
    margin-top: 3rem;
}

/* Compare Table */
.compare-table {
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.compare-table table {
    width: 100%;
    border-collapse: collapse;
}

.compare-table th,
.compare-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid #e2e8f0;
}

.compare-table th {
    background: var(--off-white);
    font-weight: 600;
    color: var(--dark-navy);
}

/* EMI Calculator */
.emi-calculator {
    background: var(--white);
    border-radius: 24px;
    padding: 2rem;
    box-shadow: var(--shadow-md);
}

.calculator-inputs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 500;
    color: var(--text-dark);
}

.input-group input {
    padding: 0.8rem;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-family: inherit;
}

.emi-result {
    background: linear-gradient(135deg, var(--dark-navy), var(--royal-blue));
    padding: 2rem;
    border-radius: 20px;
    color: var(--white);
    margin-top: 2rem;
}

.emi-amount {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

/* Reviews Section */
.reviews-section {
    background: var(--white);
    border-radius: 24px;
    padding: 2rem;
    margin-top: 2rem;
}

.review-card {
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.reviewer-name {
    font-weight: 600;
}

.review-rating {
    color: #fbbf24;
}

.review-form {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}

.rating-input {
    display: flex;
    flex-direction: row-reverse;
    gap: 0.5rem;
    justify-content: flex-end;
}

.rating-input input {
    display: none;
}

.rating-input label {
    font-size: 1.5rem;
    color: #cbd5e1;
    cursor: pointer;
}

.rating-input input:checked ~ label,
.rating-input label:hover,
.rating-input label:hover ~ label {
    color: #fbbf24;
}

/* Animations for cards */
.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}