/* Alugge Gestor Core - Portal Frontend v0.2.0
   Layout neutro: cartões brancos para você definir o fundo pelo tema/Elementor. */
.agp-shell,
.agp-dashboard {
  box-sizing: border-box;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
  font-family: inherit;
  color: #15151a;
}
.agp-shell * ,
.agp-dashboard * { box-sizing: border-box; }
.agp-card {
  background: #fff;
  border: 1px solid rgba(20,20,30,.08);
  border-radius: 22px;
  box-shadow: 0 18px 50px rgba(20,20,30,.08);
  padding: 22px;
}
.agp-login-card,
.agp-form-card {
  max-width: 560px;
  margin: 0 auto;
}
.agp-form-card { max-width: 820px; }
.agp-card h1,
.agp-dashboard h1,
.agp-dashboard h2 {
  margin: 0 0 8px;
  line-height: 1.12;
}
.agp-card p,
.agp-dashboard p {
  margin: 0 0 18px;
  color: rgba(20,20,30,.68);
}
.agp-form {
  display: grid;
  gap: 14px;
}
.agp-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.agp-form label {
  display: grid;
  gap: 7px;
  font-size: 14px;
  font-weight: 650;
}
.agp-form input,
.agp-form select,
.agp-form textarea {
  width: 100%;
  border: 1px solid rgba(20,20,30,.16);
  border-radius: 14px;
  padding: 12px 14px;
  background: #fff;
  font: inherit;
  min-height: 46px;
}
.agp-form textarea { resize: vertical; }
.agp-check {
  display: flex !important;
  grid-template-columns: unset !important;
  align-items: flex-start;
  gap: 10px !important;
  font-weight: 500 !important;
}
.agp-check input { width: auto; min-height: auto; margin-top: 4px; }
.agp-button,
.agp-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 0;
  background: #15151a;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 750;
  cursor: pointer;
}
.agp-button-light {
  background: #f4f4f6;
  color: #15151a !important;
}
.agp-alert,
.agp-success {
  padding: 12px 14px;
  border-radius: 14px;
  margin: 0 0 16px;
  font-weight: 650;
}
.agp-alert { background: #fff3f1; color: #8f1d10; }
.agp-success { background: #effaf2; color: #1d6d35; }
.agp-topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin: 0 0 20px;
}
.agp-stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 16px;
}
.agp-stats .agp-card {
  padding: 18px;
  box-shadow: 0 10px 30px rgba(20,20,30,.06);
}
.agp-stats span {
  display: block;
  color: rgba(20,20,30,.62);
  font-size: 13px;
  margin-bottom: 8px;
}
.agp-stats strong {
  display: block;
  font-size: 22px;
  line-height: 1.1;
}
.agp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 28px;
}
.agp-actions a {
  min-height: 40px;
  padding: 9px 14px;
  background: #f4f4f6;
  color: #15151a !important;
  box-shadow: none;
}
.agp-property-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 0 0 28px;
}
.agp-property-card {
  overflow: hidden;
  padding: 0;
}
.agp-property-card img,
.agp-placeholder {
  display: block;
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: #f3f3f5;
}
.agp-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(20,20,30,.45);
  font-weight: 750;
}
.agp-property-card > div:last-child {
  padding: 16px;
  display: grid;
  gap: 7px;
}
.agp-property-card strong { font-size: 17px; }
.agp-property-card span,
.agp-property-card em {
  color: rgba(20,20,30,.64);
  font-style: normal;
  font-size: 13px;
}
.agp-table-card { overflow: auto; }
.agp-table-card table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.agp-table-card th,
.agp-table-card td {
  text-align: left;
  padding: 12px;
  border-bottom: 1px solid rgba(20,20,30,.08);
}
.agp-table-card th {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: rgba(20,20,30,.55);
}
@media (max-width: 980px) {
  .agp-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .agp-property-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .agp-shell, .agp-dashboard { width: min(100% - 20px, 1180px); padding: 20px 0; }
  .agp-two, .agp-stats, .agp-property-grid { grid-template-columns: 1fr; }
  .agp-topbar { display: grid; }
  .agp-card { border-radius: 18px; padding: 18px; }
}
