:root {
    --primary-color: #264638;
    --secondary-color: #af954a;
    --dark-color: #282f3b;
    --light-gray: #f8f9fa;
    --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --hover-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    --success-color: #28a745;
    --warning-color: #ffc107;
    --danger-color: #dc3545;
    --info-color: #17a2b8;
}

body {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Navigation Styles */
.navbar {
    background: var(--primary-color) !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1030;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.5rem;
}

.navbar-text {
    font-weight: 500;
}

.nav-link {
    transition: all 0.3s ease;
    border-radius: 8px;
    margin: 0 2px;
}

.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
}

.nav-link.active {
    background-color: var(--secondary-color) !important;
    color: white !important;
}

.dropdown-menu {
    border: none;
    box-shadow: var(--card-shadow);
    border-radius: 10px;
    overflow: hidden;
}

.dropdown-item {
    transition: all 0.3s ease;
    padding: 0.75rem 1.5rem;
}

.dropdown-item:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

.user-avatar-sm {
    width: 32px;
    height: 32px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.875rem;
    color: white;
    margin-right: 0.5rem;
}

/* Dashboard Header */
.dashboard-header {
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    overflow: hidden;
}

.welcome-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: white;
    padding: 2rem;
}

.user-avatar {
    width: 80px;
    height: 80px;
    background: var(--secondary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    margin-right: 1.5rem;
}

/* Section Headers */
.section-header {
    background: var(--light-gray);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #dee2e6;
}

/* Card Styles */
.card-custom {
    border: none;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    transition: all 0.3s ease;
    overflow: hidden;
}

.card-custom:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

/* Action Cards */
.action-card {
    background: white;
    border: 2px solid #f8f9fa;
    border-radius: 12px;
    transition: all 0.3s ease;
    height: 100%;
    overflow: hidden;
}

.action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
    border-color: var(--secondary-color);
}

.action-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    transition: all 0.3s ease;
}

.action-card:hover .action-icon {
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    transform: scale(1.1);
}

/* Button Styles */
.btn-primary-custom {
    background: var(--primary-color);
    border: 2px solid var(--primary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background: var(--secondary-color);
    border-color: var(--secondary-color);
    color: white;
    transform: scale(1.05);
}

.btn-secondary-custom {
    background: var(--secondary-color);
    border: 2px solid var(--secondary-color);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary-custom:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

.btn-outline-custom {
    background: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    padding: 0.75rem 2rem;
    border-radius: 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-outline-custom:hover {
    background: var(--primary-color);
    color: white;
    transform: scale(1.05);
}

/* Search Section */
.search-section {
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.search-card {
    border: none;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.search-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--hover-shadow);
}

.search-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: white;
    padding: 1.5rem;
}

.search-form {
    padding: 2rem;
}

/* Form Styles */
.form-control {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(175, 149, 74, 0.25);
}

.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

/* Status Badges */
.status-verified {
    background: var(--success-color);
    color: white;
}

.status-pending {
    background: var(--warning-color);
    color: var(--dark-color);
}

.status-inactive {
    background: var(--danger-color);
    color: white;
}

.status-info {
    background: var(--info-color);
    color: white;
}

/* Footer */
.footer {
    background: var(--primary-color);
    color: white;
    margin-top: 4rem;
    padding: 3rem 0 2rem;
    position: relative;
    bottom: 0;
    width: 100%;
}

.footer h5 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: var(--secondary-color);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 2rem;
    padding-top: 2rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* Breadcrumbs -h*/
.breadcrumb-custom {
    background: white;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
}

.breadcrumb-custom .breadcrumb-item + .breadcrumb-item::before {
    color: var(--secondary-color);
}

.breadcrumb-custom .breadcrumb-item.active {
    color: var(--primary-color);
    font-weight: 600;
}

/* Statistics Cards */
.stat-card {
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--hover-shadow);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.stat-label {
    color: #6c757d;
    font-weight: 500;
    margin-top: 0.5rem;
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--secondary-color) 0%, var(--primary-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: white;
}

/* Animations */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.slide-in-left {
    animation: slideInLeft 0.6s ease-out;
}

@keyframes slideInLeft {
    from { 
        opacity: 0; 
        transform: translateX(-30px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from { 
        opacity: 0; 
        transform: translateX(30px); 
    }
    to { 
        opacity: 1; 
        transform: translateX(0); 
    }
}

/* Loading States */
.loading {
    opacity: 0.7;
    pointer-events: none;
}

.spinner-border-sm {
    width: 1rem;
    height: 1rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar-nav {
        text-align: center;
    }

    .welcome-banner {
        padding: 1.5rem;
        text-align: center;
    }

    .user-avatar {
        margin: 0 auto 1rem;
    }

    .search-form {
        padding: 1.5rem;
    }

    .action-card {
        margin-bottom: 1rem;
    }

    .stat-card {
        margin-bottom: 1rem;
    }

    .footer {
        text-align: center;
    }

    .footer .col-lg-2,
    .footer .col-lg-4 {
        margin-bottom: 2rem;
    }
}

@media (max-width: 576px) {
    .navbar-brand {
        font-size: 1.2rem;
    }

    .user-avatar {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    .action-icon {
        width: 60px;
        height: 60px;
    }

    .stat-number {
        font-size: 2rem;
    }

    .btn-primary-custom,
    .btn-secondary-custom,
    .btn-outline-custom {
        padding: 0.5rem 1.5rem;
        font-size: 0.9rem;
    }
}

/* Utility Classes */
.text-primary-custom {
    color: var(--primary-color) !important;
}

.text-secondary-custom {
    color: var(--secondary-color) !important;
}

.bg-primary-custom {
    background-color: var(--primary-color) !important;
}

.bg-secondary-custom {
    background-color: var(--secondary-color) !important;
}

.border-primary-custom {
    border-color: var(--primary-color) !important;
}

.border-secondary-custom {
    border-color: var(--secondary-color) !important;
}


/* Add Property - Additional Styles */

/* Page Header */
.page-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--dark-color) 100%);
    color: white;
    border-radius: 15px;
    margin-bottom: 2rem;
    overflow: hidden;
}

.header-content {
    padding: 2rem;
}

/* Form Sections */
.form-section {
    background: white;
    border-radius: 15px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.form-section:hover {
    transform: translateY(-2px);
    box-shadow: var(--hover-shadow);
}

.section-header {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #dee2e6;
}

.section-header h4,
.section-header h5 {
    color: var(--primary-color);
    margin: 0;
}

.section-body {
    padding: 2rem;
}

/* Form Controls Enhanced */
.form-control,
.form-select {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    font-size: 0.95rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 0.2rem rgba(175, 149, 74, 0.25);
    transform: translateY(-1px);
}

.form-control.is-invalid,
.form-select.is-invalid {
    border-color: var(--danger-color);
    box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

.form-control.is-valid,
.form-select.is-valid {
    border-color: var(--success-color);
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

/* Required Field Indicator */
.form-label.required::after {
    content: " *";
    color: var(--danger-color);
    font-weight: bold;
}

/* Input Groups */
.input-group-text {
    background: var(--light-gray);
    border: 2px solid #e9ecef;
    border-right: none;
    color: var(--primary-color);
    font-weight: 600;
}

.input-group .form-control {
    border-left: none;
}

.input-group .form-control:focus {
    border-left: 2px solid var(--secondary-color);
}

/* Form Switch Enhanced */
.form-check-input {
    width: 3rem;
    height: 1.5rem;
    background-color: #dee2e6;
    border: none;
    transition: all 0.3s ease;
}

.form-check-input:checked {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-check-label {
    margin-left: 0.5rem;
    cursor: pointer;
}

/* Map Container */
#map {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

#map:hover {
    border-color: var(--secondary-color);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

/* Leaflet Map Customizations */
.leaflet-popup-content-wrapper {
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.leaflet-popup-content {
    margin: 1rem;
    font-family: inherit;
}

.leaflet-control-zoom a {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.leaflet-control-zoom a:hover {
    background-color: var(--secondary-color) !important;
    border-color: var(--secondary-color) !important;
}

/* Help Section */
.help-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border: 2px solid #e9ecef;
}

.help-section .section-header {
    background: linear-gradient(135deg, var(--info-color) 0%, #138496 100%);
    color: white;
}

.help-section ul li {
    padding: 0.5rem 0;
    border-bottom: 1px solid #f8f9fa;
}

.help-section ul li:last-child {
    border-bottom: none;
}

/* Alert Enhancements */
.alert {
    border: none;
    border-radius: 10px;
    box-shadow: var(--card-shadow);
    margin-bottom: 2rem;
}

.alert-danger {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    color: #721c24;
}

.alert-success {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    color: #155724;
}

/* Button Enhancements */
.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
}

/* Loading States */
.btn.loading {
    position: relative;
    color: transparent !important;
}

.btn.loading::after {
    content: "";
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid #ffffff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Validation Feedback */
.invalid-feedback {
    display: block;
    font-size: 0.875rem;
    color: var(--danger-color);
    margin-top: 0.25rem;
}

.valid-feedback {
    display: block;
    font-size: 0.875rem;
    color: var(--success-color);
    margin-top: 0.25rem;
}

/* Form Text */
.form-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Textarea */
textarea.form-control {
    resize: vertical;
    min-height: 120px;
}

textarea.form-control:focus {
    min-height: 150px;
}

/* Select Enhancements */
.form-select {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m1 6 7 7 7-7'/%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 16px 12px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .section-body {
        padding: 1.5rem;
    }
    
    .header-content {
        padding: 1.5rem;
        text-align: center;
    }
    
    .form-section {
        margin-bottom: 1.5rem;
    }
    
    #map {
        height: 250px !important;
    }
    
    .btn-lg {
        padding: 0.875rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .section-header {
        padding: 1rem 1.5rem;
    }
    
    .section-body {
        padding: 1rem;
    }
    
    .help-section ul li {
        font-size: 0.9rem;
    }
    
    #map {
        height: 200px !important;
    }
}

/* Animation Classes */
.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Custom Checkbox/Radio Styles */
.form-check-input[type="checkbox"] {
    border-radius: 4px;
}

.form-check-input:checked[type="checkbox"] {
    background-color: var(--success-color);
    border-color: var(--success-color);
}

/* Progress Indicator (if needed for multi-step) */
.progress-indicator {
    display: flex;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.progress-step {
    flex: 1;
    text-align: center;
    position: relative;
    padding: 1rem 0;
}

.progress-step::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    width: 100%;
    height: 2px;
    background: #dee2e6;
    z-index: -1;
}

.progress-step:last-child::after {
    display: none;
}

.progress-step.active::after {
    background: var(--secondary-color);
}

.progress-step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #dee2e6;
    color: #6c757d;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 0.5rem;
    font-weight: bold;
    transition: all 0.3s ease;
}

.progress-step.active .progress-step-circle {
    background: var(--secondary-color);
    color: white;
}

.progress-step.completed .progress-step-circle {
    background: var(--success-color);
    color: white;
}

/* Utility Classes */
.text-required {
    color: var(--danger-color);
}

.border-dashed {
    border-style: dashed !important;
}

.cursor-pointer {
    cursor: pointer;
}

.user-select-none {
    user-select: none;
}


    /* Image Upload Styles */
.upload-container {
    position: relative;
    border: 2px dashed #dee2e6;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

.upload-container:hover {
    border-color: #007bff;
    background: #f0f8ff;
}

.upload-container.drag-over {
    border-color: #28a745;
    background: #f0fff0;
    transform: scale(1.02);
}

.upload-container input[type="file"] {
    border: none;
    background: transparent;
    padding: 10px;
}

/* Image Preview Styles */
.image-preview-container {
    margin-top: 20px;
}

.image-preview-item {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.image-preview-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
}

.image-preview-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    background: #f8f9fa;
}

.image-preview {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: all 0.3s ease;
}

.image-preview-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.image-preview-wrapper:hover .image-preview-overlay {
    opacity: 1;
}

.image-preview-wrapper:hover .image-preview {
    transform: scale(1.1);
}

.remove-image {
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.remove-image:hover {
    transform: scale(1.1);
}

.image-info {
    margin-top: 10px;
    text-align: center;
}

.image-info small {
    display: block;
    word-break: break-all;
}

/* Upload Progress */
.upload-progress {
    background: #fff;
    border-radius: 10px;
    padding: 15px;
    border: 1px solid #dee2e6;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background: #e9ecef;
}

.progress-bar {
    background: linear-gradient(45deg, #007bff, #0056b3);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .image-preview {
        height: 150px;
    }
    
    .image-preview-item {
        padding: 10px;
    }
    
    .upload-container {
        padding: 15px;
    }
}

/* Animation for new image previews */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.image-preview-item {
    animation: fadeInUp 0.5s ease;
}

/* Loading state */
.image-preview-item.loading {
    opacity: 0.7;
}

.image-preview-item.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}


/* Minimal CSS for tenant review form */
.rating-stars {
    display: flex;
    gap: 5px;
    font-size: 2rem;
    margin: 10px 0;
}

.rating-stars .far {
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
}

.rating-stars .far:hover,
.rating-stars .far.active {
    color: #ffc107;
    transform: scale(1.1);
}

.rating-stars .fas {
    color: #ffc107;
}

/* Keep the form centered and narrower */
.form-section {
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .form-section {
        margin-bottom: 1rem;
    }
}