/* ====== SHARED BUTTON STYLES ====== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  border: none;
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--accent);
  color: #0a0a0b;
}
.btn-primary:hover {
  background: #ffd700;
  box-shadow: 0 0 20px var(--accent-glow);
}
.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-outline {
  background: transparent;
  color: var(--fg-muted);
  border: 1px solid var(--border);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.btn-lg {
  padding: 16px 32px;
  font-size: 17px;
}
.btn-full {
  width: 100%;
}

/* ====== APP HEADER ====== */
.app-header {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  position: sticky;
  top: 0;
  z-index: 100;
}
.app-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.app-logo {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}
.app-logo:hover { color: var(--accent); }

/* ====== APP MAIN ====== */
.app-main {
  min-height: calc(100vh - 120px);
}

/* ====== APP FOOTER ====== */
.app-footer {
  border-top: 1px solid var(--border);
  padding: 20px 40px;
  text-align: center;
  font-size: 13px;
  color: var(--fg-dim);
}

/* ====== FORM PAGE ====== */
.form-page {
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 40px;
}
.form-header {
  margin-bottom: 48px;
}
.form-header h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -1.5px;
  margin-bottom: 12px;
  margin-top: 16px;
}
.form-sub {
  color: var(--fg-muted);
  font-size: 17px;
}

.form-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
}
.form-section-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 20px;
  color: var(--fg);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-field.full {
  grid-column: 1 / -1;
}
.form-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-field input,
.form-field select,
.form-field textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 15px;
  padding: 10px 14px;
  outline: none;
  transition: border-color 0.2s ease;
  width: 100%;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--accent);
}
.form-field select option { background: var(--bg-card); }

.form-hint {
  color: var(--fg-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.amenities-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.amenity-check {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  color: var(--fg-muted);
  cursor: pointer;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  transition: all 0.15s ease;
}
.amenity-check:hover { border-color: var(--accent); color: var(--fg); }
.amenity-check input[type="checkbox"] { accent-color: var(--accent); width: 14px; height: 14px; }

.optional-tag {
  font-size: 11px;
  font-weight: 500;
  color: var(--fg-dim);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 8px;
}

.form-actions {
  text-align: center;
  padding-top: 8px;
}
.form-disclaimer {
  font-size: 13px;
  color: var(--fg-dim);
  margin-top: 12px;
}

/* ====== LISTING PAGE ====== */
.listing-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px;
}

.photo-gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 240px 240px;
  gap: 8px;
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 40px;
}
.photo-item { overflow: hidden; background: var(--bg-card); }
.photo-item.photo-main { grid-row: 1 / 3; }
.photo-item img { width: 100%; height: 100%; object-fit: cover; display: block; }

.listing-content {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}

.listing-badge {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  display: inline-block;
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 16px;
}
.listing-headline {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 12px;
}
.listing-address {
  color: var(--fg-muted);
  font-size: 16px;
  margin-bottom: 24px;
}
.listing-specs {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.spec-chip {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 8px 16px;
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-display);
}
.rent-chip {
  background: var(--accent-dim);
  border-color: rgba(245, 197, 24, 0.3);
  color: var(--accent);
}
.amenity-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}
.amenity-tag {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 4px 12px;
  font-size: 13px;
  color: var(--fg-muted);
}
.listing-description {
  margin-top: 24px;
}
.listing-description p {
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.75;
  margin-bottom: 16px;
}

/* ====== APPLY CARD ====== */
.apply-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: sticky;
  top: 80px;
  margin-bottom: 16px;
}
.apply-card-header {
  margin-bottom: 24px;
}
.rent-display {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}
.rent-per {
  font-size: 18px;
  font-weight: 500;
  color: var(--fg-muted);
}
.apply-subtitle {
  color: var(--fg-muted);
  font-size: 14px;
  margin-top: 8px;
}
.apply-form { display: flex; flex-direction: column; gap: 14px; }
.apply-field { display: flex; flex-direction: column; gap: 5px; }
.apply-field label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--fg-muted);
}
.apply-field input,
.apply-field select,
.apply-field textarea {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 14px;
  padding: 9px 12px;
  outline: none;
  width: 100%;
  transition: border-color 0.2s ease;
}
.apply-field input:focus,
.apply-field textarea:focus { border-color: var(--accent); }
.apply-success {
  text-align: center;
  padding: 20px 0;
}
.success-icon {
  width: 48px;
  height: 48px;
  background: var(--accent-dim);
  border: 2px solid var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: var(--accent);
  margin: 0 auto 16px;
}
.apply-success h3 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.apply-success p { color: var(--fg-muted); font-size: 14px; }

.share-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.share-label { font-size: 14px; color: var(--fg-muted); }

/* ====== MOBILE ====== */
@media (max-width: 768px) {
  .form-page { padding: 32px 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .amenities-grid { grid-template-columns: repeat(2, 1fr); }
  .listing-page { padding: 24px 20px; }
  .photo-gallery { grid-template-columns: 1fr; grid-template-rows: auto; }
  .photo-item.photo-main { grid-row: auto; }
  .listing-content { grid-template-columns: 1fr; gap: 32px; }
  .apply-card { position: static; }
  .share-card { flex-direction: column; align-items: stretch; }
  .app-header-inner { padding: 12px 20px; }
  .app-footer { padding: 16px 20px; }
}
