* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --primary-blue: #3b82f6;
  --secondary-blue: #1e40af;
  --light-blue: #ebf8ff;
  --dark-blue: #1e3a8a;
  --gradient: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #1e40af 100%);
  --text-dark: #1f2937;
  --text-light: #6b7280;
  --white: #ffffff;
  --light-gray: #f9fafb;
  --border: #e5e7eb;
}

body {
  font-family: "Inter", sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 80px;
  width: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  text-decoration: none;
  color: var(--text-dark);
  font-weight: 500;
  transition: color 0.3s;
}

.nav-link:hover {
  color: var(--primary-blue);
}

.admin-btn {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: transform 0.2s;
  text-decoration: none;
}

.admin-btn:hover {
  transform: translateY(-2px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--text-dark);
  transition: 0.3s;
  transform-origin: center;
}

.nav-toggle.open span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Hero Section */
.hero {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.hero-slider {
  position: relative;
  height: 100%;
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}

.slide.active {
  opacity: 1;
}

.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: slideZoom 8s ease-in-out infinite alternate;
}

@keyframes slideZoom {
  0% {
    transform: scale(1);
  }
  100% {
    transform: scale(1.05);
  }
}

.slide-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  z-index: 2;
  background: rgba(0, 0, 0, 0.3);
  padding: 2rem;
  border-radius: 15px;
  backdrop-filter: blur(10px);
}

.slide-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slide-content p {
  font-size: 1.25rem;
  margin-bottom: 2rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.real-estate-text {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-text {
  position: absolute;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
  font-size: 1.2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  animation: floatText 6s ease-in-out infinite;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 25px;
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

@keyframes floatText {
  0%,
  100% {
    transform: translateY(0px) translateX(0px);
    opacity: 0.7;
  }
  25% {
    transform: translateY(-20px) translateX(10px);
    opacity: 1;
  }
  50% {
    transform: translateY(-10px) translateX(-5px);
    opacity: 0.8;
  }
  75% {
    transform: translateY(-30px) translateX(15px);
    opacity: 1;
  }
}

/* Properties Section */
.properties {
  padding: 5rem 0;
  background: var(--light-gray);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.property-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 3rem;
}

.property-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.property-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.property-images {
  position: relative;
  height: 250px;
  overflow: hidden;
}

.property-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  opacity: 0;
  transition: opacity 0.5s;
}

.property-image.active {
  opacity: 1;
}

.image-controls {
  position: absolute;
  top: 50%;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 1rem;
  transform: translateY(-50%);
}

.image-btn {
  background: rgba(0, 0, 0, 0.5);
  border: none;
  color: white;
  padding: 0.5rem;
  border-radius: 50%;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
}

.property-card:hover .image-btn {
  opacity: 1;
}

.property-info {
  padding: 1.5rem;
}

.property-price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.property-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.property-location {
  color: var(--text-light);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.property-features {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.feature {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.property-manager {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.manager-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.manager-info {
  font-size: 0.9rem;
}

.manager-name {
  font-weight: 500;
}

.manager-title {
  color: var(--text-light);
}

.load-more {
  text-align: center;
}

.load-more-btn {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: transform 0.3s;
}

.load-more-btn:hover {
  transform: translateY(-2px);
}

/* About Section */
.about {
  padding: 5rem 0;
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
}

.stats {
  display: flex;
  gap: 2rem;
}

.stat {
  text-align: center;
}

.stat h3 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary-blue);
  margin-bottom: 0.5rem;
}

.about-image img {
  width: 100%;
  border-radius: 12px;
}

/* Contact Section */
.contact {
  padding: 5rem 0;
  background: var(--light-gray);
  text-align: center;
}

.contact-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
}

.contact-info h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-top: 1rem;
  margin-bottom: 2rem;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.contact-item i {
  color: var(--primary-blue);
  font-size: 1.2rem;
  text-align: center;
}

/* Enhanced contact form styling */
.contact-form {
  background: white;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 600;
  color: var(--text-dark);
  font-size: 0.95rem;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 1.2rem;
  border: 2px solid #e1e5e9;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  transition: all 0.3s ease;
  background: #fafbfc;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
  background: white;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  transform: translateY(-1px);
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
  color: #9ca3af;
}

.submit-btn {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 1.2rem 2.5rem;
  border-radius: 12px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  width: 100%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  position: relative;
  overflow: hidden;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.submit-btn:active {
  transform: translateY(0);
}

.submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.form-status {
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 8px;
  text-align: center;
  font-weight: 500;
  display: none;
}

.form-status.success {
  background: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
  display: block;
}

.form-status.error {
  background: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
  display: block;
}

.form-status.loading {
  background: #d1ecf1;
  color: #0c5460;
  border: 1px solid #bee5eb;
  display: block;
}

/* Loading animation for submit button */
.submit-btn.loading::after {
  content: "";
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Mobile responsiveness for contact form */
@media (max-width: 768px) {
  .contact-content {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-form {
    padding: 2rem;
  }

  .contact-info h2 {
    font-size: 2rem;
  }
}

/* Modal Styles */
.modal {
  display: none;
  position: fixed;
  z-index: 2000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.modal-content {
  background-color: white;
  margin: 5% auto;
  padding: 0;
  border-radius: 12px;
  width: 90%;
  max-width: 800px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.admin-modal {
  max-width: 1200px;
  max-height: 95vh;
}

.close {
  position: absolute;
  right: 1rem;
  top: 1rem;
  color: #aaa;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  z-index: 10;
}

.close:hover {
  color: black;
}

.modal-body {
  padding: 2rem;
}

.modal-body .fas {
  color: var(--primary-blue);
  margin-right: 0.5rem;
  width: 16px;
  text-align: center;
}

.modal-body .manager-info .fas {
  color: var(--secondary-blue);
  transition: color 0.3s ease;
}

.modal-body .manager-info .fas:hover {
  color: var(--dark-blue);
}

/* Admin Panel Styles */
.admin-header {
  background: var(--gradient);
  color: white;
  padding: 1.5rem 2rem;
  border-radius: 12px 12px 0 0;
  margin: 0;
}

.admin-body {
  padding: 0;
}

.admin-tabs {
  display: flex;
  background: var(--light-gray);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
  gap: 0;
  margin: 0;
}

.tab-btn {
  background: none;
  border: none;
  padding: 1rem 1.5rem;
  cursor: pointer;
  font-weight: 500;
  color: var(--text-light);
  border-bottom: 3px solid transparent;
  transition: all 0.3s;
  white-space: nowrap;
}

.tab-btn.active {
  color: var(--primary-blue);
  border-bottom-color: var(--primary-blue);
  background: white;
}

.tab-btn:hover:not(.active) {
  color: var(--text-dark);
  background: rgba(255, 255, 255, 0.5);
}

.tab-content {
  display: none;
  padding: 2rem;
  max-height: 60vh;
  overflow-y: auto;
}

.tab-content.active {
  display: block;
}

/* Dashboard Styles */
.dashboard-overview h3 {
  margin-bottom: 2rem;
  color: var(--text-dark);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.stat-info h4 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.stat-info p {
  color: var(--text-light);
  font-size: 0.9rem;
}

.dashboard-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.chart-container,
.recent-activity {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.chart-container h4,
.recent-activity h4 {
  margin-bottom: 1rem;
  color: var(--text-dark);
}

.property-types-chart {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.type-bar {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.type-label {
  min-width: 80px;
  font-size: 0.9rem;
  color: var(--text-dark);
}

.type-progress {
  flex: 1;
  height: 8px;
  background: var(--light-gray);
  border-radius: 4px;
  overflow: hidden;
}

.type-fill {
  height: 100%;
  background: var(--gradient);
  transition: width 0.3s;
}

.type-count {
  min-width: 30px;
  text-align: right;
  font-weight: 600;
  color: var(--primary-blue);
}

.activity-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.activity-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: 8px;
}

.activity-item i {
  color: var(--primary-blue);
  font-size: 1.2rem;
}

.activity-item span {
  flex: 1;
  color: var(--text-dark);
}

.activity-item small {
  color: var(--text-light);
  font-size: 0.8rem;
}

/* Properties Management Styles */
.properties-management h3 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.properties-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.properties-filters input,
.properties-filters select {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  min-width: 200px;
}

.properties-table-container {
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.properties-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
}

.properties-table th {
  background: var(--light-gray);
  padding: 1rem;
  text-align: left;
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border);
}

.properties-table td {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.property-cell {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.property-thumb {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
}

.property-info {
  flex: 1;
}

.property-name {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 0.25rem;
}

.property-details {
  color: var(--text-light);
  font-size: 0.9rem;
}

.price-cell {
  font-weight: 600;
  color: var(--primary-blue);
}

.status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: capitalize;
}

.status-available {
  background: #dcfce7;
  color: #166534;
}

.status-rented {
  background: #fef3c7;
  color: #92400e;
}

.status-maintenance {
  background: #fee2e2;
  color: #991b1b;
}

.action-buttons {
  display: flex;
  gap: 0.5rem;
}

.btn-edit,
.btn-view,
.btn-delete {
  padding: 0.5rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.3s;
}

.btn-edit {
  background: var(--primary-blue);
  color: white;
}

.btn-view {
  background: var(--light-blue);
  color: var(--primary-blue);
}

.btn-delete {
  background: #fee2e2;
  color: #991b1b;
}

.btn-edit:hover,
.btn-view:hover,
.btn-delete:hover {
  transform: translateY(-2px);
}

/* Form Styles */
.add-property-form,
.edit-property-form {
  max-width: 800px;
  margin: 0 auto;
}

.add-property-form h3,
.edit-property-form h2 {
  margin-bottom: 2rem;
  color: var(--text-dark);
  text-align: center;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-group label {
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: var(--text-dark);
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-blue);
}

.form-group small {
  margin-top: 0.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.current-images {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.image-preview {
  position: relative;
  width: 100px;
  height: 100px;
}

.image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.remove-image {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #dc2626;
  color: white;
  border: none;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.form-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-top: 2rem;
}

.btn-primary,
.btn-secondary,
.btn-save,
.btn-cancel {
  padding: 1rem 2rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-primary,
.btn-save {
  background: var(--gradient);
  color: white;
}

.btn-secondary,
.btn-cancel {
  background: var(--light-gray);
  color: var(--text-dark);
}

.btn-primary:hover,
.btn-save:hover {
  transform: translateY(-2px);
}

.btn-secondary:hover,
.btn-cancel:hover {
  background: var(--border);
}

/* Inquiries Styles */
.inquiries-management h3 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.inquiries-filters {
  margin-bottom: 2rem;
}

.inquiries-filters select {
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: inherit;
}

.inquiries-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.inquiry-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.inquiry-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.inquiry-header h4 {
  color: var(--text-dark);
}

.inquiry-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: capitalize;
}

.status-new {
  background: #dbeafe;
  color: #1e40af;
}

.status-responded {
  background: #dcfce7;
  color: #166534;
}

.status-closed {
  background: #f3f4f6;
  color: #6b7280;
}

.inquiry-details {
  margin-bottom: 1rem;
}

.inquiry-details p {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.inquiry-message {
  background: var(--light-gray);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.inquiry-actions {
  display: flex;
  gap: 1rem;
}

.btn-respond,
.btn-resolve {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-respond {
  background: var(--primary-blue);
  color: white;
}

.btn-resolve {
  background: #dcfce7;
  color: #166534;
}

/* Viewings Styles */
.viewings-management h3 {
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}

.viewings-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.viewing-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
}

.viewing-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.viewing-status {
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  text-transform: capitalize;
}

.status-pending {
  background: #fef3c7;
  color: #92400e;
}

.status-approved {
  background: #dcfce7;
  color: #166534;
}

.status-cancelled {
  background: #fee2e2;
  color: #991b1b;
}

.viewing-details {
  margin-bottom: 1rem;
}

.viewing-details p {
  margin-bottom: 0.5rem;
  color: var(--text-light);
}

.viewing-message {
  background: var(--light-gray);
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
}

.viewing-actions {
  display: flex;
  gap: 1rem;
}

.btn-approve,
.btn-reschedule,
.btn-cancel {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: all 0.3s;
}

.btn-approve {
  background: #dcfce7;
  color: #166534;
}

.btn-reschedule {
  background: var(--primary-blue);
  color: white;
}

.btn-cancel {
  background: #fee2e2;
  color: #991b1b;
}

/* Manager Management Styles */
.admin-managers {
  max-width: 100%;
}

.managers-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.managers-header h3 {
  margin: 0;
  color: var(--text-dark);
}

.btn-add-manager {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.3s;
}

.btn-add-manager:hover {
  transform: translateY(-2px);
}

.managers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
  gap: 1.5rem;
}

.manager-admin-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
}

.manager-admin-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.manager-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
  background: var(--light-gray);
}

.manager-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid white;
}

.manager-info h4 {
  margin-bottom: 0.25rem;
  color: var(--text-dark);
  font-size: 1.2rem;
}

.manager-title {
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.manager-experience {
  color: var(--text-light);
  font-size: 0.9rem;
}

.manager-card-body {
  padding: 1.5rem;
}

.manager-stats {
  display: flex;
  justify-content: space-around;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: 8px;
}

.manager-stats .stat {
  text-align: center;
}

.manager-stats .stat-number {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.manager-stats .stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
}

.manager-contact {
  margin-bottom: 1.5rem;
}

.manager-contact p {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-light);
  font-size: 0.9rem;
}

.manager-contact i {
  color: var(--primary-blue);
  width: 16px;
}

.manager-specialties {
  margin-bottom: 1rem;
}

.manager-specialties strong {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-dark);
}

.specialties-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.specialty-tag {
  background: var(--light-blue);
  color: var(--primary-blue);
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 500;
}

.manager-card-actions {
  display: flex;
  gap: 0.5rem;
  padding: 1rem 1.5rem;
  background: var(--light-gray);
  border-top: 1px solid var(--border);
}

.manager-card-actions button {
  flex: 1;
  padding: 0.75rem;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: all 0.3s;
}

.manager-card-actions .btn-view {
  background: var(--primary-blue);
  color: white;
}

.manager-card-actions .btn-edit {
  background: #f59e0b;
  color: white;
}

.manager-card-actions .btn-delete {
  background: #dc2626;
  color: white;
}

.manager-card-actions button:hover {
  transform: translateY(-1px);
}

/* Footer */
.footer {
  background: var(--text-dark);
  color: white;
  padding: 3rem 0 1rem;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-bottom: 2rem;
}

.footer-logo {
  height: 100px;
  margin-bottom: 1rem;
}

.footer-section h3 {
  margin-bottom: 1rem;
  color: var(--primary-blue);
}

.footer-section a {
  display: block;
  color: #ccc;
  text-decoration: none;
  margin-bottom: 0.5rem;
  transition: color 0.3s;
}

.footer-section a:hover {
  color: var(--primary-blue);
}

.footer-bottom {
  text-align: center;
  padding-top: 2rem;
  border-top: 1px solid #444;
  color: #ccc;
}

/* Live Chat Widget Styles */
.chat-widget {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 1000;
  font-family: "Inter", sans-serif;
}

.chat-toggle {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  transition: all 0.3s ease;
  position: relative;
  animation: pulse 2s infinite;
}

.chat-toggle:hover {
  transform: scale(1.1);
  box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
}

.chat-toggle i {
  color: white;
  font-size: 1.5rem;
}

.chat-notification {
  position: absolute;
  top: -5px;
  right: -5px;
  background: #ef4444;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  animation: bounce 1s infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  }
  50% {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.6);
  }
  100% {
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
  }
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.chat-window {
  position: absolute;
  bottom: 80px;
  right: 0;
  width: 380px;
  height: 500px;
  background: white;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideUp 0.3s ease;
  border: 1px solid #e2e8f0;
}

.chat-window.active {
  display: flex;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chat-agent {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.agent-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.agent-info h4 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.agent-status {
  font-size: 0.75rem;
  opacity: 0.9;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.agent-status::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

.chat-close {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 50%;
  transition: background-color 0.3s ease;
}

.chat-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chat-messages {
  flex: 1;
  padding: 1rem;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: #f8fafc;
}

.message {
  display: flex;
  align-items: flex-end;
  gap: 0.75rem;
  max-width: 85%;
}

.agent-message {
  align-self: flex-start;
}

.user-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-content {
  background: white;
  padding: 1rem;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.user-message .message-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.message-content p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.4;
}

.message-time {
  display: block;
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 0.5rem;
}

.chat-input-container {
  border-top: 1px solid #e2e8f0;
  background: white;
}

.quick-actions {
  padding: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.quick-action {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  padding: 0.5rem 1rem;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #475569;
}

.quick-action:hover {
  background: #667eea;
  color: white;
  border-color: #667eea;
  transform: translateY(-1px);
}

.quick-action i {
  font-size: 0.7rem;
}

.chat-input {
  display: flex;
  align-items: center;
  padding: 1rem;
  gap: 0.75rem;
}

.chat-input input {
  flex: 1;
  border: 1px solid #e2e8f0;
  border-radius: 25px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.3s ease;
}

.chat-input input:focus {
  border-color: #667eea;
  box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.send-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
}

.send-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.send-btn i {
  font-size: 0.9rem;
}

/* Typing indicator */
.typing-indicator {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: white;
  border-radius: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-bottom: 1rem;
}

.typing-dots {
  display: flex;
  gap: 0.25rem;
}

.typing-dot {
  width: 8px;
  height: 8px;
  background: #cbd5e1;
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-dot:nth-child(1) {
  animation-delay: -0.32s;
}

.typing-dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes typing {
  0%,
  80%,
  100% {
    transform: scale(0.8);
    opacity: 0.5;
  }
  40% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
    flex-direction: row;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    width: 100vw;
    padding: 1rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    gap: 0;
    justify-content: space-around;
    align-items: center;
    z-index: 1000;
  }

  .nav-menu.active {
    display: flex;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-link {
    padding: 0.75rem 1rem;
    border-bottom: none;
    text-align: center;
    flex: 1;
    border-radius: 6px;
    transition: background-color 0.3s, color 0.3s;
  }

  .nav-link:hover {
    background-color: var(--primary-blue);
    color: white;
  }

  .admin-btn {
    flex: 1;
    text-align: center;
    margin: 0;
  }

  .slide-content h1 {
    font-size: 2.5rem;
  }

  .property-grid {
    grid-template-columns: 1fr;
  }

  .about-content,
  .contact-content {
    grid-template-columns: 1fr;
  }

  .stats {
    justify-content: center;
  }

  .modal-content {
    width: 95%;
    margin: 2% auto;
  }

  .admin-modal {
    width: 95%;
    max-width: none;
  }

  .admin-tabs {
    flex-wrap: wrap;
    padding: 0 1rem;
  }

  .tab-btn {
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .dashboard-charts {
    grid-template-columns: 1fr;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .properties-filters {
    flex-direction: column;
  }

  .properties-filters input,
  .properties-filters select {
    min-width: auto;
  }

  .action-buttons {
    flex-direction: column;
  }

  .form-actions {
    flex-direction: column;
  }

  .managers-grid {
    grid-template-columns: 1fr;
  }

  .managers-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .manager-card-header {
    flex-direction: column;
    text-align: center;
  }

  .manager-stats {
    flex-direction: column;
    gap: 1rem;
  }

  .manager-card-actions {
    flex-direction: column;
  }

  .slide-content {
    padding: 1.5rem;
  }

  .floating-text {
    font-size: 1rem;
  }

  .chat-widget {
    bottom: 1rem;
    right: 1rem;
  }

  .chat-window {
    width: 320px;
    height: 450px;
    bottom: 70px;
  }

  .quick-actions {
    flex-direction: column;
  }

  .quick-action {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .slide-content h1 {
    font-size: 2rem;
  }

  .slide-content p {
    font-size: 1rem;
  }

  .section-header h2 {
    font-size: 2rem;
  }

  .about-text h2,
  .contact-info h2 {
    font-size: 2rem;
  }

  .manager-admin-card {
    margin: 0 -1rem;
  }

  .chat-window {
    width: calc(100vw - 2rem);
    right: -1rem;
    left: 1rem;
    height: 400px;
  }
}

/* Call to Action Button */
.cta-btn {
  background: var(--gradient);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1rem;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(59, 130, 246, 0.3);
}

.cta-btn:active {
  transform: translateY(0);
}


/* Team Section */
.team {
  padding: 5rem 0;
  background: var(--white);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}

.team-member {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.team-member:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.team-member-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.5rem;
  border: 4px solid var(--primary-blue);
}

.team-member-name {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

.team-member-title {
  color: var(--primary-blue);
  font-weight: 600;
  margin-bottom: 1rem;
}

.team-member-bio {
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.team-member-contact {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.team-member-contact a {
  color: var(--text-light);
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  transition: color 0.3s;
}

.team-member-contact a:hover {
  color: var(--primary-blue);
}

.team-member-contact i {
  color: var(--primary-blue);
  width: 16px;
}

.team-member-stats {
  display: flex;
  justify-content: space-around;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: 8px;
  margin-bottom: 1rem;
}

.team-stat {
  text-align: center;
}

.team-stat-number {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-blue);
}

.team-stat-label {
  font-size: 0.8rem;
  color: var(--text-light);
}

.team-member-specialties {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

@media (max-width: 768px) {
  .team-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .team-member {
    padding: 1.5rem;
  }

  .team-member-stats {
    flex-direction: column;
    gap: 1rem;
  }
}

/* Property Manager Info in Property Cards */
.property-manager-info {
  margin-top: 1rem;
  padding: 1rem;
  background: var(--light-gray);
  border-radius: 8px;
  border-top: 1px solid var(--border);
}

.property-manager-info h4 {
  margin-bottom: 0.5rem;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.manager-mini-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.manager-mini-photo {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-blue);
}

.manager-mini-details h5 {
  margin-bottom: 0.25rem;
  color: var(--text-dark);
  font-size: 0.9rem;
}

.manager-mini-details p {
  color: var(--text-light);
  font-size: 0.8rem;
  margin: 0;
}

/* General styling for social media links */
.contact .contact-item .social a {
    text-decoration: none !important; /* override Bootstrap */
  color: var(--primary-blue) !important; /* override Bootstrap */
  font-size: 0.75rem; /* or 0.875rem for better readability */
  display: inline-flex;
  align-items: center;
  gap: 6px; /* space between icon and text */
  transition: color 0.3s ease;
}

/* Hover state - slightly darker */
.contact .contact-item .social a:hover {
    color: #004080 !important; /* Darker shade */
  text-decoration: none !important;
}


