
/* ========================
   RESPONSIVE
======================== */
@media (max-width: 1200px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .hero h1 {
        font-size: 42px;
    }
    
    .hero-search form {
        grid-template-columns: 1fr 1fr;
    }
    
    .hero-stats {
        gap: 32px;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .income-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .hero {
        padding: 120px 0 80px;
    }
    
    .hero h1 {
        font-size: 32px;
    }
    
    .hero p {
        font-size: 16px;
    }
    
    .hero-search form {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .hero-stat {
        flex: 1 1 40%;
    }
    
    .section-header h2 {
        font-size: 28px;
    }
    
    .property-grid {
        grid-template-columns: 1fr;
    }
    
    .listing-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-sidebar {
        position: static;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .main-image {
        height: 300px;
    }
    
    .gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .payment-methods {
        flex-direction: column;
    }
    
    .card-input-group {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .hero h1 {
        font-size: 26px;
    }
    
    .hero-badge {
        font-size: 12px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .booking-type-selector {
        flex-direction: column;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .results-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 16px;
        align-items: flex-start;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .toast {
        min-width: auto;
        max-width: calc(100vw - 48px);
    }
}

/* ========================
   ANIMATIONS
======================== */
.fade-in {
    animation: fadeIn 0.5s ease;
}

.slide-up {
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }
.stagger-5 { animation-delay: 0.5s; }

/* ========================
   LOADING SKELETON
======================== */
.skeleton {
    background: linear-gradient(90deg, var(--light-50) 25%, var(--border) 50%, var(--light-50) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ========================
   UTILITY CLASSES
======================== */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-warning { color: var(--warning); }
.text-gray { color: var(--gray); }

.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; }
.mt-4 { margin-top: 32px; }

.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.mb-3 { margin-bottom: 24px; }
.mb-4 { margin-bottom: 32px; }

.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }

.hidden { visibility: hidden; }
.visible { visibility: visible; }

.overflow-hidden { overflow: hidden; }
.overflow-auto { overflow: auto; }

.w-100 { width: 100%; }
.h-100 { height: 100%; }

/* ============================================
   PHASE 3: ENHANCED RESPONSIVE STYLES
   ============================================ */

/* ========================
   MOBILE NAVIGATION
======================== */
.mobile-nav-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.mobile-nav-overlay.active {
    display: block;
    opacity: 1;
}

.mobile-nav {
    position: fixed;
    top: 0;
    right: -320px;
    width: 320px;
    max-width: 85vw;
    height: 100%;
    background: white;
    z-index: 999;
    transition: right 0.3s ease;
    overflow-y: auto;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.15);
}

[data-theme="dark"] .mobile-nav {
    background: var(--light-50);
}

.mobile-nav.active {
    right: 0;
}

.mobile-nav-header {
    padding: 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.mobile-nav-header h3 {
    font-size: 20px;
}

.mobile-nav-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

.mobile-nav-content {
    padding: 16px 0;
}

.mobile-nav-section {
    padding: 12px 24px;
    border-bottom: 1px solid var(--border);
}

.mobile-nav-section h4 {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--gray);
    margin-bottom: 12px;
}

.mobile-nav a {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-radius: var(--radius);
    color: var(--secondary);
    font-weight: 500;
    transition: var(--transition);
}

[data-theme="dark"] .mobile-nav a {
    color: var(--secondary);
}

.mobile-nav a:hover {
    background: rgba(13, 148, 136, 0.1);
    color: var(--primary);
    padding-left: 20px;
}

.mobile-nav a.active {
    background: rgba(13, 148, 136, 0.1);
    color: var(--primary);
}

.mobile-nav a i {
    width: 20px;
    text-align: center;
    color: var(--gray);
}

.mobile-nav a:hover i,
.mobile-nav a.active i {
    color: var(--primary);
}

.mobile-nav-actions {
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* ========================
   RESPONSIVE BREAKPOINTS
======================== */

/* Extra Large Desktop */
@media (min-width: 1400px) {
    .container {
        max-width: 1400px;
    }
    
    .hero h1 {
        font-size: 64px;
    }
    
    .property-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Large Desktop */
@media (max-width: 1399px) {
    .property-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Tablet Landscape */
@media (max-width: 1200px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .checkout-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
    
    .hero-stats {
        gap: 32px;
    }
    
    .detail-sidebar {
        position: static;
    }
}

/* Tablet Portrait */
@media (max-width: 992px) {
    .navbar {
        height: 68px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-btn {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .nav-actions {
        gap: 8px;
    }
    
    .theme-toggle,
    .nav-actions > .btn,
    .nav-actions > .user-menu {
        display: none;
    }
    
    .mobile-nav-actions .theme-toggle {
        display: flex;
    }
    
    .hero {
        padding: 110px 0 70px;
    }
    
    .hero-content {
        max-width: 100%;
        text-align: center;
    }
    
    .hero h1 {
        font-size: 40px;
    }
    
    .hero p {
        font-size: 18px;
    }
    
    .hero-search {
        padding: 20px;
    }
    
    .hero-search form {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .hero-stats {
        justify-content: center;
        margin-top: 32px;
    }
    
    .section {
        padding: 60px 0;
    }
    
    .section-header h2 {
        font-size: 32px;
    }
    
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .listing-grid {
        grid-template-columns: 1fr;
    }
    
    .filter-sidebar {
        position: static;
    }
    
    .search-filters-bar {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        position: static;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .income-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .order-summary {
        position: static;
        margin-top: 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .auth-container {
        padding: 32px;
    }
}

/* Mobile Large */
@media (max-width: 768px) {
    .container {
        padding: 0 16px;
    }
    
    .navbar {
        height: 64px;
    }
    
    .logo {
        font-size: 22px;
    }
    
    .logo i {
        font-size: 24px;
    }
    
    .hero {
        padding: 100px 0 60px;
    }
    
    .hero-badge {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    .hero h1 {
        font-size: 32px;
        margin-bottom: 16px;
    }
    
    .hero p {
        font-size: 16px;
        margin-bottom: 24px;
    }
    
    .hero-search {
        padding: 16px;
        border-radius: var(--radius-lg);
    }
    
    .hero-search form {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .hero-search .btn-lg {
        width: 100%;
    }
    
    .hero-stats {
        gap: 20px;
    }
    
    .hero-stat {
        flex: 1 1 45%;
    }
    
    .hero-stat h3 {
        font-size: 28px;
    }
    
    .search-filters-bar {
        padding: 16px;
        gap: 10px;
    }
    
    .filter-chip {
        padding: 8px 14px;
        font-size: 13px;
    }
    
    .section {
        padding: 48px 0;
    }
    
    .section-header {
        margin-bottom: 32px;
    }
    
    .section-header h2 {
        font-size: 26px;
    }
    
    .section-header p {
        font-size: 15px;
    }
    
    .property-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .property-image {
        height: 200px;
    }
    
    .property-content {
        padding: 16px;
    }
    
    .property-price {
        font-size: 24px;
    }
    
    .property-title {
        font-size: 16px;
    }
    
    .property-features {
        gap: 12px;
        flex-wrap: wrap;
    }
    
    .property-feature {
        font-size: 13px;
    }
    
    .cta-section {
        padding: 60px 0;
    }
    
    .cta-section h2 {
        font-size: 28px;
    }
    
    .cta-section p {
        font-size: 16px;
    }
    
    .cta-buttons {
        flex-direction: column;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .page-header {
        padding: 100px 0 50px;
    }
    
    .page-header h1 {
        font-size: 28px;
    }
    
    /* About Page */
    .about-section {
        padding: 48px 0;
    }
    
    .about-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .about-content h2 {
        font-size: 26px;
    }
    
    .about-content h3 {
        font-size: 18px;
        margin: 20px 0 10px;
    }
    
    .about-image {
        order: -1;
    }
    
    .stats-section {
        padding: 48px 0;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .stat-item {
        padding: 24px 16px;
    }
    
    .stat-item i {
        font-size: 32px;
    }
    
    .stat-item h3 {
        font-size: 28px;
    }
    
    .team-section {
        padding: 48px 0;
    }
    
    .team-section h2 {
        font-size: 28px;
    }
    
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .team-card {
        padding: 24px 16px;
    }
    
    .team-avatar {
        width: 64px;
        height: 64px;
    }
    
    .team-avatar i {
        font-size: 24px;
    }
    
    /* Contact Page */
    .contact-section {
        padding: 48px 0;
    }
    
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .contact-form-card {
        padding: 24px;
    }
    
    .contact-info {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .map-section {
        padding: 0 0 48px;
    }
    
    .listing-section {
        padding: 40px 0;
    }
    
    .filter-sidebar {
        padding: 20px;
    }
    
    .filter-sidebar h3 {
        font-size: 18px;
    }
    
    .filter-group {
        margin-bottom: 16px;
    }
    
    .checkbox-group {
        gap: 10px;
    }
    
    .checkbox-label {
        font-size: 14px;
    }
    
    .price-range {
        flex-direction: column;
    }
    
    .price-range input {
        width: 100%;
    }
    
    .results-header {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }
    
    .results-sort {
        width: 100%;
    }
    
    .results-sort select {
        flex: 1;
    }
    
    .property-list {
        grid-template-columns: 1fr;
    }
    
    .pagination {
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .pagination button {
        width: 38px;
        height: 38px;
        font-size: 14px;
    }
    
    .detail-section {
        padding: 40px 0;
    }
    
    .main-image {
        height: 280px;
        border-radius: var(--radius-lg);
    }
    
    .gallery-thumbs {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
    }
    
    .gallery-thumb {
        height: 60px;
    }
    
    .detail-header h1 {
        font-size: 24px;
    }
    
    .detail-meta {
        gap: 12px;
        font-size: 14px;
    }
    
    .detail-price {
        font-size: 28px;
    }
    
    .detail-description h3,
    .detail-features h3 {
        font-size: 18px;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .feature-item {
        padding: 12px;
        font-size: 13px;
    }
    
    .booking-card {
        padding: 20px;
    }
    
    .booking-card h3 {
        font-size: 18px;
    }
    
    .booking-card .price {
        font-size: 26px;
    }
    
    .booking-type-selector {
        flex-direction: column;
    }
    
    .booking-type {
        padding: 14px;
    }
    
    .agent-card {
        padding: 20px;
    }
    
    .agent-avatar {
        width: 72px;
        height: 72px;
        font-size: 28px;
    }
    
    .agent-card h4 {
        font-size: 18px;
    }
    
    .calculator-section {
        padding: 20px;
    }
    
    .calculator-section h3 {
        font-size: 18px;
    }
    
    .calculator-grid {
        grid-template-columns: 1fr;
    }
    
    .calculator-result {
        padding: 20px;
    }
    
    .calculator-result h4 {
        font-size: 28px;
    }
    
    .map-container {
        height: 250px;
        border-radius: var(--radius-lg);
    }
    
    .auth-page {
        padding: 24px 16px;
    }
    
    .auth-container {
        padding: 24px;
        border-radius: var(--radius-lg);
    }
    
    .auth-header .logo {
        font-size: 28px;
    }
    
    .auth-tabs {
        margin-bottom: 20px;
    }
    
    .auth-tab {
        padding: 10px;
        font-size: 13px;
    }
    
    .role-selector {
        flex-direction: column;
    }
    
    .role-option {
        padding: 16px;
    }
    
    .demo-accounts {
        padding: 14px;
        font-size: 12px;
    }
    
    .checkout-page {
        padding: 80px 0 40px;
    }
    
    .checkout-form {
        padding: 20px;
    }
    
    .checkout-form h2 {
        font-size: 20px;
    }
    
    .payment-methods {
        flex-direction: column;
    }
    
    .payment-method {
        padding: 16px;
    }
    
    .card-input-group {
        grid-template-columns: 1fr;
    }
    
    .order-summary {
        padding: 20px;
    }
    
    .order-summary h3 {
        font-size: 18px;
    }
    
    .summary-property {
        flex-direction: column;
    }
    
    .summary-property img {
        width: 100%;
        height: 120px;
    }
    
    .receipt-page {
        padding: 80px 0 40px;
    }
    
    .receipt-container {
        padding: 32px 20px;
    }
    
    .receipt-header h1 {
        font-size: 26px;
    }
    
    .receipt-row {
        font-size: 14px;
    }
    
    .receipt-row.total {
        font-size: 22px;
    }
    
    .dashboard-page {
        padding: 80px 0 40px;
    }
    
    .dashboard-sidebar {
        padding: 16px;
    }
    
    .dashboard-user {
        padding: 16px 0;
    }
    
    .dashboard-user-avatar {
        width: 64px;
        height: 64px;
        font-size: 24px;
    }
    
    .dashboard-content {
        padding: 20px;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
    
    .dashboard-header h2 {
        font-size: 22px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .stat-card {
        padding: 20px;
    }
    
    .stat-card h3 {
        font-size: 28px;
    }
    
    .stat-card p {
        font-size: 13px;
    }
    
    .income-summary {
        padding: 24px;
    }
    
    .income-summary h3 {
        font-size: 16px;
    }
    
    .income-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .income-item {
        padding: 16px;
    }
    
    .income-item p {
        font-size: 22px;
    }
    
    .table-container {
        margin: 0 -20px;
    }
    
    table {
        font-size: 13px;
    }
    
    table th,
    table td {
        padding: 12px 14px;
    }
    
    .footer {
        padding: 48px 0 24px;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    
    .footer-brand .logo {
        font-size: 24px;
    }
    
    .footer-links h4 {
        margin-bottom: 16px;
    }
    
    .footer-links ul li {
        margin-bottom: 10px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }
    
    .footer-bottom-links {
        flex-wrap: wrap;
        justify-content: center;
        gap: 16px;
    }
    
    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 26px;
        bottom: 20px;
        right: 20px;
    }
    
    .toast-container {
        top: 80px;
        right: 16px;
        left: 16px;
    }
    
    .toast {
        min-width: auto;
        width: 100%;
        padding: 14px 16px;
    }
    
    .toast-icon {
        width: 36px;
        height: 36px;
        font-size: 16px;
    }
    
    .lightbox {
        padding: 0;
    }
    
    .lightbox-content {
        max-width: 100%;
        max-height: 100%;
        width: 100%;
        height: 100%;
    }
    
    .lightbox-content img,
    .lightbox-content video,
    .lightbox-content iframe {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 0;
    }
    
    .lightbox-close {
        top: 12px;
        right: 12px;
        width: 40px;
        height: 40px;
        font-size: 24px;
    }
    
    .lightbox-nav {
        padding: 16px;
        font-size: 20px;
    }
    
    .lightbox-prev {
        left: 8px;
    }
    
    .lightbox-next {
        right: 8px;
    }
    
    .lightbox-counter {
        bottom: 12px;
        font-size: 12px;
        padding: 6px 12px;
    }
    
    .modal {
        max-width: calc(100vw - 32px);
        margin: 16px;
    }
    
    .modal-header {
        padding: 16px 20px;
    }
    
    .modal-header h3 {
        font-size: 18px;
    }
    
    .modal-body {
        padding: 20px;
    }
    
    .modal-footer {
        padding: 16px 20px;
        flex-direction: column;
    }
    
    .modal-footer .btn {
        width: 100%;
    }
    
    .form-group {
        margin-bottom: 16px;
    }
    
    .form-control {
        padding: 12px 14px;
        font-size: 15px;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .btn-sm {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .btn-lg {
        padding: 14px 24px;
        font-size: 15px;
    }
}

/* Mobile Small */
@media (max-width: 480px) {
    .hero h1 {
        font-size: 26px;
    }
    
    .hero p {
        font-size: 15px;
    }
    
    .hero-badge {
        font-size: 11px;
        padding: 5px 12px;
    }
    
    .hero-stat h3 {
        font-size: 24px;
    }
    
    .hero-stat p {
        font-size: 12px;
    }
    
    .search-filters-bar {
        justify-content: flex-start;
        overflow-x: auto;
        flex-wrap: nowrap;
        padding: 12px;
        gap: 8px;
    }
    
    .search-filters-bar::-webkit-scrollbar {
        display: none;
    }
    
    .filter-chip {
        white-space: nowrap;
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .section-header h2 {
        font-size: 22px;
    }
    
    .property-card {
        border-radius: var(--radius-lg);
    }
    
    .property-image {
        height: 180px;
    }
    
    .property-content {
        padding: 14px;
    }
    
    .property-price {
        font-size: 22px;
    }
    
    .property-title {
        font-size: 15px;
    }
    
    .property-features {
        gap: 8px;
    }
    
    .property-feature {
        font-size: 12px;
    }
    
    .property-feature i {
        font-size: 14px;
    }
    
    .property-footer {
        flex-direction: column;
    }
    
    .property-footer .btn {
        width: 100%;
    }
    
    .cta-section h2 {
        font-size: 24px;
    }
    
    .cta-section p {
        font-size: 15px;
    }
    
    .page-header h1 {
        font-size: 24px;
    }
    
    /* About Page - Extra Small */
    .about-content h2 {
        font-size: 24px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item {
        padding: 20px 16px;
    }
    
    .team-grid {
        grid-template-columns: 1fr;
    }
    
    /* Contact Page - Extra Small */
    .contact-info {
        grid-template-columns: 1fr;
    }
    
    .breadcrumb {
        font-size: 13px;
    }
    
    .gallery-thumbs {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    
    .gallery-thumb {
        height: 50px;
    }
    
    .detail-header h1 {
        font-size: 20px;
    }
    
    .detail-price {
        font-size: 24px;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .booking-card .price {
        font-size: 22px;
    }
    
    .calculator-result h4 {
        font-size: 24px;
    }
    
    .auth-container {
        padding: 20px;
    }
    
    .auth-header .logo {
        font-size: 24px;
    }
    
    .auth-tab {
        padding: 8px;
        font-size: 12px;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-social a {
        width: 40px;
        height: 40px;
    }
}

/* Extra Small */
@media (max-width: 360px) {
    .hero h1 {
        font-size: 22px;
    }
    
    .hero p {
        font-size: 14px;
    }
    
    .hero-stat {
        flex: 1 1 100%;
    }
    
    .hero-stat h3 {
        font-size: 22px;
    }
    
    .section-header h2 {
        font-size: 20px;
    }
    
    .page-header h1 {
        font-size: 20px;
    }
    
    .property-price {
        font-size: 20px;
    }
    
    .detail-price {
        font-size: 22px;
    }
}

/* Landscape Orientation */
@media (max-height: 500px) and (orientation: landscape) {
    .hero {
        padding: 80px 0 40px;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    
    .hero p {
        font-size: 14px;
        margin-bottom: 16px;
    }
    
    .hero-stats {
        margin-top: 16px;
    }
    
    .hero-stat h3 {
        font-size: 20px;
    }
    
    .auth-page {
        padding: 16px;
        align-items: flex-start;
        padding-top: 40px;
    }
    
    .auth-container {
        max-height: 90vh;
        overflow-y: auto;
    }
}

/* High DPI / Retina Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .property-image img,
    .main-image img,
    .gallery-thumb img {
        image-rendering: -webkit-optimize-contrast;
    }
}

/* Touch Device Optimizations */
@media (hover: none) and (pointer: coarse) {
    .btn:hover {
        transform: none;
    }
    
    .btn:active {
        transform: scale(0.98);
    }
    
    .property-card:hover {
        transform: none;
    }
    
    .property-card:active {
        transform: scale(0.99);
    }
    
    .property-action:hover {
        transform: scale(1.1);
    }
    
    .property-action:active {
        transform: scale(0.95);
    }
    
    .nav-links a:hover::after {
        width: 0;
    }
    
    .nav-links a:active {
        background: rgba(13, 148, 136, 0.1);
    }
    
    input:focus,
    select:focus,
    textarea:focus {
        font-size: 16px;
    }
    
    .filter-chip:active {
        background: var(--primary);
        color: white;
    }
    
    .pagination button:active {
        background: var(--primary);
        color: white;
    }
}

/* Print Styles */
@media print {
    .navbar,
    .footer,
    .whatsapp-float,
    .toast-container,
    .lightbox,
    .modal-overlay,
    .mobile-nav,
    .mobile-nav-overlay,
    .theme-toggle,
    .booking-card form,
    .calculator-section,
    .property-actions {
        display: none !important;
    }
    
    .hero {
        padding: 20px 0;
        background: white !important;
    }
    
    .hero h1,
    .hero p {
        color: black !important;
    }
    
    .property-card {
        break-inside: avoid;
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .detail-grid,
    .checkout-grid {
        display: block;
    }
    
    .detail-sidebar {
        display: none;
    }
    
    body {
        background: white !important;
    }
    
    .container {
        max-width: 100%;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    html {
        scroll-behavior: auto;
    }
}

/* Dark Mode Specific Responsive */
[data-theme="dark"] .mobile-nav {
    background: #1e293b;
}

[data-theme="dark"] .mobile-nav-header {
    background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
}

/* Container Queries Support (Modern Browsers) */
@container (max-width: 600px) {
    .property-content {
        padding: 12px;
    }
    
    .property-price {
        font-size: 20px;
    }
}

/* ========================
   SCROLLBAR STYLING
======================== */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light-50);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-light);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray);
}

::-webkit-scrollbar-corner {
    background: transparent;
}

/* Firefox */
* {
    scrollbar-width: thin;
    scrollbar-color: var(--gray-light) var(--light-50);
}

/* ========================
   SELECTION STYLING
======================== */
::selection {
    background: rgba(13, 148, 136, 0.3);
    color: var(--secondary);
}

[data-theme="dark"] ::selection {
    background: rgba(13, 148, 136, 0.4);
    color: white;
}

/* ========================
   RESPONSIVE VISIBILITY
======================== */
.show-mobile {
    display: none !important;
}

.show-tablet {
    display: none !important;
}

.show-desktop {
    display: inline-flex !important;
}

.hide-mobile {
    display: inline-flex !important;
}

.hide-tablet {
    display: inline-flex !important;
}

.hide-desktop {
    display: none !important;
}

@media (max-width: 768px) {
    .show-mobile {
        display: flex !important;
    }
    .hide-mobile {
        display: none !important;
    }
}

@media (max-width: 992px) and (min-width: 769px) {
    .show-tablet {
        display: flex !important;
    }
    .hide-tablet {
        display: none !important;
    }
}

@media (min-width: 993px) {
    .show-desktop {
        display: inline-flex !important;
    }
    .hide-desktop {
        display: none !important;
    }
}

/* Responsive */
@media (max-width: 992px) {
    .messaging-container {
        grid-template-columns: 1fr;
    }
    
    .conversations-list {
        border-right: none;
        border-bottom: 1px solid var(--border);
        max-height: 250px;
    }
    
    .rating-categories {
        grid-template-columns: 1fr;
    }
    
    .reviews-header {
        flex-direction: column;
    }
    
    .rating-summary {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .review-form {
        padding: 20px;
    }
    
    .message-bubble {
        max-width: 85%;
    }
    
    .notifications-dropdown {
        width: calc(100vw - 32px);
        right: -60px;
    }
}

/* .hero {
    background: 
        linear-gradient(135deg, 
            rgba(15, 23, 42, 0.85) 0%, 
            rgba(30, 58, 95, 0.75) 50%, 
            rgba(13, 148, 136, 0.65) 100%
        ),
        url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?w=1920&q=85&auto=format&fit=crop') 
        center/cover no-repeat;
    padding: 140px 0 100px;
    color: white;
    position: relative;
    overflow: hidden;
} */


/* :root {
    --primary: #1d4ed8;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --primary-glow: rgba(29, 78, 216, 0.3);
    --secondary: #1e293b;
    --accent: #d97706;
    --accent-light: #f59e0b;
    --success: #22c55e;
    --success-light: #4ade80;
    --danger: #ef4444;
    --danger-light: #f87171;
    --warning: #f59e0b;
    --info: #3b82f6;
    --light: #ffffff;
    --light-50: #f8faff;
    --dark: #0f172a;
    --dark-50: #1e293b;
    --gray: #64748b;
    --gray-light: #94a3b8;
    --gray-dark: #475569;
    --border: #dbeafe;
    --border-dark: #bfdbfe;
    --shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-primary: 0 4px 14px 0 rgba(29, 78, 216, 0.39);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: all 0.15s ease;
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
} */

/* Dashboard Page Sidebar - 769px to 1024px */
@media (min-width: 769px) and (max-width: 1024px) {
    .dashboard-container .dashboard-sidebar {
        width: 220px;
    }

    .dashboard-container .sidebar-header {
        padding: 24px 16px;
    }

    .dashboard-container .sidebar-header .logo span {
        display: block;
    }

    .dashboard-container .sidebar-header .logo {
        justify-content: flex-start;
    }

    .dashboard-container .nav-item {
        justify-content: flex-start;
        padding: 14px 16px;
    }

    .dashboard-container .nav-item span {
        display: inline;
    }

    .dashboard-container .sidebar-footer {
        padding: 16px;
    }

    .dashboard-container .sidebar-footer .user-info {
        justify-content: flex-start;
        margin-bottom: 12px;
    }

    .dashboard-container .sidebar-footer .user-details {
        display: flex;
    }

    .dashboard-container .sidebar-footer .user-avatar {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }

    .dashboard-container .sidebar-footer .logout-btn {
        width: 100%;
        padding: 12px;
        border-radius: var(--radius);
    }

    .dashboard-container .sidebar-footer .logout-btn i {
        font-size: 16px;
    }

    .dashboard-container .sidebar-footer .logout-btn span {
        display: inline;
    }

    .dashboard-container .dashboard-main {
        margin-left: 220px;
    }

    .dashboard-container .mobile-menu-btn {
        display: none;
    }
}

/* Dashboard Page Sidebar - 768px and below */
@media (max-width: 768px) {
    .dashboard-container .dashboard-sidebar {
        display: flex;
        position: fixed;
        top: 70px;
        left: 0;
        width: 280px;
        height: calc(100vh - 70px);
        z-index: 100;
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .dashboard-container .dashboard-sidebar.active {
        transform: translateX(0);
    }

    .dashboard-container .dashboard-main {
        margin-left: 0;
        padding: 20px;
        padding-top: 80px;
    }

    .dashboard-container .mobile-menu-btn {
        display: flex;
    }

    .dashboard-container .stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-container .form-row {
        grid-template-columns: 1fr;
    }

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

    .dashboard-container .sidebar-footer {
        padding: 24px 20px;
    }

    .dashboard-container .sidebar-footer .user-info {
        margin-bottom: 20px;
    }

    .dashboard-container .sidebar-footer .logout-btn {
        width: 44px;
        height: 44px;
        padding: 0;
        border-radius: 50%;
        margin: 0 auto;
    }

    .dashboard-container .sidebar-footer .logout-btn i {
        font-size: 18px;
    }

    .dashboard-container .sidebar-footer .logout-btn span {
        display: none;
    }
}