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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
    transition: all 0.3s ease;
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    backdrop-filter: blur(5px);
}

.loading-content {
    text-align: center;
    padding: 2rem;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.loading-text {
    margin-top: 1rem;
    color: #666;
    font-size: 1.1rem;
}

/* Smooth Transitions */
.fade-in {
    animation: fadeIn 0.5s ease-in;
}

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

.slide-up {
    animation: slideUp 0.3s ease-out;
}

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

/* Hover Effects */
.hover-lift {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

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

/* Header */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 700;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    padding: 0.7rem 1.2rem;
    border-radius: 8px;
    transition: background-color 0.3s ease;
}

.nav-link:hover {
    background-color: rgba(255,255,255,0.1);
}

.nav-link.active {
    background-color: rgba(255,255,255,0.2);
    font-weight: 600;
}

/* Breadcrumbs */
.breadcrumbs {
    background: #f8f9fa;
    padding: 0.8rem 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.9rem;
}

.breadcrumbs .container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb-item {
    color: #6c757d;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb-item:hover {
    color: #3498db;
}

.breadcrumb-separator {
    color: #dee2e6;
    margin: 0 0.5rem;
}

.breadcrumb-current {
    color: #495057;
    font-weight: 500;
}

/* Main Content */
.main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Dashboard */
.dashboard {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.dashboard-card {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
}

.dashboard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
}

.dashboard-card h2 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

/* Stats */
.stats {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
}

.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid #eee;
}

.stat-item:last-child {
    border-bottom: none;
}

.stat-label {
    font-weight: 500;
    color: #666;
}

.stat-value {
    font-weight: 600;
    color: #2c3e50;
    background: #e8f4f8;
    padding: 0.2rem 0.8rem;
    border-radius: 15px;
}

/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #5a6268;
}

.btn-danger {
    background: #dc3545;
    color: white;
}

.btn-danger:hover {
    background: #c82333;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
}

.btn-warning:hover {
    background: #e0a800;
}

.btn-info {
    background: #17a2b8;
    color: white;
}

.btn-info:hover {
    background: #138496;
}

.btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.btn-outline:hover {
    background: #667eea;
    color: white;
}

/* Scrape Controls */
.scrape-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.scrape-controls label {
    font-weight: 500;
    color: #2c3e50;
}

.scrape-controls input {
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
}

.api-config {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 5px;
    border: 1px solid #e9ecef;
}

.help-text {
    display: block;
    color: #666;
    font-size: 0.8rem;
    margin-top: 0.3rem;
}

.scrape-controls input:focus {
    outline: none;
    border-color: #667eea;
}

/* Status Messages */
.status-message {
    padding: 1rem;
    border-radius: 5px;
    margin-top: 1rem;
    font-weight: 500;
}

.status-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.status-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.status-message.info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
    margin-top: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    width: 0%;
    transition: width 0.3s ease;
}

/* Map Container */
.map-container {
    width: 100%;
    height: 300px;
    border-radius: 8px;
    border: 2px solid #ddd;
    overflow: hidden;
}

.map-info {
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: #666;
    text-align: center;
}

/* Recent Posts */
.recent-posts {
    max-height: 400px;
    overflow-y: auto;
}

.recent-post-item {
    padding: 1rem;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 1rem;
    background: #f8f9fa;
}

.recent-post-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.recent-post-item .post-meta {
    font-size: 0.8rem;
    color: #666;
    margin-bottom: 0.5rem;
}

.recent-post-item .post-preview {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
}

/* Category Layout */
.category-layout {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
}

.filters-sidebar {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    height: fit-content;
}

.filter-card {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #eee;
}

.filter-card:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.filter-card input,
.filter-card select {
    width: 100%;
    padding: 0.5rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

.filter-card input:focus,
.filter-card select:focus {
    outline: none;
    border-color: #667eea;
}

.price-range,
.area-range {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.price-range span,
.area-range span {
    text-align: center;
    font-size: 0.9rem;
    color: #666;
}

.filter-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.filter-actions .btn {
    width: 100%;
}

.filter-status {
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: #f8f9fa;
    border-radius: 5px;
    border-left: 3px solid #3498db;
}

.filter-status-text {
    font-size: 0.9rem;
    color: #6c757d;
    font-style: italic;
}

.sample-data-actions {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.sample-data-actions .btn {
    flex: 1;
    font-size: 0.9rem;
    padding: 0.5rem;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-info {
    background: #17a2b8;
    color: white;
    border: 1px solid #17a2b8;
}

.btn-info:hover {
    background: #138496;
    border-color: #117a8b;
}

.btn-warning {
    background: #ffc107;
    color: #212529;
    border: 1px solid #ffc107;
}

.btn-warning:hover {
    background: #e0a800;
    border-color: #d39e00;
}

/* Main Content */
.main-content {
    background: white;
    border-radius: 10px;
    padding: 1.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.content-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.results-info h2 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.results-count {
    color: #666;
    font-size: 0.9rem;
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.sort-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sort-controls label {
    font-weight: 500;
    color: #2c3e50;
    font-size: 0.9rem;
}

.sort-select {
    padding: 0.5rem 0.75rem;
    border: 2px solid #e1e8ed;
    border-radius: 8px;
    background: white;
    color: #2c3e50;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
}

.sort-select:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.sort-select:hover {
    border-color: #3498db;
}

.view-controls {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.5rem 1rem;
    border: 2px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.view-btn.active,
.view-btn:hover {
    border-color: #667eea;
    background: #667eea;
    color: white;
}

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

.property-card {
    background: white;
    border: 1px solid #eee;
    border-radius: 15px;
    padding: 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: slideUp 0.5s ease-out;
}

.property-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.property-card:hover::before {
    left: 100%;
}

.property-source {
    margin-top: 0.5rem;
}

.property-source a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.property-source a:hover {
    color: #2980b9;
    text-decoration: underline;
}

/* Source link in detail page */
.source-link {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.2rem 0.5rem;
    border-radius: 5px;
    background: rgba(52, 152, 219, 0.1);
}

.source-link:hover {
    color: #2980b9;
    background: rgba(52, 152, 219, 0.2);
    text-decoration: underline;
}

.property-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 12px 24px rgba(0,0,0,0.15);
    border-color: #3498db;
}

.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: #2c3e50;
    line-height: 1.3;
}

.property-price {
    background: #e8f4f8;
    color: #2c3e50;
    padding: 0.3rem 0.8rem;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.9rem;
}

.property-meta {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: #666;
}

.property-location {
    color: #667eea;
    font-weight: 500;
}

.property-description {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-right: 0.5rem;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.badge:hover::before {
    left: 100%;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

/* Property Type Badges with Gradient */
.badge.đất { 
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-color: #c0392b;
}

.badge.nhà { 
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-color: #2980b9;
}

.badge.căn\ hộ { 
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    border-color: #27ae60;
}

.badge.biệt\ thự { 
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border-color: #e67e22;
}

.badge.shop { 
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    border-color: #8e44ad;
}

.badge.shop\ house { 
    background: linear-gradient(135deg, #9b59b6, #8e44ad);
    color: white;
    border-color: #8e44ad;
}

.badge.đất\ nền { 
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-color: #c0392b;
}

.badge.nhà\ phố { 
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border-color: #2980b9;
}

.badge.khác { 
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    border-color: #7f8c8d;
}

.badge.source-available { 
    background: linear-gradient(135deg, #1abc9c, #16a085);
    color: white;
    border-color: #16a085;
}

.badge.map-available { 
    background: linear-gradient(135deg, #34495e, #2c3e50);
    color: white;
    border-color: #2c3e50;
}

/* Status badges */
.badge.status-sold { 
    background: linear-gradient(135deg, #e74c3c, #c0392b);
    color: white;
    border-color: #c0392b;
}

.badge.status-rented { 
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    border-color: #e67e22;
}

.badge.status-pending { 
    background: linear-gradient(135deg, #e67e22, #d35400);
    color: white;
    border-color: #d35400;
}

.badge.status-inactive { 
    background: linear-gradient(135deg, #95a5a6, #7f8c8d);
    color: white;
    border-color: #7f8c8d;
}

/* Special badge for propertyType in detail page */
#propertyType {
    font-size: 1rem;
    padding: 0.7rem 1.2rem;
    border-radius: 25px;
    font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
    animation: pulse 2s infinite;
}


@keyframes pulse {
    0% {
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
    50% {
        box-shadow: 0 4px 16px rgba(0,0,0,0.25);
    }
    100% {
        box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    }
}

.price-badge {
    background: #e8f4f8 !important;
    color: #2c3e50 !important;
    font-weight: 600;
}

/* Map View */
.map-view {
    position: relative;
}

.map-legend {
    position: absolute;
    top: 10px;
    right: 10px;
    background: white;
    padding: 1rem;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1000;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.3rem;
    font-size: 0.8rem;
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 2rem;
}

.pagination button {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination button:hover,
.pagination button.active {
    background: #667eea;
    color: white;
    border-color: #667eea;
}

.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Detail Layout */
.detail-layout {
    max-width: 1000px;
    margin: 0 auto;
}

/* Clone Layout */
.clone-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

.clone-card {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.clone-card h2 {
    color: #2c3e50;
    margin-bottom: 1.5rem;
    font-size: 1.3rem;
}

.input-section {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.input-group label {
    font-weight: 500;
    color: #2c3e50;
}

.input-group input,
.input-group textarea {
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 0.9rem;
    font-family: inherit;
}

.input-group input:focus,
.input-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.input-group textarea {
    resize: vertical;
    min-height: 120px;
}

.clone-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.btn-sm {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
}

.map-controls {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.preview-section {
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #eee;
    border-radius: 5px;
    padding: 1rem;
}

.post-preview-item {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 1rem;
    margin-bottom: 1rem;
    background: #f8f9fa;
}

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

.post-header h4 {
    color: #2c3e50;
    margin: 0;
    font-size: 1rem;
}

.post-badges {
    display: flex;
    gap: 0.3rem;
    flex-wrap: wrap;
}

.post-content {
    margin-bottom: 0.8rem;
}

.post-content p {
    color: #555;
    line-height: 1.4;
    margin: 0;
}

.post-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.8rem;
    color: #666;
    flex-wrap: wrap;
}

.post-meta span {
    background: #e9ecef;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
}

.parse-stats {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 5px;
    padding: 1rem;
    margin-top: 1rem;
}

.export-controls {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

/* Responsive for clone page */
@media (max-width: 768px) {
    .clone-layout {
        gap: 1rem;
    }
    
    .clone-card {
        padding: 1rem;
    }
    
    .clone-controls,
    .export-controls {
        flex-direction: column;
    }
    
    .post-header {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .post-meta {
        flex-direction: column;
        gap: 0.3rem;
    }
}

.back-section {
    margin-bottom: 2rem;
}

.property-detail {
    background: white;
    border-radius: 10px;
    padding: 2rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #eee;
}

.detail-header h2 {
    color: #2c3e50;
    flex: 1;
    margin-right: 1rem;
}

.property-badges {
    display: flex;
    flex-direction: row;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
}

.info-section {
    margin-bottom: 2rem;
}

.info-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

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

.info-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.info-label {
    font-weight: 500;
    color: #666;
    font-size: 0.9rem;
}

.info-value {
    font-weight: 600;
    color: #2c3e50;
    font-size: 1rem;
}

.description {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    line-height: 1.6;
    white-space: pre-wrap;
}

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

.contact-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.contact-label {
    font-weight: 500;
    color: #666;
}

.contact-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.contact-link:hover {
    text-decoration: underline;
}

.map-section {
    margin-bottom: 2rem;
}

.map-section h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}


.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

/* No Data */
.no-data {
    text-align: center;
    color: #666;
    font-style: italic;
    padding: 2rem;
}

.no-data-container {
    text-align: center;
    padding: 3rem 2rem;
    background: white;
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin: 2rem 0;
}

.no-data-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.7;
}

.no-data-container h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.no-data-container p {
    color: #666;
    margin-bottom: 2rem;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* About Us và Contact Pages */
.page-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.page-header {
    text-align: center;
    margin-bottom: 3rem;
}

.page-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
    font-weight: 700;
}

.page-subtitle {
    font-size: 1.2rem;
    color: #7f8c8d;
    margin-bottom: 2rem;
}

.content-section {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

.content-section h2 {
    color: #2c3e50;
    font-size: 1.8rem;
    margin-bottom: 1rem;
    border-bottom: 2px solid #3498db;
    padding-bottom: 0.5rem;
}

.content-section h3 {
    color: #34495e;
    font-size: 1.4rem;
    margin: 1.5rem 0 1rem 0;
}

.content-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
    color: #555;
}

.content-section ul {
    margin: 1rem 0;
    padding-left: 2rem;
}

.content-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

/* Contact Form */
.contact-form {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #2c3e50;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid #e1e8ed;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.btn-submit {
    background: linear-gradient(135deg, #3498db, #2980b9);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 5px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* Contact Info */
.contact-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.contact-card {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.contact-card h3 {
    color: #2c3e50;
    margin-bottom: 1rem;
}

.contact-card p {
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.contact-card a {
    color: #3498db;
    text-decoration: none;
}

.contact-card a:hover {
    text-decoration: underline;
}

/* Team Section */
.team-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.team-member {
    background: white;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.team-member h3 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.team-member .role {
    color: #3498db;
    font-weight: 600;
    margin-bottom: 1rem;
}

.team-member p {
    color: #7f8c8d;
    font-size: 0.9rem;
}

/* Footer */
.footer {
    background: #2c3e50;
    color: white;
    text-align: center;
    padding: 2rem 0;
    margin-top: 3rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .header .container {
        flex-direction: column;
        gap: 1rem;
    }
    
    .nav {
        gap: 1rem;
    }
    
    .dashboard {
        grid-template-columns: 1fr;
    }
    
    .category-layout {
        grid-template-columns: 1fr;
    }
    
    .filters-sidebar {
        order: 2;
    }
    
    .main-content {
        order: 1;
    }
    
    .content-header {
        flex-direction: column;
        gap: 1rem;
        align-items: flex-start;
    }
    
    .header-controls {
        width: 100%;
        justify-content: space-between;
        gap: 1rem;
    }
    
    .sort-controls {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
        width: 100%;
    }
    
    .sort-select {
        width: 100%;
        min-width: auto;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-content {
        grid-template-columns: 1fr;
    }
    
    .detail-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .action-buttons {
        flex-direction: column;
    }
    
    .container {
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .dashboard-card {
        padding: 1rem;
    }
    
    .property-detail {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.8rem;
    }
    
    .header-controls {
        flex-direction: column;
        align-items: stretch;
        gap: 0.75rem;
    }
    
    .sort-controls {
        gap: 0.5rem;
    }
    
    .sort-controls label {
        font-size: 0.85rem;
    }
    
    .sort-select {
        font-size: 0.85rem;
        padding: 0.4rem 0.6rem;
    }
}
