/* Admin Dashboard Styles */

/* Prevent horizontal scroll */
html,
body {
  overflow-x: hidden;
  max-width: 100%;
}

.container-fluid {
  max-width: 100%;
  overflow-x: hidden;
}

.row {
  margin-left: 0;
  margin-right: 0;
}

/* Dashboard Layout */
.dashboard-body {
  padding: 20px;
  min-height: calc(100vh - 200px);
  background: #f8f9fa;
}

.dashboard-wraper {
  background: white;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Sidebar Navigation */
.property_dashboard_navbar {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 15px rgba(0, 0, 0, 0.1);
  height: fit-content;
  position: sticky;
  top: 20px;
}

.dash_user_menues ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dash_user_menues li {
  margin-bottom: 8px;
}

.dash_user_menues a {
  display: block;
  padding: 15px 20px;
  color: #555;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-weight: 500;
  border: 1px solid transparent;
}

.dash_user_menues a:hover {
  background-color: #f8f9fa;
  color: #007bff;
  border-color: #e9ecef;
  transform: translateX(5px);
}

.dash_user_menues li.active a {
  background-color: #007bff;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.dash_user_menues i {
  margin-right: 12px;
  width: 20px;
  font-size: 16px;
}

/* Form Blocks */
.frm_submit_block {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 10px;
  border: 1px solid #e9ecef;
  margin-bottom: 20px;
}

.frm_submit_block h4 {
  color: #495057;
  font-weight: 600;
  margin-bottom: 20px;
  border-bottom: 2px solid #e9ecef;
  padding-bottom: 10px;
}

/* Enhanced Form Controls */
.form-control {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  padding: 12px 15px;
  font-size: 14px;
  transition: all 0.3s ease;
  background-color: #fff;
}

.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
  background-color: #fff;
}

.form-control.is-valid {
  border-color: #28a745;
  box-shadow: 0 0 0 0.2rem rgba(40, 167, 69, 0.25);
}

.form-control.is-invalid {
  border-color: #dc3545;
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.25);
}

/* Enhanced Select Dropdowns */
.custom-select,
select.form-control {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
  background-position: right 0.75rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.custom-select:focus,
select.form-control:focus {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23007bff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
}

/* Enhanced Checkbox Lists */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 15px;
  margin-top: 15px;
}

.feature-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  background: #ffffff;
  border-radius: 8px;
  border: 1px solid #e9ecef;
  transition: all 0.3s ease;
  cursor: pointer;
}

.feature-item:hover {
  background: #f8f9fa;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #007bff;
}

.checkbox-custom {
  display: none;
}

.checkbox-custom-label {
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 500;
  color: #495057;
  margin: 0;
  width: 100%;
  transition: color 0.3s ease;
}

.checkbox-custom-label:before {
  content: '';
  display: inline-block;
  width: 20px;
  height: 20px;
  border: 2px solid #dee2e6;
  border-radius: 4px;
  margin-right: 12px;
  background: white;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.checkbox-custom:checked+.checkbox-custom-label:before {
  background: #007bff;
  border-color: #007bff;
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e");
  background-size: 12px 12px;
  background-position: center;
  background-repeat: no-repeat;
}

.checkbox-custom:checked+.checkbox-custom-label {
  color: #007bff;
  font-weight: 600;
}

.checkbox-custom-label i {
  margin-right: 8px;
  width: 16px;
  text-align: center;
  color: #6c757d;
  transition: color 0.3s ease;
}

.checkbox-custom:checked+.checkbox-custom-label i {
  color: #007bff;
}

/* Enhanced Buttons */
.btn {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 10px 20px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  text-decoration: none;
}

.btn:disabled {
  transform: none;
  box-shadow: none;
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #0056b3 0%, #004085 100%);
  color: white;
}

.btn-success {
  background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
  color: white;
}

.btn-success:hover {
  background: linear-gradient(135deg, #1e7e34 0%, #155724 100%);
  color: white;
}

.btn-info {
  background: linear-gradient(135deg, #17a2b8 0%, #117a8b 100%);
  color: white;
}

.btn-info:hover {
  background: linear-gradient(135deg, #117a8b 0%, #0c5460 100%);
  color: white;
}

.btn-outline-primary {
  border: 2px solid #007bff;
  color: #007bff;
  background: transparent;
}

.btn-outline-primary:hover {
  background: #007bff;
  color: white;
}

.btn-outline-info {
  border: 2px solid #17a2b8;
  color: #17a2b8;
  background: transparent;
}

.btn-outline-info:hover {
  background: #17a2b8;
  color: white;
}

/* Enhanced Form Labels */
.form-group label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.form-group label i {
  color: #007bff;
  margin-right: 8px;
  width: 16px;
  text-align: center;
}

/* Enhanced Validation Messages */
.invalid-feedback {
  display: block;
  color: #dc3545;
  font-size: 12px;
  margin-top: 5px;
  font-weight: 500;
}

.valid-feedback {
  display: block;
  color: #28a745;
  font-size: 12px;
  margin-top: 5px;
  font-weight: 500;
}

/* Enhanced Alerts */
.alert {
  border-radius: 8px;
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  padding: 15px 20px;
  margin-bottom: 20px;
}

.alert-success {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  color: #155724;
  border-left: 4px solid #28a745;
}

.alert-warning {
  background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
  color: #856404;
  border-left: 4px solid #ffc107;
}

.alert-info {
  background: linear-gradient(135deg, #d1ecf1 0%, #bee5eb 100%);
  color: #0c5460;
  border-left: 4px solid #17a2b8;
}

.alert-danger {
  background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
  color: #721c24;
  border-left: 4px solid #dc3545;
}

/* Enhanced Breadcrumbs */
.breadcrumb {
  background: transparent;
  padding: 0;
  margin: 0;
  border-radius: 0;
}

.breadcrumb-item+.breadcrumb-item::before {
  content: ">";
  color: #6c757d;
  font-weight: 600;
}

.breadcrumb-item a {
  color: #007bff;
  text-decoration: none;
  font-weight: 500;
}

.breadcrumb-item a:hover {
  color: #0056b3;
  text-decoration: underline;
}

.breadcrumb-item.active {
  color: #6c757d;
  font-weight: 600;
}

/* Enhanced Section Headers */
.section-header {
  margin-bottom: 25px;
}

.section-title {
  color: #2c3e50;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  font-size: 1.25rem;
}

.section-title i {
  margin-right: 10px;
  color: #007bff;
}

.section-description {
  color: #6c757d;
  margin-bottom: 0;
  font-size: 14px;
  line-height: 1.5;
}

/* Enhanced Textarea */
textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

textarea.form-control.h-120 {
  height: 120px;
}

/* Enhanced File Input */
.file-input {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.file-input input[type="file"] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
  .dashboard-body {
    padding: 15px;
  }

  .frm_submit_block {
    padding: 20px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .feature-item {
    padding: 10px 12px;
  }

  .btn-group {
    flex-direction: column;
    width: 100%;
  }

  .btn-group .btn {
    margin-bottom: 10px;
    width: 100%;
  }

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

  .form-control {
    padding: 10px 12px;
  }
}

@media (max-width: 576px) {
  .dashboard-body {
    padding: 10px;
  }

  .frm_submit_block {
    padding: 15px;
  }

  .btn {
    padding: 8px 16px;
    font-size: 14px;
  }

  .checkbox-custom-label {
    font-size: 14px;
  }
}

/* Loading States */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

.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);
  }
}

/* Smooth Transitions */
* {
  transition: all 0.3s ease;
}

/* Focus States */
.form-control:focus,
.btn:focus,
.custom-select:focus {
  outline: none;
}

/* Accessibility */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Properties Grid Styles */
.properties-header {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 25px;
  border-radius: 12px;
  border: 1px solid #dee2e6;
}

.properties-header h2 {
  color: #2c3e50;
  font-weight: 700;
  margin: 0;
}

.properties-header p {
  color: #6c757d;
  margin: 0;
}

.filters-section {
  background: white;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.search-box {
  position: relative;
}

.search-icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  z-index: 10;
}

.search-box .form-control {
  padding-left: 45px;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  margin-top: 20px;
}

.property-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  border: 1px solid #e9ecef;
}

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

.property-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.property-card:hover .property-image img {
  transform: scale(1.05);
}

.property-badges {
  position: absolute;
  top: 15px;
  left: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.property-badges .badge {
  font-size: 10px;
  padding: 5px 8px;
  border-radius: 6px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.property-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: opacity 0.3s ease;
}

.property-card:hover .property-overlay {
  opacity: 1;
}

.overlay-actions {
  display: flex;
  gap: 10px;
}

.overlay-actions .btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.3s ease;
}

.overlay-actions .btn:hover {
  transform: scale(1.1);
}

.property-content {
  padding: 20px;
}

.property-title {
  margin-bottom: 10px;
}

.property-title a {
  color: #2c3e50;
  text-decoration: none;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  transition: color 0.3s ease;
}

.property-title a:hover {
  color: #007bff;
}

.property-location {
  color: #6c757d;
  font-size: 14px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}

.property-location i {
  color: #007bff;
  margin-right: 8px;
}

.property-description {
  color: #495057;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.property-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}

.meta-item {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #6c757d;
}

.meta-item i {
  width: 16px;
  margin-right: 8px;
  color: #007bff;
}

.property-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.property-actions .btn {
  flex: 1;
  min-width: 80px;
  font-size: 12px;
  padding: 8px 12px;
}

.no-properties {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
}

.no-properties i {
  color: #dee2e6;
  margin-bottom: 20px;
}

.no-properties h4 {
  color: #6c757d;
  margin-bottom: 10px;
}

.no-properties p {
  color: #adb5bd;
  margin-bottom: 25px;
}

/* Pagination Styles */
.pagination-section {
  background: white;
  padding: 20px;
  border-radius: 12px;
  border: 1px solid #e9ecef;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.pagination-info {
  color: #6c757d;
  font-size: 14px;
}

.pagination .page-link {
  border: none;
  color: #007bff;
  padding: 10px 15px;
  margin: 0 2px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.pagination .page-link:hover {
  background: #007bff;
  color: white;
  transform: translateY(-2px);
}

.pagination .page-item.active .page-link {
  background: #007bff;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.pagination .page-item.disabled .page-link {
  color: #6c757d;
  background: transparent;
  cursor: not-allowed;
}

/* Responsive Properties Grid */
@media (max-width: 1200px) {
  .properties-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .properties-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .property-card {
    margin-bottom: 15px;
  }

  .property-content {
    padding: 15px;
  }

  .property-actions {
    flex-direction: column;
  }

  .property-actions .btn {
    width: 100%;
  }

  .pagination-section {
    flex-direction: column;
    gap: 15px;
    text-align: center;
  }

  .pagination {
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .properties-header {
    padding: 20px;
  }

  .filters-section {
    padding: 15px;
  }

  .property-image {
    height: 180px;
  }

  .property-badges {
    top: 10px;
    left: 10px;
  }

  .property-badges .badge {
    font-size: 9px;
    padding: 4px 6px;
  }
}

/* Print Styles */
@media print {

  .btn,
  .upload-actions,
  .breadcrumb {
    display: none !important;
  }

  .dashboard-body {
    background: white !important;
  }

  .frm_submit_block {
    border: 1px solid #000 !important;
    box-shadow: none !important;
  }

  .property-overlay,
  .property-actions {
    display: none !important;
  }

  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
}