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

:root {
    --primary-color: #ff4d00;
    --primary-dark: #b88a5f;
    --secondary-color: #8b7355;
    --danger-color: #c14b3a;
    --warning-color: #e6a952;
    --dark-color: #3e2723;
    --light-color: #f5f1ec;
    --border-color: #e8dfd3;
    --text-primary: #3e2723;
    --text-secondary: #6d5d4b;
    --shadow-sm: 0 1px 2px 0 rgba(62, 39, 35, 0.05);
    --shadow: 0 4px 6px -1px rgba(62, 39, 35, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(62, 39, 35, 0.1);
    --transition: all 0.3s ease;
    --beige-bg: #f5eee6;
    --beige-light: #faf7f3;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--beige-light);
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    cursor: pointer;
}

.brand-logo {
    height: 40px;
    width: auto;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    padding: 0.5rem 1rem;
    border-radius: 6px;
}

.nav-links a:hover {
    color: var(--primary-color);
    background: var(--light-color);
}

/* Dashboard Button in Nav */
.nav-links a[onclick*="dashboard"] {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white !important;
    padding: 0.6rem 1.2rem;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.nav-links a[onclick*="dashboard"]:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.nav-auth {
    display: flex;
    gap: 1rem;
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-primary);
}

.user-dropdown {
    position: relative;
}

.user-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    padding: 0.5rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.user-btn:hover {
    background: #e5e7eb;
}

.user-btn img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    min-width: 200px;
}

.dropdown-content.show {
    display: block;
}

.dropdown-content a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition);
}

.dropdown-content a:hover {
    background: var(--light-color);
}

/* Buttons */
.btn-primary, .btn-outline, .btn-success, .btn-danger, .btn-warning, .btn-nav {
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    border: none;
    font-size: 1rem;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    line-height: 1.5;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-outline:active {
    transform: translateY(0);
    box-shadow: var(--shadow);
}

.btn-success {
    background: var(--secondary-color);
    color: white;
}

.btn-success:hover {
    background: var(--dark-color);
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-success:active {
    transform: translateY(0);
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

.btn-danger:hover {
    background: #a33428;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-danger:active {
    transform: translateY(0);
}

.btn-warning {
    background: var(--warning-color);
    color: white;
}

.btn-warning:hover {
    background: #d49440;
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
}

.btn-warning:active {
    transform: translateY(0);
}

.btn-nav {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
    color: white;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
    box-shadow: var(--shadow);
}

.btn-nav:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--secondary-color));
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-block {
    width: 100%;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    margin-bottom: 1.5rem;
    transition: var(--transition);
}

.btn-back:hover {
    background: #e5e7eb;
}

/* Page Transitions */
.page {
    display: none;
    animation: fadeIn 0.3s ease-in;
}

.page.active {
    display: block;
}

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

/* Hero Section */
.hero {
    color: black;
    padding: 6rem 2rem;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.hero-search {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    gap: 1rem;
    background: white;
    padding: 0.5rem;
    border-radius: 12px;
}

.hero-search input {
    flex: 1;
    border: none;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    outline: none;
}

/* Container */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 4rem 2rem;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 2rem;
    font-weight: 700;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.property-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.property-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.property-card:active {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.property-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.property-content {
    padding: 1.5rem;
}

.property-type {
    display: inline-block;
    background: var(--light-color);
    color: var(--primary-color);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.property-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.property-location {
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.property-details {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

.property-detail {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    text-align: center;
    padding: 2rem;
    background: var(--light-color);
    border-radius: 12px;
}

.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

/* Filters Section */
.filters-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.filter-group {
    flex: 1;
    min-width: 200px;
}

.filter-group input,
.filter-group select {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
}

/* Auth Container */
.auth-container {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--light-color);
}

.auth-card {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    max-width: 500px;
    width: 100%;
}

.auth-card h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.auth-subtitle {
    text-align: center;
    color: var(--text-secondary);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-primary);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.auth-divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.auth-divider span {
    background: white;
    padding: 0 1rem;
    position: relative;
    color: var(--text-secondary);
}

.demo-accounts {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.demo-account {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--light-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
}

.demo-account:hover {
    background: #e5e7eb;
}

.demo-account i {
    font-size: 1.25rem;
    color: var(--primary-color);
}

.auth-footer {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-secondary);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

/* Dashboard */
.dashboard-container {
    display: flex;
    min-height: calc(100vh - 80px);
}

.dashboard-sidebar {
    width: 280px;
    background: var(--dark-color);
    color: white;
    padding: 2rem 0;
}

.dashboard-sidebar-item {
    padding: 1rem 2rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: rgba(255, 255, 255, 0.8);
}

.dashboard-sidebar-item:hover,
.dashboard-sidebar-item.active {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

.dashboard-content {
    flex: 1;
    padding: 2rem;
    background: var(--light-color);
}

.dashboard-header {
    margin-bottom: 2rem;
}

.dashboard-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.stat-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.stat-card h3 {
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
}

.stat-card-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
}

/* Table */
.data-table {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.table-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

table {
    width: 100%;
    border-collapse: collapse;
}

thead {
    background: var(--light-color);
}

th {
    text-align: left;
    padding: 1rem 1.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.875rem;
    text-transform: uppercase;
}

td {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--border-color);
}

.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.875rem;
    font-weight: 600;
}

.status-pending {
    background: #fef3c7;
    color: #92400e;
}

.status-accepted,
.status-approved,
.status-active,
.status-completed,
.status-paid {
    background: #d1fae5;
    color: #065f46;
}

.status-rejected,
.status-cancelled,
.status-failed,
.status-inactive {
    background: #fee2e2;
    color: #991b1b;
}

.status-available {
    background: #dbeafe;
    color: #1e40af;
}

/* Profile */
.profile-container {
    max-width: 800px;
    margin: 0 auto;
}

.profile-card {
    background: white;
    border-radius: 12px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.profile-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, #1e40af 100%);
    color: white;
    padding: 3rem 2rem;
    text-align: center;
}

.profile-header img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 4px solid white;
    margin-bottom: 1rem;
}

.profile-card form {
    padding: 2rem;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-header p {
    color: var(--text-secondary);
    font-size: 1.125rem;
}

/* Property Detail */
.property-detail {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
}

.property-gallery {
    position: relative;
    height: 500px;
}

.gallery-main {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbnails {
    display: flex;
    gap: 0.5rem;
    padding: 1rem;
    overflow-x: auto;
}

.gallery-thumbnail {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
}

.gallery-thumbnail:hover,
.gallery-thumbnail.active {
    border-color: var(--primary-color);
}

.property-detail-content {
    padding: 2rem;
}

.property-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 2rem;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: var(--light-color);
    border-radius: 8px;
}

/* Feedback Section */
.feedback-section {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.feedback-item {
    background: var(--light-color);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 1rem;
}

.feedback-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.rating {
    color: #fbbf24;
}

/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 3rem;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.contact-item {
    display: flex;
    gap: 1rem;
}

.contact-item i {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.contact-form-container {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: var(--shadow);
}

/* About */
.about-content {
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.8;
}

.about-content h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
}

/* Footer */
.footer {
    background: var(--dark-color);
    color: white;
    padding: 3rem 0 1rem;
}

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

.footer-section h3,
.footer-section h4 {
    margin-bottom: 1rem;
}

.footer-section a {
    display: block;
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: var(--transition);
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.8);
}

/* Loading Overlay */
.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.loading-overlay.show {
    display: flex;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Toast Notification */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--dark-color);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    transform: translateY(100px);
    opacity: 0;
    transition: var(--transition);
    z-index: 9999;
}

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

.toast.success {
    background: var(--secondary-color);
}

.toast.error {
    background: var(--danger-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9998;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    padding: 1.5rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-secondary);
}

/* Action Buttons */
.action-buttons {
    display: flex;
    gap: 0.5rem;
}

.action-btn {
    padding: 0.5rem 1rem;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    transition: var(--transition);
}

.action-btn-view {
    background: var(--primary-color);
    color: white;
}

.action-btn-edit {
    background: var(--warning-color);
    color: white;
}

.action-btn-delete {
    background: var(--danger-color);
    color: white;
}

/* Responsive Design */
/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        max-width: 95%;
    }
    
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .dashboard-container {
        padding: 1rem;
    }
}

@media (max-width: 768px) {
    /* Navigation */
    .nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        box-shadow: var(--shadow-lg);
        z-index: 1000;
    }
    
    .nav-menu.active {
        display: flex !important;
    }

    .nav-toggle {
        display: block;
    }
    
    .nav-links {
        flex-direction: column;
        gap: 1rem;
        width: 100%;
    }
    
    .nav-auth {
        flex-direction: column;
        width: 100%;
        margin-top: 1rem;
    }

    /* Hero Section */
    .hero-content h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .hero-content p {
        font-size: 1rem;
    }

    .hero-search {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .hero-search input {
        width: 100%;
    }
    
    .hero-search button {
        width: 100%;
    }

    /* Properties Grid */
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .property-card {
        margin: 0;
    }

    /* Dashboard */
    .dashboard-container {
        flex-direction: column;
        padding: 0.5rem;
    }

    .dashboard-sidebar {
        width: 100%;
        position: static;
        height: auto;
        margin-bottom: 1rem;
    }
    
    .dashboard-content {
        padding: 1rem;
    }
    
    .dashboard-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .dashboard-header h1 {
        font-size: 1.5rem;
    }

    /* Filters */
    .filters-section {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group input,
    .filter-group select {
        width: 100%;
    }

    /* Contact Grid */
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    /* Tables */
    .data-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    table {
        min-width: 600px;
    }
    
    th, td {
        padding: 0.75rem 0.5rem;
        font-size: 0.875rem;
    }
    
    /* Modal */
    .modal-content {
        width: 95%;
        max-width: 100%;
        margin: 1rem;
        max-height: 90vh;
        overflow-y: auto;
    }
    
    .modal-body {
        padding: 1rem;
    }
    
    /* Forms */
    .form-group {
        margin-bottom: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    /* Action Buttons */
    .action-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .action-btn {
        width: 100%;
        padding: 0.5rem;
        font-size: 0.875rem;
    }
    
    /* Property Details */
    .property-detail-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .property-details {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    /* Enhanced Mobile Touch Targets */
    .btn-primary, .btn-outline, .btn-success, .btn-danger, .btn-warning, .btn-nav {
        min-height: 48px;
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
        width: 100%;
    }
    
    .nav-auth button {
        width: 100%;
        min-height: 48px;
    }
    
    /* Dashboard Sidebar on Mobile */
    .dashboard-sidebar-item {
        padding: 1rem;
        font-size: 1rem;
        min-height: 52px;
        display: flex;
        align-items: center;
    }
    
    /* Property Cards Mobile Enhancement */
    .property-card {
        box-shadow: var(--shadow-lg);
        border-radius: 12px;
        overflow: hidden;
    }
    
    .property-card-img {
        height: 220px;
    }
    
    .property-card-content {
        padding: 1.25rem;
    }
    
    .property-title {
        font-size: 1.1rem;
        margin-bottom: 0.75rem;
    }
    
    /* Hero Section Mobile */
    .hero {
        padding: 2rem 1rem;
        min-height: auto;
    }
    
    .hero-content {
        text-align: center;
    }
    
    .hero-content h1 {
        font-size: 1.75rem !important;
        margin-bottom: 1rem;
    }
    
    .hero-content p {
        font-size: 1rem !important;
        margin-bottom: 1.5rem;
    }
    
    /* Container Padding */
    .container {
        padding: 1.5rem 1rem;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 1.5rem;
    }
    
    /* Navigation Mobile Improvements */
    .nav-container {
        padding: 1rem;
    }
    
    .nav-brand {
        font-size: 1.25rem;
    }
    
    .brand-logo {
        height: 35px;
    }
    
    .nav-menu {
        gap: 1rem;
        padding: 1rem;
    }
    
    .nav-links {
        width: 100%;
    }
    
    .nav-links a {
        padding: 0.875rem 1rem;
        font-size: 1rem;
        display: block;
        text-align: center;
    }
    
    .nav-links a[onclick*="dashboard"] {
        padding: 0.875rem 1.2rem;
        margin-bottom: 0.5rem;
    }
    
    /* User Dropdown Mobile */
    .user-dropdown {
        width: 100%;
    }
    
    .user-btn {
        width: 100%;
        justify-content: center;
        min-height: 48px;
    }
    
    .dropdown-content {
        position: static;
        margin-top: 0.5rem;
        box-shadow: none;
        border: none;
        background: var(--light-color);
        border-radius: 8px;
    }
    
    .dropdown-content a {
        padding: 1rem;
        min-height: 48px;
        font-size: 1rem;
    }
    
    .gallery-thumbnails {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Footer */
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
    }
    
    /* Feature Grid */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    /* Extra small devices - Enhanced Mobile Experience */
    
    /* Base Container */
    .container {
        padding: 1rem 0.75rem;
    }
    
    /* Navigation */
    .nav-container {
        padding: 0.75rem;
    }
    
    .nav-brand {
        font-size: 1.125rem;
    }
    
    .brand-logo {
        height: 32px;
    }
    
    .nav-toggle {
        font-size: 1.5rem;
        padding: 0.5rem;
    }
    
    /* Hero Section */
    .hero {
        padding: 1.5rem 0.75rem;
    }
    
    .hero-content h1 {
        font-size: 1.5rem !important;
        line-height: 1.3;
    }
    
    .hero-content p {
        font-size: 0.95rem !important;
    }
    
    .hero-search input {
        font-size: 16px;
        padding: 0.875rem;
    }
    
    .hero-search button {
        padding: 0.875rem 1.25rem;
        font-size: 1rem;
    }
    
    /* Section Headers */
    .section-header h2 {
        font-size: 1.25rem;
    }
    
    .section-header p {
        font-size: 0.9rem;
    }
    
    /* Property Cards */
    .property-card {
        font-size: 0.9rem;
        border-radius: 10px;
    }
    
    .property-card-img {
        height: 200px;
    }
    
    .property-card-content {
        padding: 1rem;
    }
    
    .property-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }
    
    .property-location {
        font-size: 0.85rem;
    }
    
    .property-price {
        font-size: 1.25rem;
        font-weight: 700;
    }
    
    .property-details {
        font-size: 0.85rem;
    }
    
    /* Buttons - Extra Touch-Friendly */
    .btn-primary, .btn-outline, .btn-success, .btn-danger, .btn-warning {
        min-height: 52px;
        padding: 1rem 1.5rem;
        font-size: 1.05rem;
        font-weight: 600;
    }
    
    .action-btn {
        min-height: 48px;
        padding: 0.75rem 1rem;
    }
    
    /* Dashboard */
    .dashboard-container {
        padding: 0.5rem;
    }
    
    .dashboard-header h1 {
        font-size: 1.25rem;
    }
    
    .dashboard-sidebar-item {
        padding: 1rem 0.875rem;
        font-size: 0.95rem;
    }
    
    .dashboard-content {
        padding: 0.75rem;
    }
    
    /* Stats Cards */
    .stat-card {
        padding: 1rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .stat-label {
        font-size: 0.875rem;
    }
    
    /* Tables */
    table {
        font-size: 0.85rem;
    }
    
    th, td {
        padding: 0.625rem 0.5rem;
        font-size: 0.85rem;
    }
    
    /* Modal */
    .modal-content {
        width: 100%;
        margin: 0.5rem;
        border-radius: 12px;
    }
    
    .modal-header {
        padding: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.25rem;
    }
    
    .modal-body {
        padding: 0.875rem;
    }
    
    .modal-footer {
        padding: 1rem;
        gap: 0.5rem;
    }
    
    /* Forms */
    .form-group label {
        font-size: 0.95rem;
        margin-bottom: 0.5rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        font-size: 16px;
        padding: 0.875rem;
        border-radius: 8px;
    }
    
    /* Filters */
    .filters-section {
        gap: 0.75rem;
    }
    
    .filter-group label {
        font-size: 0.9rem;
    }
    
    .filter-group input,
    .filter-group select {
        font-size: 16px;
        padding: 0.75rem;
    }
    
    /* Contact Page */
    .contact-info-item {
        padding: 1rem;
    }
    
    .contact-info-item i {
        font-size: 1.5rem;
    }
    
    /* Footer */
    .footer {
        padding: 2rem 1rem;
    }
    
    .footer-section h3 {
        font-size: 1.1rem;
    }
    
    .footer-section p,
    .footer-section a {
        font-size: 0.9rem;
    }
    
    /* Property Detail Page */
    .property-detail-gallery {
        height: 250px;
        border-radius: 10px;
    }
    
    .property-detail-content {
        padding: 1rem;
    }
    
    .property-detail-price {
        font-size: 1.75rem;
    }
    
    /* About Page */
    .about-content {
        padding: 1rem;
    }
    
    .about-content h2 {
        font-size: 1.35rem;
    }
    
    .about-content p {
        font-size: 0.95rem;
    }
    
    /* Enhanced Touch Areas */
    a, button, input, select, textarea {
        -webkit-tap-highlight-color: rgba(255, 77, 0, 0.1);
    }
    
    /* Smooth Scrolling */
    * {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Nav Links Dashboard Button Mobile */
    .nav-links a[onclick*="dashboard"] {
        font-size: 1rem;
        padding: 1rem 1.25rem;
        margin: 0.5rem 0;
        display: block;
    }
}
    
    .btn-primary, .btn-outline, .btn-success {
        padding: 0.625rem 1rem;
        font-size: 0.875rem;
    }
    
    .stat-value {
        font-size: 1.5rem;
    }
    
    .modal-content {
        margin: 0.5rem;
        padding: 0.5rem;
    }
    
    th, td {
        padding: 0.5rem 0.25rem;
        font-size: 0.75rem;
    }
}

/* Landscape tablets and small desktops */
@media (min-width: 769px) and (max-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
