/* ===== LANDLORD.CSS - COMPLETE STYLES ===== */

:root {
    --primary: #4361ee;
    --primary-dark: #3a56d4;
    --secondary: #3f37c9;
    --accent: #4cc9f0;
    --success: #06d6a0;
    --warning: #ffd166;
    --danger: #ef476f;
    --dark: #1e1e2f;
    --gray: #64748b;
    --light-gray: #e2e8f0;
    --lighter: #f1f5f9;
    --light: #f8fafc;
    --white: #ffffff;
    
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.1);
    --shadow-lg: 0 20px 25px -5px rgba(0,0,0,0.1);
    
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-full: 9999px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: var(--light);
    color: var(--dark);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== NAVBAR ===== */
.landlord-nav, .dashboard-nav {
    background: white;
    box-shadow: var(--shadow-sm);
    padding: 16px 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    text-decoration: none;
}

.logo .badge {
    background: var(--primary);
    color: white;
    font-size: 12px;
    padding: 4px 8px;
    border-radius: var(--radius-full);
    font-weight: 600;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--dark);
    font-weight: 500;
}

.nav-links a.active {
    color: var(--primary);
    font-weight: 600;
}

.btn-nav {
    background: var(--primary);
    color: white !important;
    padding: 10px 20px;
    border-radius: var(--radius-full);
}

.nav-user {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px 16px;
    background: var(--lighter);
    border-radius: var(--radius-full);
}

.nav-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.user-name {
    font-weight: 600;
    font-size: 14px;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    font-size: 16px;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: white;
}

.btn-outline-light {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline-light:hover {
    background: white;
    color: var(--primary);
}

.btn-light {
    background: white;
    color: var(--primary);
}

.btn-light:hover {
    background: var(--lighter);
}

.btn-large {
    padding: 16px 40px;
    font-size: 18px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 14px;
}

.btn-block {
    width: 100%;
}

.btn-link {
    background: none;
    color: var(--gray);
}

.btn-link:hover {
    color: var(--primary);
}

.btn-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--light-gray);
    background: white;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-icon:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* ===== LANDLORD HERO ===== */
.landlord-hero {
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
}

.gradient-text {
    background: linear-gradient(45deg, #ffd166, #ffb347);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.95;
}

.hero-stats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.hero-stats .stat h3 {
    font-size: 28px;
    font-weight: 700;
}

.hero-stats .stat p {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 0;
}

.hero-cta {
    display: flex;
    gap: 16px;
}

.hero-image img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ===== SECTIONS ===== */
.section-header {
    text-align: center;
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 36px;
    margin-bottom: 8px;
}

.section-header p {
    color: var(--gray);
}

.how-it-works, .benefits, .pricing, .landlord-cta {
    padding: 60px 0;
}

.benefits {
    background: var(--lighter);
}

/* ===== STEPS GRID ===== */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.step-card {
    text-align: center;
    padding: 30px;
}

.step-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
    color: white;
    font-size: 32px;
}

.step-card h3 {
    margin-bottom: 12px;
}

.step-card p {
    color: var(--gray);
}

/* ===== BENEFITS GRID ===== */
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.benefit-card {
    background: white;
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.benefit-card i {
    font-size: 40px;
    color: var(--primary);
    margin-bottom: 20px;
}

.benefit-card h3 {
    margin-bottom: 12px;
}

.benefit-card p {
    color: var(--gray);
}

/* ===== PRICING ===== */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 40px;
}

.pricing-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    position: relative;
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    transform: scale(1.05);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.pricing-card h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.price {
    font-size: 48px;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 30px;
}

.price span {
    font-size: 16px;
    font-weight: 400;
    color: var(--gray);
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 30px;
}

.pricing-card li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    color: var(--gray);
}

.pricing-card li i {
    color: var(--success);
}

/* ===== CTA ===== */
.landlord-cta {
    background: linear-gradient(135deg, var(--dark), #2d2d44);
    color: white;
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 16px;
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 32px;
    opacity: 0.9;
}

/* ===== DASHBOARD LAYOUT ===== */
.dashboard-layout {
    background: var(--light);
    min-height: calc(100vh - 80px);
    padding: 40px 0;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
}

.dashboard-sidebar {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 24px;
    height: fit-content;
    position: sticky;
    top: 100px;
}

.sidebar-profile {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--light-gray);
}

.sidebar-profile img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 16px;
    border: 4px solid white;
    box-shadow: var(--shadow);
}

.owner-badge {
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 8px;
}

.owner-badge.verified {
    color: var(--success);
}

.owner-email {
    color: var(--gray);
    font-size: 13px;
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin: 24px 0;
}

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: var(--radius);
    color: var(--gray);
    text-decoration: none;
    transition: all 0.3s ease;
}

.sidebar-nav a i {
    width: 20px;
}

.sidebar-nav a .badge {
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: 20px;
    font-size: 11px;
    margin-left: auto;
}

.sidebar-nav a:hover {
    background: var(--lighter);
    color: var(--dark);
}

.sidebar-nav a.active {
    background: var(--primary);
    color: white;
}

.sidebar-nav a.active .badge {
    background: white;
    color: var(--primary);
}

.dashboard-main {
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 30px;
}

/* ===== WELCOME BANNER ===== */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: var(--radius);
    padding: 30px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.welcome-banner h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

/* ===== STATS GRID ===== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.stat-card {
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-icon.blue {
    background: rgba(67, 97, 238, 0.1);
    color: var(--primary);
}

.stat-icon.green {
    background: rgba(6, 214, 160, 0.1);
    color: var(--success);
}

.stat-icon.orange {
    background: rgba(255, 209, 102, 0.1);
    color: var(--warning);
}

.stat-icon.red {
    background: rgba(239, 71, 111, 0.1);
    color: var(--danger);
}

.stat-info h3 {
    font-size: 24px;
    margin-bottom: 4px;
}

.stat-info p {
    color: var(--gray);
    font-size: 13px;
}

/* ===== DASHBOARD SECTIONS ===== */
.dashboard-section {
    margin-bottom: 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2 {
    font-size: 20px;
    margin: 0;
}

.view-all {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ===== INQUIRIES ===== */
.inquiries-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.inquiry-card {
    display: flex;
    gap: 16px;
    padding: 20px;
    background: var(--lighter);
    border-radius: var(--radius);
}

.inquiry-card img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.inquiry-details {
    flex: 1;
}

.inquiry-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.inquiry-header h4 {
    font-size: 16px;
}

.property-name {
    color: var(--primary);
    font-weight: 600;
}

.time {
    color: var(--gray);
    font-size: 12px;
}

.inquiry-details p {
    color: var(--gray);
    margin-bottom: 12px;
}

.inquiry-actions {
    display: flex;
    gap: 12px;
}

/* ===== PROPERTIES GRID ===== */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.property-card {
    background: white;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    overflow: hidden;
}

.property-image {
    position: relative;
    height: 160px;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-status {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.property-status.active {
    background: rgba(6, 214, 160, 0.2);
    color: var(--success);
}

.property-status.draft {
    background: rgba(100, 116, 139, 0.2);
    color: var(--gray);
}

.property-status.rented {
    background: rgba(239, 71, 111, 0.2);
    color: var(--danger);
}

.property-details {
    padding: 16px;
}

.property-details h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.property-details p {
    color: var(--gray);
    font-size: 13px;
    margin-bottom: 12px;
}

.property-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.property-meta span {
    color: var(--gray);
    font-size: 13px;
}

.price {
    font-weight: 700;
    color: var(--primary);
}

.property-stats {
    display: flex;
    gap: 16px;
    color: var(--gray);
    font-size: 12px;
}

/* ===== PROPERTIES TABLE ===== */
.properties-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.property-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 0.5fr 1fr 1fr;
    align-items: center;
    padding: 16px;
    background: var(--lighter);
    border-radius: var(--radius);
}

.property-row.header {
    background: transparent;
    font-weight: 600;
    color: var(--gray);
}

.property-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.property-info img {
    width: 60px;
    height: 60px;
    border-radius: var(--radius);
    object-fit: cover;
}

.property-info h4 {
    font-size: 15px;
    margin-bottom: 4px;
}

.property-info small {
    color: var(--gray);
    font-size: 12px;
}

.status-badge {
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 12px;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(6, 214, 160, 0.2);
    color: var(--success);
}

.status-badge.draft {
    background: rgba(100, 116, 139, 0.2);
    color: var(--gray);
}

.status-badge.rented {
    background: rgba(239, 71, 111, 0.2);
    color: var(--danger);
}

.action-buttons {
    display: flex;
    gap: 8px;
}

/* ===== FORMS ===== */
.form-header {
    margin-bottom: 30px;
}

.form-header h1 {
    font-size: 28px;
    margin-bottom: 8px;
}

.form-header p {
    color: var(--gray);
}

.listing-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-section {
    background: var(--lighter);
    border-radius: var(--radius);
    padding: 24px;
}

.form-section h2 {
    font-size: 20px;
    margin-bottom: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
}

.required {
    color: var(--danger);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid var(--light-gray);
    border-radius: var(--radius);
    font-size: 16px;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--primary);
    outline: none;
}

.form-group textarea {
    resize: vertical;
}

.form-hint {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 16px;
}

/* ===== RADIO & CHECKBOX ===== */
.radio-group,
.checkbox-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.radio,
.checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.radio input,
.checkbox input {
    width: auto;
    margin-right: 4px;
}

/* ===== UPLOAD AREA ===== */
.upload-area {
    background: white;
    border: 2px dashed var(--light-gray);
    border-radius: var(--radius);
    padding: 40px;
    text-align: center;
}

.upload-area i {
    font-size: 48px;
    color: var(--primary);
    margin-bottom: 16px;
}

.upload-area h3 {
    margin-bottom: 8px;
}

.upload-area p {
    color: var(--gray);
    margin-bottom: 16px;
}

.upload-hint {
    font-size: 12px;
    margin-top: 16px;
}

/* ===== FORM ACTIONS ===== */
.form-actions {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 20px;
}

/* ===== MESSAGES ===== */
.messages-container {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 24px;
    background: var(--lighter);
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 600px;
}

.conversations-list {
    background: white;
    border-right: 1px solid var(--light-gray);
    overflow-y: auto;
    max-height: 600px;
}

.conversation {
    display: flex;
    gap: 12px;
    padding: 16px;
    cursor: pointer;
    border-bottom: 1px solid var(--lighter);
}

.conversation:hover {
    background: var(--lighter);
}

.conversation.active {
    background: rgba(67, 97, 238, 0.05);
    border-left: 4px solid var(--primary);
}

.conversation img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
}

.conversation-details {
    flex: 1;
}

.conversation-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.last-message {
    font-size: 13px;
    color: var(--gray);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.message-view {
    display: flex;
    flex-direction: column;
    height: 600px;
    background: white;
}

.message-header {
    padding: 20px;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.message-contact {
    display: flex;
    align-items: center;
    gap: 12px;
}

.property-tag {
    background: var(--lighter);
    padding: 8px 16px;
    border-radius: var(--radius-full);
    font-size: 13px;
}

.message-history {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.message {
    display: flex;
    max-width: 70%;
}

.message.received {
    align-self: flex-start;
}

.message.sent {
    align-self: flex-end;
}

.message-content {
    background: var(--lighter);
    padding: 12px 16px;
    border-radius: 18px;
}

.message.sent .message-content {
    background: var(--primary);
    color: white;
}

.message-time {
    font-size: 11px;
    color: var(--gray);
    margin-top: 4px;
    display: block;
}

.message-composer {
    display: flex;
    gap: 12px;
    padding: 20px;
    border-top: 1px solid var(--light-gray);
}

.message-composer input {
    flex: 1;
    padding: 12px;
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark);
    color: white;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col .logo {
    color: white;
    margin-bottom: 16px;
}

.footer-col p {
    color: var(--light-gray);
    line-height: 1.6;
}

.footer-col h4 {
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    color: var(--light-gray);
    text-decoration: none;
    margin-bottom: 12px;
}

.footer-col a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    color: var(--light-gray);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-sidebar {
        position: static;
    }
    
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-card.featured {
        transform: none;
    }
}

@media (max-width: 768px) {
    .mobile-menu-btn {
        display: block;
    }
    
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        padding: 20px;
        flex-direction: column;
        box-shadow: var(--shadow);
    }
    
    .nav-links.active {
        display: flex;
    }
    
    .hero-grid {
        grid-template-columns: 1fr;
    }
    
    .hero-image {
        display: none;
    }
    
    .steps-grid,
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid,
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .property-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .property-row.header {
        display: none;
    }
    
    .messages-container {
        grid-template-columns: 1fr;
    }
    
    .message-view {
        display: none;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
}