/* =============================================
   LUANDA IMÓVEIS — PAGES STYLESHEET
   (applies to all inner pages)
   ============================================= */

/* Import main */
@import '../styles/main.css';

/* PAGE HERO (smaller) */
.page-hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 100%);
  padding: 130px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.page-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: var(--off-white);
  clip-path: ellipse(55% 100% at 50% 100%);
}
.page-hero-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: white;
  margin-bottom: 10px;
}
.page-hero-sub { color: rgba(255,255,255,0.65); font-size: 1rem; }
.breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.5);
}
.breadcrumb a { color: var(--gold-light); }
.breadcrumb i { font-size: 0.7rem; }

/* FILTERS BAR */
.filters-bar {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  margin: -30px auto 40px;
  max-width: 1100px;
  box-shadow: var(--shadow-lg);
  position: relative;
  z-index: 10;
}
.filters-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: flex-end;
}
.filter-group { display: flex; flex-direction: column; gap: 6px; flex: 1; min-width: 140px; }
.filter-group label { font-size: 0.78rem; font-weight: 600; color: var(--navy); text-transform: uppercase; letter-spacing: 0.04em; }
.filter-group select,
.filter-group input {
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--gray-800);
  background: var(--gray-50);
  outline: none;
  transition: var(--transition);
}
.filter-group select:focus,
.filter-group input:focus { border-color: var(--navy); background: white; }
.btn-filter {
  background: var(--navy);
  color: white;
  border: none;
  padding: 11px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  align-self: flex-end;
}
.btn-filter:hover { background: var(--navy-light); }

/* LISTING PAGE LAYOUT */
.listing-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.listing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.listing-count { font-weight: 600; color: var(--navy); }
.listing-sort {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--gray-600);
}
.listing-sort select { border: 1.5px solid var(--gray-200); border-radius: 6px; padding: 6px 12px; font-family: var(--font-body); font-size: 0.85rem; }

/* SIDEBAR */
.sidebar { display: flex; flex-direction: column; gap: 20px; }
.sidebar-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.sidebar-card h4 { font-weight: 700; color: var(--navy); margin-bottom: 16px; font-size: 0.95rem; }
.sidebar-ad {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  border-radius: var(--radius-lg);
  padding: 28px;
  text-align: center;
}
.sidebar-ad h4 { color: var(--gold-light); margin-bottom: 10px; }
.sidebar-ad p { color: rgba(255,255,255,0.7); font-size: 0.88rem; margin-bottom: 16px; }

/* IMOVEL PAGE */
.imovel-gallery { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 28px; }
.gallery-main { height: 440px; overflow: hidden; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 8px; margin-top: 8px; }
.gallery-thumbs img { width: 100px; height: 70px; object-fit: cover; border-radius: 8px; cursor: pointer; opacity: 0.7; transition: var(--transition); }
.gallery-thumbs img:hover { opacity: 1; }

.imovel-layout { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: start; }
.imovel-main-card { background: white; border-radius: var(--radius-lg); padding: 32px; }
.imovel-id { display: inline-block; background: var(--gray-100); color: var(--gray-600); padding: 4px 12px; border-radius: 6px; font-size: 0.8rem; font-family: monospace; margin-bottom: 12px; }
.imovel-title { font-family: var(--font-display); font-size: clamp(1.4rem, 3vw, 2rem); color: var(--navy); margin-bottom: 8px; }
.imovel-price { font-family: var(--font-display); font-size: 1.8rem; color: var(--gold); font-weight: 700; margin: 16px 0; }
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; margin: 24px 0; }
.feature-item { background: var(--gray-50); border-radius: var(--radius-sm); padding: 14px; text-align: center; }
.feature-item i { color: var(--navy); font-size: 1.1rem; margin-bottom: 6px; }
.feature-item strong { display: block; color: var(--gray-800); font-size: 0.9rem; }
.feature-item small { color: var(--gray-400); font-size: 0.78rem; }
.section-divider { border: none; border-top: 1px solid var(--gray-200); margin: 24px 0; }
.imovel-desc h3 { color: var(--navy); font-weight: 700; margin-bottom: 12px; }
.imovel-desc p { color: var(--gray-600); line-height: 1.8; }

.contact-card { background: white; border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-md); position: sticky; top: 90px; }
.agent-card { display: flex; align-items: center; gap: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--gray-200); margin-bottom: 20px; }
.agent-avatar { width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: var(--gold-light); display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700; flex-shrink: 0; }
.agent-info strong { display: block; color: var(--navy); font-size: 1rem; }
.agent-info span { color: var(--gray-400); font-size: 0.83rem; }
.contact-btns { display: flex; flex-direction: column; gap: 10px; }
.btn-contact { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 13px; border-radius: var(--radius-sm); font-weight: 600; font-size: 0.95rem; transition: var(--transition); border: none; cursor: pointer; font-family: var(--font-body); }
.btn-wa { background: #25D366; color: white; }
.btn-wa:hover { background: #1ebe5a; }
.btn-tel { background: var(--navy); color: white; }
.btn-tel:hover { background: var(--navy-light); }
.btn-email { background: var(--gray-100); color: var(--gray-800); border: 1.5px solid var(--gray-200); }
.btn-email:hover { background: var(--gray-200); }

/* PLANS PAGE */
.plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.plan-card { background: white; border-radius: var(--radius-lg); padding: 36px 28px; border: 2px solid var(--gray-200); text-align: center; position: relative; transition: var(--transition); }
.plan-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan-card.popular { border-color: var(--gold); box-shadow: var(--shadow-gold); }
.plan-badge-popular { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gold); color: var(--navy-dark); padding: 4px 18px; border-radius: 50px; font-size: 0.78rem; font-weight: 700; white-space: nowrap; }
.plan-name { font-family: var(--font-display); font-size: 1.4rem; color: var(--navy); margin-bottom: 8px; }
.plan-price { font-family: var(--font-display); font-size: 2.4rem; font-weight: 900; color: var(--navy); margin: 16px 0 4px; }
.plan-price small { font-size: 0.9rem; color: var(--gray-400); font-family: var(--font-body); }
.plan-period { color: var(--gray-400); font-size: 0.85rem; margin-bottom: 24px; }
.plan-features { list-style: none; text-align: left; margin-bottom: 28px; display: flex; flex-direction: column; gap: 10px; }
.plan-features li { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; color: var(--gray-600); }
.plan-features li i { color: var(--green); font-size: 0.85rem; flex-shrink: 0; }
.plan-features li.unavail i { color: var(--gray-300); }
.plan-features li.unavail { color: var(--gray-300); }

/* AUTH PAGES */
.auth-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--navy-dark), var(--navy)); padding: 24px; }
.auth-card { background: white; border-radius: var(--radius-lg); padding: 48px; width: 100%; max-width: 440px; box-shadow: var(--shadow-lg); }
.auth-logo { display: flex; justify-content: center; margin-bottom: 28px; }
.auth-logo img { height: 56px; }
.auth-title { font-family: var(--font-display); font-size: 1.6rem; color: var(--navy); text-align: center; margin-bottom: 6px; }
.auth-sub { text-align: center; color: var(--gray-400); font-size: 0.9rem; margin-bottom: 28px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.85rem; font-weight: 600; color: var(--navy); }
.form-group input,
.form-group select,
.form-group textarea { border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); padding: 12px 16px; font-family: var(--font-body); font-size: 0.95rem; color: var(--gray-800); outline: none; transition: var(--transition); }
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--navy); }
.btn-primary { display: block; width: 100%; background: var(--navy); color: white; border: none; padding: 14px; border-radius: var(--radius-sm); font-family: var(--font-body); font-size: 1rem; font-weight: 600; cursor: pointer; transition: var(--transition); text-align: center; }
.btn-primary:hover { background: var(--navy-light); }
.auth-footer { text-align: center; margin-top: 20px; font-size: 0.88rem; color: var(--gray-400); }
.auth-footer a { color: var(--navy); font-weight: 600; }

/* DASHBOARD */
.dashboard-layout { display: grid; grid-template-columns: 260px 1fr; min-height: calc(100vh - 72px); }
.dash-sidebar { background: var(--navy-dark); padding: 28px 0; }
.dash-user { padding: 0 20px 24px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 16px; }
.dash-avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--gold); color: var(--navy-dark); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.1rem; margin-bottom: 10px; }
.dash-user strong { display: block; color: white; font-size: 0.95rem; }
.dash-user span { color: rgba(255,255,255,0.5); font-size: 0.8rem; }
.dash-nav { display: flex; flex-direction: column; }
.dash-nav-item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; color: rgba(255,255,255,0.6); font-size: 0.9rem; transition: var(--transition); cursor: pointer; }
.dash-nav-item:hover, .dash-nav-item.active { background: rgba(255,255,255,0.06); color: var(--gold-light); }
.dash-nav-item i { width: 18px; flex-shrink: 0; }
.dash-content { padding: 32px; background: var(--gray-50); }
.dash-header { margin-bottom: 28px; }
.dash-header h1 { font-family: var(--font-display); font-size: 1.8rem; color: var(--navy); margin-bottom: 4px; }
.dash-header p { color: var(--gray-400); font-size: 0.9rem; }
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 28px; }
.stat-card { background: white; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.stat-card i { font-size: 1.4rem; margin-bottom: 10px; color: var(--gold); }
.stat-card strong { display: block; font-size: 1.8rem; font-family: var(--font-display); color: var(--navy); }
.stat-card span { font-size: 0.82rem; color: var(--gray-400); }

/* ADMIN */
.admin-table { width: 100%; border-collapse: collapse; background: white; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.admin-table th { background: var(--navy); color: rgba(255,255,255,0.8); padding: 14px 16px; text-align: left; font-size: 0.82rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.admin-table td { padding: 14px 16px; border-bottom: 1px solid var(--gray-100); font-size: 0.9rem; color: var(--gray-600); }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--gray-50); }
.status-badge { display: inline-block; padding: 3px 10px; border-radius: 50px; font-size: 0.75rem; font-weight: 600; }
.status-ativo { background: rgba(16,185,129,0.1); color: var(--green); }
.status-pendente { background: rgba(245,158,11,0.1); color: #D97706; }
.status-expirado { background: rgba(239,68,68,0.1); color: var(--red); }
.btn-sm { padding: 5px 12px; border-radius: 6px; font-size: 0.78rem; font-weight: 600; border: none; cursor: pointer; transition: var(--transition); font-family: var(--font-body); }
.btn-approve { background: var(--green); color: white; }
.btn-reject { background: var(--red); color: white; }
.btn-edit { background: var(--navy); color: white; }

/* RESPONSIVE PAGES */
@media (max-width: 1024px) {
  .listing-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .imovel-layout { grid-template-columns: 1fr; }
  .dashboard-layout { grid-template-columns: 1fr; }
  .dash-sidebar { display: none; }
}
@media (max-width: 768px) {
  .filters-row { flex-direction: column; }
  .auth-card { padding: 32px 24px; }
  .gallery-main { height: 260px; }
  .contact-card { position: static; }
}
