/* Rentals System CSS */

/* Rental Hero Section */
.rental-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
}

.rental-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.rental-hero .hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.rental-search-box {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    max-width: 900px;
    margin: 0 auto;
}

.rental-search-form .search-row {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    align-items: flex-end;
}

.rental-search-form .form-group {
    flex: 1;
    min-width: 120px;
}

.rental-search-form .form-group.flex-2 {
    flex: 2;
    min-width: 240px;
}

.rental-search-form .form-control {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.3s;
}

.rental-search-form .form-control:focus {
    outline: none;
    border-color: #667eea;
}

.rental-search-form .btn-search {
    padding: 0.75rem 2rem;
    font-size: 1rem;
    white-space: nowrap;
}

.search-note {
    margin-top: 1rem;
    color: #666;
    font-size: 0.9rem;
}

.search-note a {
    color: #667eea;
    text-decoration: none;
    font-weight: 500;
}

.search-note a:hover {
    text-decoration: underline;
}

/* Feature Cards */
.rental-features {
    padding: 60px 0;
    background: #f8f9fa;
}

.feature-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    font-size: 3rem;
    color: #667eea;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* How It Works */
.rental-how-it-works {
    padding: 60px 0;
}

.step-card {
    text-align: center;
    padding: 2rem 1rem;
}

.step-number {
    width: 60px;
    height: 60px;
    line-height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 50%;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: #333;
}

.step-card p {
    color: #666;
}

/* CTA Section */
.rental-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 0;
}

.rental-cta h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.rental-cta .cta-subtitle {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-buttons .btn-lg {
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
}

/* Subscription Status */
.subscription-status {
    background: #f8f9fa;
    border-left: 4px solid #007bff;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    border-radius: 4px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.subscription-status.status-success {
    background: #d4edda;
    border-color: #28a745;
}

.subscription-status.status-info {
    background: #d1ecf1;
    border-color: #17a2b8;
}

.subscription-status.status-warning {
    background: #fff3cd;
    border-color: #ffc107;
}

.subscription-status.status-error {
    background: #f8d7da;
    border-color: #dc3545;
}

.subscription-status p {
    margin: 0;
    flex: 1;
}

/* Search Again Bar */
.search-again-bar {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 2rem;
}

/* Results Header */
.rent-results-header {
    margin-bottom: 2rem;
}

.rent-results-header h1 {
    font-size: 2rem;
    color: #333;
    margin-bottom: 0.5rem;
}

.property-specs {
    font-size: 1.1rem;
    color: #666;
}

/* Stat Cards */
.stat-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    display: flex;
    align-items: center;
    gap: 1rem;
    height: 100%;
    transition: transform 0.3s;
}

.stat-card:hover {
    transform: translateY(-3px);
}

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

.stat-icon {
    font-size: 2.5rem;
    opacity: 0.8;
}

.stat-card.stat-primary .stat-icon {
    color: white;
}

.stat-card .stat-icon {
    color: #667eea;
}

.stat-content {
    flex: 1;
}

.stat-content h3 {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.stat-value {
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.stat-value-small {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

.stat-label {
    font-size: 0.85rem;
    opacity: 0.8;
}

/* Comps Table */
.comps-table {
    width: 100%;
    border-collapse: collapse;
}

.comps-table thead {
    background: #f8f9fa;
}

.comps-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #333;
    border-bottom: 2px solid #dee2e6;
}

.comps-table td {
    padding: 1rem;
    border-bottom: 1px solid #dee2e6;
    color: #666;
}

.comps-table tbody tr:hover {
    background: #f8f9fa;
}

.rent-amount {
    font-weight: 600;
    color: #667eea;
}

/* Upgrade CTA */
.upgrade-cta {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
}

.upgrade-cta h2 {
    color: white;
    margin-bottom: 1rem;
}

.upgrade-cta p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    opacity: 0.95;
}

/* Pricing Cards */
.pricing-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.pricing-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
}

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

.pricing-card.featured {
    border: 3px solid #667eea;
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
}

.pricing-tier {
    font-size: 1.5rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.pricing-price {
    font-size: 3rem;
    font-weight: 700;
    color: #667eea;
    margin-bottom: 0.5rem;
}

.pricing-price sup {
    font-size: 1.5rem;
    vertical-align: super;
}

.pricing-interval {
    color: #666;
    margin-bottom: 2rem;
}

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

.pricing-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    color: #666;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features li i {
    color: #28a745;
    margin-right: 0.5rem;
}

/* Alerts */
.alert {
    padding: 1rem 1.5rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

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

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

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

/* Responsive */
@media (max-width: 768px) {
    .rental-hero h1 {
        font-size: 2rem;
    }
    
    .rental-search-form .search-row {
        flex-direction: column;
    }
    
    .rental-search-form .form-group,
    .rental-search-form .form-group.flex-2 {
        width: 100%;
    }
    
    .stat-card {
        flex-direction: column;
        text-align: center;
    }
    
    .stat-value {
        font-size: 1.75rem;
    }
    
    .comps-table {
        font-size: 0.9rem;
    }
    
    .comps-table th,
    .comps-table td {
        padding: 0.5rem;
    }
    
    .pricing-cards {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
}

/* User Menu in Header */
.user-menu {
    display: flex !important;
    align-items: center;
    gap: 1rem;
    margin-left: auto;
}

.user-menu .nav-link {
    display: flex !important;
    align-items: center;
    gap: 0.5rem;
    color: #333 !important;
}

.user-menu .logout-link {
    background: #007bff;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    transition: background 0.3s;
    text-decoration: none !important;
}

.user-menu .logout-link:hover {
    background: #0056b3;
    text-decoration: none !important;
}

/* The styles below were causing mobile menu conflicts and have been removed. */
/* The main style.css now controls the header for consistency. */

/* Utilities */
.mb-4 {
    margin-bottom: 2rem;
}

.text-center {
    text-align: center;
}
/* ===== Mobile Header Fixes ===== */
@media (max-width: 768px) {
    .header {
        height: auto;
        padding: 1rem 0;
    }

    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        font-size: 1.5rem;
        color: #6c757d; /* --secondary-color */
        cursor: pointer;
    }

    .header .nav {
        position: fixed;
        top: 70px; /* Adjust based on your header height */
        left: 0;
        width: 100%;
        background-color: #fff;
        flex-direction: column;
        padding: 1rem 0;
        box-shadow: 0 10px 10px rgba(0, 0, 0, 0.1);
        transform: translateY(-120%);
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        z-index: 999;
    }

    .header .nav.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .header .nav-item {
        margin: 0;
    }

    .header .nav-link {
        padding: 0.75rem 2rem;
        color: #6c757d; /* --secondary-color */
    }
    
    .user-menu {
        flex-direction: column;
        align-items: flex-start !important;
        padding: 0 2rem;
    }
}

.table-responsive {
    overflow-x: auto;
}
