/* Estatify Main Admin CSS - Modern, Clean, Reusable */

/* Table Styles */
.estatify-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  font-size: 1rem;
  min-width: 340px;
  animation: fadeInUp 0.7s cubic-bezier(.23,1.01,.32,1) both;
  overflow: hidden;
}
.estatify-table th, .estatify-table td {
  padding: 1.2em 1.3em;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #f0f0f0;
}
.estatify-table th {
  font-weight: 700;
  background: #f8fafc;
  color: #333;
  font-size: 1.08em;
  letter-spacing: 0.01em;
}
.estatify-table tr {
  transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
  animation: fadeInUp 0.7s cubic-bezier(.23,1.01,.32,1) both;
  box-shadow: none;
}
.estatify-table tr:hover {
  background: #f5f7fa;
  box-shadow: 0 4px 18px rgba(25,118,210,0.08);
  transform: translateY(-2px) scale(1.01);
}
.estatify-table td {
  font-size: 1.01em;
  color: #222;
}

/* Button Styles */
.estatify-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  background: #1976d2;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.7em 1.5em;
  font-size: 1.08em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.18s;
  box-shadow: 0 2px 10px rgba(25,118,210,0.10);
  will-change: transform;
  animation: fadeIn 0.7s cubic-bezier(.23,1.01,.32,1) both;
  outline: none;
}
.estatify-btn:hover, .estatify-btn:focus {
  background: #1251a3;
  transform: translateY(-2px) scale(1.045);
  box-shadow: 0 6px 24px rgba(25,118,210,0.13);
}
.estatify-btn.secondary {
  background: #f5f7fa;
  color: #1976d2;
  border: 1.5px solid #dbeafe;
  box-shadow: 0 1px 4px rgba(25,118,210,0.06);
}
.estatify-btn.secondary:hover, .estatify-btn.secondary:focus {
  background: #e3eafc;
  color: #1251a3;
}

/* Frontend: Default Property Grid/List
   Used when no Elementor template is selected for search results. */
.estatify-default-results {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 32px;
  margin: 32px auto;
  max-width: 1100px;
}

.estatify-default-results--list {
  grid-template-columns: minmax(0, 1fr);
}

.estatify-card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
  display: flex;
  flex-direction: column;
}

.estatify-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.14);
}

.estatify-card__image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
}

.estatify-card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.estatify-card:hover .estatify-card__image {
  transform: scale(1.04);
}

.estatify-card__image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e5e7eb, #f3f4f6);
  color: #6b7280;
  font-weight: 500;
  font-size: 0.95rem;
}

.estatify-card__badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #16a34a;
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.estatify-card__body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.estatify-card__ref {
  font-size: 0.82rem;
  color: #6b7280;
}

.estatify-card__title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
  margin: 4px 0;
}

.estatify-card__title a {
  color: #111827 !important;
  text-decoration: none !important;
}

.estatify-card__title a:hover {
  text-decoration: underline !important;
}

.estatify-card__price {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  margin-top: 2px;
}

.estatify-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
  font-size: 0.86rem;
  color: #6b7280;
}

.estatify-card__meta-item--location::before {
  content: "📍";
  margin-right: 4px;
}

.estatify-card__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 10px;
  font-size: 0.84rem;
  color: #4b5563;
}

.estatify-card__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.estatify-card__stat-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9ca3af;
}

.estatify-card__stat-value {
  font-weight: 600;
  color: #111827;
}

@media (max-width: 640px) {
  .estatify-default-results {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }
}

@media (min-width: 768px) {
  .estatify-default-results {
    /* Exactly two reasonably wide cards per row on desktop */
    grid-template-columns: repeat(2, minmax(320px, 1fr));
  }
}

/* Modal Styles */
.estatify-modal {
  background: #fff;
  padding: 2em;
  border-radius: 8px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  max-width: 600px;
  max-height: 70vh;
  overflow: auto;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  display: none;
}
.estatify-modal.active {
  display: block;
}

/* Badge Styles */
.estatify-badge {
  display: inline-block;
  padding: 0.38em 1.2em;
  border-radius: 999px;
  font-size: 1.01em;
  font-weight: 600;
  color: #fff;
  vertical-align: middle;
  box-shadow: 0 1px 6px rgba(0,0,0,0.09);
  margin-bottom: 0.1em;
  font-family: inherit;
  letter-spacing: 0.01em;
  background: #b0b0b0;
  transition: background 0.2s, box-shadow 0.2s, transform 0.18s;
}
.estatify-badge.success { background: #43a047; }
.estatify-badge.error { background: #e53935; }
.estatify-badge.info { background: #1976d2; }

/* Utility Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: none; }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Responsive Table */
@media (max-width: 900px) {
  .estatify-table { min-width: 480px; }
  .estatify-btn { width: 100%; }
}
@media (max-width: 600px) {
  .estatify-table { min-width: 340px; }
  .estatify-modal { padding: 1em; }
}

.estatify-parent-row .estatify-toggle {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.2em;
  margin-right: 0.5em;
  color: #1976d2;
  vertical-align: middle;
}
.estatify-child-row {
  background: #f8fafc;
}
.estatify-child-indent {
  padding-left: 2em;
  display: inline-block;
}
.estatify-parent-row:hover .estatify-actions,
.estatify-child-row:hover .estatify-actions {
  opacity: 1;
  pointer-events: auto;
}
.estatify-actions {
  display: flex;
  gap: 0.5em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
tr:hover .estatify-actions,
tr:focus-within .estatify-actions {
  opacity: 1;
  pointer-events: auto;
}
.estatify-btn.icon-only {
  padding: 0.5em 0.7em;
  font-size: 1.1em;
  background: #f5f7fa;
  color: #1976d2;
  border-radius: 6px;
  border: none;
  box-shadow: none;
}
.estatify-btn.icon-only.secondary {
  color: #e53935;
}
.estatify-btn.icon-only:hover {
  background: #e3eafc;
  color: #1251a3;
}
.estatify-btn.icon-only.secondary:hover {
  color: #fff;
  background: #e53935;
} 