/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
}

.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: #1a73e8;
    font-weight: 700;
}

.nav-menu {
    display: flex;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
    color: #1a73e8;
}

.nav-auth {
    display: flex;
    gap: 15px;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* Buttons */
.btn-primary {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #1557b0;
}

.btn-secondary {
    background: transparent;
    color: #1a73e8;
    border: 2px solid #1a73e8;
    padding: 10px 22px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: #1a73e8;
    color: white;
}

/* Hero Section */
.hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
    margin-top: 70px; /* Account for fixed navbar height */
}

.hero-content h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Search Container */
.search-container {
    background: white;
    border-radius: 12px;
    padding: 30px;
    max-width: 800px;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.search-tabs {
    display: flex;
    margin-bottom: 25px;
    border-bottom: 2px solid #eee;
}

.tab-btn {
    background: none;
    border: none;
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    color: #666;
    transition: all 0.3s;
}

.tab-btn.active {
    color: #1a73e8;
    border-bottom: 3px solid #1a73e8;
}

.search-form {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr auto;
    gap: 15px;
    align-items: end;
}

.search-input-group {
    position: relative;
}

.search-input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.search-input-group input,
.search-input-group select {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 2px solid #eee;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.search-input-group input:focus,
.search-input-group select:focus {
    outline: none;
    border-color: #1a73e8;
}

.search-btn {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.search-btn:hover {
    background: #1557b0;
}

/* Featured Properties */
.featured-properties {
    padding: 80px 0;
    background: white;
}

.featured-properties h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.property-image {
    height: 250px;
    background: #f0f0f0;
    position: relative;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-price {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #1a73e8;
    color: white;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: 600;
}

.property-details {
    padding: 20px;
}

.property-address {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #333;
}

.property-features {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
    color: #666;
}

.property-feature {
    display: flex;
    align-items: center;
    gap: 5px;
}

.property-description {
    color: #666;
    margin-bottom: 15px;
    line-height: 1.5;
}

.property-actions {
    display: flex;
    gap: 10px;
}

.btn-view {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    flex: 1;
    transition: background 0.3s;
}

.btn-view:hover {
    background: #1557b0;
}

.btn-favorite {
    background: transparent;
    border: 2px solid #1a73e8;
    color: #1a73e8;
    padding: 10px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-favorite:hover {
    background: #1a73e8;
    color: white;
}

/* Services Section */
.services {
    padding: 80px 0;
    background: #f8f9fa;
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: #333;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.service-card {
    background: white;
    padding: 40px 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-card i {
    font-size: 3rem;
    color: #1a73e8;
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.service-card p {
    color: #666;
    margin-bottom: 20px;
    line-height: 1.6;
}

.service-link {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.service-link:hover {
    color: #1557b0;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3,
.footer-section h4 {
    margin-bottom: 20px;
    color: white;
}

.footer-section p {
    color: #bdc3c7;
    line-height: 1.6;
    margin-bottom: 20px;
}

.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;
}

.footer-section ul li a:hover {
    color: white;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-links a {
    color: #bdc3c7;
    font-size: 1.2rem;
    transition: color 0.3s;
}

.social-links a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #bdc3c7;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
}

.modal-content {
    background-color: white;
    margin: 5% auto;
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    position: relative;
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: #666;
}

.close:hover {
    color: #333;
}

.modal-content h2 {
    margin-bottom: 30px;
    color: #333;
    text-align: center;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 2px solid #eee;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #1a73e8;
}

.modal-content .btn-primary {
    width: 100%;
    margin-top: 20px;
}

.modal-content p {
    text-align: center;
    margin-top: 20px;
    color: #666;
}

.modal-content p a {
    color: #1a73e8;
    text-decoration: none;
    font-weight: 600;
}

/* Map Styles */
.map-container {
    position: relative;
    width: 100%;
    height: 600px;
    display: flex;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    background: #f5f5f5;
}

.map {
    flex: 1;
    height: 100%;
    min-height: 400px;
    background: #e0e0e0;
    position: relative;
}

/* Ensure Leaflet map container has proper dimensions */
.leaflet-container {
    height: 100% !important;
    width: 100% !important;
}

.map-sidebar {
    width: 300px;
    background: white;
    border-left: 1px solid #e0e0e0;
    overflow-y: auto;
    max-height: 100%;
}

.map-results {
    padding: 15px;
}

.map-property-card {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.map-property-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.map-property-image {
    position: relative;
    height: 120px;
    overflow: hidden;
}

.map-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.map-property-price {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.map-property-details {
    padding: 12px;
}

.map-property-details h4 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: #333;
}

.map-property-details p {
    margin: 0 0 8px 0;
    font-size: 0.8rem;
    color: #666;
}

.map-property-features {
    display: flex;
    gap: 10px;
    font-size: 0.75rem;
    color: #888;
}

.map-property-actions {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}

.map-property-actions button {
    flex: 1;
    padding: 6px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.map-property-actions .btn-primary {
    background: #1a73e8;
    color: white;
}

.map-property-actions .btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e0e0e0;
}

.map-popup {
    text-align: center;
    min-width: 200px;
}

/* Leaflet specific styles */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 0;
    padding: 0;
}

.leaflet-popup-tip {
    background: white;
}

/* Mobile responsive for map */
@media (max-width: 768px) {
    .map-container {
        flex-direction: column;
        height: auto;
    }
    
    .map {
        height: 300px;
        min-height: 300px;
    }
    
    .map-sidebar {
        width: 100%;
        max-height: 300px;
    }
}

/* New Search Results Styles */
.search-header {
    background: white;
    padding: 30px 0;
    border-bottom: 1px solid #eee;
    margin-top: 70px; /* Account for fixed navbar height */
}

.search-summary h1 {
    margin-bottom: 10px;
    color: #333;
    font-size: 2rem;
}

.search-summary p {
    color: #666;
    margin: 5px 0;
}

.search-controls {
    margin-top: 20px;
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 8px;
    padding: 10px 15px;
    flex: 1;
    min-width: 300px;
}

.search-input-group i {
    color: #666;
    margin-right: 10px;
}

.search-input-group input {
    border: none;
    background: transparent;
    flex: 1;
    padding: 5px;
    font-size: 1rem;
}

.search-input-group input:focus {
    outline: none;
}

.search-input-group button {
    margin-left: 10px;
    padding: 8px 16px;
}

.radius-control {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 200px;
}

.radius-control label {
    font-size: 0.9rem;
    color: #666;
}

.radius-control input[type="range"] {
    width: 100%;
}

.map-section {
    height: calc(100vh - 200px);
    min-height: 600px;
}

.map-container {
    display: flex;
    height: 100%;
    background: #f8f9fa;
}

.map {
    flex: 1;
    height: 100%;
    background: #e0e0e0;
}

.map-sidebar {
    width: 400px;
    background: white;
    border-left: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    margin: 0;
    color: #333;
}

.view-controls {
    display: flex;
    gap: 5px;
}

.view-btn {
    padding: 6px 12px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.8rem;
    transition: all 0.2s;
}

.view-btn.active {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.properties-container {
    flex: 1;
    overflow-y: auto;
    position: relative;
}

.properties-list {
    padding: 0;
}

.property-card {
    border-bottom: 1px solid #e0e0e0;
    padding: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.property-card:hover {
    background-color: #f8f9fa;
}

.property-card:last-child {
    border-bottom: none;
}

.property-image {
    position: relative;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-price {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}

.property-details h4 {
    margin: 0 0 5px 0;
    font-size: 0.9rem;
    color: #333;
}

.property-details p {
    margin: 0 0 8px 0;
    font-size: 0.8rem;
    color: #666;
}

.property-features {
    display: flex;
    gap: 15px;
    font-size: 0.75rem;
    color: #888;
    margin-bottom: 10px;
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 3px;
}

.btn-view {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    width: 100%;
}

.loading-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    color: #666;
}

.loading-message i {
    font-size: 2rem;
    margin-bottom: 10px;
}

.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    color: #666;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 15px;
    color: #ccc;
}

.no-results h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.no-results p {
    margin: 0;
    color: #666;
}

/* List view styles */
.list-property-card {
    display: flex;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    gap: 20px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.list-property-card:hover {
    background-color: #f8f9fa;
}

.list-property-card:last-child {
    border-bottom: none;
}

.list-property-image {
    width: 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.list-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.list-property-details {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.list-property-details h3 {
    margin: 0 0 5px 0;
    color: #333;
}

.list-property-details .location {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 0.9rem;
}

.list-property-details .features {
    display: flex;
    gap: 20px;
    margin-bottom: 10px;
    font-size: 0.9rem;
    color: #666;
}

.list-property-details .features span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.list-property-details .description {
    margin: 0 0 15px 0;
    color: #666;
    line-height: 1.4;
    flex: 1;
}

.list-property-details .actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.list-property-details .price {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a73e8;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .search-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .search-input-group {
        min-width: auto;
    }
    
    .radius-control {
        min-width: auto;
    }
    
    .map-sidebar {
        width: 100%;
        height: 300px;
    }
    
    .list-property-card {
        flex-direction: column;
        gap: 15px;
    }
    
    .list-property-image {
        width: 100%;
        height: 200px;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hamburger {
        display: flex;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .search-form {
        grid-template-columns: 1fr;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .search-container {
        padding: 20px;
    }
    
    .modal-content {
        margin: 10% auto;
        padding: 20px;
    }
}

/* Upload progress styles */
.upload-progress {
    display: none;
    margin: 15px 0;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.upload-progress.show {
    display: block;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #0056b3);
    transition: width 0.3s ease;
    border-radius: 4px;
}

.progress-text {
    font-size: 14px;
    color: #6c757d;
    margin-top: 5px;
}

/* Coordinate fields styling */
.coordinate-fields {
    background: #f8f9fa;
    border: 1px solid #28a745;
    border-radius: 8px;
    padding: 15px;
    margin-top: 10px;
}

.coordinate-fields label {
    color: #28a745;
    font-weight: 600;
}

.coordinate-fields input {
    background: #e8f5e8;
    border: 1px solid #28a745;
    color: #155724;
    font-weight: 500;
}

/* Generate map marker button */
#generateMapMarker {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

#generateMapMarker:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

#generateMapMarker:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

#generateMapMarker i {
    margin-right: 8px;
}

/* Zillow-style Search Results */
.search-header-zillow {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 70px; /* Account for fixed navbar height */
}

.search-summary-zillow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.search-info h1 {
    margin: 0 0 5px 0;
    font-size: 1.8rem;
    color: #333;
}

.search-info p {
    margin: 5px 0;
    color: #666;
}

.search-actions {
    display: flex;
    gap: 10px;
}

.search-actions button {
    padding: 8px 16px;
    font-size: 0.9rem;
}

.search-controls-zillow {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-bar {
    display: flex;
    align-items: center;
}

.search-input-group {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 0;
    flex: 1;
    max-width: 500px;
    transition: border-color 0.3s;
}

.search-input-group:focus-within {
    border-color: #1a73e8;
}

.search-input-group i {
    color: #666;
    margin: 0 15px;
    font-size: 1.1rem;
}

.search-input-group input {
    border: none;
    background: transparent;
    flex: 1;
    padding: 15px 0;
    font-size: 1rem;
    outline: none;
}

.search-input-group button {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 0 6px 6px 0;
    cursor: pointer;
    transition: background 0.3s;
}

.search-input-group button:hover {
    background: #1557b0;
}

.search-filters {
    display: flex;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 120px;
}

.filter-group label {
    font-size: 0.8rem;
    color: #666;
    font-weight: 500;
}

.filter-group input,
.filter-group select {
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
    background: white;
}

.filter-group input:focus,
.filter-group select:focus {
    outline: none;
    border-color: #1a73e8;
}

/* Zillow-style Map Section */
.map-section-zillow {
    height: calc(100vh - 200px);
    min-height: 600px;
    position: relative;
}

.map-container-zillow {
    display: flex;
    height: 100%;
    position: relative;
}

.main-map {
    flex: 1;
    height: 100%;
    background: #f5f5f5;
    position: relative;
}

.map-controls {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1000;
}

.map-control-btn {
    width: 40px;
    height: 40px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s;
}

.map-control-btn:hover {
    background: #f8f9fa;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.map-control-btn.active {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.property-sidebar {
    width: 400px;
    background: white;
    border-left: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    box-shadow: -2px 0 4px rgba(0,0,0,0.1);
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f8f9fa;
}

.sidebar-title {
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar-title h3 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.sidebar-title span {
    background: #1a73e8;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
}

.view-controls {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 35px;
    height: 35px;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.view-btn:hover {
    background: #f8f9fa;
}

.view-btn.active {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.properties-container {
    flex: 1;
    overflow-y: auto;
    position: relative;
}

.properties-list {
    padding: 0;
}

/* Enhanced Property Cards */
.property-card-zillow {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    position: relative;
}

.property-card-zillow:hover {
    background-color: #f8f9fa;
}

.property-card-zillow:last-child {
    border-bottom: none;
}

.property-card-zillow.selected {
    background-color: #e3f2fd;
    border-left: 4px solid #1a73e8;
}

.property-image-zillow {
    position: relative;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 15px;
}

.property-image-zillow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-price-zillow {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 600;
}

.property-details-zillow h4 {
    margin: 0 0 8px 0;
    font-size: 1rem;
    color: #333;
    line-height: 1.3;
}

.property-details-zillow .address {
    margin: 0 0 10px 0;
    color: #666;
    font-size: 0.9rem;
}

.property-features-zillow {
    display: flex;
    gap: 15px;
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 12px;
}

.property-features-zillow span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-actions-zillow {
    display: flex;
    gap: 8px;
}

.property-actions-zillow button {
    flex: 1;
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.property-actions-zillow .btn-primary {
    background: #1a73e8;
    color: white;
}

.property-actions-zillow .btn-secondary {
    background: #f8f9fa;
    color: #333;
    border: 1px solid #e0e0e0;
}

/* Loading and No Results */
.loading-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #666;
}

.loading-message i {
    font-size: 2rem;
    margin-bottom: 15px;
    color: #1a73e8;
}

.no-results {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #666;
}

.no-results i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ccc;
}

.no-results h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.no-results p {
    margin: 0 0 20px 0;
    color: #666;
}

/* Property Markers */
.property-marker {
    background: transparent;
    border: none;
}

.marker-content {
    background: #1a73e8;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    border: 2px solid white;
    cursor: pointer;
    transition: all 0.2s;
}

.marker-content:hover {
    background: #1557b0;
    transform: scale(1.1);
}

.marker-price {
    font-weight: 600;
}

/* Property Popup */
.property-popup {
    min-width: 200px;
    max-width: 250px;
}

.property-popup h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    color: #333;
}

.property-popup p {
    margin: 0 0 5px 0;
    font-size: 12px;
    color: #666;
}

.property-popup button {
    width: 100%;
    padding: 6px 12px;
    background: #1a73e8;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.2s;
}

.property-popup button:hover {
    background: #1557b0;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .search-summary-zillow {
        flex-direction: column;
        gap: 15px;
    }
    
    .search-filters {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .map-container-zillow {
        flex-direction: column;
    }
    
    .property-sidebar {
        width: 100%;
        height: 300px;
    }
    
    .map-controls {
        top: 10px;
        right: 10px;
    }
    
    .map-control-btn {
        width: 35px;
        height: 35px;
    }
}

/* Ensure map displays properly */
#map {
    height: 100%;
    width: 100%;
    min-height: 400px;
    z-index: 1;
}

/* Coordinate fields styling */
.coordinate-fields {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    border: 1px solid #e9ecef;
}

.coordinate-fields label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 5px;
    display: block;
}

.coordinate-fields input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-family: monospace;
    background: white;
    color: #495057;
}

.coordinate-fields input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

/* Ensure coordinate fields are visible when shown */
.form-row[style*="display: flex"] {
    display: flex !important;
}

/* Coordinate validation message */
.validation-message {
    margin: 15px 0;
}

.alert {
    padding: 12px 16px;
    border-radius: 6px;
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 10px;
}

.alert-warning {
    background-color: #fff3cd;
    border-color: #ffc107;
    color: #856404;
}

.alert-info {
    background-color: #d1ecf1;
    border-color: #17a2b8;
    color: #0c5460;
}

.alert i {
    font-size: 16px;
}



/* Portal Layout Styles */
.portal-container {
    display: flex;
    min-height: calc(100vh - 80px);
    background: #f8f9fa;
    margin-top: 70px; /* Account for fixed navbar height */
}

.portal-sidebar {
    width: 280px;
    background: white;
    border-right: 1px solid #e9ecef;
    padding: 20px 0;
    position: fixed;
    top: 70px; /* Position below navbar */
    height: calc(100vh - 70px);
    overflow-y: auto;
}

.sidebar-header {
    padding: 0 20px 20px;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 20px;
}

.sidebar-header h3 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.sidebar-header p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.sidebar-nav {
    padding: 0 10px;
}

.sidebar-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: #495057;
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
    position: relative;
}

.sidebar-item:hover {
    background: #f8f9fa;
    color: #1a73e8;
}

.sidebar-item.active {
    background: #e3f2fd;
    color: #1a73e8;
    font-weight: 500;
}

.sidebar-item i {
    width: 20px;
    margin-right: 12px;
    font-size: 16px;
}

.sidebar-item span {
    flex: 1;
}

.badge {
    background: #dc3545;
    color: white;
    border-radius: 12px;
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 500;
    margin-left: auto;
}

.portal-main {
    flex: 1;
    margin-left: 280px;
    padding: 30px;
}

.portal-section {
    display: none;
}

.portal-section.active {
    display: block;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ecef;
}

.section-header h1 {
    margin: 0;
    color: #333;
    font-size: 28px;
    font-weight: 600;
}

.header-actions {
    display: flex;
    gap: 10px;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* Portal-specific stats grid to avoid conflicts */
.portal-main .stats-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 20px;
    margin-bottom: 30px;
}

/* Ensure portal overview stats display correctly */
#overview .stats-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)) !important;
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    background: linear-gradient(135deg, #1a73e8, #4285f4);
}

.stat-content h3 {
    margin: 0 0 8px 0;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.stat-number {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 28px;
    font-weight: 700;
}

.stat-change {
    margin: 0;
    font-size: 12px;
    font-weight: 500;
}

.stat-change.positive {
    color: #28a745;
}

.stat-change.negative {
    color: #dc3545;
}

.stat-change.neutral {
    color: #6c757d;
}

/* Quick Actions */
.quick-actions {
    margin-bottom: 30px;
}

.quick-actions h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

/* Portal-specific actions grid */
.portal-main .actions-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 20px;
}

/* Ensure portal overview actions display correctly */
#overview .actions-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 20px;
}

.action-card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.action-card i {
    font-size: 32px;
    color: #1a73e8;
    margin-bottom: 15px;
}

.action-card h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.action-card p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

/* Recent Activity */
.recent-activity h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.activity-list {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.activity-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f1f3f4;
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-icon {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #e3f2fd;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
}

.activity-icon i {
    color: #1a73e8;
    font-size: 16px;
}

.activity-content p {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 14px;
}

.activity-date {
    color: #6c757d;
    font-size: 12px;
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.empty-state i {
    font-size: 48px;
    color: #6c757d;
    margin-bottom: 20px;
}

.empty-state h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.empty-state p {
    margin: 0 0 25px 0;
    color: #6c757d;
    font-size: 14px;
}

/* Application Cards */
.application-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.application-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f1f3f4;
}

.application-header h3 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.application-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.application-status.pending {
    background: #fff3cd;
    color: #856404;
}

.application-status.approved {
    background: #d4edda;
    color: #155724;
}

.application-status.rejected {
    background: #f8d7da;
    color: #721c24;
}

.application-status.withdrawn {
    background: #e2e3e5;
    color: #383d41;
}

.application-details {
    padding: 20px;
}

.application-details p {
    margin: 0 0 8px 0;
    color: #6c757d;
    font-size: 14px;
}

.application-details p:last-child {
    margin-bottom: 0;
}

.application-actions {
    padding: 20px;
    border-top: 1px solid #f1f3f4;
    display: flex;
    gap: 10px;
}

/* Property Cards */
.property-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.property-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    color: white;
}

.property-status-badge.active {
    background: #28a745;
}

.property-status-badge.inactive {
    background: #6c757d;
}

.property-status-badge.rented {
    background: #17a2b8;
}

.property-details {
    padding: 20px;
}

.property-details h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.property-price {
    margin: 0 0 15px 0;
    color: #1a73e8;
    font-size: 20px;
    font-weight: 700;
}

.property-features {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.property-features span {
    color: #6c757d;
    font-size: 14px;
}

.property-features i {
    margin-right: 5px;
    color: #1a73e8;
}

.property-actions {
    display: flex;
    gap: 10px;
}

/* Tenant Cards */
.tenant-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 20px;
}

.tenant-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #e3f2fd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #1a73e8;
}

.tenant-details {
    flex: 1;
}

.tenant-details h3 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.tenant-details p {
    margin: 0 0 5px 0;
    color: #6c757d;
    font-size: 14px;
}

.tenant-actions {
    display: flex;
    gap: 10px;
}

/* Maintenance Cards */
.maintenance-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.maintenance-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f1f3f4;
}

.maintenance-header h3 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.maintenance-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.maintenance-status.open {
    background: #fff3cd;
    color: #856404;
}

.maintenance-status.in-progress {
    background: #cce5ff;
    color: #004085;
}

.maintenance-status.completed {
    background: #d4edda;
    color: #155724;
}

.maintenance-details {
    padding: 20px;
}

.maintenance-details p {
    margin: 0 0 8px 0;
    color: #6c757d;
    font-size: 14px;
}

.maintenance-actions {
    padding: 20px;
    border-top: 1px solid #f1f3f4;
    display: flex;
    gap: 10px;
}

/* Search Cards */
.search-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.search-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f1f3f4;
}

.search-header h3 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.search-date {
    color: #6c757d;
    font-size: 12px;
}

.search-details {
    padding: 20px;
}

.search-details p {
    margin: 0 0 8px 0;
    color: #6c757d;
    font-size: 14px;
}

.search-actions {
    padding: 20px;
    border-top: 1px solid #f1f3f4;
    display: flex;
    gap: 10px;
}

/* Lease Cards */
.lease-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
    overflow: hidden;
}

.lease-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #f1f3f4;
}

.lease-header h3 {
    margin: 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.lease-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.lease-status.active {
    background: #d4edda;
    color: #155724;
}

.lease-status.expired {
    background: #f8d7da;
    color: #721c24;
}

.lease-details {
    padding: 20px;
}

.lease-details p {
    margin: 0 0 8px 0;
    color: #6c757d;
    font-size: 14px;
}

.lease-actions {
    padding: 20px;
    border-top: 1px solid #f1f3f4;
    display: flex;
    gap: 10px;
}

/* Payments Table */
.payments-table {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    overflow: hidden;
}

.payments-table table {
    width: 100%;
    border-collapse: collapse;
}

.payments-table th {
    background: #f8f9fa;
    padding: 15px;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #e9ecef;
}

.payments-table td {
    padding: 15px;
    border-bottom: 1px solid #f1f3f4;
    color: #6c757d;
}

.payments-table tr:last-child td {
    border-bottom: none;
}

.payment-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.payment-status.paid {
    background: #d4edda;
    color: #155724;
}

.payment-status.pending {
    background: #fff3cd;
    color: #856404;
}

.payment-status.overdue {
    background: #f8d7da;
    color: #721c24;
}

/* Rent Status */
.rent-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.rent-status.paid {
    background: #d4edda;
    color: #155724;
}

.rent-status.unpaid {
    background: #f8d7da;
    color: #721c24;
}

/* Priority Badges */
.priority-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.priority-badge.low {
    background: #d4edda;
    color: #155724;
}

.priority-badge.medium {
    background: #fff3cd;
    color: #856404;
}

.priority-badge.high {
    background: #f8d7da;
    color: #721c24;
}

.priority-badge.urgent {
    background: #dc3545;
    color: white;
}

/* Maintenance Header Actions */
.maintenance-header-actions {
    margin-bottom: 20px;
    text-align: right;
}

/* Payments Summary */
.payments-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.summary-card h3 {
    margin: 0 0 10px 0;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.summary-amount {
    margin: 0;
    color: #1a73e8;
    font-size: 24px;
    font-weight: 700;
}

/* Small Buttons */
.btn-small {
    padding: 4px 8px;
    border: none;
    border-radius: 4px;
    background: #e9ecef;
    color: #495057;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.3s ease;
}

.btn-small:hover {
    background: #1a73e8;
    color: white;
}

/* Tenant Details Modal */
.tenant-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.tenant-info-section,
.tenant-notes-section,
.tenant-payments-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.tenant-info-section h3,
.tenant-notes-section h3,
.tenant-payments-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.tenant-info-section p {
    margin: 0 0 8px 0;
    color: #6c757d;
    font-size: 14px;
}

.notes-list {
    max-height: 200px;
    overflow-y: auto;
    margin-bottom: 15px;
}

.note-item {
    background: white;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
    border-left: 3px solid #1a73e8;
}

.note-item p {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 14px;
}

.note-item small {
    color: #6c757d;
    font-size: 12px;
}

.payments-list {
    max-height: 200px;
    overflow-y: auto;
}

.payment-item {
    background: white;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 10px;
}

.payment-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.payment-info p {
    margin: 0;
    color: #333;
    font-size: 14px;
}

@media (max-width: 768px) {
    .tenant-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* Tenant Portal Specific Styles */
.current-home-section,
.past-rentals-section {
    margin-bottom: 30px;
}

.current-home-section h3,
.past-rentals-section h3 {
    color: #333;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #1a73e8;
}

.lease-card.current {
    border-left: 4px solid #28a745;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.lease-card.past {
    border-left: 4px solid #6c757d;
    opacity: 0.8;
}

.searches-header-actions {
    margin-bottom: 20px;
    text-align: right;
}

/* Application Details Grid */
.application-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.application-info-section,
.application-status-section,
.landlord-info-section,
.application-actions-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.application-info-section h3,
.application-status-section h3,
.landlord-info-section h3,
.application-actions-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.application-info-section p,
.application-status-section p,
.landlord-info-section p {
    margin: 0 0 8px 0;
    color: #6c757d;
    font-size: 14px;
}

/* Lease Details Grid */
.lease-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.lease-info-section,
.lease-terms-section,
.landlord-info-section,
.payment-history-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.lease-info-section h3,
.lease-terms-section h3,
.landlord-info-section h3,
.payment-history-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.lease-info-section p,
.lease-terms-section p,
.landlord-info-section p {
    margin: 0 0 8px 0;
    color: #6c757d;
    font-size: 14px;
}

/* Contact Actions */
.contact-actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

/* Application Status */
.application-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.application-status.pending {
    background: #fff3cd;
    color: #856404;
}

.application-status.approved {
    background: #d4edda;
    color: #155724;
}

.application-status.rejected {
    background: #f8d7da;
    color: #721c24;
}

.application-status.withdrawn {
    background: #e2e3e5;
    color: #383d41;
}

/* Lease Status */
.lease-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.lease-status.active {
    background: #d4edda;
    color: #155724;
}

.lease-status.expired {
    background: #f8d7da;
    color: #721c24;
}

.lease-status.terminated {
    background: #e2e3e5;
    color: #383d41;
}

@media (max-width: 768px) {
    .application-details-grid,
    .lease-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .contact-actions {
        flex-direction: column;
    }
}

/* Maintenance Details Grid */
.maintenance-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.maintenance-info-section,
.property-info-section,
.tenant-info-section,
.description-section,
.notes-section,
.actions-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.maintenance-info-section h3,
.property-info-section h3,
.tenant-info-section h3,
.description-section h3,
.notes-section h3,
.actions-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.maintenance-info-section p,
.property-info-section p,
.tenant-info-section p,
.description-section p {
    margin: 0 0 8px 0;
    color: #6c757d;
    font-size: 14px;
}

.description-section {
    grid-column: 1 / -1;
}

.description-section h4 {
    margin: 15px 0 8px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.notes-section {
    grid-column: 1 / -1;
}

.actions-section {
    grid-column: 1 / -1;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .maintenance-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .description-section,
    .notes-section,
    .actions-section {
        grid-column: 1;
    }
    
    .actions-section {
        flex-direction: column;
    }
}

/* Analytics Grid */
.analytics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.analytics-card {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}

.analytics-card h3 {
    margin: 0 0 15px 0;
    color: #6c757d;
    font-size: 14px;
    font-weight: 500;
}

.analytics-value {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 32px;
    font-weight: 700;
}

.analytics-card p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

/* Profile Form */
.profile-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 600px;
}

.profile-form .form-group {
    margin-bottom: 20px;
}

.profile-form label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.profile-form input,
.profile-form select,
.profile-form textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.profile-form input:focus,
.profile-form select:focus,
.profile-form textarea:focus {
    outline: none;
    border-color: #1a73e8;
}

.profile-form input[readonly] {
    background: #f8f9fa;
    color: #6c757d;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portal-sidebar {
        width: 100%;
        position: relative;
        height: auto;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }

    .portal-main {
        margin-left: 0;
        padding: 20px;
    }

    /* Only apply single column to portal stats grid on mobile */
    .portal-main .stats-grid {
        grid-template-columns: 1fr;
    }

    .actions-grid {
        grid-template-columns: 1fr;
    }

    .analytics-grid {
        grid-template-columns: 1fr;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .header-actions {
        width: 100%;
        justify-content: flex-start;
    }

    /* Mobile messaging styles */
    .messages-container {
        flex-direction: column;
        height: auto;
        min-height: 500px;
    }

    .messages-sidebar {
        width: 100%;
        height: 200px;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }

    .messages-main {
        flex: 1;
        min-height: 300px;
    }

    .message-input-wrapper {
        flex-direction: column;
        gap: 10px;
    }

    .message-input-wrapper textarea {
        min-height: 60px;
    }

    .btn-send {
        width: 100%;
        margin-top: 10px;
    }
}

/* Enhanced coordinate fields styling */
.coordinate-fields {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 20px;
    border-radius: 8px;
    border: 2px solid #dee2e6;
    margin: 15px 0;
    position: relative;
}

.coordinate-fields::before {
    content: "📍 Map Coordinates";
    position: absolute;
    top: -10px;
    left: 15px;
    background: white;
    padding: 0 8px;
    font-size: 12px;
    font-weight: 600;
    color: #495057;
}

.coordinate-fields label {
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
    display: block;
    font-size: 14px;
}

.coordinate-fields input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ced4da;
    border-radius: 6px;
    font-family: 'Courier New', monospace;
    background: white;
    color: #495057;
    font-size: 14px;
    font-weight: 500;
}

.coordinate-fields input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.coordinate-fields input:read-only {
    background-color: #f8f9fa;
    color: #6c757d;
    cursor: not-allowed;
}

/* Success state for coordinates */
.coordinate-fields.coordinates-generated {
    border-color: #28a745;
    background: linear-gradient(135deg, #f8fff9 0%, #e8f5e8 100%);
}

.coordinate-fields.coordinates-generated::before {
    content: "✅ Map Coordinates Generated";
    color: #28a745;
}

/* Viewport-based property count */
.property-count.viewport-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #f3e5f5 100%);
    border-left: 4px solid #9c27b0;
    font-weight: 500;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}

.property-count.viewport-info::before {
    content: "📍 ";
    margin-right: 5px;
}

/* Map viewport indicator */
.map-viewport-indicator {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.95);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    color: #666;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    pointer-events: none;
}

.map-viewport-indicator::before {
    content: "👁️ ";
    margin-right: 5px;
}

/* Property Status Management */
.property-status-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    padding: 4px 8px;
    border-radius: 12px;
    color: white;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    z-index: 2;
}

.property-status-badge i {
    margin-right: 4px;
    font-size: 10px;
}

.status-dropdown {
    position: relative;
    display: inline-block;
}

.status-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background: white;
    color: #333;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.status-btn:hover {
    background: #f8f9fa;
    border-color: #1a73e8;
}

.status-btn i:last-child {
    font-size: 10px;
    margin-left: 4px;
}

.status-dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 180px;
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 4px;
}

.status-option {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: none;
    text-align: left;
    font-size: 13px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.status-option:hover {
    background: #f8f9fa;
}

.status-option.active {
    background: #e3f2fd;
    font-weight: 600;
}

.status-option i {
    width: 16px;
    text-align: center;
}

/* Property item layout updates */
.property-item {
    position: relative;
}

.property-image {
    position: relative;
}

/* Status colors for different states */
.status-active { color: #4CAF50; }
.status-inactive { color: #9E9E9E; }
.status-available { color: #2196F3; }
.status-unavailable { color: #FF9800; }
.status-rented { color: #9C27B0; }
.status-sold { color: #F44336; }
.status-pending { color: #FFC107; }
.status-under_contract { color: #795548; }
.status-off_market { color: #607D8B; }

/* Property Detail Status Display */
.property-status-section {
    margin: 20px 0;
    padding: 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid #dee2e6;
}

.status-display {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.status-badge-large {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border-radius: 25px;
    color: white;
    font-weight: 600;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.status-badge-large i {
    font-size: 18px;
}

.status-description {
    flex: 1;
    min-width: 200px;
}

.status-description p {
    margin: 0;
    color: #495057;
    font-size: 14px;
    line-height: 1.5;
}

.status-description strong {
    color: #333;
    font-weight: 600;
}

/* Property card status badge positioning */
.property-card .property-image {
    position: relative;
}

.property-card .property-status-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
}

/* Zillow-style property card status badge */
.property-card-zillow .property-image-zillow {
    position: relative;
}

.property-card-zillow .property-status-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 2;
}

/* ===== MODERN HOMEPAGE STYLES ===== */

/* Modern Hero Section */
.hero-modern {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
    margin-top: 70px; /* Account for fixed navbar height */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000"><defs><pattern id="grid" width="50" height="50" patternUnits="userSpaceOnUse"><path d="M 50 0 L 0 0 0 50" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, rgba(102, 126, 234, 0.8) 0%, rgba(118, 75, 162, 0.8) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-text {
    color: white;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.hero-subtitle {
    display: block;
    font-size: 2rem;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 10px;
}

.hero-description {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: #FFD700;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.stat-label {
    display: block;
    font-size: 0.9rem;
    opacity: 0.8;
    margin-top: 5px;
}

/* Modern Search Container */
.search-container-modern {
    background: white;
    border-radius: 20px;
    padding: 30px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

.search-tabs-modern {
    display: flex;
    margin-bottom: 25px;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 5px;
}

.tab-btn-modern {
    flex: 1;
    padding: 12px 20px;
    border: none;
    background: transparent;
    border-radius: 8px;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn-modern.active {
    background: #1a73e8;
    color: white;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
}

.tab-btn-modern:hover:not(.active) {
    background: rgba(26, 115, 232, 0.1);
    color: #1a73e8;
}

.search-form-modern {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.search-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.search-row:first-child {
    grid-template-columns: 2fr 1fr;
}

.search-input-group-modern {
    position: relative;
    display: flex;
    align-items: center;
    background: #f8f9fa;
    border-radius: 12px;
    padding: 0 15px;
    transition: all 0.3s ease;
}

.search-input-group-modern:focus-within {
    background: white;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.search-input-group-modern i {
    color: #666;
    margin-right: 10px;
    font-size: 1.1rem;
}

.search-input-group-modern input,
.search-input-group-modern select {
    flex: 1;
    padding: 15px 0;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #333;
    outline: none;
}

.search-input-group-modern input::placeholder {
    color: #999;
}

.search-btn-modern {
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(26, 115, 232, 0.3);
}

.search-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.4);
}

.search-features {
    display: flex;
    gap: 20px;
    margin-top: 20px;
    justify-content: center;
}

.feature-tag {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.85rem;
    color: #666;
    background: #f8f9fa;
    padding: 5px 12px;
    border-radius: 20px;
}

.feature-tag i {
    color: #1a73e8;
}

/* Market Stats Section */
.market-stats {
    padding: 80px 0;
    background: #f8f9fa;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    background: white;
    padding: 30px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 1.5rem;
}

.stat-content h3 {
    font-size: 1.1rem;
    color: #333;
    margin-bottom: 10px;
    font-weight: 600;
}

.stat-highlight {
    font-size: 2.5rem;
    font-weight: 800;
    color: #1a73e8;
    margin-bottom: 5px;
    display: block;
}

.stat-description {
    color: #666;
    font-size: 0.9rem;
    line-height: 1.4;
}

/* Modern Featured Properties */
.featured-properties-modern {
    padding: 80px 0;
    background: white;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.section-header p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 30px;
}

.view-all-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #1a73e8;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-btn:hover {
    background: #0d47a1;
    transform: translateY(-2px);
}

.properties-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

/* Modern Services Section */
.services-modern {
    padding: 80px 0;
    background: #f8f9fa;
}

.services-grid-modern {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.service-card-modern {
    background: white;
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
    position: relative;
    overflow: hidden;
}

.service-card-modern::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
}

.service-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    color: white;
    font-size: 2rem;
}

.service-card-modern h3 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 15px;
}

.service-card-modern p {
    color: #666;
    line-height: 1.6;
    margin-bottom: 25px;
}

.service-features {
    list-style: none;
    margin-bottom: 30px;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    color: #555;
}

.service-features li i {
    color: #4CAF50;
    font-size: 0.9rem;
}

.service-link-modern {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #1a73e8;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.service-link-modern:hover {
    color: #0d47a1;
    gap: 12px;
}

/* Testimonials Section */
.testimonials {
    padding: 80px 0;
    background: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.testimonial-card {
    background: #f8f9fa;
    padding: 30px;
    border-radius: 16px;
    border-left: 4px solid #1a73e8;
    transition: all 0.3s ease;
}

.testimonial-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.1);
}

.testimonial-rating {
    margin-bottom: 15px;
}

.testimonial-rating i {
    color: #FFD700;
    font-size: 1.1rem;
}

.testimonial-card p {
    font-style: italic;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 15px;
}

.testimonial-author img {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

.testimonial-author h4 {
    font-weight: 600;
    color: #333;
    margin-bottom: 2px;
}

.testimonial-author span {
    font-size: 0.9rem;
    color: #666;
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
}

.cta-content p {
    font-size: 1.2rem;
    margin-bottom: 40px;
    opacity: 0.9;
}

.cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary-large,
.btn-secondary-large {
    padding: 15px 30px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

.btn-primary-large {
    background: white;
    color: #1a73e8;
}

.btn-primary-large:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.3);
}

.btn-secondary-large {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary-large:hover {
    background: white;
    color: #1a73e8;
    transform: translateY(-2px);
}

/* Modern Footer */
.footer-modern {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
}

.footer-section-main {
    grid-column: span 2;
}

.footer-section-main h3 {
    font-size: 1.8rem;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-section-main h3 i {
    color: #1a73e8;
}

.footer-section-main p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 25px;
}

.social-links-modern {
    display: flex;
    gap: 15px;
}

.social-link {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-link:hover {
    background: #1a73e8;
    transform: translateY(-2px);
}

.footer-bottom-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-links {
    display: flex;
    gap: 20px;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #1a73e8;
}

/* ===== MORTGAGE COMPANY FEATURES ===== */

/* Local Mortgage Companies Section */
.local-mortgage-companies {
    padding: 80px 0;
    background: #f8f9fa;
}

.company-search {
    margin-bottom: 50px;
}

.company-search .search-form {
    display: flex;
    gap: 15px;
    max-width: 600px;
    margin: 0 auto;
}

.company-search .input-group {
    flex: 1;
    position: relative;
}

.company-search .input-group i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.company-search .input-group input {
    width: 100%;
    padding: 15px 15px 15px 45px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

.featured-companies {
    margin-bottom: 60px;
}

.featured-companies h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 1.8rem;
    color: #333;
}

.companies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.company-card {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    border: 1px solid #f0f0f0;
}

.company-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.company-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.company-logo {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a73e8 0%, #0d47a1 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
}

.company-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.2rem;
}

.company-info .company-type {
    color: #666;
    font-size: 0.9rem;
}

.company-details {
    margin-bottom: 20px;
}

.company-details p {
    color: #555;
    line-height: 1.5;
    margin-bottom: 10px;
}

.company-contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.9rem;
}

.contact-item i {
    color: #1a73e8;
    width: 16px;
}

.company-actions {
    display: flex;
    gap: 10px;
}

.company-actions .btn-secondary {
    flex: 1;
    padding: 10px;
    font-size: 0.9rem;
}

/* Company Registration Section */
.company-registration {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
    border-radius: 20px;
    margin-top: 40px;
}

.registration-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.registration-content h3 {
    font-size: 2rem;
    margin-bottom: 15px;
}

.registration-content p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    opacity: 0.9;
}

.registration-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255,255,255,0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.benefit-item i {
    font-size: 1.2rem;
    color: #FFD700;
}

.btn-primary-large {
    padding: 15px 30px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

/* Company Registration Modal */
.modal-content.large {
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-content.large .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.modal-content.large .form-group {
    margin-bottom: 20px;
}

.modal-content.large label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.modal-content.large input,
.modal-content.large select,
.modal-content.large textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.modal-content.large input:focus,
.modal-content.large select:focus,
.modal-content.large textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.modal-content.large textarea {
    resize: vertical;
    min-height: 100px;
}

.modal-content.large .form-group:last-child {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

/* Profile Features */
.profile-section {
    padding: 40px 0;
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
    padding: 30px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.profile-avatar {
    position: relative;
    width: 120px;
    height: 120px;
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #1a73e8;
}

.profile-avatar .upload-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 35px;
    height: 35px;
    background: #1a73e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.profile-avatar .upload-overlay:hover {
    background: #0d47a1;
    transform: scale(1.1);
}

.profile-info h2 {
    margin: 0 0 10px 0;
    color: #333;
}

.profile-info .user-email {
    color: #666;
    margin-bottom: 15px;
}

.profile-stats {
    display: flex;
    gap: 30px;
}

.profile-stat {
    text-align: center;
}

.profile-stat .stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a73e8;
    display: block;
}

.profile-stat .stat-label {
    font-size: 0.9rem;
    color: #666;
}

/* Lister Profile on Property Pages */
.lister-profile {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    margin-top: 20px;
    border: 1px solid #e9ecef;
}

.lister-profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lister-profile-header:hover {
    transform: translateY(-2px);
}

.lister-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1a73e8;
}

.lister-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.1rem;
}

.lister-info .lister-type {
    color: #666;
    font-size: 0.9rem;
}

.lister-stats {
    display: flex;
    gap: 20px;
    margin-top: 10px;
}

.lister-stat {
    text-align: center;
}

.lister-stat .stat-number {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1a73e8;
    display: block;
}

    .lister-stat .stat-label {
        font-size: 0.8rem;
        color: #666;
    }

/* ===== PROFILE PAGE STYLES ===== */

.profile-page {
    min-height: 100vh;
    background: #f8f9fa;
}

.profile-header-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
}

.profile-header-large {
    display: flex;
    align-items: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-avatar-large {
    width: 150px;
    height: 150px;
    flex-shrink: 0;
}

.profile-avatar-large img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid rgba(255,255,255,0.3);
}

.profile-info-large {
    flex: 1;
}

.profile-info-large h1 {
    margin: 0 0 10px 0;
    font-size: 2.5rem;
    font-weight: 700;
}

.profile-type {
    font-size: 1.2rem;
    margin: 0 0 5px 0;
    opacity: 0.9;
}

.profile-location {
    font-size: 1rem;
    margin: 0 0 30px 0;
    opacity: 0.8;
}

.profile-stats-large {
    display: flex;
    gap: 40px;
}

.profile-stat-large {
    text-align: center;
}

.stat-number-large {
    font-size: 2rem;
    font-weight: 700;
    display: block;
    color: #FFD700;
}

.stat-label-large {
    font-size: 0.9rem;
    opacity: 0.8;
}

.profile-content-section {
    padding: 60px 0;
}

.profile-content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.profile-main {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.profile-section {
    margin-bottom: 40px;
}

.profile-section:last-child {
    margin-bottom: 0;
}

.profile-section h2 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.8rem;
    font-weight: 600;
}

.about-content p {
    color: #555;
    line-height: 1.6;
    font-size: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-actions {
    display: flex;
    gap: 10px;
}

.section-actions button {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.section-actions button:hover,
.section-actions button.active {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 30px;
}

.no-properties {
    text-align: center;
    padding: 60px 20px;
    color: #666;
}

.no-properties h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.profile-sidebar {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.contact-section,
.recent-activity-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.contact-section h3,
.recent-activity-section h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 1.3rem;
    font-weight: 600;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #555;
}

.contact-item i {
    color: #1a73e8;
    width: 16px;
    text-align: center;
}

.activity-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.activity-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.activity-item:hover {
    background: #e3f2fd;
    transform: translateY(-2px);
}

.activity-icon {
    width: 40px;
    height: 40px;
    background: #1a73e8;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    flex-shrink: 0;
}

.activity-content p {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 0.9rem;
}

.activity-date {
    color: #666;
    font-size: 0.8rem;
}

.no-activity {
    text-align: center;
    color: #666;
    padding: 20px;
}

/* Loading and Error States */
.loading-container,
.error-container {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
}

.loading-content,
.error-content {
    text-align: center;
    color: #666;
}

.loading-content i,
.error-content i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #1a73e8;
}

.error-content i {
    color: #dc3545;
}

.loading-content p,
.error-content h2 {
    margin: 0 0 10px 0;
    color: #333;
}

.error-content p {
    margin: 0 0 20px 0;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.5rem;
    }
    
    .hero-stats {
        justify-content: center;
        gap: 30px;
    }
    
    .search-row {
        grid-template-columns: 1fr;
    }
    
    .search-row:first-child {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .services-grid-modern {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .footer-bottom-content {
        flex-direction: column;
        text-align: center;
    }
    
    .company-search .search-form {
        flex-direction: column;
    }
    
    .registration-benefits {
        grid-template-columns: 1fr;
    }
    
    .profile-header {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-stats {
        justify-content: center;
    }
    
    .modal-content.large .form-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1.2rem;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .companies-grid {
        grid-template-columns: 1fr;
    }
    
    .lister-stats {
        flex-direction: column;
        gap: 10px;
    }
    
    .profile-header-large {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .profile-stats-large {
        justify-content: center;
    }
    
    .profile-content-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .section-actions {
        width: 100%;
        justify-content: center;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
}

/* Favorites Section Styles */
.favorites-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.favorites-list .property-item {
    display: flex;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.favorites-list .property-item:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

.favorites-list .property-image {
    width: 150px;
    height: 100px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.favorites-list .property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorites-list .property-info {
    flex: 1;
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.favorites-list .property-info h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.favorites-list .property-info p {
    margin: 0 0 8px 0;
    color: #666;
    font-size: 0.9rem;
}

.favorites-list .property-type {
    display: inline-block;
    padding: 4px 12px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 8px;
}

.favorites-list .property-status {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-right: 8px;
}

.favorites-list .property-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.favorites-list .property-actions button {
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.favorites-list .property-actions .btn-secondary {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
}

.favorites-list .property-actions .btn-secondary:hover {
    background: #e9ecef;
    border-color: #adb5bd;
}

.favorites-list .property-actions .btn-secondary.danger {
    background: #fff5f5;
    color: #dc3545;
    border-color: #ffcdd2;
}

.favorites-list .property-actions .btn-secondary.danger:hover {
    background: #ffe6e6;
    border-color: #ff8a80;
}

/* Loading state for favorites */
.favorites-list .loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.favorites-list .loading i {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #1a73e8;
}

/* No data state for favorites */
.favorites-list .no-data {
    text-align: center;
    padding: 40px;
    color: #666;
}

.favorites-list .no-data i {
    font-size: 3rem;
    margin-bottom: 20px;
    color: #ccc;
}

.favorites-list .no-data h3 {
    margin: 0 0 12px 0;
    color: #333;
    font-size: 1.3rem;
}

.favorites-list .no-data p {
    margin: 0 0 24px 0;
    color: #666;
    font-size: 1rem;
}

/* Responsive design for favorites */
@media (max-width: 768px) {
    .favorites-list .property-item {
        flex-direction: column;
        gap: 16px;
    }
    
    .favorites-list .property-image {
        width: 100%;
        height: 200px;
    }
    
    .favorites-list .property-info {
        padding: 0;
    }
    
    .favorites-list .property-actions {
        flex-direction: row;
        justify-content: space-between;
    }
}

/* Recent Activity Load More Styles */
.load-more-container {
    text-align: center;
    padding: 20px 0;
    border-top: 1px solid #e0e0e0;
    margin-top: 20px;
}

.load-more-btn {
    background: #f8f9fa;
    color: #495057;
    border: 1px solid #dee2e6;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.load-more-btn:hover {
    background: #e9ecef;
    border-color: #adb5bd;
    transform: translateY(-1px);
}

.load-more-btn i {
    font-size: 0.9rem;
    transition: transform 0.2s ease;
}

.load-more-btn:hover i {
    transform: translateY(1px);
}

/* Activity item animations */
.activity-item {
    animation: fadeInUp 0.3s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Loading state for activities */
.activity-list .loading {
    text-align: center;
    padding: 40px;
    color: #666;
}

.activity-list .loading i {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #1a73e8;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Profile Upload Progress Styles */
.profile-upload-progress {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 10000;
    min-width: 300px;
    text-align: center;
}

.profile-upload-progress .progress-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.profile-upload-progress i {
    font-size: 2rem;
    color: #1a73e8;
    animation: spin 1s linear infinite;
}

.profile-upload-progress p {
    margin: 0;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
}

.profile-upload-progress .progress-bar {
    width: 100%;
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
    margin: 10px 0;
}

.profile-upload-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a73e8, #4285f4);
    border-radius: 3px;
    animation: progressPulse 2s ease-in-out infinite;
}

@keyframes progressPulse {
    0%, 100% { width: 0%; }
    50% { width: 100%; }
}

/* Lister Profile Styles for Property Detail Page */
.lister-profile {
    margin: 30px 0;
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.lister-profile:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.lister-profile-header {
    display: flex;
    align-items: center;
    gap: 15px;
    cursor: pointer;
    padding: 10px;
    border-radius: 8px;
    transition: background-color 0.2s ease;
}

.lister-profile-header:hover {
    background: #e3f2fd;
}

.lister-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1a73e8;
}

.lister-info {
    flex: 1;
}

.lister-info h4 {
    margin: 0 0 5px 0;
    color: #333;
    font-size: 1.1rem;
    font-weight: 600;
}

.lister-type {
    display: inline-block;
    padding: 4px 12px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    margin-bottom: 10px;
}

.lister-stats {
    display: flex;
    gap: 20px;
}

.lister-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lister-stat .stat-number {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a73e8;
}

.lister-stat .stat-label {
    font-size: 0.8rem;
    color: #666;
    margin-top: 2px;
}

/* Responsive design for lister profile */
@media (max-width: 768px) {
    .lister-profile-header {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .lister-stats {
        justify-content: center;
    }
}

/* Lister Profile Sidebar Styles */
.lister-profile-sidebar {
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.lister-profile-sidebar:hover {
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.15);
    transform: translateY(-2px);
    background: #f0f8ff;
}

.lister-profile-sidebar .lister-profile-header {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    padding: 8px;
    border-radius: 6px;
    transition: all 0.3s ease;
    position: relative;
}

.lister-profile-sidebar:hover .lister-profile-header {
    background: #e3f2fd;
}

.lister-profile-sidebar::after {
    content: "Click to view profile";
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    background: #1a73e8;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    white-space: nowrap;
    z-index: 10;
}

.lister-profile-sidebar:hover::after {
    opacity: 1;
}

.lister-profile-sidebar .lister-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #1a73e8;
    flex-shrink: 0;
}

.lister-profile-sidebar .lister-info {
    flex: 1;
    min-width: 0;
}

.lister-profile-sidebar .lister-info h4 {
    margin: 0 0 3px 0;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lister-profile-sidebar .lister-type {
    display: inline-block;
    padding: 2px 8px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 12px;
    font-size: 0.7rem;
    font-weight: 500;
    margin-bottom: 8px;
}

.lister-profile-sidebar .lister-stats {
    display: flex;
    gap: 15px;
}

.lister-profile-sidebar .lister-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.lister-profile-sidebar .lister-stat .stat-number {
    font-size: 1rem;
    font-weight: 600;
    color: #1a73e8;
}

.lister-profile-sidebar .lister-stat .stat-label {
    font-size: 0.7rem;
    color: #666;
    margin-top: 1px;
}

.lister-profile-sidebar .lister-profile-header i.fa-chevron-right {
    color: #1a73e8;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.lister-profile-sidebar:hover .lister-profile-header i.fa-chevron-right {
    transform: translateX(3px);
    color: #1557b0;
}

/* Rating System Styles */
.rating-content {
    padding: 20px 0;
}

.rating-display {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
}

.rating-stars {
    display: flex;
    gap: 2px;
}

.rating-stars i {
    color: #ffc107;
    font-size: 1.2rem;
}

.rating-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rating-number {
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.rating-count {
    font-size: 0.9rem;
    color: #666;
}

.rating-form {
    padding: 20px;
    background: #f8f9fa;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
}

.rating-form h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 1.1rem;
}

.star-rating {
    display: flex;
    gap: 5px;
    margin-bottom: 10px;
}

.star-rating i {
    font-size: 1.5rem;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
}

.star-rating i:hover,
.star-rating i.fas {
    color: #ffc107;
}

.star-rating i.far:hover ~ i.far {
    color: #ddd;
}

.rating-hint {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

.user-rating-display {
    padding: 15px;
    background: #e3f2fd;
    border: 1px solid #bbdefb;
    border-radius: 8px;
    text-align: center;
}

.user-rating-display p {
    margin: 0 0 10px 0;
    color: #1976d2;
    font-weight: 500;
}

.user-rating-display .rating-stars {
    justify-content: center;
    margin-bottom: 10px;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 10px;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    animation: slideInRight 0.3s ease-out;
}

.notification-success {
    background: #4caf50;
}

.notification-error {
    background: #f44336;
}

.notification-info {
    background: #2196f3;
}

.notification button {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    margin-left: auto;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Enhanced Tenant Management Styles */

/* Form Sections */
.form-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border-left: 4px solid #1a73e8;
}

.form-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Tenant Header Actions */
.tenants-header-actions {
    margin-bottom: 20px;
    text-align: right;
}

/* Enhanced Tenant Cards */
.tenant-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 20px;
    align-items: start;
    transition: all 0.3s ease;
}

.tenant-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transform: translateY(-2px);
}

.tenant-avatar {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.tenant-details h3 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.tenant-details p {
    margin: 0 0 5px 0;
    color: #6c757d;
    font-size: 14px;
}

.tenant-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 150px;
}

/* Extra Large Modal */
.modal-content.extra-large {
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
}

/* Enhanced Tenant Details Grid */
.tenant-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-top: 20px;
}

.tenant-info-section,
.tenant-employment-section,
.lease-info-section,
.payment-stats-section,
.payment-history-section,
.notes-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.tenant-info-section h3,
.tenant-employment-section h3,
.lease-info-section h3,
.payment-stats-section h3,
.payment-history-section h3,
.notes-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tenant-info-section p,
.tenant-employment-section p,
.lease-info-section p {
    margin: 0 0 8px 0;
    color: #6c757d;
    font-size: 14px;
}

/* Payment Statistics Grid */
.payment-stats-section .stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.payment-stats-section .stat-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.payment-stats-section .stat-number {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #1a73e8;
    margin-bottom: 5px;
}

.payment-stats-section .stat-label {
    font-size: 12px;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Payment History List */
.payment-history-list {
    max-height: 300px;
    overflow-y: auto;
}

.payment-history-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid #1a73e8;
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.payment-amount {
    font-size: 16px;
    font-weight: 700;
    color: #333;
}

.payment-details p {
    margin: 0 0 5px 0;
    font-size: 13px;
    color: #6c757d;
}

/* Enhanced Notes */
.note-item {
    background: white;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid #1a73e8;
}

.note-item.high {
    border-left-color: #dc3545;
}

.note-item.urgent {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.note-item.low {
    border-left-color: #28a745;
}

.note-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.note-category {
    background: #e9ecef;
    color: #495057;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.note-priority {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.note-priority.high {
    background: #f8d7da;
    color: #721c24;
}

.note-priority.urgent {
    background: #dc3545;
    color: white;
}

.note-priority.medium {
    background: #fff3cd;
    color: #856404;
}

.note-priority.low {
    background: #d4edda;
    color: #155724;
}

.note-item h4 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.note-item p {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
    line-height: 1.5;
}

.note-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.note-meta small {
    color: #6c757d;
    font-size: 12px;
}

.note-tags {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.tag {
    background: #e9ecef;
    color: #495057;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 11px;
}

.follow-up-badge {
    background: #dc3545;
    color: white;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
}

/* Tenant Actions Section */
.tenant-actions-section {
    grid-column: 1 / -1;
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-top: 20px;
}

.tenant-actions-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.action-buttons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* Payment Form Enhancements */
.payment-breakdown {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin-top: 15px;
}

.payment-breakdown h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .tenant-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tenant-card {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tenant-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .payment-stats-section .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .modal-content.extra-large {
        max-width: 95vw;
        margin: 20px;
    }
}

/* Contact Tenant Styles */

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.contact-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    border-left: 4px solid #1a73e8;
}

.contact-section h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.contact-section p {
    margin: 0 0 15px 0;
    color: #6c757d;
    font-size: 14px;
}

.contact-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-actions .btn-primary,
.contact-actions .btn-secondary {
    flex: 1;
    min-width: 120px;
    text-align: center;
}

.contact-notes {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.contact-notes h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quick-notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 10px;
}

.quick-notes .btn-secondary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    font-size: 14px;
}

.contact-history {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
}

.contact-history h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.communication-history {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.text-muted {
    color: #6c757d !important;
    font-style: italic;
}

/* Message Form Styles */
.message-form {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.message-form h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

/* Responsive Contact Grid */
@media (max-width: 768px) {
    .contact-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .quick-notes {
        grid-template-columns: 1fr;
    }
    
    .contact-actions {
        flex-direction: column;
    }
    
    .contact-actions .btn-primary,
    .contact-actions .btn-secondary {
        flex: none;
    }
}

/* Alerts and Notifications Styles */

.alerts-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 1000;
    max-width: 400px;
}

.alert {
    background: white;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideInRight 0.3s ease-out;
}

.alert-danger {
    border-left-color: #dc3545;
    background: #fff5f5;
}

.alert-warning {
    border-left-color: #ffc107;
    background: #fffbf0;
}

.alert-info {
    border-left-color: #17a2b8;
    background: #f0f8ff;
}

.alert-success {
    border-left-color: #28a745;
    background: #f0fff4;
}

.alert i {
    font-size: 16px;
    flex-shrink: 0;
}

.alert-danger i {
    color: #dc3545;
}

.alert-warning i {
    color: #ffc107;
}

.alert-info i {
    color: #17a2b8;
}

.alert-success i {
    color: #28a745;
}

.alert span {
    flex: 1;
    font-size: 14px;
    color: #333;
}

.alert-close {
    background: none;
    border: none;
    font-size: 18px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.alert-close:hover {
    background: #e9ecef;
    color: #333;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* System Health Indicators */
.health-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.health-indicator.healthy {
    background: #d4edda;
    color: #155724;
}

.health-indicator.warning {
    background: #fff3cd;
    color: #856404;
}

.health-indicator.unhealthy {
    background: #f8d7da;
    color: #721c24;
}

.health-indicator.unknown {
    background: #e9ecef;
    color: #6c757d;
}

.health-indicator::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.health-indicator.healthy::before {
    background: #28a745;
}

.health-indicator.warning::before {
    background: #ffc107;
}

.health-indicator.unhealthy::before {
    background: #dc3545;
}

.health-indicator.unknown::before {
    background: #6c757d;
}

/* Loading States */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e9ecef;
    border-top: 4px solid #1a73e8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    margin-top: 15px;
    color: #6c757d;
    font-size: 14px;
}

/* Progress Indicators */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 10px 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #1a73e8, #4285f4);
    border-radius: 4px;
    transition: width 0.3s ease;
}

/* Status Badges */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.paid {
    background: #d4edda;
    color: #155724;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.overdue {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.late {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.partial {
    background: #d1ecf1;
    color: #0c5460;
}

/* Data Validation Styles */
.validation-error {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: flex;
    align-items: center;
    gap: 5px;
}

.validation-error::before {
    content: '⚠';
    font-size: 14px;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #28a745;
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Bulk Operations Styles */
.bulk-operations {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
    border: 2px dashed #dee2e6;
}

.bulk-operations h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.bulk-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.bulk-results {
    margin-top: 15px;
    padding: 15px;
    background: white;
    border-radius: 6px;
    border-left: 4px solid #1a73e8;
}

.bulk-results h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 14px;
    font-weight: 600;
}

.bulk-results .success-count {
    color: #28a745;
    font-weight: 600;
}

.bulk-results .error-count {
    color: #dc3545;
    font-weight: 600;
}

/* Performance Indicators */
.performance-indicator {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 6px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 500;
}

.performance-indicator.fast {
    background: #d4edda;
    color: #155724;
}

.performance-indicator.slow {
    background: #f8d7da;
    color: #721c24;
}

.performance-indicator.warning {
    background: #fff3cd;
    color: #856404;
}

/* Responsive Alerts */
@media (max-width: 768px) {
    .alerts-container {
        top: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }
    
    .alert {
        padding: 12px 15px;
        font-size: 13px;
    }
    
    .bulk-actions {
        flex-direction: column;
    }
    
    .bulk-actions .btn {
        width: 100%;
    }
}

/* Dashboard Invite Tenant Section */
.dashboard-invite-section {
    margin: 30px 0;
}

.invite-tenant-card {
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    color: white;
    padding: 30px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 8px 25px rgba(26, 115, 232, 0.3);
    transition: all 0.3s ease;
}

.invite-tenant-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(26, 115, 232, 0.4);
}

.invite-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    flex-shrink: 0;
}

.invite-content {
    flex: 1;
}

.invite-content h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
}

.invite-content p {
    margin: 0 0 20px 0;
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.5;
}

.btn-large {
    padding: 15px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-large:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

/* Enhanced Tenant Card Hover Effects */
.tenant-card {
    cursor: pointer;
    transition: all 0.3s ease;
}

.tenant-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.tenant-card:active {
    transform: translateY(-1px);
}

/* Tenant Details Modal Enhancements */
.modal-content.extra-large {
    max-width: 1400px;
    max-height: 95vh;
}

.tenant-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 25px;
    margin-top: 25px;
}

.tenant-info-section,
.tenant-employment-section,
.lease-info-section,
.payment-stats-section,
.payment-history-section,
.notes-section {
    background: #f8f9fa;
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.tenant-info-section:hover,
.tenant-employment-section:hover,
.lease-info-section:hover,
.payment-stats-section:hover,
.payment-history-section:hover,
.notes-section:hover {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

/* Responsive Design for Invite Section */
@media (max-width: 768px) {
    .invite-tenant-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
    }
    
    .invite-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .invite-content h3 {
        font-size: 20px;
    }
    
    .invite-content p {
        font-size: 14px;
    }
    
    .btn-large {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .tenant-details-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* No Properties Guidance Modal */
.no-properties-guidance {
    text-align: center;
    padding: 20px 0;
}

.guidance-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #1a73e8, #4285f4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    color: white;
    font-size: 32px;
}

.guidance-content h3 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 20px;
    font-weight: 600;
}

.guidance-content p {
    margin: 0 0 25px 0;
    color: #6c757d;
    font-size: 16px;
    line-height: 1.5;
}

.guidance-actions {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 20px 0;
    text-align: left;
}

.guidance-actions h4 {
    margin: 0 0 15px 0;
    color: #333;
    font-size: 16px;
    font-weight: 600;
}

.guidance-actions ul {
    margin: 0;
    padding-left: 20px;
    color: #6c757d;
}

.guidance-actions li {
    margin-bottom: 8px;
    line-height: 1.4;
}

.guidance-actions strong {
    color: #333;
}

.guidance-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

.guidance-buttons .btn {
    min-width: 150px;
}

/* Property Status Indicators */
.property-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-status.available {
    background: #d4edda;
    color: #155724;
}

.property-status.listed {
    background: #d1ecf1;
    color: #0c5460;
}

.property-status.rented {
    background: #f8d7da;
    color: #721c24;
}

.property-status.maintenance {
    background: #fff3cd;
    color: #856404;
}

.property-status.off-market {
    background: #e9ecef;
    color: #6c757d;
}

/* Responsive Design for Guidance */
@media (max-width: 768px) {
    .guidance-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
    }
    
    .guidance-content h3 {
        font-size: 18px;
    }
    
    .guidance-content p {
        font-size: 14px;
    }
    
    .guidance-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .guidance-buttons .btn {
        width: 100%;
        max-width: 250px;
    }
}

/* Enhanced Portal Styles */
.alerts-banner, .notifications-banner {
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 8px;
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.alerts-banner .alert, .notifications-banner .alert {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0;
    padding: 0;
    background: none;
    border: none;
}

.alert-badge {
    background: #dc3545;
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
    border-radius: 12px;
    margin-left: 0.5rem;
}

/* Enhanced Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff, #6610f2);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(135deg, #007bff, #6610f2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    color: white;
    font-size: 1.5rem;
}

.stat-content h3 {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.5rem;
}

.stat-change {
    font-size: 0.85rem;
    font-weight: 500;
}

.stat-change.positive {
    color: #28a745;
}

.stat-change.negative {
    color: #dc3545;
}

.stat-change.neutral {
    color: #6c757d;
}

.stat-change.warning {
    color: #ffc107;
}

/* Document Management Styles */
.documents-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.document-card {
    display: flex;
    align-items: center;
    padding: 1rem;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.document-card:hover {
    border-color: #007bff;
    box-shadow: 0 2px 8px rgba(0,123,255,0.1);
}

.document-icon {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
    color: white;
}

.document-icon.lease {
    background: linear-gradient(135deg, #28a745, #20c997);
}

.document-icon.application {
    background: linear-gradient(135deg, #007bff, #6610f2);
}

.document-icon.maintenance {
    background: linear-gradient(135deg, #fd7e14, #e83e8c);
}

.document-icon.general {
    background: linear-gradient(135deg, #6c757d, #495057);
}

.document-info {
    flex: 1;
}

.document-info h4 {
    margin: 0 0 0.25rem 0;
    font-weight: 600;
}

.document-info p {
    margin: 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.document-actions {
    display: flex;
    gap: 0.5rem;
}

/* Marketing Styles */
.marketing-container {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.promotion-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.promotion-header {
    display: flex;
    justify-content: between;
    align-items: center;
    margin-bottom: 1rem;
}

.promotion-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #212529;
}

.promotion-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.promotion-status.active {
    background: #d4edda;
    color: #155724;
}

.promotion-status.paused {
    background: #fff3cd;
    color: #856404;
}

.promotion-status.expired {
    background: #f8d7da;
    color: #721c24;
}

.promotion-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin: 1rem 0;
}

.promotion-stat {
    text-align: center;
    padding: 1rem;
    background: white;
    border-radius: 8px;
    border: 1px solid #dee2e6;
}

.promotion-stat h4 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 0.25rem 0;
    color: #007bff;
}

.promotion-stat p {
    margin: 0;
    font-size: 0.85rem;
    color: #6c757d;
}

/* Enhanced Maintenance Styles */
.maintenance-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.maintenance-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.maintenance-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.maintenance-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.5rem;
}

.maintenance-property {
    font-size: 0.9rem;
    color: #6c757d;
}

.maintenance-priority {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
}

.maintenance-priority.urgent {
    background: #f8d7da;
    color: #721c24;
}

.maintenance-priority.high {
    background: #fff3cd;
    color: #856404;
}

.maintenance-priority.medium {
    background: #d1ecf1;
    color: #0c5460;
}

.maintenance-priority.low {
    background: #d4edda;
    color: #155724;
}

.maintenance-description {
    color: #495057;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.maintenance-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: #6c757d;
}

.maintenance-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Enhanced Payment Styles */
.payment-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.payment-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.payment-amount {
    font-size: 1.5rem;
    font-weight: 700;
    color: #212529;
}

.payment-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.payment-status.paid {
    background: #d4edda;
    color: #155724;
}

.payment-status.pending {
    background: #fff3cd;
    color: #856404;
}

.payment-status.overdue {
    background: #f8d7da;
    color: #721c24;
}

.payment-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.payment-detail {
    font-size: 0.9rem;
}

.payment-detail strong {
    color: #495057;
}

.payment-actions {
    display: flex;
    gap: 0.5rem;
}

/* Enhanced Tenant Styles */
.tenant-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.tenant-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.tenant-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.tenant-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #007bff, #6610f2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    font-weight: 600;
    margin-right: 1rem;
}

.tenant-info {
    flex: 1;
}

.tenant-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.tenant-property {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.tenant-contact {
    font-size: 0.85rem;
    color: #6c757d;
}

.tenant-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

.tenant-status.current {
    background: #d4edda;
    color: #155724;
}

.tenant-status.past {
    background: #f8d7da;
    color: #721c24;
}

.tenant-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

/* Enhanced Application Styles */
.application-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.application-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.application-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.application-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
}

.application-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.application-status.pending {
    background: #fff3cd;
    color: #856404;
}

.application-status.approved {
    background: #d4edda;
    color: #155724;
}

.application-status.rejected {
    background: #f8d7da;
    color: #721c24;
}

.application-status.withdrawn {
    background: #e2e3e5;
    color: #383d41;
}

.application-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.application-detail {
    font-size: 0.9rem;
}

.application-detail strong {
    color: #495057;
}

.application-actions {
    display: flex;
    gap: 0.5rem;
}

/* Enhanced Property Styles */
.property-card {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1rem;
    background: white;
    transition: all 0.3s ease;
}

.property-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.property-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 0.25rem;
}

.property-address {
    font-size: 0.9rem;
    color: #6c757d;
}

.property-status {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.property-status.available {
    background: #d4edda;
    color: #155724;
}

.property-status.rented {
    background: #f8d7da;
    color: #721c24;
}

.property-status.maintenance {
    background: #fff3cd;
    color: #856404;
}

.property-status.off-market {
    background: #e2e3e5;
    color: #383d41;
}

.property-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    margin-bottom: 1rem;
}

.property-detail {
    font-size: 0.9rem;
}

.property-detail strong {
    color: #495057;
}

.property-actions {
    display: flex;
    gap: 0.5rem;
}

/* Enhanced Modal Styles */
.modal-content.extra-large {
    max-width: 90vw;
    max-height: 90vh;
    width: 1200px;
}

.modal-content.large {
    max-width: 800px;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e9ecef;
    margin-bottom: 1.5rem;
}

.modal-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.modal-close {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: #f8f9fa;
    color: #495057;
}

/* Enhanced Form Styles */
.form-section {
    margin-bottom: 2rem;
}

.form-section h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e9ecef;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e9ecef;
    margin-top: 2rem;
}

/* Enhanced Button Styles */
.btn-small {
    padding: 0.25rem 0.75rem;
    font-size: 0.85rem;
    border-radius: 6px;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    border-radius: 8px;
}

/* Enhanced Alert Styles */
.alert {
    padding: 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    border: 1px solid transparent;
}

.alert-danger {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.alert-warning {
    background: #fff3cd;
    border-color: #ffeaa7;
    color: #856404;
}

.alert-info {
    background: #d1ecf1;
    border-color: #bee5eb;
    color: #0c5460;
}

.alert-success {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* Enhanced Loading Styles */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.loading-text {
    margin-top: 1rem;
    color: #6c757d;
    font-weight: 500;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Enhanced Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin: 1rem 0;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #007bff, #6610f2);
    transition: width 0.3s ease;
}

/* Enhanced Status Badges */
.status-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    text-transform: uppercase;
}

.status-badge.paid {
    background: #d4edda;
    color: #155724;
}

.status-badge.pending {
    background: #fff3cd;
    color: #856404;
}

.status-badge.overdue {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.late {
    background: #f8d7da;
    color: #721c24;
}

.status-badge.partial {
    background: #fff3cd;
    color: #856404;
}

/* Enhanced Validation Styles */
.validation-error {
    color: #dc3545;
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.form-group.error input,
.form-group.error select,
.form-group.error textarea {
    border-color: #dc3545;
}

.form-group.error .validation-error {
    display: block;
}

.form-group.success input,
.form-group.success select,
.form-group.success textarea {
    border-color: #28a745;
}

/* Enhanced Bulk Operations */
.bulk-operations {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.bulk-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.bulk-results {
    margin-top: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.success-count {
    color: #28a745;
    font-weight: 600;
}

.error-count {
    color: #dc3545;
    font-weight: 600;
}

/* Enhanced Performance Indicators */
.performance-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.performance-indicator.fast {
    background: #d4edda;
    color: #155724;
}

.performance-indicator.slow {
    background: #f8d7da;
    color: #721c24;
}

.performance-indicator.warning {
    background: #fff3cd;
    color: #856404;
}

/* Enhanced Health Indicators */
.health-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
}

.health-indicator.healthy {
    background: #d4edda;
    color: #155724;
}

.health-indicator.warning {
    background: #fff3cd;
    color: #856404;
}

.health-indicator.unhealthy {
    background: #f8d7da;
    color: #721c24;
}

.health-indicator.unknown {
    background: #e2e3e5;
    color: #383d41;
}

/* Messaging Styles */
.messages-container {
    display: flex;
    height: 600px;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    margin-top: 20px;
}

/* Ensure messages section is properly displayed */
#messages.portal-section {
    display: none;
}

#messages.portal-section.active {
    display: block;
}

.messages-sidebar {
    width: 300px;
    border-right: 1px solid #e9ecef;
    background: #f8f9fa;
}

.conversations-list {
    height: 100%;
    overflow-y: auto;
}

.conversation-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    cursor: pointer;
    transition: all 0.3s ease;
}

.conversation-item:hover {
    background: #e9ecef;
}

.conversation-item.unread {
    background: #e3f2fd;
    border-left: 4px solid #2196f3;
}

.conversation-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #007bff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-right: 1rem;
}

.conversation-content {
    flex: 1;
    min-width: 0;
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.25rem;
}

.conversation-header h4 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #212529;
}

.conversation-time {
    font-size: 0.75rem;
    color: #6c757d;
}

.conversation-preview {
    margin: 0;
    font-size: 0.8rem;
    color: #6c757d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.conversation-property {
    font-size: 0.7rem;
    color: #007bff;
    margin-top: 0.25rem;
    display: block;
}

.unread-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #dc3545;
    margin-left: 0.5rem;
}

.messages-main {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.no-conversation {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    background: #f8f9fa;
}

.no-conversation-content {
    text-align: center;
    color: #6c757d;
}

.no-conversation-content i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

.active-conversation {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #e9ecef;
    background: white;
}

.conversation-info h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #212529;
}

.conversation-info p {
    margin: 0.25rem 0 0 0;
    font-size: 0.85rem;
    color: #6c757d;
}

.conversation-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-action {
    padding: 0.5rem 1rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: white;
    color: #6c757d;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-action:hover {
    background: #f8f9fa;
    border-color: #adb5bd;
}

.messages-list {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    background: #f8f9fa;
}

.message {
    margin-bottom: 1rem;
    display: flex;
}

.message.sent {
    justify-content: flex-end;
}

.message.received {
    justify-content: flex-start;
}

.message-content {
    max-width: 70%;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    position: relative;
}

.message.sent .message-content {
    background: #007bff;
    color: white;
}

.message.received .message-content {
    background: white;
    color: #212529;
    border: 1px solid #e9ecef;
}

.message-content p {
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.7;
}

.message-status {
    margin-left: 0.5rem;
}

.read-receipt {
    color: #4caf50;
}

.no-messages {
    text-align: center;
    color: #6c757d;
    padding: 2rem;
}

.no-messages i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

.message-input-container {
    padding: 1rem;
    border-top: 1px solid #e9ecef;
    background: white;
}

.message-form {
    display: flex;
    flex-direction: column;
}

.message-input-wrapper {
    display: flex;
    align-items: flex-end;
    gap: 0.5rem;
}

.message-input-wrapper textarea {
    flex: 1;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 0.75rem;
    resize: none;
    min-height: 40px;
    max-height: 120px;
    font-family: inherit;
}

.message-input-wrapper textarea:focus {
    outline: none;
    border-color: #007bff;
}

.btn-send {
    padding: 0.75rem 1rem;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-send:hover {
    background: #0056b3;
}

.btn-send:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.message-char-count {
    text-align: right;
    font-size: 0.75rem;
    color: #6c757d;
    margin-top: 0.25rem;
}

.no-conversations {
    text-align: center;
    color: #6c757d;
    padding: 2rem;
}

.no-conversations i {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: #dee2e6;
}

/* New Message Modal */
.new-message-modal {
    max-width: 500px;
}

/* Notification Styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 300px;
    max-width: 400px;
    animation: slideIn 0.3s ease-out;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex: 1;
}

.notification-content i {
    font-size: 1.2rem;
}

.notification-success {
    border-left: 4px solid #28a745;
}

.notification-success .notification-content i {
    color: #28a745;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-error .notification-content i {
    color: #dc3545;
}

.notification-info {
    border-left: 4px solid #17a2b8;
}

.notification-info .notification-content i {
    color: #17a2b8;
}

.notification-close {
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.notification-close:hover {
    background: #f8f9fa;
    color: #495057;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Image Upload Styles */
.image-upload-container {
    margin-top: 0.5rem;
}

.image-upload-area {
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.image-upload-area:hover {
    border-color: #007bff;
    background: #e3f2fd;
}

.image-upload-area.dragover {
    border-color: #007bff;
    background: #e3f2fd;
    transform: scale(1.02);
}

.image-upload-area i {
    font-size: 2rem;
    color: #6c757d;
    margin-bottom: 1rem;
}

.image-upload-area p {
    margin: 0.5rem 0;
    color: #495057;
    font-weight: 500;
}

.image-upload-area small {
    color: #6c757d;
}

.image-preview-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.image-preview {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.image-preview img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.remove-image {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.remove-image:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

.image-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Maintenance Request Image Display */
.maintenance-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}

.maintenance-image {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.maintenance-image:hover {
    transform: scale(1.05);
}

.maintenance-image img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}

/* Image Modal for Viewing */
.image-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10001;
}

.image-modal-content {
    max-width: 90%;
    max-height: 90%;
    position: relative;
}

.image-modal-content img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.image-modal-close {
    position: absolute;
    top: -40px;
    right: 0;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}

.image-modal-close:hover {
    color: #dee2e6;
}

/* Property Management Styles */
.property-edit-form {
    max-width: 100%;
}

.form-section {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 8px;
}

.form-section h3 {
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

.form-row .form-group {
    margin-bottom: 0;
}

.current-images-container {
    margin-top: 1rem;
}

.current-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 1rem;
}

.current-image-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.current-image-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    display: block;
}

.remove-image-btn {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: rgba(220, 53, 69, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: all 0.3s ease;
}

.remove-image-btn:hover {
    background: rgba(220, 53, 69, 1);
    transform: scale(1.1);
}

.upload-progress {
    margin-top: 1rem;
    padding: 1rem;
    background: #e3f2fd;
    border-radius: 8px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: #dee2e6;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: #007bff;
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    margin: 0;
    font-size: 0.875rem;
    color: #495057;
}

/* Property Status Dropdown */
.status-dropdown {
    position: relative;
    display: inline-block;
}

.status-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.status-btn:hover {
    background: #e9ecef;
}

.status-dropdown-menu {
    position: absolute;
    bottom: 100%;
    left: 0;
    z-index: 1000;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    padding: 0.5rem 0;
    margin-bottom: 4px;
}

.status-option {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.75rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.3s ease;
}

.status-option:hover {
    background: #f8f9fa;
}

.status-option.active {
    background: #e3f2fd;
    font-weight: 600;
}

/* Property Stats */
.property-stats {
    display: flex;
    gap: 1rem;
    margin: 0.5rem 0;
    font-size: 0.875rem;
    color: #6c757d;
}

.property-stats span {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Property Actions */
.property-actions {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.property-actions .btn-secondary {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.property-actions .btn-secondary.danger {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.property-actions .btn-secondary.danger:hover {
    background: #c82333;
    border-color: #bd2130;
}

/* Property Status Badge */
.property-status-badge {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Responsive Design for Property Management */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .property-actions {
        flex-direction: column;
    }
    
    .status-dropdown-menu {
        min-width: 150px;
    }
    
    .current-images-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }
}

/* Maintenance Details Styles */
.maintenance-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.maintenance-info-section,
.property-info-section,
.tenant-info-section,
.description-section,
.images-section,
.notes-section,
.actions-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.maintenance-info-section h3,
.property-info-section h3,
.tenant-info-section h3,
.description-section h3,
.images-section h3,
.notes-section h3,
.actions-section h3 {
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.maintenance-info-section h3 i,
.property-info-section h3 i,
.tenant-info-section h3 i,
.description-section h3 i,
.images-section h3 i,
.notes-section h3 i,
.actions-section h3 i {
    color: #007bff;
}

.maintenance-info-section p,
.property-info-section p,
.tenant-info-section p,
.description-section p {
    margin-bottom: 0.5rem;
    line-height: 1.5;
}

.maintenance-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
}

.maintenance-status.open {
    background: #fff3cd;
    color: #856404;
}

.maintenance-status.in-progress {
    background: #cce5ff;
    color: #004085;
}

.maintenance-status.completed {
    background: #d4edda;
    color: #155724;
}

.maintenance-status.closed {
    background: #e2e3e5;
    color: #383d41;
}

.priority-badge {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
}

.priority-badge.low {
    background: #d4edda;
    color: #155724;
}

.priority-badge.medium {
    background: #fff3cd;
    color: #856404;
}

.priority-badge.high {
    background: #f8d7da;
    color: #721c24;
}

.priority-badge.urgent {
    background: #f5c6cb;
    color: #721c24;
}

.action-buttons {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.action-buttons .btn-primary,
.action-buttons .btn-secondary,
.action-buttons .btn-success {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.btn-success {
    background: #28a745;
    color: white;
    border-color: #28a745;
}

.btn-success:hover {
    background: #218838;
    border-color: #1e7e34;
}

.notes-list {
    margin-bottom: 1rem;
}

.note-item {
    background: white;
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    border-left: 4px solid #007bff;
}

.note-item p {
    margin: 0 0 0.5rem 0;
    line-height: 1.5;
}

.note-item small {
    color: #6c757d;
    font-size: 0.875rem;
}

/* Responsive Design for Maintenance Details */
@media (max-width: 768px) {
    .maintenance-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn-primary,
    .action-buttons .btn-secondary,
    .action-buttons .btn-success {
        width: 100%;
    }
}

/* Application System Styles */
.btn-apply {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    width: 100%;
    justify-content: center;
}

.btn-apply:hover {
    background: #218838;
}

.btn-apply:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.application-details-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.application-info-section,
.applicant-info-section,
.employment-info-section,
.housing-info-section,
.additional-info-section,
.documents-section {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid #e9ecef;
}

.application-info-section h3,
.applicant-info-section h3,
.employment-info-section h3,
.housing-info-section h3,
.additional-info-section h3,
.documents-section h3 {
    margin-bottom: 1rem;
    color: #495057;
    font-size: 1.1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.application-info-section h3 i,
.applicant-info-section h3 i,
.employment-info-section h3 i,
.housing-info-section h3 i,
.additional-info-section h3 i,
.documents-section h3 i {
    color: #007bff;
}

.application-status {
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: capitalize;
}

.application-status.pending {
    background: #fff3cd;
    color: #856404;
}

.application-status.approved {
    background: #d4edda;
    color: #155724;
}

.application-status.rejected {
    background: #f8d7da;
    color: #721c24;
}

.application-status.withdrawn {
    background: #e2e3e5;
    color: #383d41;
}

.document-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: white;
    border-radius: 4px;
    border: 1px solid #dee2e6;
}

.document-item i {
    color: #007bff;
}

.document-item span {
    flex: 1;
}

.btn-small {
    padding: 0.25rem 0.5rem;
    font-size: 0.75rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

.btn-danger:hover {
    background: #c82333;
    border-color: #bd2130;
}

.contact-applicant-form {
    padding: 1rem;
}

.quick-message-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 1rem 0;
}

.quick-message-buttons .btn-secondary {
    padding: 0.5rem;
    font-size: 0.875rem;
    text-align: center;
}

.schedule-showing-form {
    padding: 1rem;
}

.document-previews {
    margin-top: 1rem;
}

.document-preview {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 0.5rem;
}

.document-preview i {
    color: #007bff;
}

.document-preview span {
    flex: 1;
}

.document-preview button {
    background: #dc3545;
    color: white;
    border: none;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.75rem;
}

.document-preview button:hover {
    background: #c82333;
}

/* Checkbox Styles */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.checkbox-label input[type="checkbox"] {
    margin: 0;
    margin-top: 0.25rem;
}

.checkbox-label span {
    line-height: 1.4;
}

/* Pending Invitations Styles */
.pending-invitations-section {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
}

.pending-invitations-section h3 {
    color: #856404;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pending-invitations-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.invitation-card {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.invitation-info h4 {
    margin: 0 0 8px 0;
    color: #333;
}

.invitation-info p {
    margin: 5px 0;
    color: #666;
    font-size: 0.9rem;
}

.invitation-info i {
    width: 16px;
    margin-right: 5px;
    color: #856404;
}

.invitation-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.invitation-actions .btn-secondary {
    padding: 6px 12px;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .invitation-card {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .invitation-actions {
        width: 100%;
        justify-content: flex-start;
    }
}

/* Tenant Management Styles */
.assign-user-form,
.remove-tenant-form {
    max-width: 100%;
}

.tenant-info {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
}

.tenant-info p {
    margin: 8px 0;
    color: #333;
}

.tenant-info strong {
    color: #495057;
}

.warning-message {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
    padding: 15px;
    margin: 20px 0;
}

.warning-message i {
    color: #856404;
    margin-right: 8px;
}

.warning-message p {
    margin: 10px 0;
    color: #856404;
    font-weight: 600;
}

.warning-message ul {
    margin: 10px 0;
    padding-left: 20px;
    color: #856404;
}

.warning-message li {
    margin: 5px 0;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
}

.btn-danger:hover {
    background: #c82333;
}

.tenants-header-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tenants-header-actions button {
    flex: 1;
    min-width: 200px;
}

@media (max-width: 768px) {
    .tenants-header-actions {
        flex-direction: column;
    }
    
    .tenants-header-actions button {
        min-width: auto;
    }
    
    .tenant-actions {
        flex-direction: column;
        gap: 8px;
    }
    
    .tenant-actions button {
        width: 100%;
        justify-content: center;
    }
}

/* Application Filters Styles */
.applications-filters {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.filter-controls {
    display: flex;
    gap: 20px;
    align-items: end;
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 200px;
}

.filter-group label {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.filter-stats {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e9ecef;
    color: #666;
    font-size: 0.9rem;
}

/* Archived Application Styles */
.application-card.archived {
    opacity: 0.7;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.application-card.archived .application-header {
    background: #6c757d;
}

.application-card.archived .application-status {
    background: #6c757d;
}

/* Showing Booking Form Styles */
.showing-booking-form {
    max-width: 100%;
}

.showing-booking-form h3 {
    margin-bottom: 20px;
    color: #333;
}

.showing-booking-form p {
    margin: 8px 0;
    color: #666;
}

.showing-booking-form p strong {
    color: #333;
}

.showing-booking-form .form-group {
    margin-bottom: 20px;
}

.showing-booking-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #495057;
}

.showing-booking-form input,
.showing-booking-form select,
.showing-booking-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.showing-booking-form input:focus,
.showing-booking-form select:focus,
.showing-booking-form textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.showing-booking-form textarea {
    resize: vertical;
    min-height: 80px;
}

.showing-booking-form .form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

@media (max-width: 768px) {
    .filter-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .filter-group {
        min-width: auto;
    }
    
    .showing-booking-form .form-actions {
        flex-direction: column;
    }
    
    .showing-booking-form .form-actions button {
        width: 100%;
    }
}

/* Professional Fields Styles */
.form-group small {
    display: block;
    margin-top: 4px;
    font-size: 0.8rem;
    color: #666;
    font-style: italic;
}

.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 1rem;
    background-color: white;
    transition: border-color 0.3s;
}

.form-group select:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.2);
}

.form-group select option {
    padding: 8px;
}

/* Professional fields animation */
.form-group[style*="display: block"] {
    animation: slideDown 0.3s ease-out;
}

.form-group[style*="display: none"] {
    animation: slideUp 0.3s ease-in;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}

/* Scrollable Modal Styles */
.modal-content.scrollable {
    max-height: 90vh;
    overflow-y: auto;
    overflow-x: hidden;
}

.modal-content.scrollable::-webkit-scrollbar {
    width: 8px;
}

.modal-content.scrollable::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.modal-content.scrollable::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.modal-content.scrollable::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Ensure form elements don't get cut off */
.modal-content.scrollable form {
    padding-bottom: 20px;
}

.modal-content.scrollable .form-actions {
    position: sticky;
    bottom: 0;
    background: white;
    padding: 15px 0;
    border-top: 1px solid #e9ecef;
    margin-top: 20px;
}

/* Responsive Design for Application System */
@media (max-width: 768px) {
    .application-details-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .quick-message-buttons {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .action-buttons .btn-primary,
    .action-buttons .btn-secondary,
    .action-buttons .btn-danger {
        width: 100%;
    }
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .actions-grid {
        grid-template-columns: 1fr;
    }
    
    .promotion-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .payment-details,
    .application-details,
    .property-details {
        grid-template-columns: 1fr;
    }
    
    .modal-content.extra-large {
        max-width: 95vw;
        width: 95vw;
    }
    
    .header-actions {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .header-actions button {
        width: 100%;
    }

    .messages-container {
        flex-direction: column;
        height: auto;
    }

    .messages-sidebar {
        width: 100%;
        height: 300px;
        border-right: none;
        border-bottom: 1px solid #e9ecef;
    }

    .messages-main {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .promotion-stats {
        grid-template-columns: 1fr;
    }
    
    .bulk-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tenant-header,

/* Enhanced Contact Modal Styles */
.landlord-info {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.landlord-info p {
    margin: 8px 0;
    font-size: 14px;
}

.contact-options {
    display: grid;
    gap: 20px;
    margin-top: 20px;
}

.contact-option {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.contact-option:hover {
    border-color: #1a73e8;
    box-shadow: 0 4px 12px rgba(26, 115, 232, 0.1);
}

.contact-option h3 {
    color: #1a73e8;
    margin-bottom: 10px;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.contact-option p {
    color: #6c757d;
    margin-bottom: 15px;
    font-size: 14px;
    line-height: 1.4;
}

.contact-option button {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
}

.contact-option .btn-primary {
    background: #1a73e8;
    color: white;
    border: none;
}

.contact-option .btn-primary:hover {
    background: #1557b0;
}

.contact-option .btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
}

.contact-option .btn-secondary:hover {
    background: #545b62;
}

/* Message Form Styles */
#messageForm {
    margin-top: 20px;
}

#messageForm .form-group {
    margin-bottom: 20px;
}

#messageForm label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

#messageForm input,
#messageForm textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s;
}

#messageForm input:focus,
#messageForm textarea:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

#messageForm textarea {
    resize: vertical;
    min-height: 120px;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 20px;
}

.form-actions button {
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.form-actions .btn-secondary {
    background: #6c757d;
    color: white;
    border: none;
}

.form-actions .btn-secondary:hover {
    background: #545b62;
}

.form-actions .btn-primary {
    background: #1a73e8;
    color: white;
    border: none;
}

.form-actions .btn-primary:hover {
    background: #1557b0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-options {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .contact-option {
        padding: 15px;
    }
    
    .contact-option h3 {
        font-size: 14px;
    }
    
    .contact-option p {
        font-size: 13px;
    }
    
    .form-actions {
        flex-direction: column;
    }
    
    .form-actions button {
        width: 100%;
    }
}

/* Tutorial System Styles */
@keyframes tutorialFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Account Deletion Styles */
.danger-zone {
    margin-top: 40px;
    padding: 20px;
    border: 1px solid #dc3545;
    border-radius: 8px;
    background: #fff5f5;
}

.danger-zone h3 {
    color: #dc3545;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.danger-zone p {
    color: #666;
    margin-bottom: 20px;
}

.btn-danger {
    background: #dc3545;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 6px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.3s;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-danger:disabled {
    background: #6c757d;
    cursor: not-allowed;
}

.delete-confirmation-modal .modal-content {
    max-width: 600px;
}

.delete-confirmation-modal ul {
    margin: 10px 0;
    padding-left: 20px;
}

.delete-confirmation-modal li {
    margin-bottom: 5px;
    color: #333;
}

.form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

/* Authentication Styles */
.social-auth-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.social-auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e0e0e0;
}

.social-auth-divider span {
    background: white;
    padding: 0 15px;
    color: #666;
    font-size: 14px;
}

.btn-google {
    width: 100%;
    background: #4285f4;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: background-color 0.3s;
}

.btn-google:hover {
    background: #3367d6;
}

.auth-links {
    margin-top: 20px;
    text-align: center;
}

.auth-links p {
    margin: 10px 0;
}

.auth-links a {
    color: #3498db;
    text-decoration: none;
}

.auth-links a:hover {
    text-decoration: underline;
}

/* Password Reset Modal */
.password-reset-modal .modal-content {
    max-width: 400px;
}

.password-reset-modal .form-group {
    margin-bottom: 20px;
}

.password-reset-modal .form-actions {
    justify-content: space-between;
}

/* Google Profile Completion */
.google-profile-modal .modal-content {
    max-width: 500px;
}

.google-profile-modal .form-group {
    margin-bottom: 20px;
}

.google-profile-modal textarea {
    resize: vertical;
    min-height: 80px;
}

/* Modern Properties Layout - High Specificity */
.portal-main .properties-header {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.portal-main .properties-summary {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.portal-main .summary-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #f8f9fa;
    border-radius: 8px;
    min-width: 140px;
}

.portal-main .summary-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
}

.portal-main .summary-icon.total {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.portal-main .summary-icon.available {
    background: linear-gradient(135deg, #27ae60 0%, #2ecc71 100%);
}

.portal-main .summary-icon.rented {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
}

.portal-main .summary-icon.maintenance {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

.portal-main .summary-content h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #2c3e50;
}

.portal-main .summary-content p {
    margin: 0;
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

.portal-main .properties-actions {
    display: flex;
    gap: 12px;
}

.portal-main .properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
    gap: 24px;
    margin-top: 24px;
}

.portal-main .property-card-modern {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.portal-main .property-card-modern:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.portal-main .property-image-container {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.portal-main .property-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.portal-main .property-card-modern:hover .property-image-container img {
    transform: scale(1.05);
}

.portal-main .property-status-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    color: white;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(10px);
    background: rgba(0, 0, 0, 0.7) !important;
}

.portal-main .property-type-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #2c3e50;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    backdrop-filter: blur(10px);
}

.portal-main .property-content {
    padding: 20px;
}

.portal-main .property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.portal-main .property-title {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #2c3e50;
    line-height: 1.3;
    flex: 1;
    margin-right: 12px;
}

.portal-main .property-price {
    text-align: right;
    flex-shrink: 0;
}

.portal-main .price-amount {
    font-size: 20px;
    font-weight: 700;
    color: #27ae60;
}

.portal-main .price-period {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

.portal-main .property-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.portal-main .feature-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #5a6c7d;
}

.portal-main .feature-item i {
    color: #3498db;
    width: 16px;
    text-align: center;
}

.portal-main .property-stats {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 8px;
}

.portal-main .stat-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #7f8c8d;
}

.portal-main .stat-item i {
    color: #95a5a6;
    width: 14px;
    text-align: center;
}

.portal-main .property-actions-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.portal-main .action-group {
    display: flex;
    gap: 8px;
}

.portal-main .btn-action {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.portal-main .btn-action.primary {
    background: #3498db;
    color: white;
}

.portal-main .btn-action.primary:hover {
    background: #2980b9;
    transform: scale(1.05);
}

.portal-main .btn-action.secondary {
    background: #ecf0f1;
    color: #2c3e50;
}

.portal-main .btn-action.secondary:hover {
    background: #bdc3c7;
    transform: scale(1.05);
}

.portal-main .btn-action.danger {
    background: #e74c3c;
    color: white;
}

.portal-main .btn-action.danger:hover {
    background: #c0392b;
    transform: scale(1.05);
}

.portal-main .status-dropdown-modern {
    position: relative;
}

.portal-main .btn-status {
    padding: 8px 16px;
    border: 2px solid;
    border-radius: 20px;
    background: white;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.portal-main .btn-status:hover {
    transform: scale(1.02);
}

.portal-main .status-dropdown-menu-modern {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-bottom: 4px;
    overflow: hidden;
}

.portal-main .status-option-modern {
    width: 100%;
    padding: 10px 16px;
    border: none;
    background: white;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
}

.portal-main .status-option-modern:hover {
    background: #f8f9fa;
}

.portal-main .status-option-modern.active {
    background: #e8f5e8;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 768px) {
    .portal-main .properties-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .portal-main .properties-summary {
        justify-content: center;
    }
    
    .portal-main .summary-card {
        min-width: 120px;
        flex: 1;
    }
    
    .portal-main .properties-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .portal-main .property-features-grid {
        grid-template-columns: 1fr;
    }
    
    .portal-main .property-stats {
        flex-direction: column;
        gap: 8px;
    }
    
    .portal-main .property-actions-modern {
        flex-direction: column;
        gap: 12px;
    }
    
    .portal-main .action-group {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .portal-main .properties-summary {
        flex-direction: column;
    }
    
    .portal-main .summary-card {
        width: 100%;
    }
    
    .portal-main .property-header {
        flex-direction: column;
        gap: 8px;
    }
    
    .portal-main .property-price {
        text-align: left;
    }
}

.tutorial-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 9998;
    pointer-events: none;
}

.tutorial-tooltip {
    position: fixed;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 350px;
    min-width: 300px;
    z-index: 9999;
    pointer-events: auto;
    animation: tutorialFadeIn 0.3s ease-out;
}

@keyframes tutorialFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 20px 0 20px;
    border-bottom: 1px solid #e9ecef;
}

.tutorial-header h3 {
    margin: 0;
    color: #1a73e8;
    font-size: 18px;
    font-weight: 600;
}

.tutorial-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
}

.tutorial-close:hover {
    background: #f8f9fa;
    color: #333;
}

.tutorial-content {
    padding: 20px;
}

.tutorial-content p {
    margin: 0;
    color: #333;
    line-height: 1.6;
    font-size: 14px;
}

.tutorial-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px 20px 20px;
    border-top: 1px solid #e9ecef;
}

.tutorial-progress {
    color: #6c757d;
    font-size: 12px;
    font-weight: 500;
}

.tutorial-actions {
    display: flex;
    gap: 10px;
}

.tutorial-actions button {
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
}

.tutorial-actions .btn-secondary {
    background: #6c757d;
    color: white;
}

.tutorial-actions .btn-secondary:hover {
    background: #545b62;
}

.tutorial-actions .btn-primary {
    background: #1a73e8;
    color: white;
}

.tutorial-actions .btn-primary:hover {
    background: #1557b0;
}

.tutorial-highlight {
    position: relative;
    z-index: 10000 !important;
    box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.3) !important;
    border-radius: 8px;
    animation: tutorialPulse 2s infinite;
}

@keyframes tutorialPulse {
    0% {
        box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.3);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(26, 115, 232, 0.2);
    }
    100% {
        box-shadow: 0 0 0 4px rgba(26, 115, 232, 0.3);
    }
}

.tutorial-button {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 10px;
}

.tutorial-button:hover {
    background: #1557b0;
    transform: translateY(-1px);
}

.tutorial-button i {
    font-size: 14px;
}

/* Tutorial welcome modal */
.tutorial-welcome-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tutorial-welcome-content {
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: tutorialModalFadeIn 0.4s ease-out;
}

@keyframes tutorialModalFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.tutorial-welcome-icon {
    font-size: 48px;
    color: #1a73e8;
    margin-bottom: 20px;
}

.tutorial-welcome-content h2 {
    color: #333;
    margin-bottom: 15px;
    font-size: 24px;
    font-weight: 600;
}

.tutorial-welcome-content p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 30px;
    font-size: 16px;
}

.tutorial-welcome-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.tutorial-welcome-actions button {
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    min-width: 120px;
}

.tutorial-welcome-actions .btn-secondary {
    background: #6c757d;
    color: white;
}

.tutorial-welcome-actions .btn-secondary:hover {
    background: #545b62;
}

.tutorial-welcome-actions .btn-primary {
    background: #1a73e8;
    color: white;
}

.tutorial-welcome-actions .btn-primary:hover {
    background: #1557b0;
}

/* Responsive design for tutorials */
@media (max-width: 768px) {
    .tutorial-tooltip {
        max-width: 280px;
        min-width: 250px;
        margin: 10px;
    }
    
    .tutorial-header {
        padding: 15px 15px 0 15px;
    }
    
    .tutorial-content {
        padding: 15px;
    }
    
    .tutorial-footer {
        padding: 10px 15px 15px 15px;
        flex-direction: column;
        gap: 10px;
    }
    
    .tutorial-actions {
        width: 100%;
        justify-content: center;
    }
    
    .tutorial-welcome-content {
        margin: 20px;
        padding: 30px 20px;
    }
    
    .tutorial-welcome-actions {
        flex-direction: column;
    }
    
    .tutorial-welcome-actions button {
        width: 100%;
    }
}
    .maintenance-header,
    .payment-header,
    .application-header,
    .property-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
}

/* Enhanced Landlord Portal Properties Styles */
.portal-main .properties-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    padding: 24px;
}

.portal-main .properties-header {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.portal-main .properties-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.portal-main .summary-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.portal-main .summary-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
}

.portal-main .summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.portal-main .summary-card.available::before {
    background: linear-gradient(90deg, #27ae60 0%, #2ecc71 100%);
}

.portal-main .summary-card.rented::before {
    background: linear-gradient(90deg, #f39c12 0%, #e67e22 100%);
}

.portal-main .summary-card.maintenance::before {
    background: linear-gradient(90deg, #e74c3c 0%, #c0392b 100%);
}

.portal-main .summary-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 20px;
    margin-bottom: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.portal-main .summary-content h3 {
    margin: 0 0 8px 0;
    font-size: 32px;
    font-weight: 800;
    color: #2c3e50;
    line-height: 1;
}

.portal-main .summary-content p {
    margin: 0;
    font-size: 16px;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portal-main .properties-actions {
    display: flex;
    gap: 16px;
    align-items: center;
}

.portal-main .properties-actions .btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
}

.portal-main .properties-actions .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.4);
}

.portal-main .properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 32px;
    margin-top: 32px;
}

.portal-main .property-card-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
}

.portal-main .property-card-modern:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
}

.portal-main .property-image-container {
    position: relative;
    height: 240px;
    overflow: hidden;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
}

.portal-main .property-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.portal-main .property-card-modern:hover .property-image-container img {
    transform: scale(1.1);
}

.portal-main .property-status-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    padding: 8px 16px;
    border-radius: 24px;
    color: white;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(20px);
    background: rgba(0, 0, 0, 0.8) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portal-main .property-type-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 8px 16px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.95);
    color: #2c3e50;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 6px;
    backdrop-filter: blur(20px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portal-main .property-content {
    padding: 28px;
}

.portal-main .property-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.portal-main .property-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #2c3e50;
    line-height: 1.3;
    flex: 1;
    margin-right: 16px;
}

.portal-main .property-price {
    text-align: right;
    flex-shrink: 0;
}

.portal-main .price-amount {
    font-size: 24px;
    font-weight: 800;
    color: #27ae60;
    line-height: 1;
}

.portal-main .price-period {
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portal-main .property-features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.portal-main .feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #5a6c7d;
    font-weight: 500;
}

.portal-main .feature-item i {
    color: #3498db;
    width: 18px;
    text-align: center;
    font-size: 16px;
}

.portal-main .property-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 24px;
    padding: 16px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.8);
}

.portal-main .stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #7f8c8d;
    font-weight: 500;
}

.portal-main .stat-item i {
    color: #95a5a6;
    width: 16px;
    text-align: center;
    font-size: 16px;
}

.portal-main .property-actions-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.portal-main .action-group {
    display: flex;
    gap: 12px;
}

.portal-main .btn-action {
    width: 44px;
    height: 44px;
    border: none;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.portal-main .btn-action.primary {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
}

.portal-main .btn-action.primary:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f8b 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(52, 152, 219, 0.3);
}

.portal-main .btn-action.secondary {
    background: linear-gradient(135deg, #ecf0f1 0%, #bdc3c7 100%);
    color: #2c3e50;
}

.portal-main .btn-action.secondary:hover {
    background: linear-gradient(135deg, #bdc3c7 0%, #95a5a6 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(189, 195, 199, 0.3);
}

.portal-main .btn-action.danger {
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
}

.portal-main .btn-action.danger:hover {
    background: linear-gradient(135deg, #c0392b 0%, #a93226 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 20px rgba(231, 76, 60, 0.3);
}

.portal-main .status-dropdown-modern {
    position: relative;
}

.portal-main .btn-status {
    padding: 12px 20px;
    border: 2px solid;
    border-radius: 24px;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portal-main .btn-status:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.portal-main .status-dropdown-menu-modern {
    position: absolute;
    bottom: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    margin-bottom: 8px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.portal-main .status-option-modern {
    width: 100%;
    padding: 14px 20px;
    border: none;
    background: white;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.portal-main .status-option-modern:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    transform: translateX(4px);
}

.portal-main .status-option-modern.active {
    background: linear-gradient(135deg, #e8f5e8 0%, #d4edda 100%);
    font-weight: 700;
    color: #27ae60;
}

/* Enhanced Responsive Design */
@media (max-width: 768px) {
    .portal-main .properties-section {
        padding: 16px;
    }
    
    .portal-main .properties-header {
        padding: 24px;
        margin-bottom: 24px;
    }
    
    .portal-main .properties-summary {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 16px;
    }
    
    .portal-main .summary-card {
        padding: 20px;
    }
    
    .portal-main .summary-content h3 {
        font-size: 28px;
    }
    
    .portal-main .properties-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .portal-main .property-features-grid {
        grid-template-columns: 1fr;
    }
    
    .portal-main .property-stats {
        flex-direction: column;
        gap: 12px;
    }
    
    .portal-main .property-actions-modern {
        flex-direction: column;
        gap: 16px;
    }
    
    .portal-main .action-group {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .portal-main .properties-summary {
        grid-template-columns: 1fr;
    }
    
    .portal-main .summary-card {
        width: 100%;
    }
    
    .portal-main .property-header {
        flex-direction: column;
        gap: 12px;
    }
    
    .portal-main .property-price {
        text-align: left;
    }
    
    .portal-main .property-content {
        padding: 20px;
    }
}

/* Amenities Styling */
.amenities-container {
    margin-top: 20px;
}

.amenity-category {
    margin-bottom: 30px;
}

.amenity-category h4 {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e9ecef;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
}

.checkbox-label:hover {
    background: #e9ecef;
    border-color: #dee2e6;
}

.checkbox-label input[type="checkbox"] {
    margin-right: 8px;
    width: 16px;
    height: 16px;
}

.checkbox-label span {
    flex: 1;
    color: #495057;
}

.checkbox-label input[type="checkbox"]:checked + span {
    color: #007bff;
    font-weight: 500;
}

@media (max-width: 768px) {
    .amenities-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 8px;
    }
    
    .checkbox-label {
        padding: 6px 10px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .amenity-category h4 {
        font-size: 15px;
    }
}

/* Modern Zillow-style Search Results */
.search-header-modern {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-bottom: 1px solid #e9ecef;
    padding: 24px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-top: 70px;
}

.search-summary-modern {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}

.search-info-modern h1 {
    margin: 0 0 8px 0;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.search-info-modern p {
    margin: 0 0 12px 0;
    color: #666;
    font-size: 1rem;
}

.search-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}

.search-stats span {
    font-weight: 500;
}

.separator {
    color: #ccc;
}

.search-actions-modern {
    display: flex;
    gap: 8px;
}

.btn-action-modern {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
}

.btn-action-modern:hover {
    background: #f8f9fa;
    border-color: #d0d0d0;
    color: #333;
}

.btn-action-modern.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.btn-action-modern i {
    font-size: 0.9rem;
}

.search-bar-modern {
    margin-bottom: 20px;
}

.search-input-modern {
    display: flex;
    align-items: center;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 0;
    max-width: 600px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.search-input-modern:focus-within {
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.15);
}

.search-input-modern i {
    color: #666;
    margin: 0 16px;
    font-size: 1.1rem;
}

.search-input-modern input {
    border: none;
    background: transparent;
    flex: 1;
    padding: 16px 0;
    font-size: 1rem;
    outline: none;
    color: #333;
}

.search-input-modern input::placeholder {
    color: #999;
}

.search-btn-modern {
    background: #007bff;
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 0 10px 10px 0;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 1rem;
}

.search-btn-modern:hover {
    background: #0056b3;
}

.filters-panel-modern {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    padding: 24px;
    margin-top: 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.filters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.filter-group-modern {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.filter-group-modern label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-group-modern select,
.filter-group-modern input {
    padding: 12px 16px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    background: white;
    transition: all 0.2s ease;
}

.filter-group-modern select:focus,
.filter-group-modern input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.price-range {
    grid-column: span 2;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 12px;
}

.price-inputs input {
    flex: 1;
}

.price-separator {
    color: #666;
    font-weight: 500;
}

.radius-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e0e0e0;
    outline: none;
    -webkit-appearance: none;
}

.radius-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.radius-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #007bff;
    cursor: none;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.filter-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

.btn-secondary-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    color: #666;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary-modern:hover {
    background: #f8f9fa;
    border-color: #d0d0d0;
    color: #333;
}

.btn-primary-modern {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #007bff;
    border: 1px solid #007bff;
    border-radius: 8px;
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary-modern:hover {
    background: #0056b3;
    border-color: #0056b3;
}

/* Map and Results Section */
.map-results-section {
    height: calc(100vh - 250px);
    min-height: 600px;
    position: relative;
}

.map-container-modern {
    display: flex;
    height: 100%;
    position: relative;
}

.main-map-modern {
    flex: 1;
    height: 100%;
    background: #f5f5f5;
    position: relative;
}

.map-controls-modern {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
}

.map-control-btn-modern {
    width: 44px;
    height: 44px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    color: #666;
}

.map-control-btn-modern:hover {
    background: #f8f9fa;
    border-color: #d0d0d0;
    color: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.property-sidebar-modern {
    width: 400px;
    background: white;
    border-left: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.sidebar-header-modern {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    background: #f8f9fa;
}

.sidebar-title-modern h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
}

.sidebar-title-modern span {
    background: #007bff;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-left: 8px;
}

.view-controls-modern {
    display: flex;
    gap: 4px;
}

.view-btn-modern {
    width: 36px;
    height: 36px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    color: #666;
}

.view-btn-modern:hover {
    background: #f8f9fa;
    border-color: #d0d0d0;
    color: #333;
}

.view-btn-modern.active {
    background: #007bff;
    border-color: #007bff;
    color: white;
}

.properties-container-modern {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.properties-list-modern {
    padding: 0;
}

.loading-message-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: #666;
}

.loading-message-modern i {
    font-size: 2rem;
    margin-bottom: 16px;
    color: #007bff;
}

.loading-message-modern p {
    margin: 0;
    font-size: 1rem;
}

.no-results-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #666;
}

.no-results-modern i {
    font-size: 3rem;
    margin-bottom: 16px;
    color: #ccc;
}

.no-results-modern h3 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    color: #333;
}

.no-results-modern p {
    margin: 0 0 24px 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .property-sidebar-modern {
        width: 350px;
    }
    
    .filters-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 16px;
    }
}

@media (max-width: 768px) {
    .search-header-modern {
        padding: 16px 0;
    }
    
    .search-summary-modern {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
    }
    
    .search-actions-modern {
        justify-content: center;
    }
    
    .search-info-modern h1 {
        font-size: 1.5rem;
    }
    
    .filters-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .price-range {
        grid-column: span 1;
    }
    
    .filter-actions {
        flex-direction: column;
    }
    
    .map-container-modern {
        flex-direction: column;
    }
    
    .property-sidebar-modern {
        width: 100%;
        height: 50%;
        border-left: none;
        border-top: 1px solid #e9ecef;
    }
    
    .map-controls-modern {
        top: 10px;
        right: 10px;
    }
    
    .map-control-btn-modern {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .search-info-modern h1 {
        font-size: 1.3rem;
    }
    
    .search-input-modern {
        max-width: 100%;
    }
    
    .search-input-modern input {
        padding: 14px 0;
        font-size: 0.95rem;
    }
    
    .search-btn-modern {
        padding: 14px 20px;
    }
    
    .filters-panel-modern {
        padding: 16px;
    }
    
    .sidebar-header-modern {
        padding: 16px 20px;
    }
    
    .sidebar-title-modern h3 {
        font-size: 1.1rem;
    }
}

/* Modern Property Cards */
.property-card-modern {
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 16px;
    background: white;
    transition: all 0.3s ease;
    overflow: hidden;
}

.property-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.property-card-modern.selected {
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0,123,255,0.1);
}

.property-image-modern {
    position: relative;
    height: 200px;
    overflow: hidden;
}

.property-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.property-card-modern:hover .property-image-modern img {
    transform: scale(1.05);
}

.property-price-modern {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
}

.property-content-modern {
    padding: 16px;
}

.property-title-modern {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.property-address-modern {
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 12px;
}

.property-features-modern {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-size: 0.85rem;
    color: #666;
}

.property-feature-modern {
    display: flex;
    align-items: center;
    gap: 4px;
}

.property-feature-modern i {
    color: #007bff;
    font-size: 0.8rem;
}

.property-actions-modern {
    display: flex;
    gap: 8px;
}

.btn-view-modern {
    flex: 1;
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    text-align: center;
}

.btn-view-modern:hover {
    background: #0056b3;
}

.btn-favorite-modern {
    padding: 8px 12px;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-favorite-modern:hover {
    background: #f8f9fa;
    border-color: #d0d0d0;
    color: #333;
}

.btn-favorite-modern.favorited {
    background: #dc3545;
    border-color: #dc3545;
    color: white;
}

/* Modern Notifications */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 300px;
    max-width: 400px;
    animation: slideInRight 0.3s ease;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    color: #000;
}

.notification-content i {
    font-size: 1.1rem;
}

.notification-success {
    border-left: 4px solid #28a745;
}

.notification-success .notification-content i {
    color: #28a745;
}

.notification-error {
    border-left: 4px solid #dc3545;
}

.notification-error .notification-content i {
    color: #dc3545;
}

.notification-info {
    border-left: 4px solid #007bff;
}

.notification-info .notification-content i {
    color: #007bff;
}

.notification-close {
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: all 0.2s ease;
}

.notification-close:hover {
    background: #f8f9fa;
    color: #333;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Modern Loading States */
.loading-overlay-modern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255,255,255,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-spinner-modern {
    width: 40px;
    height: 40px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Modern Empty States */
.empty-state-modern {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    color: #666;
}

.empty-state-modern i {
    font-size: 4rem;
    margin-bottom: 16px;
    color: #ccc;
}

.empty-state-modern h3 {
    margin: 0 0 8px 0;
    font-size: 1.3rem;
    color: #333;
}

.empty-state-modern p {
    margin: 0 0 24px 0;
    font-size: 1rem;
    line-height: 1.5;
}

/* Modern Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #e9ecef;
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
}

.suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: background 0.2s ease;
}

.suggestion-item:hover {
    background: #f8f9fa;
}

.suggestion-item:last-child {
    border-bottom: none;
}

.suggestion-item i {
    color: #666;
    margin-right: 8px;
    font-size: 0.9rem;
}

/* Modern Filter Tags */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.filter-tag {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 8px;
    background: #e3f2fd;
    color: #1976d2;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
}

.filter-tag i {
    font-size: 0.7rem;
    cursor: pointer;
}

.filter-tag i:hover {
    color: #d32f2f;
}

/* Property Detail Map */
.property-location-map {
    margin-top: 24px;
    padding: 20px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.property-location-map h3 {
    margin: 0 0 16px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.property-map-container {
    height: 450px;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #e9ecef;
}

.map-fallback {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    color: #666;
    text-align: center;
}

.map-fallback i {
    font-size: 48px;
    margin-bottom: 12px;
    color: #ccc;
}

.map-fallback p {
    margin: 4px 0;
    font-size: 14px;
}

.map-fallback .address {
    font-weight: 500;
    color: #333;
}

.map-popup {
    text-align: center;
    min-width: 200px;
}

.map-popup h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.map-popup p {
    margin: 4px 0;
    font-size: 14px;
    color: #666;
}

/* Enhanced Location Suggestions */
.location-suggestions {
    position: absolute;
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 320px;
    overflow-y: auto;
    display: none;
    width: 100%;
    margin-top: 4px;
}

.location-suggestions .suggestion-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f8f9fa;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
}

.location-suggestions .suggestion-item:hover,
.location-suggestions .suggestion-item.selected {
    background: #f8f9fa;
}

.location-suggestions .suggestion-item:last-child {
    border-bottom: none;
}

.location-suggestions .suggestion-item.no-results {
    color: #666;
    font-style: italic;
    cursor: default;
}

.location-suggestions .suggestion-item.no-results:hover {
    background: transparent;
}

.suggestion-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 0.9rem;
}

.suggestion-content {
    flex: 1;
    min-width: 0;
}

.suggestion-main {
    font-weight: 500;
    color: #333;
    font-size: 0.95rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-details {
    font-size: 0.8rem;
    color: #666;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Scrollbar styling for suggestions */
.location-suggestions::-webkit-scrollbar {
    width: 6px;
}

.location-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.location-suggestions::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.location-suggestions::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* Position the suggestions relative to the location input */
.location-group {
    position: relative;
}

/* Zillow-style Search Page */
.navbar-zillow {
    background: white;
    border-bottom: 1px solid #e9ecef;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.nav-container-zillow {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav-logo-zillow h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #1a73e8;
}

.nav-menu-zillow {
    display: flex;
    gap: 32px;
}

.nav-link-zillow {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
    padding: 8px 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
}

.nav-link-zillow:hover {
    color: #1a73e8;
    border-bottom-color: #1a73e8;
}

.nav-auth-zillow {
    display: flex;
    gap: 12px;
}

.btn-secondary-zillow {
    background: transparent;
    color: #333;
    border: 1px solid #e9ecef;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary-zillow:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.btn-primary-zillow {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-primary-zillow:hover {
    background: #1557b0;
}

.container-zillow {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Search Header */
.search-header-zillow {
    background: white;
    border-bottom: 1px solid #e9ecef;
    padding: 24px 0;
}

.search-bar-zillow {
    margin-bottom: 24px;
}

.search-input-zillow {
    position: relative;
    max-width: 600px;
    margin: 0 auto;
}

.search-input-zillow i {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    font-size: 18px;
}

.search-input-zillow input {
    width: 100%;
    padding: 16px 56px 16px 48px;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.search-input-zillow input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 3px rgba(26, 115, 232, 0.1);
}

.search-btn-zillow {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: #1a73e8;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.search-btn-zillow:hover {
    background: #1557b0;
}

/* Search Summary */
.search-summary-zillow {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
}

.search-info-zillow h1 {
    margin: 0 0 8px 0;
    font-size: 28px;
    font-weight: 700;
    color: #333;
}

.search-info-zillow p {
    margin: 0 0 12px 0;
    font-size: 16px;
    color: #666;
}

.search-stats-zillow {
    font-size: 14px;
    color: #666;
}

.separator-zillow {
    margin: 0 8px;
    color: #ccc;
}

.search-actions-zillow {
    display: flex;
    gap: 8px;
}

.btn-action-zillow {
    background: transparent;
    color: #666;
    border: 1px solid #e9ecef;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.btn-action-zillow:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.btn-action-zillow.active {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

/* Filters Panel */
.filters-panel-zillow {
    background: white;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    padding: 24px;
    margin-top: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.filters-grid-zillow {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.filter-group-zillow label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

.filter-group-zillow select,
.filter-group-zillow input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.filter-group-zillow select:focus,
.filter-group-zillow input:focus {
    outline: none;
    border-color: #1a73e8;
    box-shadow: 0 0 0 2px rgba(26, 115, 232, 0.1);
}

.price-range-zillow {
    grid-column: span 2;
}

.price-inputs-zillow {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-inputs-zillow input {
    flex: 1;
}

.price-separator-zillow {
    color: #666;
    font-size: 14px;
}

.radius-slider-zillow {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: #e9ecef;
    outline: none;
    -webkit-appearance: none;
}

.radius-slider-zillow::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1a73e8;
    cursor: pointer;
}

.radius-slider-zillow::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1a73e8;
    cursor: pointer;
    border: none;
}

.filter-actions-zillow {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding-top: 20px;
    border-top: 1px solid #e9ecef;
}

/* Map and Results Section */
.map-results-section-zillow {
    height: calc(100vh - 200px);
    position: relative;
}

.map-container-zillow {
    display: flex;
    height: 100%;
}

.main-map-zillow {
    flex: 1;
    height: 100%;
    background: #f8f9fa;
}

.map-controls-zillow {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 1000;
}

.map-control-btn-zillow {
    background: white;
    color: #333;
    border: 1px solid #e9ecef;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.map-control-btn-zillow:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

/* Property Sidebar */
.property-sidebar-zillow {
    width: 400px;
    background: white;
    border-left: 1px solid #e9ecef;
    display: flex;
    flex-direction: column;
}

.sidebar-header-zillow {
    padding: 20px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-title-zillow h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.sidebar-title-zillow span {
    background: #1a73e8;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}

.view-controls-zillow {
    display: flex;
    gap: 4px;
}

.view-btn-zillow {
    background: transparent;
    color: #666;
    border: 1px solid #e9ecef;
    padding: 6px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.view-btn-zillow:hover {
    background: #f8f9fa;
}

.view-btn-zillow.active {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.properties-container-zillow {
    flex: 1;
    overflow-y: auto;
}

.properties-list-zillow {
    padding: 0;
}

.loading-message-zillow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    color: #666;
}

.loading-message-zillow i {
    font-size: 24px;
    margin-bottom: 12px;
}

.no-results-zillow {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    text-align: center;
    color: #666;
}

.no-results-zillow i {
    font-size: 48px;
    margin-bottom: 16px;
    color: #ccc;
}

.no-results-zillow h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.no-results-zillow p {
    margin: 0 0 20px 0;
    font-size: 14px;
    line-height: 1.5;
}

/* Property Cards */
.property-card-zillow {
    border-bottom: 1px solid #e9ecef;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.property-card-zillow:hover {
    background: #f8f9fa;
}

.property-card-zillow.selected {
    background: #e3f2fd;
    border-left: 4px solid #1a73e8;
}

.property-image-zillow {
    width: 100%;
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    background: #f8f9fa;
}

.property-image-zillow img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.property-card-zillow:hover .property-image-zillow img {
    transform: scale(1.05);
}

.property-price-zillow {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin-bottom: 8px;
}

.property-title-zillow {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 8px;
    line-height: 1.4;
}

.property-address-zillow {
    font-size: 14px;
    color: #666;
    margin-bottom: 12px;
}

.property-features-zillow {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.property-feature-zillow {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #666;
}

.property-feature-zillow i {
    color: #1a73e8;
}

.property-actions-zillow {
    display: flex;
    gap: 8px;
}

.btn-view-zillow {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-view-zillow:hover {
    background: #1557b0;
}

.btn-favorite-zillow {
    background: transparent;
    color: #666;
    border: 1px solid #e9ecef;
    padding: 8px 12px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-favorite-zillow:hover {
    background: #f8f9fa;
    border-color: #dee2e6;
}

.btn-favorite-zillow.favorited {
    background: #dc3545;
    color: white;
    border-color: #dc3545;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .property-sidebar-zillow {
        width: 350px;
    }
    
    .filters-grid-zillow {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    }
}

@media (max-width: 768px) {
    .nav-container-zillow {
        padding: 0 16px;
    }
    
    .nav-menu-zillow {
        display: none;
    }
    
    .container-zillow {
        padding: 0 16px;
    }
    
    .search-summary-zillow {
        flex-direction: column;
        gap: 16px;
    }
    
    .search-actions-zillow {
        justify-content: center;
    }
    
    .filters-grid-zillow {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .price-range-zillow {
        grid-column: span 1;
    }
    
    .map-container-zillow {
        flex-direction: column;
    }
    
    .property-sidebar-zillow {
        width: 100%;
        height: 50%;
    }
    
    .main-map-zillow {
        height: 50%;
    }
    
    .map-controls-zillow {
        top: 10px;
        right: 10px;
    }
    
    .map-control-btn-zillow {
        width: 36px;
        height: 36px;
    }
}

@media (max-width: 480px) {
    .search-info-zillow h1 {
        font-size: 24px;
    }
    
    .search-actions-zillow {
        flex-wrap: wrap;
    }
    
    .btn-action-zillow {
        flex: 1;
        justify-content: center;
    }
    
    .property-card-zillow {
        padding: 16px;
    }
    
    .property-image-zillow {
        height: 160px;
    }
    
    .property-price-zillow {
        font-size: 20px;
    }
    
    .property-features-zillow {
        flex-wrap: wrap;
        gap: 12px;
    }
}

/* Property Detail Modern Styles */
.property-title-section-modern {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.property-header-modern {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 16px;
}

.property-price-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.price-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.price-period {
    font-size: 1.2rem;
    font-weight: 500;
    color: #666;
}

.price-underline {
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, #4CAF50 0%, #66BB6A 100%);
    border-radius: 2px;
    margin-top: 4px;
}

.property-features-modern {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: 24px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.95rem;
    color: #333;
    font-weight: 500;
}

.feature-item i {
    color: #666;
    font-size: 0.9rem;
}

.property-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: #E8F5E8;
    color: #2E7D32;
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.property-badge i {
    font-size: 0.8rem;
}

.property-separator {
    height: 1px;
    background: #E0E0E0;
    margin: 16px 0;
}

.property-location-modern {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.property-location-modern h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.full-address {
    font-size: 1rem;
    color: #666;
    margin: 0;
    line-height: 1.4;
}

/* Property Detail Responsive Design */
@media (max-width: 768px) {
    .property-header-modern {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .property-features-modern {
        margin-left: 0;
        gap: 16px;
    }
    
    .price-amount {
        font-size: 2rem;
    }
    
    .property-features-modern {
        flex-wrap: wrap;
    }
}

@media (max-width: 480px) {
    .property-title-section-modern {
        padding: 16px;
    }
    
    .price-amount {
        font-size: 1.8rem;
    }
    
    .property-features-modern {
        gap: 12px;
    }
    
    .feature-item {
        font-size: 0.9rem;
    }
}

/* Viewport Indicator for Zillow-style Search */
.viewport-indicator-zillow {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    z-index: 1000;
    backdrop-filter: blur(4px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.viewport-indicator-zillow span {
    font-weight: 600;
}

@media (max-width: 768px) {
    .viewport-indicator-zillow {
        top: 10px;
        left: 10px;
        font-size: 0.8rem;
        padding: 6px 10px;
    }
}

/* Clean Filter Bar Design */
.filter-bar-section {
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 16px 0;
}

.filter-bar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.filter-bar {
    display: flex;
    align-items: center;
    gap: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.filter-item {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.2s ease;
}

.filter-item:hover {
    background-color: #f8f9fa;
}

.filter-label {
    font-size: 0.9rem;
    color: #333;
    font-weight: 400;
    margin-right: 6px;
}

.filter-icon {
    font-size: 0.7rem;
    color: #666;
    margin-left: 4px;
}

.filter-separator {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background-color: #e0e0e0;
}

.more-filters {
    text-decoration: underline;
    color: #006aff;
}

.filter-actions {
    display: flex;
    gap: 12px;
    margin-left: auto;
}

.btn-filter-action {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 0.9rem;
    color: #333;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.btn-filter-action:hover {
    background-color: #f8f9fa;
    border-color: #ccc;
}

/* Property Sidebar */
.property-sidebar-zillow {
    width: 400px;
    background: white;
    border-left: 1px solid #e0e0e0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.sidebar-header-zillow {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-title-zillow h3 {
    font-size: 1.2rem;
    font-weight: 600;
    color: #333;
    margin: 0 0 4px 0;
}

.sidebar-title-zillow span {
    font-size: 0.9rem;
    color: #666;
}

.sort-dropdown-zillow {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 0.85rem;
    color: #333;
    cursor: pointer;
}

/* Property Cards */
.properties-list-zillow {
    flex: 1;
    overflow-y: auto;
}

.property-card-zillow {
    border-bottom: 1px solid #e0e0e0;
    padding: 20px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.property-card-zillow:hover {
    background: #f8f9fa;
}

.property-card-zillow.selected {
    background: #e3f2fd;
    border-left: 3px solid #006aff;
}

.property-image-container-zillow {
    position: relative;
    margin-bottom: 12px;
    border-radius: 8px;
    overflow: hidden;
}

.property-image-container-zillow img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.2s ease;
}

.property-card-zillow:hover .property-image-container-zillow img {
    transform: scale(1.02);
}



/* Favorite Button */
.btn-favorite-zillow {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.btn-favorite-zillow:hover {
    background: white;
    transform: scale(1.1);
}

.btn-favorite-zillow i {
    color: #666;
    font-size: 0.9rem;
}

.btn-favorite-zillow.favorited i {
    color: #e74c3c;
}

/* Carousel Dots */
.carousel-dots-zillow {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 4px;
    z-index: 2;
}

.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.7);
}

.carousel-dot:first-child {
    background: white;
}

/* Property Content */
.property-content-zillow {
    padding: 0 4px;
}

.property-price-zillow {
    font-size: 1.4rem;
    font-weight: 700;
    color: white;
    margin-bottom: 4px;
}

.property-details-zillow {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 4px;
}

.property-type-zillow {
    font-size: 0.9rem;
    color: #333;
    margin-bottom: 4px;
}

.property-address-zillow {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 4px;
}

.property-broker-zillow {
    font-size: 0.8rem;
    color: #999;
}

/* Map Markers */
.property-marker {
    background: #e74c3c;
    border: 2px solid white;
    border-radius: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.marker-content {
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-align: center;
    padding: 2px 6px;
    white-space: nowrap;
}

.property-marker.selected {
    background: #27ae60;
    transform: scale(1.1);
}

.marker-content.selected {
    color: white;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .property-sidebar-zillow {
        width: 350px;
    }
    
    .filter-dropdowns-zillow {
        gap: 8px;
    }
    
    .filter-dropdown-zillow {
        min-width: 100px;
        font-size: 0.8rem;
    }
}

@media (max-width: 768px) {
    .filter-row-zillow {
        flex-direction: column;
        gap: 12px;
    }
    
    .filter-dropdowns-zillow {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .property-sidebar-zillow {
        width: 100%;
        height: 50%;
    }
    
    .map-container-zillow {
        flex-direction: column;
    }
    
    .main-map-zillow {
        height: 50%;
    }
}

@media (max-width: 480px) {
    .search-input-zillow {
        margin: 0 16px;
    }
    
    .filter-dropdowns-zillow {
        gap: 6px;
    }
    
    .filter-dropdown-zillow {
        min-width: 80px;
        font-size: 0.75rem;
        padding: 6px 8px;
    }
    
    .property-card-zillow {
        padding: 16px;
    }
    
    .property-price-zillow {
        font-size: 1.2rem;
    }
}

/* Filter Dropdown Styles */
.filter-item {
    position: relative;
}

.filter-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    min-width: 200px;
    margin-top: 4px;
}

.dropdown-content {
    padding: 16px;
}

.price-range-inputs {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.price-range-inputs input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
}

.price-range-inputs span {
    color: #666;
    font-size: 0.9rem;
}

.price-presets {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.preset-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #333;
    transition: background-color 0.2s ease;
}

.preset-btn:hover {
    background-color: #f5f5f5;
}

.dropdown-option {
    background: none;
    border: none;
    padding: 8px 12px;
    text-align: left;
    cursor: pointer;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #333;
    width: 100%;
    transition: background-color 0.2s ease;
}

.dropdown-option:hover {
    background-color: #f5f5f5;
}

.filter-section {
    margin-bottom: 16px;
}

.filter-section:last-child {
    margin-bottom: 0;
}

.filter-section label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #333;
    margin-bottom: 6px;
}

.filter-section select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 0.9rem;
    background: white;
}

.filter-section select:focus {
    outline: none;
    border-color: #006aff;
}

/* Show dropdown when active */
.filter-item.active .filter-dropdown {
    display: block;
}

.filter-item.active .filter-icon {
    transform: rotate(180deg);
}

/* Promoted Properties Section */
.promoted-properties-section {
    padding: 80px 0;
    background: #f8f9fa;
}

.property-section {
    margin-bottom: 60px;
}

.property-section:last-child {
    margin-bottom: 0;
}

.property-section .section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.property-section .section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.property-section .section-header h2 i {
    color: #007bff;
    margin-right: 10px;
}

.property-section .section-header p {
    font-size: 1.1rem;
    color: #666;
    margin: 0;
}

/* Horizontal Scroll Container */
.horizontal-scroll-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
}

.properties-scroll-gallery {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 10px 0;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}

.properties-scroll-gallery::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

/* Scroll Buttons */
.scroll-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.scroll-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transform: translateY(-50%) scale(1.05);
}

.scroll-btn i {
    color: #333;
    font-size: 1.1rem;
}

.scroll-left {
    left: 10px;
}

.scroll-right {
    right: 10px;
}

/* Promotion Modal Styles */
.promotion-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
}

.promotion-modal-content {
    background: white;
    border-radius: 12px;
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.promotion-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e0e0e0;
}

.promotion-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.2rem;
    color: #666;
    cursor: pointer;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.close-modal-btn:hover {
    background-color: #f5f5f5;
}

.promotion-modal-body {
    padding: 24px;
}

.promotion-info {
    margin-bottom: 24px;
}

.promotion-benefits h4 {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.promotion-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.promotion-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    color: #555;
    font-size: 0.95rem;
}

.promotion-benefits li i {
    color: #007bff;
    width: 16px;
}

.promotion-pricing {
    margin-top: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
}

.price-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.price-amount {
    font-size: 2rem;
    font-weight: 700;
    color: #007bff;
}

.price-period {
    font-size: 0.9rem;
    color: #666;
}

.payment-section h4 {
    margin: 0 0 16px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

#paypal-button-container {
    margin-top: 16px;
}

/* Promotion Button Styles */
.promote-listing-btn {
    background: linear-gradient(135deg, #007bff, #0056b3);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-left: 8px;
}

.promote-listing-btn:hover {
    background: linear-gradient(135deg, #0056b3, #004085);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
}

.promote-listing-btn:active {
    transform: translateY(0);
}

.promote-listing-btn i {
    font-size: 0.8rem;
}

/* Promoted Property Badge */
.promoted-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 4px;
}

.promoted-badge i {
    font-size: 0.6rem;
}

/* Promoted Property Styles */
.promoted-property {
    border: 2px solid #ff6b35 !important;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.2) !important;
    position: relative;
}

.promoted-property::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    z-index: 1;
}

.promoted-property .property-card-zillow {
    border: 2px solid #ff6b35;
    box-shadow: 0 4px 20px rgba(255, 107, 53, 0.2);
}

.promoted-property .property-image-container-zillow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    z-index: 1;
}

/* Property Cards in Gallery - Updated Design */
.properties-scroll-gallery .property-card-modern {
    min-width: 320px;
    max-width: 320px;
    flex-shrink: 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    cursor: pointer;
}

.properties-scroll-gallery .property-card-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Promoted Badge */
.property-card-modern.promoted::before {
    content: "PROMOTED";
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    z-index: 5;
}

.property-card-modern.promoted::after {
    content: "⭐";
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 1.2rem;
    z-index: 5;
}

/* Property Image - Larger and more prominent */
.properties-scroll-gallery .property-image-modern {
    height: 240px;
    overflow: hidden;
    position: relative;
}

.properties-scroll-gallery .property-image-modern img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.properties-scroll-gallery .property-card-modern:hover .property-image-modern img {
    transform: scale(1.02);
}

/* Property Content - Cleaner layout */
.properties-scroll-gallery .property-content-modern {
    padding: 16px;
}

/* Price - Large and prominent */
.properties-scroll-gallery .property-price-modern {
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    margin-bottom: 8px;
    line-height: 1.2;
}

/* Features - Compact horizontal layout */
.properties-scroll-gallery .property-features-modern {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 0.9rem;
    color: #666;
}

.properties-scroll-gallery .property-feature-modern {
    display: flex;
    align-items: center;
    gap: 4px;
}

.properties-scroll-gallery .property-feature-modern i {
    color: #666;
    font-size: 0.8rem;
}

/* Address - Clean and readable */
.properties-scroll-gallery .property-address-modern {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 8px;
    line-height: 1.3;
}

/* Brokerage info - Smaller and subtle */
.properties-scroll-gallery .property-brokerage-modern {
    font-size: 0.8rem;
    color: #999;
    line-height: 1.2;
}

/* Responsive Design */
@media (max-width: 768px) {
    .promoted-properties-section {
        padding: 60px 0;
    }
    
    .property-section .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .property-section .section-header h2 {
        font-size: 1.5rem;
    }
    
    .properties-scroll-gallery .property-card-modern {
        min-width: 280px;
        max-width: 280px;
    }
    
    .scroll-btn {
        width: 36px;
        height: 36px;
    }
    
    .scroll-btn i {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .properties-scroll-gallery .property-card-modern {
        min-width: 260px;
        max-width: 260px;
    }
    
    .properties-scroll-gallery .property-content-modern {
        padding: 16px;
    }
    
    .properties-scroll-gallery .property-title-modern {
        font-size: 1rem;
    }
    
    .properties-scroll-gallery .property-price-modern {
        font-size: 1.2rem;
    }
}

/* Property Detail Zillow Style */
.property-detail-zillow {
    padding-top: 70px;
    background: #fff;
}

.property-content-zillow {
    max-width: 1200px;
    margin: 0 auto;
}

/* Property Images Gallery */
.property-images-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 12px;
    height: 600px;
    margin-bottom: 32px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    background: #fff;
    position: relative;
}

.main-image-container {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #f8f9fa;
}

.main-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    cursor: zoom-in;
}

.main-image-container:hover img {
    transform: scale(1.02);
}

.main-image-container img.zoomed {
    cursor: zoom-out;
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom, 
        rgba(0,0,0,0.4) 0%, 
        transparent 20%, 
        transparent 80%, 
        rgba(0,0,0,0.4) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 24px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.main-image-container:hover .image-overlay {
    opacity: 1;
}

.image-nav-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.image-nav {
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    backdrop-filter: blur(10px);
}

.image-nav:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

.image-nav i {
    font-size: 18px;
    color: #333;
}

.image-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.image-counter {
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 10px 16px;
    border-radius: 24px;
    font-size: 14px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

.image-control-btn {
    background: rgba(255,255,255,0.95);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-left: 8px;
    backdrop-filter: blur(10px);
}

.image-control-btn:hover {
    background: white;
    transform: scale(1.1);
}

.image-control-btn i {
    font-size: 16px;
    color: #333;
}

.image-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255,255,255,0.9);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.image-loading i {
    font-size: 24px;
    color: #007bff;
}

.gallery-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.side-images {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.side-image {
    flex: 1;
    overflow: hidden;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    background: #f8f9fa;
}

.side-image:hover {
    transform: scale(1.02);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.side-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-overlay-hover {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.side-image:hover .image-overlay-hover {
    opacity: 1;
}

.image-overlay-hover i {
    color: white;
    font-size: 20px;
}

/* More Images Overlay */
.more-images-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.more-images-overlay:hover {
    background: rgba(0,0,0,0.8);
}

.more-images-content {
    text-align: center;
    color: white;
}

.more-images-count {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.more-images-text {
    display: block;
    font-size: 14px;
    font-weight: 500;
    margin-top: 4px;
}

/* Thumbnail Gallery */
.thumbnail-gallery {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding: 8px 0;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.thumbnail-gallery::-webkit-scrollbar {
    height: 4px;
}

.thumbnail-gallery::-webkit-scrollbar-track {
    background: transparent;
}

.thumbnail-gallery::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.thumbnail-item {
    flex-shrink: 0;
    width: 80px;
    height: 60px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    border: 2px solid transparent;
}

.thumbnail-item:hover {
    transform: scale(1.05);
    border-color: #007bff;
}

.thumbnail-item.active {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.3);
}

.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Fullscreen Gallery Modal */
.fullscreen-gallery-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 9999;
    display: none;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.fullscreen-gallery-modal.active {
    display: flex;
}

.fullscreen-content {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.fullscreen-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 10;
    background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, transparent 100%);
}

.close-fullscreen {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.close-fullscreen:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.close-fullscreen i {
    color: white;
    font-size: 20px;
}

.fullscreen-counter {
    color: white;
    font-size: 16px;
    font-weight: 500;
    background: rgba(0,0,0,0.5);
    padding: 8px 16px;
    border-radius: 20px;
    backdrop-filter: blur(10px);
}

.fullscreen-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 80px 20px 120px;
}

.fullscreen-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

.fullscreen-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    pointer-events: none;
}

.fullscreen-nav {
    background: rgba(255,255,255,0.2);
    border: none;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    pointer-events: auto;
}

.fullscreen-nav:hover {
    background: rgba(255,255,255,0.3);
    transform: scale(1.1);
}

.fullscreen-nav i {
    color: white;
    font-size: 24px;
}

.fullscreen-thumbnails {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.3) transparent;
}

.fullscreen-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.fullscreen-thumbnails::-webkit-scrollbar-track {
    background: transparent;
}

.fullscreen-thumbnails::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.3);
    border-radius: 3px;
}

.fullscreen-thumbnail {
    flex-shrink: 0;
    width: 100px;
    height: 75px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    opacity: 0.7;
}

.fullscreen-thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.fullscreen-thumbnail.active {
    border-color: #007bff;
    opacity: 1;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.3);
}

.fullscreen-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Property Information Section */
.property-info-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 32px;
    padding: 0 20px;
}

.property-main-info {
    max-width: 800px;
}

/* Price and Address Section */
.price-address-section {
    margin-bottom: 24px;
}

.price-section {
    margin-bottom: 16px;
}

.price-amount {
    font-size: 32px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.price-period {
    font-size: 18px;
    color: #666;
    font-weight: 400;
}

.address-section {
    margin-bottom: 16px;
}

.property-address {
    font-size: 24px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 8px 0;
}

.property-location {
    font-size: 16px;
    color: #666;
    margin: 0;
}

/* Property Stats Section */
.property-stats-section {
    margin-bottom: 24px;
}

.stats-grid {
    display: flex;
    gap: 24px;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #1a1a1a;
}

.stat-item i {
    color: #666;
    font-size: 18px;
}

/* Property Details Grid */
.property-details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
    padding: 24px;
    background: #f8f9fa;
    border-radius: 8px;
}

.detail-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #1a1a1a;
}

.detail-item i {
    color: #666;
    font-size: 16px;
    width: 16px;
}

/* What's Special Section */
.whats-special-section {
    margin-bottom: 32px;
}

.whats-special-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.feature-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.feature-tag {
    background: #f0f0f0;
    color: #666;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-description {
    line-height: 1.6;
    color: #1a1a1a;
}

.property-description p {
    margin-bottom: 16px;
}

.show-more-btn {
    background: none;
    border: none;
    color: #1a73e8;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
}

.show-more-btn:hover {
    color: #1557b0;
}

/* Amenities Section */
.amenities-section {
    margin-bottom: 32px;
}

.amenities-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.amenity-category {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 20px;
}

.amenity-category h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.amenity-category h4 i {
    color: #1a73e8;
}

.amenity-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 0;
    font-size: 14px;
    color: #1a1a1a;
}

.amenity-item i {
    color: #4CAF50;
    font-size: 12px;
    width: 16px;
}

.amenity-item.available {
    color: #1a1a1a;
}

.amenity-item.not-available {
    color: #999;
    text-decoration: line-through;
}

/* Overview Invite Section */
.overview-invite-section {
    margin: 30px 0;
}

.invite-tenant-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    padding: 30px;
    color: white;
    display: flex;
    align-items: center;
    gap: 25px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.invite-tenant-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(102, 126, 234, 0.4);
}

.invite-icon {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.invite-icon i {
    font-size: 32px;
    color: white;
}

.invite-content {
    flex: 1;
}

.invite-content h3 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 600;
}

.invite-content p {
    margin: 0 0 20px 0;
    font-size: 16px;
    opacity: 0.9;
    line-height: 1.5;
}

.btn-large {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 500;
}

/* Responsive Design for Amenities */
@media (max-width: 768px) {
    .amenities-grid {
        grid-template-columns: 1fr;
    }
    
    .amenity-category {
        padding: 16px;
    }
    
    .amenity-category h4 {
        font-size: 14px;
    }
    
    .amenity-item {
        font-size: 13px;
        padding: 4px 0;
    }
    
    /* Overview Invite Section Mobile */
    .invite-tenant-card {
        flex-direction: column;
        text-align: center;
        padding: 25px;
        gap: 20px;
    }
    
    .invite-icon {
        width: 60px;
        height: 60px;
    }
    
    .invite-icon i {
        font-size: 24px;
    }
    
    .invite-content h3 {
        font-size: 20px;
    }
    
    .invite-content p {
        font-size: 14px;
    }
}

/* Property History Section */
.property-history-section {
    margin-bottom: 24px;
}

.history-item {
    display: flex;
    gap: 16px;
    margin-bottom: 8px;
    font-size: 14px;
}

.history-date {
    color: #666;
    min-width: 80px;
}

.history-action {
    color: #1a1a1a;
}

/* Engagement Stats */
.engagement-stats {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
}

.separator {
    color: #ccc;
}

/* Property Sidebar Zillow */
.property-sidebar-zillow {
    max-width: 400px;
}

.contact-form-zillow {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

.contact-form-zillow h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.contact-form-zillow .form-group {
    margin-bottom: 16px;
}

.contact-form-zillow input,
.contact-form-zillow textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    font-size: 14px;
}

.contact-form-zillow input:focus,
.contact-form-zillow textarea:focus {
    outline: none;
    border-color: #1a73e8;
}

.contact-form-zillow .btn-primary {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
}

/* Property Actions Zillow */
.property-actions-zillow {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-apply-zillow {
    background: #1a73e8;
    color: white;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-apply-zillow:hover {
    background: #1557b0;
}

.btn-favorite-zillow {
    background: white;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-favorite-zillow:hover {
    background: #f8f9fa;
    border-color: #1a73e8;
}

.btn-favorite-zillow.favorited {
    background: #1a73e8;
    color: white;
    border-color: #1a73e8;
}

.btn-share-zillow {
    background: white;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-share-zillow:hover {
    background: #f8f9fa;
    border-color: #1a73e8;
}

.btn-print-zillow {
    background: white;
    color: #1a1a1a;
    border: 1px solid #e0e0e0;
    padding: 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-print-zillow:hover {
    background: #f8f9fa;
    border-color: #1a73e8;
}

/* Lister Profile Zillow */
.lister-profile-zillow {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
    cursor: pointer;
    transition: all 0.3s;
}

.lister-profile-zillow:hover {
    border-color: #1a73e8;
    box-shadow: 0 2px 8px rgba(26, 115, 232, 0.1);
}

.lister-profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
}

.lister-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.lister-info h4 {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 4px 0;
}

.lister-type {
    font-size: 14px;
    color: #666;
    margin-bottom: 8px;
    display: block;
}

.lister-stats {
    display: flex;
    gap: 16px;
}

.lister-stat {
    text-align: center;
}

.lister-stat .stat-number {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    display: block;
}

.lister-stat .stat-label {
    font-size: 12px;
    color: #666;
}

/* Property Location Map Zillow */
.property-location-map-zillow {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 24px;
}

.property-location-map-zillow h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

.property-map-container {
    height: 200px;
    border-radius: 8px;
    overflow: hidden;
}

/* Similar Properties Zillow */
.similar-properties-zillow {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
}

.similar-properties-zillow h3 {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin-bottom: 16px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .property-info-section {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    
    .property-sidebar-zillow {
        max-width: none;
    }
}

@media (max-width: 768px) {
    .property-images-gallery {
        grid-template-columns: 1fr;
        height: auto;
        border-radius: 12px;
        gap: 8px;
    }
    
    .gallery-sidebar {
        order: -1;
    }
    
    .side-images {
        display: flex;
        flex-direction: row;
        gap: 8px;
        height: 120px;
    }
    
    .side-image {
        flex: 1;
        height: 120px;
    }
    
    .main-image-container {
        height: 300px;
    }
    
    .image-overlay {
        padding: 15px;
        opacity: 1;
    }
    
    .image-nav {
        width: 36px;
        height: 36px;
    }
    
    .image-nav i {
        font-size: 14px;
    }
    
    .image-counter {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .image-control-btn {
        width: 32px;
        height: 32px;
    }
    
    .image-control-btn i {
        font-size: 14px;
    }
    
    .thumbnail-gallery {
        height: 80px;
        gap: 6px;
    }
    
    .thumbnail-item {
        width: 60px;
        height: 45px;
    }
    
    .fullscreen-image-container {
        padding: 60px 10px 100px;
    }
    
    .fullscreen-nav {
        width: 48px;
        height: 48px;
    }
    
    .fullscreen-nav i {
        font-size: 18px;
    }
    
    .fullscreen-thumbnails {
        padding: 15px;
        gap: 6px;
    }
    
    .fullscreen-thumbnail {
        width: 80px;
        height: 60px;
    }
    
    .fullscreen-header {
        padding: 15px;
    }
    
    .close-fullscreen {
        width: 40px;
        height: 40px;
    }
    
    .close-fullscreen i {
        font-size: 16px;
    }
    
    .fullscreen-counter {
        font-size: 14px;
        padding: 6px 12px;
    }
}

@media (max-width: 768px) {
    .property-details-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        flex-direction: column;
        gap: 16px;
    }
    
    .price-amount {
        font-size: 28px;
    }
    
    .property-address {
        font-size: 20px;
    }
}

@media (max-width: 480px) {
    .property-details-grid {
        grid-template-columns: 1fr;
    }
    
    .price-amount {
        font-size: 24px;
    }
    
    .property-address {
        font-size: 18px;
    }
    
    .contact-form-zillow {
        padding: 16px;
    }
    
    .lister-profile-zillow {
        padding: 16px;
    }
    
    .property-location-map-zillow {
        padding: 16px;
    }
    
    .similar-properties-zillow {
        padding: 16px;
    }
}

/* Invite Actions */
.invite-actions {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .invite-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .invite-actions button {
        width: 100%;
        margin-left: 0 !important;
    }
}