/* ===== RENT HOUSE - Main Stylesheet ===== */
:root {
    --primary: #1564e3;
    --primary-dark: #0d4cb3;
    --primary-light: #4a8af5;
    --primary-bg: #e8f0fe;
    --secondary: #6c757d;
    --success: #28a745;
    --danger: #dc3545;
    --warning: #ffc107;
    --info: #17a2b8;
    --white: #ffffff;
    --light: #f8f9fa;
    --dark: #212529;
    --gray: #6c757d;
    --gray-light: #e9ecef;
    --border: #dee2e6;
    --shadow: 0 2px 15px rgba(0,0,0,0.08);
    --shadow-lg: 0 5px 30px rgba(0,0,0,0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f5f7fa;
    color: var(--dark);
    line-height: 1.6;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

a:hover {
    color: var(--primary-dark);
}

/* ===== Navbar ===== */
.navbar {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    padding: 0.5rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.navbar-brand {
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary) !important;
    padding: 0;
}

.navbar-brand img {
    height: 55px;
    width: auto;
    object-fit: contain;
    letter-spacing: -0.5px;
}

.navbar-brand i {
    margin-right: 8px;
}

.nav-link {
    color: var(--dark) !important;
    font-weight: 500;
    padding: 0.5rem 1rem !important;
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

.nav-link:hover, .nav-link.active {
    color: var(--primary) !important;
    background: var(--primary-bg);
}

.navbar .btn-primary {
    background: var(--primary);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.5rem 1.5rem;
    font-weight: 600;
}

/* ===== Buttons ===== */
.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
    padding: 0.6rem 1.5rem;
    transition: var(--transition);
}

.btn-primary:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(21, 100, 227, 0.3);
}

.btn-outline-primary {
    color: var(--primary);
    border-color: var(--primary);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

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

.btn-lg {
    padding: 0.8rem 2rem;
    font-size: 1.1rem;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    padding: 5rem 0;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}

.hero-section h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

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

.hero-search {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.hero-search .form-control {
    border: 2px solid var(--gray-light);
    border-radius: var(--radius-sm);
    padding: 0.7rem 1rem;
}

.hero-search .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21, 100, 227, 0.1);
}

/* ===== Property Cards ===== */
.property-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
}

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

.property-card .card-img-top {
    height: 220px;
    object-fit: cover;
}

.property-card .card-body {
    padding: 1.2rem;
}

.property-card .property-price {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
}

.property-card .property-price span {
    font-size: 0.85rem;
    color: var(--gray);
    font-weight: 400;
}

.property-card .property-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0.5rem 0;
    color: var(--dark);
}

.property-card .property-location {
    color: var(--gray);
    font-size: 0.9rem;
}

.property-card .property-location i {
    color: var(--primary);
}

.property-card .property-features {
    display: flex;
    gap: 1rem;
    padding-top: 0.8rem;
    margin-top: 0.8rem;
    border-top: 1px solid var(--gray-light);
    font-size: 0.85rem;
    color: var(--gray);
}

.property-card .property-features span i {
    color: var(--primary);
    margin-right: 4px;
}

.property-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.save-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.9);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.save-btn:hover, .save-btn.saved {
    background: var(--danger);
    color: var(--white);
}

/* ===== Section Styles ===== */
.section-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.section-subtitle {
    color: var(--gray);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* ===== Filter Sidebar ===== */
.filter-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.5rem;
    box-shadow: var(--shadow);
    position: sticky;
    top: 90px;
}

.filter-sidebar h5 {
    font-weight: 700;
    margin-bottom: 1.2rem;
    color: var(--dark);
}

.filter-sidebar .form-label {
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
}

/* ===== Dashboard ===== */
.dashboard-sidebar {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
    position: sticky;
    top: 90px;
}

.dashboard-sidebar .nav-link {
    padding: 0.7rem 1rem;
    margin-bottom: 0.3rem;
    border-radius: var(--radius-sm);
    color: var(--dark) !important;
    font-weight: 500;
}

.dashboard-sidebar .nav-link:hover,
.dashboard-sidebar .nav-link.active {
    background: var(--primary-bg);
    color: var(--primary) !important;
}

.dashboard-sidebar .nav-link i {
    width: 24px;
    margin-right: 8px;
}

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

.stat-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.stat-card .stat-icon {
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}

.stat-card .stat-value {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--dark);
}

.stat-card .stat-label {
    color: var(--gray);
    font-size: 0.9rem;
}

/* ===== Pricing Cards ===== */
.pricing-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    text-align: center;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
}

.pricing-card.featured::before {
    content: 'POPULAR';
    position: absolute;
    top: 20px;
    right: -30px;
    background: var(--primary);
    color: var(--white);
    padding: 4px 40px;
    font-size: 0.75rem;
    font-weight: 700;
    transform: rotate(45deg);
}

.pricing-card .plan-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pricing-card .plan-price {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin: 1rem 0;
}

.pricing-card .plan-price span {
    font-size: 1rem;
    color: var(--gray);
    font-weight: 400;
}

.pricing-card .plan-features {
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
    text-align: left;
}

.pricing-card .plan-features li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--gray-light);
    font-size: 0.95rem;
}

.pricing-card .plan-features li i {
    color: var(--success);
    margin-right: 8px;
}

.pricing-card .plan-features li.disabled {
    color: var(--gray);
    text-decoration: line-through;
}

.pricing-card .plan-features li.disabled i {
    color: var(--gray);
}

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

.property-gallery {
    position: relative;
}

.property-gallery img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

.phone-mask {
    font-family: monospace;
    font-size: 1.2rem;
    letter-spacing: 2px;
    color: var(--dark);
}

.unlock-btn {
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.unlock-btn:hover {
    background: var(--primary-dark);
}

/* ===== Forms ===== */
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(21, 100, 227, 0.1);
}

.auth-container {
    max-width: 480px;
    margin: 3rem auto;
    background: var(--white);
    border-radius: var(--radius);
    padding: 2.5rem;
    box-shadow: var(--shadow);
}

.auth-container h2 {
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
}

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

.social-login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 0.7rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    border: 2px solid var(--gray-light);
    background: var(--white);
    color: var(--dark);
    cursor: pointer;
    transition: var(--transition);
}

.social-login-btn:hover {
    border-color: var(--primary);
    background: var(--primary-bg);
}

.social-login-btn.google {
    border-color: #ea4335;
}

.social-login-btn.google:hover {
    background: #fce8e6;
}

.social-login-btn.facebook {
    border-color: #1877f2;
}

.social-login-btn.facebook:hover {
    background: #e7f3ff;
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--gray);
}

.divider::before, .divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-light);
}

.divider span {
    padding: 0 1rem;
    font-size: 0.9rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
    padding: 3rem 0 1.5rem;
    margin-top: 4rem;
}

.footer h5 {
    color: var(--white);
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer a {
    color: rgba(255,255,255,0.7);
    transition: var(--transition);
}

.footer a:hover {
    color: var(--white);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 1.5rem;
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
}

/* ===== Alerts ===== */
.alert {
    border-radius: var(--radius-sm);
    border: none;
}

/* ===== Modal ===== */
.modal-content {
    border-radius: var(--radius);
    border: none;
}

.modal-header {
    border-bottom: 1px solid var(--gray-light);
}

/* ===== Animations ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section {
        padding: 3rem 0;
    }

    .property-card .card-img-top {
        height: 180px;
    }

    .stat-card .stat-value {
        font-size: 1.4rem;
    }

    .pricing-card .plan-price {
        font-size: 2rem;
    }

    .auth-container {
        margin: 1rem;
        padding: 1.5rem;
    }

    .filter-sidebar {
        position: static;
        margin-bottom: 1.5rem;
    }
}

@media (max-width: 576px) {
    .hero-section h1 {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* ===== Notification Badge ===== */
.notification-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--danger);
    color: var(--white);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

/* ===== Furnishing Options ===== */
.furnishing-options {
    display: none;
    background: var(--primary-bg);
    padding: 1rem;
    border-radius: var(--radius-sm);
    margin-top: 0.5rem;
}

.furnishing-options.show {
    display: block;
}

/* ===== Loading Spinner ===== */
.spinner-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.spinner-border {
    color: var(--primary);
}

/* ===== Table Styles ===== */
.table-container {
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.table-container .table {
    margin-bottom: 0;
}

.table-container .table th {
    background: var(--primary-bg);
    color: var(--primary);
    font-weight: 700;
    border: none;
    padding: 1rem;
}

.table-container .table td {
    padding: 0.8rem 1rem;
    vertical-align: middle;
}

/* ===== Status Badges ===== */
.badge-status {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.badge-pending { background: #fff3cd; color: #856404; }
.badge-approved { background: #d4edda; color: #155724; }
.badge-rejected { background: #f8d7da; color: #721c24; }
.badge-active { background: #d4edda; color: #155724; }
.badge-expired { background: #f8d7da; color: #721c24; }

/* ===== Image Normalization ===== */
/* Ensures all property images display at consistent dimensions regardless of upload size */
.property-img-normalized {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center;
}

.property-card .card-img-top {
    height: 220px;
    object-fit: cover;
    object-position: center;
    width: 100%;
}

.property-gallery .carousel-item img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    object-position: center;
}

/* ===== Content Protection ===== */
/* Prevent text selection across the website */
body.content-protected {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* Allow selection in form inputs and textareas */
body.content-protected input,
body.content-protected textarea,
body.content-protected select,
body.content-protected [contenteditable="true"] {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* Prevent image dragging */
body.content-protected img {
    -webkit-user-drag: none;
    -khtml-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    user-drag: none;
    pointer-events: none;
}

/* Re-enable pointer events for carousel controls and interactive images */
body.content-protected .carousel-control-prev,
body.content-protected .carousel-control-next,
body.content-protected .carousel-indicators,
body.content-protected a img {
    pointer-events: auto;
}

/* Transparent overlay to prevent right-click save on images */
.img-protect-wrapper {
    position: relative;
    overflow: hidden;
}

.img-protect-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: transparent;
    z-index: 1;
}

/* ===== Login / Sign Up Auth Button ===== */
.btn-auth-nav {
    background: transparent;
    color: var(--primary) !important;
    font-weight: 600;
    font-size: 0.85rem;
    padding: 7px 18px;
    border-radius: 50px;
    border: 2px solid var(--primary);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

.btn-auth-nav:hover {
    background: var(--primary);
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(21, 100, 227, 0.3);
}

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

.btn-auth-nav i {
    font-size: 1rem;
}

@media (max-width: 991px) {
    .btn-auth-nav {
        margin: 8px 0;
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
    }
}

/* ===== Add Property CTA Button ===== */
.btn-add-property {
    background: linear-gradient(135deg, #ff6b35, #f7931e);
    color: #fff !important;
    font-weight: 700;
    font-size: 0.85rem;
    padding: 8px 20px;
    border-radius: 50px;
    border: none;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    box-shadow: 0 3px 12px rgba(255, 107, 53, 0.35);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    animation: subtlePulse 2.5s ease-in-out infinite;
}

.btn-add-property:hover {
    background: linear-gradient(135deg, #e85d2c, #e8851a);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.5);
    text-decoration: none;
}

.btn-add-property:active {
    transform: translateY(0);
    box-shadow: 0 2px 8px rgba(255, 107, 53, 0.3);
}

.btn-add-property i {
    font-size: 0.9rem;
}

@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 3px 12px rgba(255, 107, 53, 0.35); }
    50% { box-shadow: 0 3px 18px rgba(255, 107, 53, 0.55); }
}

@media (max-width: 991px) {
    .btn-add-property {
        margin: 8px 0;
        width: 100%;
        justify-content: center;
        padding: 10px 20px;
    }
}
