/* ================= PROPERTIES PAGES CSS ================= */

/* HERO */
.properties-hero {
  position: relative;
  height: 50vh;
  min-height: 400px;
  background: url("../assets/placeholders/hero-renta.jpg") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
}

.properties-hero-venta {
  background: url("../assets/placeholders/hero-venta.jpg") center/cover no-repeat;
}

.properties-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.5);
}

.properties-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.properties-hero-content h1 {
  font-size: 48px;
  font-weight: 800;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.properties-hero-content p {
  font-size: 18px;
  max-width: 600px;
  margin: 0 auto;
}

/* PROPERTIES SECTION */
.properties-section {
  padding: 80px 0;
  background: #f9f9f9;
}

.properties-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

/* PROPERTY CARD */
.property-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.property-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

.property-card-content {
  padding: 24px;
}

.property-card-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #000;
}

.property-card-location {
  font-size: 14px;
  color: #666;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.property-card-location::before {
  content: "📍";
}

.property-card-details {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.property-detail {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #444;
}

.property-detail-icon {
  width: 18px;
  height: 18px;
  opacity: 0.7;
}

.property-card-price {
  font-size: 24px;
  font-weight: 800;
  color: #f5b82e;
  margin-bottom: 16px;
}

.property-card-description {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.property-card-btn {
  display: inline-block;
  width: 100%;
  padding: 14px;
  background: #000;
  color: #fff;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  border-radius: 8px;
  transition: background 0.3s ease;
}

.property-card-btn:hover {
  background: #f5b82e;
  color: #000;
}

/* NO PROPERTIES MESSAGE */
.no-properties {
  text-align: center;
  font-size: 18px;
  color: #666;
  padding: 60px 20px;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .properties-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 768px) {
  .properties-hero {
    height: 40vh;
    min-height: 300px;
  }

  .properties-hero-content h1 {
    font-size: 32px;
  }

  .properties-hero-content p {
    font-size: 16px;
  }

  .properties-section {
    padding: 60px 0;
  }

  .properties-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .property-card-image {
    height: 200px;
  }
}

/* ================= ADMIN PAGE CSS ================= */
.admin-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 20px 60px;
}

.admin-header {
  text-align: center;
  margin-bottom: 40px;
}

.admin-header h1 {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
}

.admin-header p {
  font-size: 16px;
  color: #666;
}

/* ADMIN FORM */
.admin-form-container {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  margin-bottom: 40px;
}

.admin-form-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form-group.full-width {
  grid-column: span 2;
}

.form-group label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: #f5b82e;
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-actions {
  grid-column: span 2;
  display: flex;
  gap: 16px;
  justify-content: flex-end;
  margin-top: 10px;
}

.btn-primary {
  padding: 12px 32px;
  background: #f5b82e;
  color: #000;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: #000;
  color: #fff;
}

.btn-secondary {
  padding: 12px 32px;
  background: #eee;
  color: #333;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-secondary:hover {
  background: #ddd;
}

/* ADMIN PROPERTIES LIST */
.admin-properties-list {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.admin-properties-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.admin-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.admin-tab {
  padding: 10px 24px;
  background: #eee;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.admin-tab.active {
  background: #f5b82e;
  color: #000;
}

.admin-tab:hover:not(.active) {
  background: #ddd;
}

.properties-table {
  width: 100%;
  border-collapse: collapse;
}

.properties-table th,
.properties-table td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #eee;
}

.properties-table th {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #666;
  background: #f9f9f9;
}

.properties-table td {
  font-size: 14px;
}

.properties-table img {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

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

.btn-edit,
.btn-delete {
  padding: 8px 16px;
  border: none;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-edit {
  background: #e3f2fd;
  color: #1976d2;
}

.btn-edit:hover {
  background: #1976d2;
  color: #fff;
}

.btn-delete {
  background: #ffebee;
  color: #d32f2f;
}

.btn-delete:hover {
  background: #d32f2f;
  color: #fff;
}

.no-data {
  text-align: center;
  padding: 40px;
  color: #666;
}

/* TOAST NOTIFICATION */
.toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  padding: 16px 24px;
  background: #333;
  color: #fff;
  border-radius: 8px;
  font-size: 14px;
  z-index: 9999;
  animation: slideIn 0.3s ease;
}

.toast.success {
  background: #4caf50;
}

.toast.error {
  background: #d32f2f;
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* RESPONSIVE ADMIN */
@media (max-width: 768px) {
  .admin-form {
    grid-template-columns: 1fr;
  }

  .form-group.full-width {
    grid-column: span 1;
  }

  .form-actions {
    grid-column: span 1;
    flex-direction: column;
  }

  .properties-table {
    display: block;
    overflow-x: auto;
  }

  .admin-tabs {
    flex-wrap: wrap;
  }
}

/* ================= FOOTER ================= */
.footer {
  background: #4b515c;
  color: #fff;
  padding: 80px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 40px;
}

.footer h4 {
  margin-bottom: 20px;
  font-size: 16px;
  color: #fff;
}

.footer a {
  font-size: 14px;
  margin-bottom: 8px;
  color: #e0e0e0;
  display: block;
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer a:hover {
  color: #f5b82e;
}

.footer-subscribe input {
  width: 100%;
  padding: 14px;
  border: none;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-subscribe {
    grid-column: span 2;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 60px 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    padding: 0 20px;
  }
  .footer-subscribe {
    grid-column: auto;
  }
}
