/* Responsabilidade: Componentes reutilizáveis (botões, cards, forms) */

.property-selector {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.prop-btn {
  padding: 10px 18px;
  background: var(--admin-bg);
  border: 1px solid var(--admin-border);
  color: #999;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.prop-btn:hover {
  border-color: #444;
  color: #ccc;
}

.prop-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--dark);
  font-weight: 600;
}

.btn-add-prop {
  padding: 10px 18px;
  background: transparent;
  border: 1px dashed #444;
  color: #888;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  margin-bottom: 32px;
  width: 100%;
}

.btn-add-prop:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.logo-upload-area {
  display: none;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 16px;
  border: 2px solid #2a2a2a;
  background: #0a0a0a;
}

.logo-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.data-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

.btn-export,
.btn-import {
  flex: 1;
  padding: 12px 24px;
  background: var(--admin-bg);
  border: 1px solid var(--admin-border);
  color: #999;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-export:hover,
.btn-import:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-delete {
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--error);
  color: var(--error);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  margin-right: auto;
}

.btn-delete:hover {
  background: var(--error);
  color: white;
}

.btn {
  padding: 8px 20px;
  border: none;
  border-radius: 4px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-admin {
  background: transparent;
  border: 1px solid #333;
  color: #999;
}

.btn-admin:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.btn-pdf {
  background: var(--gold);
  color: var(--dark);
}

.btn-pdf:hover {
  background: var(--gold-light);
}

.property-card {
  display: grid;
  grid-template-columns: 100px 1fr auto;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  align-items: center;
  min-width: 0;
}

.property-card * {
  min-width: 0;
}

.property-card:last-child {
  border-bottom: none;
}

.property-img-wrapper {
  width: 90px;
  height: 80px;
  border-radius: 4px;
  overflow: hidden;
  background: #DED9D0;
  flex-shrink: 0;
  position: relative;
}

.property-img-inner {
  display: block;
}

.property-img-placeholder {
  width: 160px;
  height: 107px;
  border-radius: 4px;
  background: linear-gradient(135deg, #DED9D0 0%, #C8C3BA 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: #B5ACA3;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  font-weight: 500;
}

.property-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.property-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.property-name {
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
}

.property-badge {
  display: inline-block;
  font-size: 7px;
  font-weight: 700;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 3px;
  line-height: 1;
}

.property-unit {
  font-size: 10px;
  color: var(--muted);
  font-weight: 400;
}

.property-address {
  font-size: 8px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 400;
}

.property-address::before {
  content: '○';
  color: var(--gold);
  font-size: 10px;
}

.property-price {
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
}

.property-payment {
  font-size: 8px;
  color: var(--muted);
  font-weight: 400;
}

.property-specs {
  display: flex;
  flex-direction: row;
  gap: 20px;
  align-items: center;
}

.spec-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  min-width: 15px;
}

.spec-icon {
  width: 20px;
  height: 20px;
  stroke: var(--dark);
  stroke-width: 1.3;
  fill: none;
}

.spec-value {
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
}

.spec-label {
  font-size: 7px;
  color: var(--muted);
  font-weight: 400;
  text-transform: lowercase;
}

.spec-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 7px 7px;
  border: 1px solid var(--dark);
  border-radius: 1px;
  min-width: 80px;
  border-radius: 3px;
}

.spec-area-value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
}

.spec-area-label {
  font-size: 7px;
  color: var(--muted);
  margin-top: 0px;
  font-weight: 400;
}

.admin-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.85);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 40px;
  backdrop-filter: blur(4px);
}

.admin-overlay.active {
  display: flex;
}

.admin-panel {
  background: var(--admin-panel);
  width: 100%;
  max-width: 1000px;
  max-height: 90vh;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 80px rgba(0,0,0,0.4);
}

.admin-tabs {
  display: flex;
  background: var(--admin-bg);
  border-bottom: 1px solid var(--admin-border);
}

.admin-tab {
  flex: 1;
  padding: 16px 24px;
  background: transparent;
  border: none;
  color: #777;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s;
  border-bottom: 2px solid transparent;
}

.admin-tab:hover {
  color: #aaa;
}

.admin-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
  background: var(--admin-panel);
}

.admin-content {
  flex: 1;
  overflow-y: auto;
  padding: 32px;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

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

.form-label {
  display: block;
  font-size: 10px;
  color: #888;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.form-input {
  width: 100%;
  padding: 12px 16px;
  background: var(--admin-bg);
  border: 1px solid var(--admin-border);
  color: #ddd;
  font-family: 'Montserrat', sans-serif;
  font-size: 13px;
  border-radius: 4px;
  transition: all 0.2s;
}

.form-input:focus {
  outline: none;
  border-color: var(--gold);
  background: #0a0a0a;
}

.section-title {
  font-size: 10px;
  color: #888;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 16px;
  text-align: center;
}

.info-text {
  color: #999;
  font-size: 13px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.admin-divider {
  height: 1px;
  background: var(--admin-border);
  margin: 28px 0 24px;
}

.admin-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--admin-border);
}

.btn-cancel {
  padding: 12px 24px;
  background: transparent;
  border: 1px solid var(--admin-border);
  color: #999;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-cancel:hover {
  border-color: #555;
  color: #ccc;
}

.btn-save {
  padding: 12px 32px;
  background: var(--gold);
  border: none;
  color: var(--dark);
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-save:hover {
  background: var(--gold-light);
}

#toast {
  position: fixed;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--success);
  color: white;
  padding: 14px 32px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  z-index: 300;
  opacity: 0;
  transition: all 0.3s;
  box-shadow: 0 8px 32px rgba(0,0,0,0.3);
}

#toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}