/* ===== Custom Styles for Real Estate Website ===== */

/* Smooth scroll */
html { scroll-behavior: smooth; }

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, rgba(9,26,62,0.55) 0%, rgba(15,37,87,0.45) 100%),
                url('https://images.unsplash.com/photo-1486325212027-8081e485255e?w=1920&q=80&auto=format&fit=crop') center/cover no-repeat;
    min-height: 580px;
}

/* Property Card */
.property-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.12);
}
.property-card img {
    transition: transform 0.4s ease;
}
.property-card:hover img {
    transform: scale(1.05);
}

/* Image Gallery */
.gallery-thumb {
    cursor: pointer;
    transition: opacity 0.2s;
}
.gallery-thumb:hover { opacity: 0.8; }

/* Lightbox */
#lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
#lightbox.active { display: flex; }
#lightbox img { max-width: 90vw; max-height: 85vh; object-fit: contain; border-radius: 8px; }

/* Filter Sidebar */
.filter-range input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    outline: none;
}
.filter-range input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    background: #0f2557;
    border-radius: 50%;
    cursor: pointer;
}

/* Badge */
.badge-sale  { background: #0f2557; color: #fff; }
.badge-rent  { background: #059669; color: #fff; }
.badge-sold  { background: #dc2626; color: #fff; }

/* Pagination */
.page-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
    color: #374151;
    font-size: 0.875rem;
    transition: all 0.2s;
}
.page-link:hover, .page-link.active {
    background: #0f2557;
    color: #fff;
    border-color: #0f2557;
}

/* Admin Sidebar */
.admin-sidebar a.active {
    background: rgba(255,255,255,0.15);
    border-left: 3px solid #f59e0b;
}

/* Form Inputs */
.form-input {
    width: 100%;
    padding: 0.625rem 0.875rem;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    font-size: 0.9rem;
    transition: border-color 0.2s, box-shadow 0.2s;
    background: #fff;
}
.form-input:focus {
    outline: none;
    border-color: #0f2557;
    box-shadow: 0 0 0 3px rgba(15,37,87,0.1);
}

/* Amenity Tags */
.amenity-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    background: #eef1f8;
    color: #0f2557;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Stats Counter */
.stat-card {
    background: linear-gradient(135deg, #0f2557, #091a3e);
    color: white;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
}

/* Responsive Table */
@media (max-width: 768px) {
    .responsive-table { display: block; overflow-x: auto; }
}

/* Loading Spinner */
.spinner {
    width: 40px; height: 40px;
    border: 4px solid #e5e7eb;
    border-top-color: #0f2557;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Alert Messages */
.alert-success { background: #d1fae5; border-left: 4px solid #059669; color: #065f46; }
.alert-error   { background: #fee2e2; border-left: 4px solid #dc2626; color: #991b1b; }
.alert-info    { background: #dbeafe; border-left: 4px solid #0f2557; color: #0f2557; }
