/* CSS cho phần Tin Thô */
.raw-page-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.raw-header {
    text-align: center;
    margin-bottom: 30px;
}
.raw-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}
.raw-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}
.raw-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.raw-badge {
    display: inline-block;
    padding: 4px 8px;
    background-color: #f1f1f1;
    color: #333;
    border-radius: 4px;
    font-size: 0.8em;
    font-weight: bold;
    margin-bottom: 10px;
}
.raw-badge.ban { background-color: #ffeeba; color: #856404; }
.raw-badge.thue { background-color: #d1ecf1; color: #0c5460; }

.raw-price {
    font-size: 1.2em;
    color: #d9534f;
    font-weight: bold;
    margin-bottom: 10px;
}
.raw-address {
    font-size: 0.9em;
    color: #555;
    margin-bottom: 10px;
    line-height: 1.4;
}
.raw-desc {
    font-size: 0.9em;
    color: #666;
    margin-bottom: 15px;
    display: -webkit-box;
    -webkit-line-clamp: 3; /* Cắt bớt text nếu quá dài */
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.raw-meta {
    font-size: 0.8em;
    color: #999;
    margin-bottom: 15px;
    border-top: 1px solid #eee;
    padding-top: 10px;
}
.btn-unlock {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: background 0.3s;
}
.btn-unlock:hover {
    background-color: #218838;
}

.raw-modal-overlay {
    position: fixed; z-index: 9999; left: 0; top: 0; width: 100%; height: 100%;
    background-color: rgba(0,0,0,0.6); backdrop-filter: blur(3px);
    display: flex; align-items: center; justify-content: center;
}
.raw-modal-content {
    background: #fff; padding: 20px; border-radius: 12px; 
    width: 90%; max-width: 600px; max-height: 85vh; 
    overflow-y: auto; position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    animation: modalFadeIn 0.3s ease-out;
}
@keyframes modalFadeIn {
    from { transform: translateY(-30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.raw-close-btn {
    position: absolute; right: 15px; top: 15px; font-size: 28px; 
    font-weight: bold; color: #888; cursor: pointer; line-height: 1;
}
.raw-close-btn:hover { color: #d9534f; }
.modal-info-box {
    background: #f8f9fa; padding: 15px; border-radius: 8px; margin-bottom: 20px;
    border-left: 4px solid #007bff;
}
.modal-info-box p { margin: 8px 0; font-size: 15px;}
.modal-gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px;
}
.modal-gallery-grid img {
    width: 100%; height: 150px; object-fit: cover; border-radius: 6px; 
    border: 1px solid #ddd; cursor: pointer;
}

.sl-overlay, .sl-wrapper {
    z-index: 10000 !important; /* Thấp hơn 100000 nhưng vẫn > 9999 */
}

/* 2. Ép SimpleLightbox quản lý các lớp hàng xóm một cách chính xác */
.sl-overlay {
    z-index: 10000 !important; /* Lớp overlay tối */
}
.sl-wrapper {
    z-index: 10001 !important; /* Lớp chứa ảnh phải nổi hơn overlay của chính nó 1 đơn vị */
}


.raw-intro-box {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 5px solid #007bff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}
.raw-intro-content {
    flex: 1;
    min-width: 300px;
    color: #444;
    line-height: 1.6;
    font-size: 0.95em;
}
.raw-intro-content h3 {
    color: #007bff;
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
}
.raw-intro-content ul {
    list-style: none;
    padding-left: 0;
    margin: 15px 0;
}
.raw-intro-content li {
    margin-bottom: 8px;
}
.raw-intro-stats {
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 200px;
    justify-content: center;
}
.stat-card {
    background: #fff;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #dee2e6;
}
.stat-card .stat-num {
    font-size: 2em;
    font-weight: bold;
    color: #dc3545;
    margin: 5px 0;
    line-height: 1;
}
.stat-card .stat-label {
    font-size: 0.85em;
    color: #6c757d;
    text-transform: uppercase;
    font-weight: bold;
}
.stat-card.today .stat-num {
    color: #28a745; /* Màu xanh cho tin hôm nay */
}